/* =========================================================
   Pussalla admin portal: users, roles & activity log
   Builds on the template's style.css (db-* components and
   Bootstrap 5). Brand colours follow the storefront design:
   Pussalla red and its lighter shades (no near-black).
========================================================= */

/* ---------- Brand palette ---------- */

:root,
body,
body[data-primary] {
    --adm-red-600: #d9141e; /* buttons, links, active  */
    --adm-red-700: #b5121b; /* hover, pressed, text on tints */
    --adm-red-500: #de1a24; /* accents                 */
    --adm-red-300: #f4a3a7; /* focus ring, soft accents */
    --adm-red-200: #f9d3d5; /* chip borders            */
    --adm-red-100: #fde8e9; /* tinted backgrounds      */
    --adm-red-50: #fff1f1; /* blush panels, hovers    */
    --adm-line: #f1e4e4; /* warm borders            */

    /* Template primary -> Pussalla red */
    --bs-primary: #d9141e;
    --bs-primary-rgb: 217, 20, 30;
    --bs-link-color: #d9141e;
    --bs-link-color-rgb: 217, 20, 30;
    --bs-link-hover-color: #b5121b;
    --bs-link-hover-color-rgb: 181, 18, 27;
    --bs-focus-ring-color: rgba(217, 20, 30, 0.25);
}

:root {
    --adm-border: #f1e4e4;
    --adm-border-soft: #f6eded;
    --adm-muted: #8a92a0;
    --adm-text: #4e5664;
    --adm-heading: #20242c;
    --adm-success-bg: #eefbf3;
    --adm-success: #29955a;
    --adm-warning-bg: #fff7e6;
    --adm-warning: #b7791f;
    --adm-danger-bg: #fff1f1;
    --adm-danger: #d64b4b;
    --adm-muted-bg: #f2f4f7;
    --adm-radius: 12px;
}

.min-w-0 {
    min-width: 0;
}
.fs-10 {
    font-size: 10px;
}

/* ---------- Flash messages ---------- */

.adm-alerts:empty {
    display: none;
}

.adm-alert {
    display: flex;
    align-items: center;
    border-radius: var(--adm-radius);
    font-size: 13px;
    margin-bottom: 20px;
}

/* ---------- Card body / footer (pair with db-card-modern) ---------- */

.adm-card-body {
    padding: 22px;
}

.adm-card-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid var(--adm-border-soft);
    background: #fffafa;
}

/* ---------- Filter bar ---------- */

.adm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.adm-filter-bar .form-select,
.adm-filter-bar .form-control {
    width: auto;
    min-width: 160px;
    height: 42px;
    border-radius: 10px;
    font-size: 13px;
}

.adm-filter-search {
    position: relative;
    flex: 1 1 260px;
    max-width: 360px;
}

.adm-filter-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a7b4;
    font-size: 13px;
    pointer-events: none;
}

.adm-filter-search .form-control {
    width: 100%;
    padding-left: 38px;
}

.adm-filter-clear {
    height: 42px;
    display: inline-flex;
    align-items: center;
}

.adm-tabs {
    gap: 6px;
}

.adm-tabs .nav-link {
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
}

.adm-count {
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 11px;
}

.adm-tabs .nav-link.active .adm-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ---------- Table extras ---------- */

.adm-pagination {
    padding: 14px 20px;
    border-top: 1px solid var(--adm-border-soft);
}

.adm-pagination .pagination {
    margin: 0;
    justify-content: flex-end;
}

.adm-pagination nav > div:first-child {
    font-size: 12px;
    color: var(--adm-muted);
}

.adm-row-muted td {
    opacity: 0.62;
}

.adm-icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 12px;
}

.adm-wide {
    max-width: 320px;
}

.adm-you {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--adm-red-100);
    color: var(--adm-red-700);
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.adm-avatar-lg {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 16px;
    font-size: 18px;
}

/* ---------- Status pills (pair with db-status-pill) ---------- */

.adm-pill-success {
    background: var(--adm-success-bg);
    color: var(--adm-success);
}
.adm-pill-warning {
    background: var(--adm-warning-bg);
    color: var(--adm-warning);
}
.adm-pill-danger {
    background: var(--adm-danger-bg);
    color: var(--adm-danger);
}
.adm-pill-muted {
    background: var(--adm-muted-bg);
    color: #667085;
}

.db-status-pill i {
    font-size: 9px;
}

/* ---------- Role chips ---------- */

.adm-role-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}

.adm-role-chip.is-system {
    background: var(--adm-red-100);
    color: var(--adm-red-700);
}

.adm-role-chip.is-custom {
    background: var(--adm-red-50);
    color: var(--adm-red-600);
    box-shadow: inset 0 0 0 1px var(--adm-red-200);
}

/* ---------- Definition list (account panel) ---------- */

.adm-dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px 14px;
    margin: 0;
    font-size: 13px;
}

.adm-dl-wide {
    grid-template-columns: 180px 1fr;
}

.adm-dl dt {
    font-weight: 600;
    color: var(--adm-muted);
}

.adm-dl dd {
    margin: 0;
    color: var(--adm-heading);
}

/* ---------- Security action list ---------- */

.adm-action-list {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.adm-action-list form {
    margin: 0;
}

.adm-action {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.adm-action:hover,
.adm-action:focus-visible {
    background: var(--adm-red-50);
}

.adm-action strong {
    display: block;
    font-size: 13px;
    color: var(--adm-heading);
}

.adm-action small {
    display: block;
    font-size: 11px;
    color: var(--adm-muted);
}

.adm-action-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--adm-red-50);
    color: var(--adm-red-600);
    font-size: 13px;
}

.adm-action.is-danger strong {
    color: var(--adm-danger);
}
.adm-action.is-danger .adm-action-icon {
    background: var(--adm-danger-bg);
    color: var(--adm-danger);
}
.adm-action.is-success strong {
    color: var(--adm-success);
}
.adm-action.is-success .adm-action-icon {
    background: var(--adm-success-bg);
    color: var(--adm-success);
}

/* ---------- Timeline (recent activity) ---------- */

.adm-timeline-item {
    display: flex;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--adm-border-soft);
}

.adm-timeline-item:last-child {
    border-bottom: 0;
}

.adm-timeline-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(217, 20, 30, 0.12);
}

.adm-timeline-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-heading);
}

.adm-timeline-meta {
    margin-top: 2px;
    font-size: 11px;
    color: var(--adm-muted);
}

.adm-timeline-label {
    padding: 12px 22px 4px;
    border-top: 1px solid var(--adm-border-soft);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--adm-muted);
}

.adm-timeline-label + .adm-timeline-item {
    padding-top: 10px;
}

.adm-timeline-more {
    padding: 12px 22px 18px;
    border-top: 1px solid var(--adm-border-soft);
    text-align: center;
}

.adm-timeline-more .btn {
    font-weight: 600;
    color: var(--bs-primary);
}

.adm-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--adm-red-50, #fff1f1);
    color: var(--bs-primary);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Activity log opened from a record's page */
.adm-record-filter {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 1px solid var(--adm-red-100, #ffd9db);
    border-radius: 12px;
    background: var(--adm-red-50, #fff1f1);
}

.adm-record-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: #fff;
    color: var(--bs-primary);
}

.adm-record-filter-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--adm-muted);
}

.adm-record-filter strong {
    color: var(--adm-heading);
    font-size: 15px;
}

@media (max-width: 575.98px) {
    .adm-record-filter {
        flex-wrap: wrap;
    }
}

/* ---------- Permission matrix ---------- */

.adm-matrix-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.adm-matrix-toolbar .adm-filter-search .form-control {
    height: 36px;
}

.adm-matrix-summary {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--adm-muted);
}

.adm-matrix-table {
    margin: 0;
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.adm-matrix-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 8px;
    background: #fffafa;
    border-bottom: 1px solid var(--adm-border);
    white-space: nowrap;
}

.adm-matrix-table tbody td,
.adm-matrix-table tbody th {
    padding: 10px 8px;
    border-bottom: 1px solid var(--adm-border-soft);
    vertical-align: middle;
}

.adm-matrix-table tbody tr:last-child td,
.adm-matrix-table tbody tr:last-child th {
    border-bottom: 0;
}

.adm-matrix-table tbody tr:hover {
    background: #fffafa;
}

.adm-matrix-table tbody tr.is-full th .adm-matrix-rowbtn {
    color: var(--bs-primary);
}

.adm-matrix-area {
    min-width: 190px;
    padding-left: 16px !important;
    text-align: left;
}

.adm-matrix-col,
.adm-matrix-rowbtn {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.adm-matrix-col {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--adm-muted);
}

.adm-matrix-rowbtn {
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-heading);
    text-align: left;
}

.adm-matrix-col:hover,
.adm-matrix-rowbtn:hover {
    color: var(--bs-primary);
}

.adm-matrix-table .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.adm-matrix-na {
    color: #d0d5dd;
}

.adm-matrix-locked {
    color: #b4baca;
    font-size: 12px;
    cursor: help;
}

.adm-matrix-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--adm-muted);
}

tr.adm-matrix-hidden {
    display: none;
}

/* Sticky save bar at the bottom of long forms */
.adm-sticky-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 20px -6px 0;
    padding: 14px 6px;
    background: linear-gradient(
        to top,
        var(--bs-body-bg, #fff) 70%,
        transparent
    );
}

/* ---------- Activity log ---------- */

.adm-event {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--adm-muted-bg);
    color: #667085;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    font-weight: 600;
}

.adm-event-auth {
    background: var(--adm-red-100);
    color: var(--adm-red-700);
}
.adm-event-user {
    background: var(--adm-red-50);
    color: var(--adm-red-600);
    box-shadow: inset 0 0 0 1px var(--adm-red-200);
}
.adm-event-role {
    background: var(--adm-warning-bg);
    color: var(--adm-warning);
}
.adm-event-created {
    background: var(--adm-success-bg);
    color: var(--adm-success);
}
.adm-event-deleted {
    background: var(--adm-danger-bg);
    color: var(--adm-danger);
}

.adm-diff-old,
.adm-diff-new {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    word-break: break-word;
}

.adm-diff-old {
    background: var(--adm-danger-bg);
    color: #a63b3b;
    text-decoration: line-through;
    text-decoration-color: rgba(166, 59, 59, 0.4);
}
.adm-diff-new {
    background: var(--adm-success-bg);
    color: #1f7a48;
}

.adm-perm-chip {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--adm-muted-bg);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
}

.adm-perm-chip.is-added {
    background: var(--adm-success-bg);
    color: #1f7a48;
}
.adm-perm-chip.is-removed {
    background: var(--adm-danger-bg);
    color: #a63b3b;
}

/* ---------- Buttons while submitting ---------- */

.btn.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.btn.is-loading::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 7px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -1px;
    animation: admSpin 0.7s linear infinite;
}

@keyframes admSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 767.98px) {
    .adm-filter-bar .form-select,
    .adm-filter-bar .form-control,
    .adm-filter-search {
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
    }

    .adm-dl,
    .adm-dl-wide {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .adm-dl dd {
        margin-bottom: 10px;
    }

    .adm-card-body {
        padding: 16px;
    }
}

/* ---------- Dark theme ---------- */

[data-bs-theme="dark"] .adm-card-foot,
[data-bs-theme="dark"] .adm-matrix-table thead th {
    background: rgba(255, 255, 255, 0.03);
}

[data-bs-theme="dark"] .adm-action:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================================
   Brand overrides for Bootstrap + template components
   (template db-* classes hard-code blue; these switch them to red)
========================================================= */

.btn-primary {
    --bs-btn-bg: var(--adm-red-600);
    --bs-btn-border-color: var(--adm-red-600);
    --bs-btn-hover-bg: var(--adm-red-700);
    --bs-btn-hover-border-color: var(--adm-red-700);
    --bs-btn-active-bg: var(--adm-red-700);
    --bs-btn-active-border-color: var(--adm-red-700);
    --bs-btn-disabled-bg: var(--adm-red-300);
    --bs-btn-disabled-border-color: var(--adm-red-300);
    --bs-btn-focus-shadow-rgb: 217, 20, 30;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}

.btn-outline-primary {
    --bs-btn-color: var(--adm-red-600);
    --bs-btn-border-color: var(--adm-red-200);
    --bs-btn-hover-bg: var(--adm-red-50);
    --bs-btn-hover-color: var(--adm-red-700);
    --bs-btn-hover-border-color: var(--adm-red-300);
    --bs-btn-active-bg: var(--adm-red-100);
    --bs-btn-active-color: var(--adm-red-700);
    --bs-btn-active-border-color: var(--adm-red-300);
}

.btn-light {
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--adm-line);
    --bs-btn-hover-bg: var(--adm-red-50);
    --bs-btn-hover-border-color: var(--adm-red-200);
    --bs-btn-hover-color: var(--adm-red-700);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--adm-red-300);
    box-shadow: 0 0 0 0.2rem rgba(217, 20, 30, 0.12);
}

.form-check-input:checked {
    background-color: var(--adm-red-600);
    border-color: var(--adm-red-600);
}

.form-check-input:focus {
    border-color: var(--adm-red-300);
    box-shadow: 0 0 0 0.2rem rgba(217, 20, 30, 0.15);
}

.form-switch .form-check-input:focus {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23f4a3a7'/%3e%3c/svg%3e");
}

.nav-pills {
    --bs-nav-pills-link-active-bg: var(--adm-red-600);
    --bs-nav-link-color: var(--adm-red-700);
    --bs-nav-link-hover-color: var(--adm-red-600);
}

.pagination {
    --bs-pagination-color: var(--adm-red-700);
    --bs-pagination-hover-color: var(--adm-red-700);
    --bs-pagination-hover-bg: var(--adm-red-50);
    --bs-pagination-focus-color: var(--adm-red-700);
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(217, 20, 30, 0.15);
    --bs-pagination-active-bg: var(--adm-red-600);
    --bs-pagination-active-border-color: var(--adm-red-600);
}

a {
    color: var(--adm-red-600);
}

a:hover {
    color: var(--adm-red-700);
}

/* Template components */

.db-welcome-badge {
    border-color: var(--adm-red-200);
    background: var(--adm-red-50);
    color: var(--adm-red-600);
}

.db-welcome-dot {
    background: var(--adm-red-600);
    box-shadow: 0 0 0 4px rgba(217, 20, 30, 0.1);
}

.db-avatar,
.db-itinerary-icon,
.db-subscription-plan-icon,
.mod-icon {
    background: var(--adm-red-100);
    color: var(--adm-red-700);
}

.db-card-link,
.mod-name a:hover {
    color: var(--adm-red-600);
}

.db-card-link:hover {
    color: var(--adm-red-700);
}

.db-card-modern,
.db-stat-modern,
.db-stat-business {
    border-color: var(--adm-line);
}

.db-card-head-modern,
.db-table-modern thead th,
.db-table-modern tbody td {
    border-color: #f6eded;
}

.db-table-modern thead th {
    background: #fffafa;
}

.db-table-modern tbody tr:hover {
    background: #fffafa;
}

.db-stat-modern::after {
    background: rgba(217, 20, 30, 0.04);
}

.email-spinner {
    border-color: var(--adm-red-100);
    border-top-color: var(--adm-red-600);
}

/* Sidebar: icons always take the same colour as their text
   (normal, hover and active), and Logout sits at the bottom. */

.icnav .metismenu > li.mm-active > a,
.icnav .metismenu ul a.mm-active {
    color: var(--adm-red-600);
}

.icnav .metismenu > li > a i,
.icnav .metismenu > li > a .menu-icon i,
.icnav .metismenu > li:hover > a i,
.icnav .metismenu > li:focus > a i,
.icnav .metismenu > li.mm-active > a i,
.icnav .sidebar-logout-btn i {
    color: inherit !important;
}

.icnav .metismenu > li > a svg path,
.icnav .metismenu > li > a g [fill] {
    fill: currentColor !important;
}

.icnav .icnav-scroll {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.icnav .icnav-scroll > .metismenu {
    flex: 1 0 auto;
}

.icnav .sidebar-logout {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    flex-shrink: 0;
    background: var(--sidebar-bg, #fff);
}

.icnav .sidebar-logout-btn:hover {
    background: var(--adm-red-50);
    color: var(--adm-red-600);
}

.page-title .breadcrumb li a:hover {
    color: var(--adm-red-600);
}

/* Preloader ripple */
.lds-ripple div {
    border-color: var(--adm-red-600) !important;
}

/* =========================================================
   Compact form fields (smaller than the template default)
========================================================= */

.content-body .form-label,
.adm-swal .form-label {
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #3b414c;
}

.content-body .form-control,
.content-body .form-select,
.adm-swal .form-control,
.adm-swal .form-select {
    height: 38px;
    padding: 0.4rem 0.85rem;
    border-color: var(--adm-line);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.content-body .form-select,
.adm-swal .form-select {
    padding-right: 2.25rem;
    background-position: right 0.75rem center;
}

.content-body textarea.form-control {
    height: auto;
    min-height: 80px;
}

.content-body .form-control-sm,
.content-body .adm-matrix-toolbar .form-control {
    height: 34px;
    font-size: 12.5px;
}

.content-body .form-control::placeholder,
.adm-swal .form-control::placeholder {
    color: #a7adb8;
    font-weight: 400;
}

.content-body .input-group-text {
    height: 38px;
    padding: 0 0.75rem;
    border-color: var(--adm-line);
    background: var(--adm-red-50);
    color: var(--adm-red-700);
    font-size: 12.5px;
    font-weight: 600;
}

.content-body .input-group > .form-control {
    border-radius: 0 9px 9px 0;
}

.content-body .input-group > .input-group-text {
    border-radius: 9px 0 0 9px;
}

.content-body .form-text {
    margin-top: 5px;
    font-size: 11.5px;
    color: var(--adm-muted);
}

.content-body .form-check-label {
    font-size: 13px;
}

.content-body .btn,
.adm-swal .btn {
    min-height: 38px;
    padding: 0.45rem 1rem;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
}

.content-body .btn-sm {
    min-height: 32px;
    padding: 0.3rem 0.7rem;
    font-size: 12px;
}

.content-body .adm-icon-btn {
    min-height: 32px;
    padding: 0;
}

.adm-filter-bar .form-select,
.adm-filter-bar .form-control,
.adm-filter-clear {
    height: 38px;
}

/* =========================================================
   Validation: our own messages under each field
   (no browser bubbles, no Bootstrap icons inside fields)
========================================================= */

.content-body .form-control.is-invalid,
.content-body .form-select.is-invalid,
.adm-swal .form-control.is-invalid,
.adm-swal .form-select.is-invalid {
    border-color: #e5484d;
    background-image: none;
    padding-right: 0.85rem;
    box-shadow: none;
}

.content-body .form-select.is-invalid,
.adm-swal .form-select.is-invalid {
    --bs-form-select-bg-icon: none;
    background-image: var(--bs-form-select-bg-img);
    padding-right: 2.25rem;
}

.content-body .form-control.is-invalid:focus,
.content-body .form-select.is-invalid:focus,
.adm-swal .form-control.is-invalid:focus,
.adm-swal .form-select.is-invalid:focus {
    border-color: #e5484d;
    box-shadow: 0 0 0 0.2rem rgba(229, 72, 77, 0.12);
}

.input-group.is-invalid .input-group-text {
    border-color: #e5484d;
}

.invalid-feedback,
.adm-field-error {
    display: none;
    margin-top: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: #d93036;
}

.invalid-feedback.d-block,
.adm-field-error.d-block,
.is-invalid ~ .invalid-feedback,
.input-group.has-validation .is-invalid ~ .invalid-feedback {
    display: block;
}

.adm-matrix .adm-field-error {
    margin: 0 0 12px;
    padding: 9px 12px;
    border-radius: 9px;
    background: var(--adm-danger-bg);
}

/* =========================================================
   Toasts (toastr), Pussalla style
   Overrides the template's solid toast colours.
========================================================= */

#toast-container {
    padding-top: 6px;
}

#toast-container > div.toast {
    width: 360px;
    margin: 0 0 10px;
    padding: 14px 40px 14px 54px;
    border: 1px solid var(--adm-line);
    border-radius: 14px;
    background-color: #fff !important;
    background-image: none !important;
    color: #2b2f36 !important;
    box-shadow: 0 12px 32px rgba(20, 16, 16, 0.12) !important;
    opacity: 1;
    overflow: hidden;
}

#toast-container > div.toast:hover {
    box-shadow: 0 14px 36px rgba(20, 16, 16, 0.16) !important;
}

#toast-container > div.toast::before {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
}

#toast-container > div.toast::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

#toast-container > .toast-success::before {
    content: "\2713";
    background: var(--adm-success-bg);
    color: var(--adm-success);
}
#toast-container > .toast-success::after {
    background: var(--adm-success);
}
#toast-container > .toast-error::before {
    content: "\2715";
    background: var(--adm-red-100);
    color: var(--adm-red-600);
}
#toast-container > .toast-error::after {
    background: var(--adm-red-600);
}
#toast-container > .toast-warning::before {
    content: "\21";
    background: var(--adm-warning-bg);
    color: var(--adm-warning);
}
#toast-container > .toast-warning::after {
    background: #d97706;
}
#toast-container > .toast-info::before {
    content: "i";
    background: var(--adm-red-50);
    color: var(--adm-red-700);
}
#toast-container > .toast-info::after {
    background: var(--adm-red-300);
}

#toast-container .toast-title {
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #20242c;
}

#toast-container .toast-message {
    font-size: 12.5px;
    line-height: 1.5;
    color: #5b6270;
}

#toast-container .toast-close-button {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #9aa1ad;
    font-size: 18px;
    font-weight: 400;
    text-shadow: none;
    opacity: 1;
}

#toast-container .toast-close-button:hover {
    color: var(--adm-red-600);
}

#toast-container .toast-progress {
    height: 3px;
    opacity: 1;
    background: var(--adm-red-200);
}

#toast-container > .toast-success .toast-progress {
    background: #bfe8cf;
}
#toast-container > .toast-warning .toast-progress {
    background: #fbdca8;
}

@media (max-width: 575.98px) {
    #toast-container > div.toast {
        width: calc(100vw - 24px);
    }
}

/* =========================================================
   Dialogs (SweetAlert2), Pussalla style
========================================================= */

.swal2-container {
    padding: 16px;
    background: rgba(32, 20, 20, 0.35) !important;
    backdrop-filter: blur(2px);
}

.adm-swal.swal2-popup {
    width: 440px;
    padding: 26px 26px 22px;
    border: 1px solid var(--adm-line);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(20, 16, 16, 0.18);
    font-family: inherit;
}

.adm-swal .swal2-icon.adm-swal-icon,
.adm-swal .swal2-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-width: 0;
    border-radius: 15px;
    background: var(--adm-red-100);
}

.adm-swal-warning .swal2-icon {
    background: var(--adm-warning-bg);
}

.adm-swal .swal2-icon .swal2-icon-content {
    font-size: 26px;
    font-weight: 700;
}

.adm-swal .swal2-icon.swal2-success [class^="swal2-success-line"] {
    background-color: var(--adm-success);
}

.adm-swal .swal2-icon.swal2-success .swal2-success-ring {
    display: none;
}

.adm-swal .adm-swal-title,
.adm-swal .swal2-title {
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: #20242c;
}

.adm-swal .adm-swal-text,
.adm-swal .swal2-html-container {
    margin: 8px 0 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

.adm-swal-lead {
    margin: 0 0 14px;
}

.adm-swal-form {
    text-align: left;
}

.adm-swal .adm-swal-actions,
.adm-swal .swal2-actions {
    width: 100%;
    margin: 22px 0 0;
    gap: 10px;
    justify-content: center;
}

.adm-swal .swal2-actions .btn {
    min-width: 120px;
    margin: 0;
}

.adm-swal .swal2-actions .btn-light {
    border: 1px solid var(--adm-line);
    background: #fff;
}

.adm-swal .swal2-actions .btn-warning {
    border-color: #d97706;
    background: #d97706;
    color: #fff;
}

.adm-swal .swal2-actions .btn-danger {
    border-color: var(--adm-red-600);
    background: var(--adm-red-600);
    color: #fff;
}

.adm-swal .swal2-actions .btn-danger:hover {
    background: var(--adm-red-700);
}

/* Template rules that would recolour the buttons */
.adm-swal .swal2-confirm.btn {
    background-color: var(--bs-btn-bg) !important;
    color: #fff !important;
}

.adm-swal .swal2-confirm.btn-danger {
    background-color: var(--adm-red-600) !important;
}

.adm-swal .swal2-confirm.btn-warning {
    background-color: #d97706 !important;
}

.adm-swal-in {
    animation: admSwalIn 0.18s ease-out;
}

.adm-swal-out {
    animation: admSwalOut 0.12s ease-in forwards;
}

@keyframes admSwalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes admSwalOut {
    to {
        opacity: 0;
        transform: scale(0.98);
    }
}

.adm-swal .swal2-actions .btn:focus-visible,
.adm-swal .swal2-actions .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(217, 20, 30, 0.18) !important;
    outline: 0;
}

/* Cancel button: no ring/shadow, text always readable */
.adm-swal .swal2-actions .swal2-cancel.btn,
.adm-swal .swal2-actions .swal2-cancel.btn:hover,
.adm-swal .swal2-actions .swal2-cancel.btn:focus,
.adm-swal .swal2-actions .swal2-cancel.btn:focus-visible,
.adm-swal .swal2-actions .swal2-cancel.btn:active {
    border: 1px solid var(--adm-line) !important;
    background: #fff !important;
    background-image: none !important;
    color: #3b414c !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.adm-swal .swal2-actions .swal2-cancel.btn:hover,
.adm-swal .swal2-actions .swal2-cancel.btn:active {
    border-color: var(--adm-red-200) !important;
    background: var(--adm-red-50) !important;
    color: var(--adm-red-700) !important;
}

/* =========================================================
   Footer
========================================================= */

.footer.adm-footer {
    /* Keep the template's thin frame, but make the footer itself light */
    padding: 0 var(--ic-frame-spacing) var(--ic-frame-spacing);
}

.adm-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 14px 24px;
    border-top: 1px solid var(--adm-line);
    border-radius: 0 0 15px 15px;
    background: #fffafa;
    font-size: 12px;
    color: #a7adb8;
}

.adm-footer-left,
.adm-footer-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.adm-footer-brand {
    font-weight: 700;
    color: var(--adm-red-600);
}

.adm-footer-sep {
    width: 1px;
    height: 12px;
    background: var(--adm-line);
}

.adm-footer-env {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--adm-red-50);
    color: var(--adm-red-700);
    font-size: 11px;
    font-weight: 600;
}

.adm-footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--adm-success);
}

.adm-footer-right strong {
    font-weight: 600;
    color: #e0767b;
}

@media (max-width: 575.98px) {
    .adm-footer-inner {
        padding: 12px 15px;
        border-radius: 0;
        justify-content: center;
        text-align: center;
    }
}

/* =========================================================
   Header: notification bell + profile menu
========================================================= */

.adm-header-right {
    gap: 14px;
}

/* Bell */
.header-right .adm-notify .adm-header-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--adm-red-50) !important;
    color: var(--adm-red-600) !important;
    box-shadow: inset 0 0 0 1px var(--adm-red-100);
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.header-right .adm-notify .adm-header-btn i {
    font-size: 18px;
    line-height: 1;
    color: inherit !important;
}

.header-right .adm-notify .adm-header-btn:hover,
.header-right .adm-notify .adm-header-btn.show {
    background: var(--adm-red-100) !important;
    box-shadow: inset 0 0 0 1px var(--adm-red-200);
}

.adm-notify-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--adm-red-600);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* Avatar (initials in brand shades instead of the blue default) */
.adm-avatar-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--adm-red-100);
    color: var(--adm-red-700);
    font-weight: 700;
    overflow: hidden;
}

.header-profile-dropdown .profile-head .profile-media.adm-avatar-circle {
    width: 42px;
    min-width: 42px;
    height: 42px;
    font-size: 14px;
    box-shadow: 0 0 0 3px var(--adm-red-50);
}

.adm-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adm-profile .nav-link {
    padding: 4px 8px 4px 4px !important;
    border-radius: 999px;
    transition: background 0.15s ease;
}

.adm-profile .nav-link:hover,
.adm-profile .nav-link.show {
    background: var(--adm-red-50);
}

.adm-profile .author-name {
    font-size: 13px !important;
    font-weight: 600;
    color: #2b2f36;
}

.adm-profile .profile-head small {
    margin-top: 2px;
    color: var(--adm-red-600) !important;
    font-size: 11px !important;
    font-weight: 600;
}

.adm-profile-caret {
    margin-left: 4px;
    font-size: 16px;
    line-height: 1;
    color: #a7adb8;
    transition: transform 0.15s ease;
}

.adm-profile .nav-link.show .adm-profile-caret {
    transform: rotate(180deg);
    color: var(--adm-red-600);
}

/* Shared dropdown card */
.adm-dropdown.dropdown-menu {
    padding: 0;
    border: 1px solid var(--adm-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(32, 20, 20, 0.12);
    overflow: hidden;
    margin-top: 10px !important;
}

.adm-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--adm-line);
    background: #fffafa;
}

.adm-dropdown-title {
    font-size: 14px;
    font-weight: 700;
    color: #20242c;
}

.adm-dropdown-sub {
    margin-top: 1px;
    font-size: 11px;
    color: var(--adm-muted);
}

.adm-dropdown-head form {
    margin: 0;
}

.adm-link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--adm-red-600);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.adm-link-btn:hover {
    color: var(--adm-red-700);
}

.adm-dropdown-foot {
    display: block;
    padding: 11px 16px;
    border-top: 1px solid var(--adm-line);
    background: #fffafa;
    color: var(--adm-red-600);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.adm-dropdown-foot:hover {
    background: var(--adm-red-50);
    color: var(--adm-red-700);
}

/* Notification list */
.adm-notify-menu.dropdown-menu {
    width: 340px;
    min-width: 340px;
}

.adm-notify-list {
    max-height: 360px;
    overflow-y: auto;
}

.adm-notify-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f6eded;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}

.adm-notify-item:last-child {
    border-bottom: 0;
}

.adm-notify-item:hover {
    background: #fffafa;
}

.adm-notify-item.is-unread::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 16px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--adm-red-600);
}

.adm-notify-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1;
}

.adm-notify-icon.is-info {
    background: var(--adm-red-50);
    color: var(--adm-red-600);
}
.adm-notify-icon.is-success {
    background: var(--adm-success-bg);
    color: var(--adm-success);
}
.adm-notify-icon.is-warning {
    background: var(--adm-warning-bg);
    color: var(--adm-warning);
}
.adm-notify-icon.is-danger {
    background: var(--adm-red-100);
    color: var(--adm-red-700);
}

.adm-notify-text {
    min-width: 0;
    padding-right: 14px;
}

.adm-notify-text strong {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #2b2f36;
}

.adm-notify-text span {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    line-height: 1.45;
    color: #6b7280;
}

.adm-notify-text small {
    display: block;
    margin-top: 4px;
    font-size: 10.5px;
    color: #a7adb8;
}

.adm-notify-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 28px 24px;
    text-align: center;
}

.adm-notify-empty-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--adm-red-50);
    color: var(--adm-red-300);
    font-size: 18px;
}

.adm-notify-empty strong {
    font-size: 13px;
    color: #2b2f36;
}

.adm-notify-empty span {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--adm-muted);
}

/* Profile menu */
.header-profile-dropdown .adm-profile-menu.dropdown-menu {
    width: 290px;
}

.adm-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--adm-line);
    background: linear-gradient(135deg, var(--adm-red-50), #fff 70%);
}

.adm-avatar-lg-circle {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    font-size: 16px;
}

.adm-profile-name {
    font-size: 14px;
    font-weight: 700;
    color: #20242c;
}

.adm-profile-email {
    margin: 1px 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
    color: var(--adm-muted);
}

.adm-profile-card .adm-role-chip {
    padding: 3px 8px;
    font-size: 10.5px;
}

.adm-dropdown-body {
    padding: 6px;
}

.adm-menu-item.dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 10px;
    white-space: normal;
}

.adm-menu-item.dropdown-item:hover,
.adm-menu-item.dropdown-item:focus {
    background: var(--adm-red-50);
}

.adm-menu-item strong {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #2b2f36;
}

.adm-menu-item small {
    display: block;
    font-size: 11px;
    color: var(--adm-muted);
}

.adm-menu-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--adm-red-50);
    color: var(--adm-red-600);
    font-size: 14px;
    line-height: 1;
}

.adm-menu-item:hover .adm-menu-icon {
    background: #fff;
}

.adm-menu-flag {
    position: absolute;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d97706;
    box-shadow: 0 0 0 3px var(--adm-warning-bg);
}

.adm-dropdown-foot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 10px 16px;
    border-top: 1px solid var(--adm-line);
    background: #fffafa;
}

.adm-dropdown-foot-row form {
    margin: 0;
}

.adm-last-login {
    font-size: 10.5px;
    color: #a7adb8;
}

.adm-signout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--adm-red-200);
    border-radius: 9px;
    background: #fff;
    color: var(--adm-red-600);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.adm-signout-btn i {
    line-height: 1;
}

.adm-signout-btn:hover {
    background: var(--adm-red-600);
    border-color: var(--adm-red-600);
    color: #fff;
}

@media (max-width: 575.98px) {
    .adm-notify-menu.dropdown-menu {
        width: calc(100vw - 24px);
        min-width: 0;
    }
}

/* Light buttons on pages: keep text readable on hover (template turns it white) */
.content-body .btn-light:hover,
.content-body .btn-light:focus,
.content-body .btn-light:active {
    border-color: var(--adm-red-200) !important;
    background: var(--adm-red-50) !important;
    color: var(--adm-red-700) !important;
    box-shadow: none !important;
}

.content-body .btn-light.text-danger:hover {
    color: var(--adm-red-600) !important;
}

/* Search boxes: leave room for the icon (the compact field padding overrode it) */
.content-body .adm-filter-search .form-control,
.content-body .adm-matrix-toolbar .adm-filter-search .form-control {
    padding-left: 36px !important;
}

.content-body .adm-filter-search i {
    left: 13px;
    z-index: 2;
    font-size: 13px;
    line-height: 1;
}

/* =========================================================
   First sign-in: full-width split page
========================================================= */

body.adm-auth {
    min-height: 100vh;
    margin: 0;
    background: #fff;
}

.adm-auth-split {
    display: grid;
    grid-template-columns: minmax(320px, 38%) 1fr;
    min-height: 100vh;
}

/* Left panel */
.adm-auth-side {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 48px 48px 40px;
    overflow: hidden;
    border-right: 1px solid var(--adm-line);
    background:
        radial-gradient(
            600px 380px at 0% 0%,
            var(--adm-red-100),
            transparent 70%
        ),
        radial-gradient(
            500px 400px at 100% 100%,
            var(--adm-red-50),
            transparent 70%
        ),
        #fffafa;
}

.adm-auth-side::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 40px solid rgba(217, 20, 30, 0.05);
    pointer-events: none;
}

.adm-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.adm-auth-brand span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--adm-red-700);
}

.adm-auth-side-body {
    flex: 1;
}

.adm-auth-side-body h2 {
    margin: 0 0 8px;
    max-width: 380px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
    color: #20242c;
}

.adm-auth-side-body > p {
    margin: 0 0 30px;
    font-size: 13.5px;
    color: #6b7280;
}

.adm-auth-timeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.adm-auth-timeline li {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 26px;
}

.adm-auth-timeline li:last-child {
    padding-bottom: 0;
}

.adm-auth-timeline li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 4px;
    width: 2px;
    border-radius: 2px;
    background: var(--adm-line);
}

.adm-auth-timeline li.is-done:not(:last-child)::before {
    background: #bfe8cf;
}

.adm-auth-num {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--adm-line);
    color: #a7adb8;
    font-size: 13px;
    font-weight: 800;
}

.adm-auth-timeline li.is-done .adm-auth-num {
    border-color: var(--adm-success-bg);
    background: var(--adm-success-bg);
    color: var(--adm-success);
}

.adm-auth-timeline li.is-current .adm-auth-num {
    border-color: var(--adm-red-600);
    background: var(--adm-red-600);
    color: #fff;
    box-shadow: 0 0 0 5px var(--adm-red-100);
}

.adm-auth-timeline strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #2b2f36;
}

.adm-auth-timeline li:not(.is-done):not(.is-current) strong {
    color: #8a92a0;
}

.adm-auth-timeline small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #a7adb8;
}

.adm-auth-timeline li.is-current small {
    color: var(--adm-red-600);
    font-weight: 600;
}

.adm-auth-tip {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--adm-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    line-height: 1.55;
    color: #6b7280;
}

.adm-auth-tip i {
    margin-top: 2px;
    color: var(--adm-red-600);
}

/* Right panel */
.adm-auth-main {
    display: flex;
    align-items: center;
    padding: 48px 64px;
}

.adm-auth-form {
    width: 100%;
    max-width: 820px;
}

.adm-auth-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--adm-red-100);
    color: var(--adm-red-700);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.adm-auth-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #20242c;
}

.adm-auth-text {
    margin: 0 0 30px;
    max-width: 620px;
    font-size: 14px;
    line-height: 1.65;
    color: #6b7280;
}

.adm-auth .form-label {
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #3b414c;
}

.adm-auth .form-control {
    height: 42px;
    padding: 0.45rem 2.7rem 0.45rem 0.9rem;
    border-color: var(--adm-line);
    border-radius: 10px;
    font-size: 13.5px;
}

.adm-auth .form-control:focus {
    border-color: var(--adm-red-300);
    box-shadow: 0 0 0 0.2rem rgba(217, 20, 30, 0.1);
}

.adm-auth .form-control.is-invalid {
    border-color: #e5484d;
    background-image: none;
}

.adm-auth .form-text {
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--adm-muted);
}

.adm-auth .form-text code {
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--adm-red-50);
    color: var(--adm-red-600);
}

.adm-auth-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--adm-line);
}

.adm-auth-actions .btn {
    min-height: 44px;
    padding: 0.55rem 1.4rem;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
}

.adm-auth-foot {
    font-size: 12px;
    color: #a7adb8;
}

.adm-auth-foot strong {
    color: #6b7280;
    font-weight: 600;
}

.adm-password {
    position: relative;
}

.adm-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #a7adb8;
    cursor: pointer;
}

.adm-password-toggle:hover {
    background: var(--adm-red-50);
    color: var(--adm-red-600);
}

.adm-password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.adm-password-rules li {
    padding: 4px 11px;
    border-radius: 999px;
    background: #f6f2f2;
    color: #8a92a0;
    font-size: 11.5px;
    font-weight: 600;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.adm-password-rules li::before {
    content: "○ ";
}
.adm-password-rules li.is-ok {
    background: var(--adm-success-bg);
    color: var(--adm-success);
}
.adm-password-rules li.is-ok::before {
    content: "✓ ";
}

@media (max-width: 991.98px) {
    .adm-auth-split {
        grid-template-columns: 1fr;
    }

    .adm-auth-side {
        gap: 20px;
        padding: 28px 24px;
        border-right: 0;
        border-bottom: 1px solid var(--adm-line);
    }

    .adm-auth-side-body h2,
    .adm-auth-side-body > p,
    .adm-auth-tip {
        display: none;
    }

    .adm-auth-timeline {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .adm-auth-timeline li {
        padding: 0;
    }

    .adm-auth-timeline li::before,
    .adm-auth-timeline small {
        display: none;
    }

    .adm-auth-main {
        padding: 28px 24px 40px;
    }

    .adm-auth-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        text-align: center;
    }
}

/* =========================================================
   Dashboard placeholder (under construction)
========================================================= */

.adm-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 24px 44px;
    text-align: center;
    background:
        radial-gradient(
            500px 220px at 50% 0%,
            var(--adm-red-50),
            transparent 70%
        ),
        #fff;
}

.adm-soon-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: var(--adm-red-100);
    color: var(--adm-red-600);
    font-size: 28px;
    box-shadow: 0 0 0 10px var(--adm-red-50);
}

.adm-soon-tag {
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--adm-warning-bg);
    color: var(--adm-warning);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.adm-soon-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #20242c;
}

.adm-soon-text {
    max-width: 560px;
    margin: 0 0 30px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #6b7280;
}

.adm-soon-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 760px;
}

.adm-soon-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--adm-line);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.adm-soon-link:hover {
    border-color: var(--adm-red-200);
    box-shadow: 0 8px 22px rgba(217, 20, 30, 0.08);
    transform: translateY(-1px);
}

.adm-soon-link-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--adm-red-50);
    color: var(--adm-red-600);
    font-size: 15px;
}

.adm-soon-link strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2b2f36;
}

.adm-soon-link small {
    display: block;
    margin-top: 1px;
    font-size: 11.5px;
    color: var(--adm-muted);
}

/* =========================================================
   Page height: footer sits at the bottom of the window,
   with no empty band underneath it
========================================================= */

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background-color: var(--sidebar-bg, #fff);
}

#main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-wrapper > .content-body {
    flex: 1 0 auto;
    min-height: 0 !important;
}

#main-wrapper > .footer {
    flex-shrink: 0;
    margin-bottom: 0;
}

/* =========================================================
   Sign-in pages (layouts/auth)
========================================================= */

.adm-auth-main:has(.adm-auth-form-narrow) {
    justify-content: center;
}

.adm-auth-form.adm-auth-form-narrow {
    max-width: 440px;
}

.adm-auth-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.adm-auth-features li {
    display: flex;
    gap: 14px;
}

.adm-auth-features li > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--adm-line);
    border-radius: 11px;
    background: #fff;
    color: var(--adm-red-600);
    font-size: 14px;
}

.adm-auth-features strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #2b2f36;
}

.adm-auth-features small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #8a92a0;
}

.adm-auth-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--adm-red-600);
    text-decoration: none;
}

.adm-auth-link:hover {
    color: var(--adm-red-700);
    text-decoration: underline;
}

.adm-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    font-size: 12.5px;
    font-weight: 600;
    color: #8a92a0;
    text-decoration: none;
}

.adm-auth-back:hover {
    color: var(--adm-red-600);
}

.adm-auth-check {
    font-size: 13px;
    color: #5b6270;
}

.adm-auth .form-check-input {
    width: 17px;
    height: 17px;
    margin-top: 0.15rem;
    border-color: #d9d2d2;
}

.adm-auth .form-check-input:checked {
    background-color: var(--adm-red-600);
    border-color: var(--adm-red-600);
}

.adm-auth .btn-light {
    border: 1px solid var(--adm-line);
    background: #fff;
    color: #3b414c;
}

.adm-auth .btn-light:hover {
    background: var(--adm-red-50) !important;
    color: var(--adm-red-700) !important;
}

.adm-auth .btn.w-100,
.adm-auth .btn.flex-fill {
    min-height: 44px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
}

.adm-auth .form-control[readonly] {
    background: #faf7f7;
    color: #6b7280;
}

.adm-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 11px 14px;
    border-radius: 11px;
    font-size: 12.5px;
    line-height: 1.5;
}

.adm-auth-alert i {
    margin-top: 2px;
}

.adm-auth-alert.is-error {
    border: 1px solid var(--adm-red-200);
    background: var(--adm-red-50);
    color: var(--adm-red-700);
}

.adm-auth-alert.is-success {
    border: 1px solid #bfe8cf;
    background: var(--adm-success-bg);
    color: #1f7a48;
}

.adm-auth .form-control.adm-code-input {
    height: 56px;
    padding: 0 0.9rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-align: center;
}

.adm-auth .form-control.adm-code-input::placeholder {
    color: #e3dada;
}

.adm-auth-foot .adm-link-btn {
    font-size: 12.5px;
}

/* Filter bar: Apply / Reset buttons */
.adm-filter-actions {
    display: flex;
    gap: 8px;
    margin-left: 0;
}

.adm-filter-actions .btn {
    height: 38px;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .adm-filter-actions {
        width: 100%;
        margin-left: 0;
    }

    .adm-filter-actions .btn {
        flex: 1;
    }
}

/* =========================================================
   Catalogue: categories
========================================================= */

.adm-hint {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--adm-muted);
}

.adm-mini-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 6px;
    background: var(--adm-red-50);
    color: var(--adm-red-600);
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.adm-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 7px;
    background: #f6f2f2;
    color: #5b6270;
    font-size: 12px;
    font-weight: 700;
}

.adm-col-handle {
    width: 36px;
    padding-right: 0 !important;
}

.adm-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 30px;
    border-radius: 7px;
    color: #c3c8d0;
    cursor: grab;
}

.adm-drag-handle:hover {
    background: var(--adm-red-50);
    color: var(--adm-red-600);
}

.adm-sortable-table tr.is-dragging {
    opacity: 0.55;
    background: var(--adm-red-50) !important;
}

.adm-sortable-table tr.is-dragging .adm-drag-handle {
    cursor: grabbing;
}

.adm-sortable-table .form-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-left: 2.6em;
}

.content-body .input-group-text.adm-url-prefix {
    color: #8a92a0;
    background: #faf7f7;
    font-weight: 500;
}

/* Character counter under a field */
.adm-counter {
    margin-top: 4px;
    font-size: 11px;
    color: #a7adb8;
    text-align: right;
}

.adm-counter.is-near {
    color: var(--adm-warning);
    font-weight: 600;
}

/* Radio cards (status) */
.adm-choice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adm-choice {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.adm-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.adm-choice-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--adm-line);
    border-radius: 11px;
    background: #fff;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.adm-choice-box strong {
    display: block;
    font-size: 13px;
    color: #2b2f36;
}

.adm-choice-box small {
    display: block;
    font-size: 11.5px;
    color: var(--adm-muted);
}

.adm-choice-dot {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
    border: 2px solid #d9d2d2;
    border-radius: 50%;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.adm-choice:hover .adm-choice-box {
    border-color: var(--adm-red-200);
}

.adm-choice input:checked + .adm-choice-box {
    border-color: var(--adm-red-300);
    background: var(--adm-red-50);
}

.adm-choice input:checked + .adm-choice-box .adm-choice-dot {
    border-color: var(--adm-red-600);
    box-shadow:
        inset 0 0 0 3px #fff,
        inset 0 0 0 8px var(--adm-red-600);
}

.adm-choice input:focus-visible + .adm-choice-box {
    box-shadow: 0 0 0 0.2rem rgba(217, 20, 30, 0.12);
}

/* Google preview */
.adm-seo-preview {
    padding: 14px 16px;
    border: 1px dashed var(--adm-line);
    border-radius: 12px;
    background: #fffdfd;
}

.adm-seo-label {
    margin-bottom: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #a7adb8;
}

.adm-seo-url {
    font-size: 12px;
    color: #4d5156;
}

.adm-seo-title {
    margin: 2px 0;
    font-size: 17px;
    line-height: 1.35;
    color: #1a0dab;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adm-seo-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: #4d5156;
}

/* =========================================================
   Catalogue: products
========================================================= */

.adm-add-menu.dropdown-menu {
    width: 300px;
    padding: 6px;
}

.adm-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.adm-product-thumb {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--adm-line);
    border-radius: 11px;
    background: #fffafa;
    color: #d6caca;
    overflow: hidden;
}
.adm-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adm-price {
    font-weight: 700;
    color: #20242c;
}
.adm-price small {
    font-weight: 500;
    color: var(--adm-muted);
}
.adm-price-was {
    margin-top: 2px;
    font-size: 11px;
    color: var(--adm-muted);
}

.adm-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.02em;
}

.content-body .input-group-text.adm-suffix {
    background: #faf7f7;
    color: #8a92a0;
    font-weight: 500;
}
.content-body .input-group > .form-control:not(:last-child) {
    border-radius: 9px 0 0 9px;
}
.content-body .input-group > .input-group-text.adm-suffix {
    border-radius: 0 9px 9px 0;
}

/* Underlined tabs */
.adm-tabs-line {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0 0 18px;
    padding: 0 2px;
    border-bottom: 1px solid var(--adm-line);
    overflow-x: auto;
    scrollbar-width: none;
}
.adm-tabs-line .nav-link {
    position: relative;
    padding: 10px 14px;
    border: 0;
    background: none;
    border-radius: 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.adm-tabs-line .nav-link:hover {
    color: var(--adm-red-600);
}
.adm-tabs-line .nav-link.active {
    color: var(--adm-red-600);
}
.adm-tabs-line .nav-link.active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--adm-red-600);
}
.adm-tabs-line .nav-link i {
    font-size: 12px;
    opacity: 0.8;
}
.adm-tabs-line .adm-count {
    background: var(--adm-red-50);
    color: var(--adm-red-700);
}

/* Estimate box */
.adm-estimate {
    padding: 12px 14px;
    border-radius: 11px;
    background: var(--adm-red-50);
    border: 1px solid var(--adm-red-100);
    font-size: 12.5px;
    line-height: 1.6;
    color: #5b3a3c;
}
.adm-estimate strong {
    color: var(--adm-red-700);
}

/* Options / nutrition tables */
.adm-options-table {
    margin-bottom: 12px;
}
.adm-options-table th {
    padding: 8px 6px;
    border-bottom: 1px solid var(--adm-line);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--adm-muted);
    white-space: nowrap;
    background: none;
}
.adm-options-table td {
    padding: 6px;
    border-bottom: 1px solid #f6eded;
    vertical-align: top;
}
.content-body .adm-options-table .form-control-sm {
    height: 34px;
    min-width: 80px;
}

.adm-inline-note {
    padding: 11px 14px;
    border: 1px solid #fbe3b8;
    border-radius: 11px;
    background: #fffaf0;
    color: #8a5a12;
    font-size: 12.5px;
}

/* Chip checkboxes (allergens, tags) */
.adm-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.adm-chip {
    position: relative;
    margin: 0;
    cursor: pointer;
}
.adm-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.adm-chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--adm-line);
    border-radius: 999px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: #5b6270;
    transition: all 0.15s ease;
}
.adm-chip:hover span {
    border-color: var(--adm-red-200);
}
.adm-chip input:checked + span {
    border-color: var(--adm-red-600);
    background: var(--adm-red-600);
    color: #fff;
}
.adm-chip input:checked + span::before {
    content: "✓";
    font-size: 11px;
}
.adm-chip input:focus-visible + span {
    box-shadow: 0 0 0 0.2rem rgba(217, 20, 30, 0.15);
}

/* Related products */
.adm-related-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--adm-line);
    border-radius: 11px;
    padding: 4px;
}
.adm-related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}
.adm-related-item:hover {
    background: #fffafa;
}
.adm-related-item small {
    margin-left: auto;
    font-size: 11px;
    color: var(--adm-muted);
}

/* Image uploader */
.adm-dropzone {
    position: relative;
    padding: 28px 16px;
    border: 2px dashed var(--adm-red-200);
    border-radius: 14px;
    background: #fffafa;
    text-align: center;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}
.adm-dropzone.is-over {
    border-color: var(--adm-red-600);
    background: var(--adm-red-50);
}
.adm-dropzone.is-uploading {
    pointer-events: none;
    opacity: 0.75;
}
.adm-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.adm-dropzone-inner strong {
    font-size: 13.5px;
    color: #2b2f36;
}
.adm-dropzone-inner small {
    font-size: 11.5px;
    color: var(--adm-muted);
}
.adm-dropzone-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--adm-red-100);
    color: var(--adm-red-600);
    font-size: 18px;
}
.adm-upload-progress {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 10px;
    height: 4px;
    border-radius: 4px;
    background: var(--adm-red-100);
    overflow: hidden;
}
.adm-upload-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--adm-red-600);
    transition: width 0.2s ease;
}

.adm-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.adm-image-card {
    border: 1px solid var(--adm-line);
    border-radius: 13px;
    background: #fff;
    overflow: hidden;
    cursor: grab;
}
.adm-image-card.is-dragging {
    opacity: 0.5;
    border-color: var(--adm-red-300);
}
.adm-image-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #faf5f5;
}
.adm-image-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.adm-image-main {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--adm-red-600);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
}
.adm-image-drag {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #8a92a0;
    font-size: 12px;
}
.adm-image-body {
    padding: 10px;
}
.adm-image-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.adm-image-actions .adm-link-btn {
    font-size: 11.5px;
}

/* Side panel */
.adm-aside-sticky {
    position: sticky;
    top: 90px;
}
@media (max-width: 1199.98px) {
    .adm-aside-sticky {
        position: static;
    }
}

.adm-side-text {
    font-size: 12.5px;
    line-height: 1.6;
    color: #5b6270;
}

.adm-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}
.adm-checklist li {
    position: relative;
    padding: 4px 0 4px 22px;
    font-size: 12.5px;
    color: #5b6270;
}
.adm-checklist li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--adm-red-300);
    border-radius: 50%;
}

.adm-confirm-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--adm-line);
    border-radius: 11px;
    background: #fffafa;
    font-size: 12.5px;
    line-height: 1.55;
    color: #3b414c;
    cursor: pointer;
}
.adm-confirm-check .form-check-input {
    flex: 0 0 auto;
    margin-top: 2px;
}

/* Product card preview */
.adm-pcard {
    border: 1px solid var(--adm-line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
.adm-pcard-media {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1ec;
    color: #e8cfcf;
    font-size: 32px;
}
.adm-pcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.adm-pcard-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--adm-red-600);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.adm-pcard-body {
    padding: 12px 14px 14px;
}
.adm-pcard-name {
    font-size: 15px;
    font-weight: 800;
    color: #20242c;
}
.adm-pcard-meta {
    margin-top: 2px;
    font-size: 12px;
    color: var(--adm-muted);
}
.adm-pcard-price {
    margin-top: 10px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.adm-pcard-price span {
    font-size: 16px;
    font-weight: 800;
    color: var(--adm-red-600);
}
.adm-pcard-price s {
    font-size: 12px;
    color: #a7adb8;
}
.adm-pcard-note {
    margin-top: 4px;
    font-size: 11px;
    color: #8a92a0;
}

/* Tags page */
.adm-inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
}
.adm-inline-form .form-control {
    max-width: 280px;
}
.adm-w-80 {
    width: 80px !important;
    max-width: 80px;
}

/* Tags table */
.adm-tags-table {
    table-layout: fixed;
}
.adm-tags-table td,
.adm-tags-table th {
    vertical-align: middle;
}
.adm-tags-table .form-switch {
    padding-left: 2.6em;
    gap: 4px;
}
