/* ============================================================
   Rycta Admin - Modern UI Theme
   Loaded AFTER the legacy Bootstrap 2 stylesheet so it overrides
   the old MetroLab look while keeping the Bootstrap 2 grid and
   jQuery plugins functional.
   ============================================================ */

:root {
  --am-primary: #6d5df6;
  --am-primary-rgb: 109, 93, 246;
  --am-primary-dark: #5542e8;
  --am-success: #22c55e;
  --am-danger: #ef4444;
  --am-warning: #f59e0b;
  --am-info: #0ea5e9;
  --am-ink: #0f172a;
  --am-sidebar-bg: #10152b;
  --am-sidebar-muted: #8b93ad;
  --am-surface: #ffffff;
  --am-bg: #f1f5f9;
  --am-border: #e2e8f0;
  --am-text: #334155;
  --am-muted: #64748b;
  --am-radius: 12px;
  --am-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --am-topbar-h: 60px;
  --am-sidebar-w: 236px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: auto;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--am-text);
  background: var(--am-bg);
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
  border: 2px solid var(--am-bg);
}
::-webkit-scrollbar-track {
  background: transparent;
}

a {
  color: var(--am-primary);
  text-decoration: none;
}
a:hover,
a:focus {
  color: var(--am-primary-dark);
  text-decoration: none;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.am-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--am-topbar-h);
  background: var(--am-surface);
  border-bottom: 1px solid var(--am-border);
  z-index: 1040;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.am-topbar .am-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--am-ink);
  letter-spacing: .2px;
}
.am-topbar .am-brand img {
  height: 30px;
  width: 30px;
  border-radius: 7px;
}
.am-topbar .am-brand span {
  background: linear-gradient(120deg, var(--am-primary), #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.am-sidebar-toggle {
  background: none;
  border: 0;
  color: var(--am-muted);
  font-size: 18px;
  padding: 8px 10px;
  margin-right: 8px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}
.am-sidebar-toggle:hover {
  background: #f1f5f9;
  color: var(--am-ink);
}
.am-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.am-user {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--am-text);
  border: 0;
  background: none;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 14px;
  cursor: pointer;
}
.am-user:hover {
  background: #f1f5f9;
}
.am-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--am-primary), #a78bfa);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}
.am-dropdown {
  position: relative;
}
.am-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: 10px;
  box-shadow: var(--am-shadow);
  padding: 6px;
  display: none;
  z-index: 1050;
}
.am-dropdown.open .am-dropdown-menu {
  display: block;
}
.am-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--am-text);
  font-size: 14px;
}
.am-dropdown-menu a:hover {
  background: #f1f5f9;
  color: var(--am-ink);
}
.am-dropdown-menu a.danger {
  color: var(--am-danger);
}
.am-dropdown-menu a.danger:hover {
  background: #fef2f2;
}

/* ============================================================
   LAYOUT WRAPPER + SIDEBAR
   ============================================================ */
.am-wrap {
  padding-top: var(--am-topbar-h);
  min-height: 100vh;
}
.am-sidebar {
  position: fixed;
  top: var(--am-topbar-h);
  bottom: 0;
  left: 0;
  width: var(--am-sidebar-w);
  background: var(--am-sidebar-bg);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1030;
  transition: transform .22s ease, margin-left .22s ease;
}
#main-content {
  margin-left: var(--am-sidebar-w);
  padding: 26px 28px 60px;
  transition: margin-left .22s ease;
  min-height: calc(100vh - var(--am-topbar-h));
}

body.sidebar-collapsed .am-sidebar {
  transform: translateX(calc(var(--am-sidebar-w) * -1));
  margin-left: calc(var(--am-sidebar-w) * -1);
}
body.sidebar-collapsed #main-content {
  margin-left: 0;
}

/* Sidebar menu (keeps legacy .sidebar-menu/.sub-menu/.sub/.arrow hooks) */
.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 14px 0;
}
.sidebar-menu > li {
  margin: 2px 12px;
}
.sidebar-menu > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--am-sidebar-muted);
  font-size: 14px;
  font-weight: 500;
  border: 0;
  transition: background .15s ease, color .15s ease;
}
.sidebar-menu > li > a:hover,
.sidebar-menu > li.sub-menu.open > a,
.sidebar-menu > li.active > a {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.sidebar-menu > li > a > i {
  width: 20px;
  text-align: center;
  font-size: 15px;
}
.sidebar-menu .arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform .15s ease;
}
.sidebar-menu .arrow.open {
  transform: rotate(90deg);
}
.sidebar-menu > li > ul.sub {
  list-style: none;
  margin: 4px 0 4px 14px;
  padding: 0 0 0 22px;
  border-left: 1px solid rgba(255, 255, 255, .1);
  display: none;
}
.sidebar-menu > li > ul.sub > li > a {
  display: block;
  padding: 8px 12px;
  color: var(--am-sidebar-muted);
  font-size: 13.5px;
  border-radius: 8px;
}
.sidebar-menu > li > ul.sub > li > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}
.sidebar-menu > li.logout-link > a {
  color: #fda4af;
}
.sidebar-menu > li.logout-link > a:hover {
  background: rgba(239, 68, 68, .12);
  color: #fecdd3;
}

/* ============================================================
   PAGE HEADER (breadcrumb blocks in legacy pages)
   ============================================================ */
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--am-ink);
  margin: 0 0 4px;
  line-height: 1.3;
}
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
  font-size: 13px;
  color: var(--am-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.breadcrumb > li + li:before {
  content: "/";
  color: #cbd5e1;
  margin: 0 6px;
}
.breadcrumb .divider {
  display: none;
}
.breadcrumb li.active {
  color: var(--am-muted);
}
.breadcrumb a {
  color: var(--am-muted);
}
.breadcrumb a:hover {
  color: var(--am-primary);
}
.breadcrumb li.pull-right {
  margin-left: auto;
}

/* Hide dead theme-customizer + demo search from legacy pages */
#theme-change {
  display: none !important;
}
.search-wrap,
.search-input-area {
  display: none !important;
}

/* ============================================================
   WIDGET / PORTLET CARDS
   ============================================================ */
.widget {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow);
  margin-bottom: 22px;
}
.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--am-border);
  background: transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}
.widget-title h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--am-ink);
}
.widget-title h4 i {
  color: var(--am-primary);
  margin-right: 4px;
}
.widget-title .tools {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.widget-title .tools a {
  color: var(--am-muted);
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
}
.widget-title .tools a:hover {
  background: #f1f5f9;
  color: var(--am-ink);
}
.widget-body {
  padding: 18px;
}

/* ============================================================
   FORMS
   ============================================================ */
.control-group {
  margin-bottom: 18px;
}
.control-label {
  display: block;
  font-weight: 500;
  color: var(--am-ink);
  margin-bottom: 6px;
  font-size: 13.5px;
}
.controls input[type="text"],
.controls input[type="password"],
.controls input[type="number"],
.controls input[type="email"],
.controls input[type="url"],
.controls input.input-large,
.controls input.input-medium,
.controls input.input-small,
.controls input.input-mini,
.controls select,
.controls textarea,
.form-actions input[type="text"],
.form-control,
.form-actions .form-control {
  width: 100%;
  max-width: 560px;
  background: #fbfcfe;
  border: 1px solid var(--am-border);
  color: var(--am-text);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
  height: auto;
}
.controls textarea {
  max-width: 760px;
  min-height: 96px;
}
.controls input:focus,
.controls select:focus,
.controls textarea:focus,
.form-control:focus {
  outline: none;
  border-color: var(--am-primary);
  box-shadow: 0 0 0 3px rgba(var(--am-primary-rgb), .14);
  background: #fff;
}
.controls .btn {
  position: relative;
}
/*** chosen (convertible selects) ***/
.chzn-container .chzn-single {
  height: auto;
  line-height: 26px;
  background: #fbfcfe;
  border: 1px solid var(--am-border);
  border-radius: 8px;
  box-shadow: none;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--am-text);
}
.chzn-container .chzn-single div b {
  background-position: -3px 8px;
}
.chzn-container .chzn-drop {
  border: 1px solid var(--am-border);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--am-shadow);
}
.chzn-container .chzn-results .highlighted {
  background: var(--am-primary);
}
.chzn-container-active .chzn-single {
  border-color: var(--am-primary);
  box-shadow: 0 0 0 3px rgba(var(--am-primary-rgb), .14);
}
/*** bootstrap file upload ***/
.fileupload .btn {
  margin: 0;
}
.fileupload-new.input-append .btn,
.fileupload-exists.input-append .btn {
  border-radius: 8px;
}

.form-actions {
  background: #f8fafc;
  border-top: 1px solid var(--am-border);
  padding: 14px 18px;
  margin: 18px -18px -18px;
  border-radius: 0 0 var(--am-radius) var(--am-radius);
  text-align: right;
}
.form-actions .btn + .btn {
  margin-left: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn,
button.btn,
input.btn {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid var(--am-border);
  background: #fff;
  color: var(--am-text);
  text-shadow: none;
  box-shadow: none;
  background-image: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  line-height: 1.5;
  display: inline-block;
  vertical-align: middle;
}
.btn:hover,
.btn:focus {
  background: #f1f5f9;
  color: var(--am-ink);
  background-position: 0;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary,
.btn.green,
.btn-success,
.btn.terques {
  background: var(--am-success);
  border-color: var(--am-success);
  color: #fff;
}
.btn-primary:hover,
.btn.green:hover,
.btn-success:hover,
.btn.terques:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.btn-danger,
.btn.red {
  background: var(--am-danger);
  border-color: var(--am-danger);
  color: #fff;
}
.btn-danger:hover,
.btn.red:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.btn-info,
.btn.blue {
  background: var(--am-info);
  border-color: var(--am-info);
  color: #fff;
}
.btn-info:hover,
.btn.blue:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
}
.btn-warning,
.btn.yellow {
  background: var(--am-warning);
  border-color: var(--am-warning);
  color: #fff;
}
.btn-warning:hover,
.btn.yellow:hover {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}
.btn.purple {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #fff;
}
.btn.purple:hover {
  background: #7c3aed;
  color: #fff;
}
.btn-inverse {
  background: var(--am-ink);
  border-color: var(--am-ink);
  color: #fff;
}
.btn-inverse:hover {
  background: #1e293b;
  color: #fff;
}
.btn-sm,
.btn.small {
  padding: 5px 12px;
  font-size: 13px;
}
.btn [class^="icon-"] {
  margin-right: 0;
}

/* ============================================================
   TABLES
   ============================================================ */
.table {
  background: var(--am-surface);
  color: var(--am-text);
  margin-bottom: 18px;
  -webkit-font-smoothing: auto;
}
.table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--am-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--am-border);
  padding: 11px 12px;
  font-weight: 600;
}
.table tbody tr td {
  padding: 11px 12px;
  border-top: 1px solid #f1f5f9;
  vertical-align: middle;
}
.table tbody tr:hover > td,
.table tbody tr:hover > th {
  background: #f8fafc;
}
.table-bordered {
  border: 1px solid var(--am-border);
  border-radius: 10px;
  overflow: hidden;
}
.table-bordered thead:first-child tr:first-child th:first-child,
.table-bordered tbody:first-child tr:first-child th:first-child {
  border-radius: 0;
}
.table-striped tbody > tr:nth-child(odd) > td,
.table-striped tbody > tr:nth-child(odd) > th {
  background-color: #f8fafc;
}
.table-striped tbody > tr:nth-child(odd):hover > td {
  background-color: #f1f5f9;
}

/* DataTables wrapper stays crisp */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background: #fbfcfe;
  border: 1px solid var(--am-border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13.5px;
  color: var(--am-text);
}
.dataTables_wrapper .dataTables_paginate .pagination > li > a,
.dataTables_wrapper .dataTables_paginate .pagination > li > span {
  border: 1px solid var(--am-border);
  color: var(--am-text);
  border-radius: 7px !important;
  margin: 0 2px;
}
.dataTables_wrapper .dataTables_paginate .pagination > .active > a,
.dataTables_wrapper .dataTables_paginate .pagination > .active > span {
  background: var(--am-primary);
  border-color: var(--am-primary);
  color: #fff;
}

/*** inline table action links (edit/delete in "manage" pages) ***/
.table .edit,
.table a.edit {
  color: var(--am-primary);
  font-weight: 500;
}
.table .delete,
.table a.delete {
  color: var(--am-danger);
  font-weight: 500;
}
.table .edit:hover,
.table .delete:hover {
  text-decoration: underline;
}

/* ============================================================
   BADGES / LABELS
   ============================================================ */
.label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-shadow: none;
  line-height: 1.5;
  background: #f1f5f9;
  color: #475569;
}
.label-success {
  background: #dcfce7;
  color: #15803d;
}
.label-warning {
  background: #fef3c7;
  color: #b45309;
}
.label-important,
.label-danger {
  background: #fee2e2;
  color: #b91c1c;
}
.label-info {
  background: #e0f2fe;
  color: #0369a1;
}

/* status toggles in manage tables */
.table .btn {
  padding: 6px 11px;
  font-size: 13px;
  border-radius: 8px;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--am-border);
  color: var(--am-text);
  padding: 12px 16px;
  text-shadow: none;
}
.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.alert-info {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0c4a6e;
}
.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.alert .close {
  color: inherit;
  opacity: .7;
  text-shadow: none;
}

/* ============================================================
   DASHBOARD STAT CARDS + QUICK LINKS
   ============================================================ */
.stat-card {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -14px rgba(15, 23, 42, .25);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: #fff;
  flex-shrink: 0;
}
.stat-icon.indigo { background: linear-gradient(135deg, #6d5df6, #a78bfa); }
.stat-icon.green  { background: linear-gradient(135deg, #22c55e, #86efac); }
.stat-icon.amber  { background: linear-gradient(135deg, #f59e0b, #fcd34d); }
.stat-icon.sky    { background: linear-gradient(135deg, #0ea5e9, #7dd3fc); }
.stat-icon.rose   { background: linear-gradient(135deg, #ef4444, #fda4af); }
.stat-icon.violet { background: linear-gradient(135deg, #8b5cf6, #c4b5fd); }
.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--am-ink);
  line-height: 1.2;
}
.stat-label {
  color: var(--am-muted);
  font-size: 13px;
}
.stat-card a {
  color: inherit;
}
.stat-card a:hover {
  color: inherit;
}

.quick-card {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
  color: var(--am-ink);
  font-weight: 600;
  transition: transform .15s ease, border-color .15s ease;
}
.quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--am-primary-rgb), .45);
  color: var(--am-primary-dark);
}
.quick-card i {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eef2ff;
  color: var(--am-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.quick-card i.green { background: #ecfdf5; color: #059669; }
.quick-card i.amber { background: #fffbeb; color: #d97706; }
.quick-card i.sky   { background: #f0f9ff; color: #0284c7; }
.quick-card i.rose  { background: #fef2f2; color: #dc2626; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
body.am-login-body {
  background: linear-gradient(135deg, #10152b 0%, #1e2340 55%, #2b1f55 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.am-login-card {
  width: 100%;
  max-width: 410px;
  background: var(--am-surface);
  border-radius: 18px;
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, .55);
  padding: 38px 36px 30px;
}
.am-login-logo {
  text-align: center;
  margin-bottom: 24px;
}
.am-login-logo img {
  height: 54px;
  width: 54px;
  border-radius: 14px;
  margin-bottom: 12px;
}
.am-login-logo h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--am-ink);
  letter-spacing: .2px;
}
.am-login-logo p {
  margin: 4px 0 0;
  color: var(--am-muted);
  font-size: 13px;
}
.am-login-card .control-group {
  margin-bottom: 16px;
}
.am-login-card .control-label {
  font-size: 13px;
}
.am-login-card .controls input {
  width: 100%;
  max-width: none;
  padding: 11px 14px;
}
.am-login-btn {
  width: 100%;
  background: linear-gradient(120deg, var(--am-primary), #7c3aed);
  border: 0;
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: opacity .15s ease, transform .05s ease;
  margin-top: 4px;
}
.am-login-btn:hover {
  opacity: .92;
  color: #fff;
  background: linear-gradient(120deg, var(--am-primary), #7c3aed);
}
.am-login-btn:active {
  transform: translateY(1px);
}
.am-login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
  text-align: center;
}
.am-login-foot {
  text-align: center;
  margin-top: 18px;
  color: var(--am-muted);
  font-size: 13px;
}

/* ============================================================
   GALLERY PAGE (add_gallery)
   ============================================================ */
.thumbnail {
  border: 1px solid var(--am-border);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--am-shadow);
}
.thumbnail img {
  border-radius: 8px;
}
.gallery-card {
  background: #fff;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 14px;
}
.gallery-img img {
  border-radius: 10px;
  width: 100%;
}
.gallery-content {
  padding: 10px 4px 0;
}
.dropzone-area {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 26px;
  text-align: center;
  color: var(--am-muted);
  background: #f8fafc;
}

/* Metro gallery plugin keeps working inside the modern card */
.megafolio-fullscreen-nav-next,
.megafolio-fullscreen-nav-prev {
  z-index: 30;
}

/* light flex grid for pages that use BS3-style row/col helpers */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}
.row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
}
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-sm-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-3, .col-md-3, .col-md-4, .col-md-8 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-md-8 { flex: 0 0 66.6666%; max-width: 66.6666%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}
.mb-5 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 1.5rem; }
.mt-3 { margin-top: 1rem; }

/* misc spacing helpers that legacy style.css provided */
.space10 { height: 10px; }
.space15 { height: 15px; }
.no-top-space { margin-top: 0; }
.no-bottom-space { margin-bottom: 0; }
.unstyled, .unstyled li { list-style: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 979px) {
  #main-content {
    margin-left: 0;
    padding: 22px 16px 50px;
  }
  .am-sidebar {
    transform: translateX(calc(var(--am-sidebar-w) * -1));
    margin-left: calc(var(--am-sidebar-w) * -1);
    box-shadow: none;
  }
  body.sidebar-open .am-sidebar {
    transform: translateX(0);
    margin-left: 0;
    box-shadow: 12px 0 40px -12px rgba(15, 23, 42, .35);
  }
  .am-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .4);
    z-index: 1025;
    display: none;
  }
  body.sidebar-open .am-overlay {
    display: block;
  }
}

@media (max-width: 767px) {
  .hidden-phone {
    display: none !important;
  }
  .am-topbar {
    padding: 0 12px;
  }
  .am-user .am-user-name {
    display: none;
  }
  .widget-title {
    padding: 12px 14px;
  }
  .widget-body {
    padding: 14px;
  }
  .form-actions {
    margin: 14px -14px -14px;
    padding: 12px 14px;
    text-align: left;
  }
}