/* Shared back-office theme. Keep page controls and legacy plugins intact. */
:root {
    --admin-bg: #f5f7f9;
    --admin-surface: #fff;
    --admin-ink: #1c2b36;
    --admin-muted: #73818d;
    --admin-line: #e5ebee;
    --admin-logo-blue: #2b90eb;
    --admin-brand: #1f75bf;
    --admin-brand-dark: #195f9c;
    --admin-brand-soft: #eaf4fe;
    --admin-radius: 12px;
}
html { background: var(--admin-bg); }
body.admin-app, body.admin-login {
    margin: 0; padding: 0; min-height: 100vh; background: var(--admin-bg);
    color: var(--admin-ink); font-family: 'Roboto', 'Leelawadee UI', Tahoma, sans-serif;
    font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.admin-app *, .admin-login * { box-sizing: border-box; }
.admin-app :focus-visible, .admin-login :focus-visible { outline: 3px solid #2b90eb; outline-offset: 3px; }
.admin-skip-link { position: fixed; left: 20px; top: -80px; z-index: 10001; padding: 12px 20px; background: #fff; color: var(--admin-brand); border-radius: 8px; }
.admin-skip-link:focus { top: 10px; }
.admin-shell { min-height: 100vh; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: 244px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--admin-line); }
.admin-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 30px 27px 28px; }
.admin-brand img { width: 151px; height: 44px; object-fit: contain; object-position: left center; }
.admin-brand > span { font-size: 12px; letter-spacing: 2.1px; font-weight: 600; color: var(--admin-muted); }
.admin-nav-label { padding: 12px 27px; font-size: 12px; letter-spacing: 1.5px; color: #8a96a0; font-weight: 600; }
.admin-navigation { flex: 1; overflow-y: auto; padding: 0 14px 24px; }
.admin-nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 5px; padding: 10px 14px; color: #5e6d79; font-weight: 500; font-size: 15px; border-radius: 8px; cursor: pointer; transition: background .15s, color .15s; text-decoration: none; }
.admin-nav-link > svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.7; }
.admin-nav-link:hover { background: #f3f6f7; color: var(--admin-brand); }
.admin-nav-link.is-active { background: var(--admin-brand-soft); color: var(--admin-brand-dark); font-weight: 600; }
.admin-active-dot { width: 6px; height: 6px; margin-left: auto; background: var(--admin-brand); border-radius: 50%; }
.admin-nav-group summary { list-style: none; }
.admin-nav-group summary::-webkit-details-marker { display: none; }
.admin-nav-chevron { margin-left: auto; width: 14px !important; transition: transform .15s; }
.admin-nav-group[open] .admin-nav-chevron { transform: rotate(180deg); }
.admin-subnav { margin: 2px 0 10px 23px; padding-left: 8px; border-left: 1px solid var(--admin-line); }
.admin-subnav .admin-nav-link { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.admin-sidebar-footer { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--admin-line); padding: 20px 17px; }
.admin-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; background: #eaf4fe; color: var(--admin-brand); font-weight: 700; font-size: 15px; }
.admin-user-info { min-width: 0; flex: 1; }
.admin-user-info strong, .admin-user-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-info strong { font-size: 14px; font-weight: 600; }
.admin-user-info span { font-size: 12px; color: var(--admin-muted); }
.admin-signout { color: #73818d; padding: 7px; border-radius: 6px; }
.admin-signout svg { width: 17px; height: 17px; }
.admin-signout:hover { background: #fff0ee; color: #b6483a; }
.admin-workspace { margin-left: 244px; min-width: 0; }
.admin-topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 36px; background: #fff; border-bottom: 1px solid var(--admin-line); }
.admin-topbar-start, .admin-topbar-end, .admin-breadcrumb { display: flex; align-items: center; gap: 16px; }
.admin-breadcrumb { font-size: 14px; gap: 12px; color: var(--admin-muted); }
.admin-breadcrumb svg { width: 13px; height: 13px; color: #b1bbc2; }
.admin-breadcrumb strong { font-weight: 500; color: var(--admin-ink); }
.admin-console-label { font-size: 14px; font-weight: 500; color: #61717c; }
.admin-topbar-divider { width: 1px; height: 24px; background: var(--admin-line); }
.admin-avatar-small { width: 31px; height: 31px; border-radius: 50%; font-size: 13px; }
.admin-menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--admin-ink); }
.admin-menu-toggle svg { width: 22px; height: 22px; }
.admin-app .admin-content.content { margin: 0 !important; padding: 24px 36px 20px; min-height: calc(100vh - 76px); max-width: none; min-width: 0; border: 0; border-radius: 0; background: var(--admin-bg); box-shadow: none; }
.admin-content::before, .admin-content::after { display: none !important; }
.admin-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.admin-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.8px; color: var(--admin-brand); }
.admin-page-heading h1 { font-size: 29px; letter-spacing: -.8px; font-weight: 600; line-height: 1.3; margin-top: 5px; }
.admin-page-context { font-size: 13px; color: #8a96a0; padding-bottom: 4px; }
.admin-page-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--admin-line); margin-top: 32px; padding-top: 18px; color: #89959f; font-size: 12px; }
/* Common components used across list, edit and detail screens. */
.admin-app .box { background: #fff; border: 1px solid var(--admin-line); border-radius: var(--admin-radius); box-shadow: 0 2px 4px #162f3a03; }
.admin-app .box .box { box-shadow: none; }
.admin-content h2 { color: #2c3c47; font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
.admin-content .text-lg { line-height: 1.6; }
.admin-content .intro-y, .admin-content .intro-x { animation: none !important; opacity: 1; transform: none; }
.admin-app .btn, .admin-login .btn { min-height: 38px; border-radius: 7px; font-size: 14px; font-weight: 500; box-shadow: none; transition: background .15s, border-color .15s; }
.admin-app .btn-primary, .admin-login .btn-primary { background: var(--admin-brand); border-color: var(--admin-brand); color: #fff; }
.admin-app .btn-primary:hover, .admin-login .btn-primary:hover { background: var(--admin-brand-dark); border-color: var(--admin-brand-dark); }
.admin-app .btn-outline-primary { color: var(--admin-brand); border-color: #b6d7f5; background: #fff; }
.admin-app .btn-outline-primary:hover { background: var(--admin-brand-soft); }
.admin-app .btn-outline-secondary, .admin-app .btn-secondary { border-color: #dce3e7; background: #fff; color: #586975; }
.admin-app .btn-danger, .admin-app .btn-outline-danger { border-color: #efc6c2; background: #fff3f1; color: #b84036; }
.admin-app .btn-success { background: #eaf4fe; border-color: #c3e4d7; color: #08744d; }
.admin-app .text-primary { color: var(--admin-brand); }
.admin-app .form-control, .admin-app .form-select, .admin-login .form-control,
.admin-app .dataTables_wrapper input, .admin-app .dataTables_wrapper select { border: 1px solid #dae2e7; border-radius: 7px; background-color: #fff; color: #263b48; min-height: 39px; font-size: 15px; box-shadow: none; }
.admin-app .form-control:focus, .admin-app .form-select:focus, .admin-login .form-control:focus { border-color: #2b90eb; box-shadow: 0 0 0 3px #2b90eb18; }
.admin-app input::placeholder, .admin-login input::placeholder { color: #98a3ad; }
.admin-app .form-label { color: #52636f; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.admin-app .input-group { gap: 8px; align-items: stretch; }
.admin-app .input-group > .form-control, .admin-app .input-group > .btn { border-radius: 7px !important; }
.admin-app .input-group > .form-control { min-width: 80px; }
.admin-app input[type=checkbox], .admin-app input[type=radio], .admin-login input[type=checkbox] { color: var(--admin-brand); border-color: #cbd6dc; }
.admin-app .select2-container .select2-selection--single { height: 39px; border: 1px solid #dae2e7; border-radius: 7px; }
.admin-app .select2-container .select2-selection__rendered { line-height: 37px; font-size: 15px; padding-left: 12px; }
.admin-app .select2-container .select2-selection__arrow { height: 37px; }
.admin-content .table { border-collapse: separate !important; border-spacing: 0; width: 100%; font-size: 14px; color: #4d606d; }
.admin-content .table thead th { padding: 14px 16px; background: #f6f8fa; color: #7a8893; font-size: 12px; font-weight: 600; letter-spacing: .35px; border: 0; border-top: 1px solid var(--admin-line); border-bottom: 1px solid var(--admin-line); vertical-align: middle; }
.admin-content .table thead th:first-child { border-radius: 7px 0 0 7px; }
.admin-content .table thead th:last-child { border-radius: 0 7px 7px 0; }
.admin-content .table tbody td { padding: 15px 16px; border: 0; border-bottom: 1px solid #edf1f3; background: #fff; vertical-align: middle; line-height: 1.6; }
.admin-content .table-striped tbody tr:nth-of-type(odd) td { background: #fff; }
.admin-content .table tbody tr:hover td { background: #f7fbff; }
.admin-content .table tbody td .btn { min-height: 30px; font-size: 13px; padding: 5px 9px; }
.admin-content .table td img { border-radius: 6px; }
.admin-app .dataTables_wrapper { padding-top: 16px; }
.admin-app .dataTables_wrapper label, .admin-app .dataTables_info { font-size: 14px; color: var(--admin-muted); }
.admin-app .dataTables_wrapper input { margin-left: 8px; padding: 7px 10px; }
.admin-app .pagination { gap: 4px; }
.admin-app .page-link, .admin-app .pagination .page-item .page-link { border-radius: 6px; min-width: 32px; border-color: var(--admin-line); color: #647582; font-size: 14px; }
.admin-app .page-item.active .page-link, .admin-app .pagination .page-item.active .page-link { background: var(--admin-brand); color: #fff; border-color: var(--admin-brand); }
.admin-app .modal-content, .admin-app .dropdown-menu .dropdown-content { border-radius: 12px; border: 1px solid var(--admin-line); box-shadow: 0 16px 60px #243a4920; }
.admin-app .modal-header { border-bottom-color: var(--admin-line); padding: 20px 24px; }
.admin-app .modal-body, .admin-app .modal-footer { padding: 24px; }
.admin-app .modal-footer { border-top-color: var(--admin-line); }
.admin-app .nav-tabs .nav-link.active { color: var(--admin-brand); border-bottom-color: var(--admin-brand); }
.admin-backdrop { display: none; }
/* Sign-in shares the same identity without inheriting the old template geometry. */
body.admin-login::before, body.admin-login::after { display: none !important; }
.admin-login .auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 48px 64px; background: #12385d; color: #fff; overflow: hidden; }
.auth-logo { display: inline-flex; width: fit-content; background: #fff; padding: 13px 20px; border-radius: 10px; }
.auth-logo img { width: 156px; height: 42px; object-fit: contain; }
.auth-story-content { max-width: 430px; margin: 70px 0; position: relative; z-index: 1; }
.auth-kicker { color: #91caff; font-size: 13px; letter-spacing: 2.3px; font-weight: 500; }
.auth-story h1 { margin: 24px 0; font-size: clamp(36px, 4vw, 56px); font-weight: 500; line-height: 1.15; letter-spacing: -2px; }
.auth-story-content > p { max-width: 320px; color: #b7d1e9; font-size: 16px; line-height: 1.9; }
.auth-feature { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: #d4e6f7; font-size: 14px; }
.auth-feature svg { width: 18px; height: 18px; color: #91caff; }
.auth-story-footer { font-size: 13px; color: #a3c4e2; }
.auth-orbit { position: absolute; width: 500px; height: 500px; right: -290px; bottom: -200px; border: 1px solid #ffffff12; border-radius: 50%; box-shadow: 0 0 0 60px #ffffff04, 0 0 0 120px #ffffff03; pointer-events: none; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px; background: #f8fafb; }
.auth-card { width: 100%; max-width: 380px; }
.auth-mobile-logo { display: none; width: 150px; margin-bottom: 40px; }
.auth-card .auth-kicker { color: var(--admin-brand); font-size: 12px; }
.auth-card h2 { margin: 10px 0; font-size: 32px; line-height: 1.3; font-weight: 600; letter-spacing: -.8px; }
.auth-description { color: var(--admin-muted); font-size: 15px; margin-bottom: 32px; }
.auth-card label { display: block; margin-bottom: 8px; font-size: 14px; color: #52636f; font-weight: 500; }
.auth-card .form-control { width: 100%; height: 46px; padding: 12px 14px; }
.auth-field + .auth-field { margin-top: 22px; }
.auth-card .login__input-error { font-size: 14px; }
.auth-remember { display: flex; gap: 8px; align-items: center; margin: 24px 0; }
.auth-remember label { margin: 0; font-weight: 400; }
.auth-card #btn-login { width: 100%; min-height: 46px; }
.auth-help { margin-top: 24px; font-size: 13px; color: #8b97a1; text-align: center; }
@media (min-width: 1600px) { .admin-content.content { padding-left: 48px; padding-right: 48px; } }
@media (max-width: 1099px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .admin-workspace { margin-left: 0; }
    .admin-menu-toggle { display: inline-flex; }
    .admin-menu-open { overflow: hidden; }
    .admin-menu-open .admin-sidebar { transform: translateX(0); }
    .admin-menu-open .admin-backdrop { display: block; position: fixed; inset: 0; z-index: 59; background: #102b3b66; border: 0; }
    .auth-story { padding: 40px; }
}
@media (max-width: 767px) {
    .admin-topbar { height: 64px; padding: 0 16px; }
    .admin-app .admin-content.content { padding: 24px 16px 16px; min-height: calc(100vh - 64px); }
    .admin-page-heading { margin-bottom: 20px; }
    .admin-page-heading h1 { font-size: 25px; }
    .admin-page-context, .admin-console-label, .admin-topbar-divider { display: none; }
    .admin-breadcrumb { gap: 7px; font-size: 13px; }
    .admin-topbar-start { gap: 5px; }
    .admin-content .box > .p-5, .admin-content .box.p-5 { padding: 16px; }
    .admin-content .table tbody td, .admin-content .table thead th { padding: 12px; }
    .admin-content .overflow-auto { max-width: 100%; }
    .admin-content .h-10:has(h2) { height: auto; min-height: 40px; }
    .admin-app .input-group { flex-wrap: wrap; }
    .admin-app .input-group > input { flex: 1 1 100%; }
    .admin-login .auth-layout { grid-template-columns: 1fr; }
    .auth-story { display: none; }
    .auth-panel { min-height: 100vh; padding: 36px 24px; }
    .auth-mobile-logo { display: block; }
}
@media (prefers-reduced-motion: reduce) { .admin-app *, .admin-login * { animation: none !important; transition: none !important; } }
@media print {
    .admin-sidebar, .admin-topbar, .admin-page-footer, .admin-menu-toggle { display: none; }
    .admin-workspace { margin: 0; }
    .admin-app .admin-content.content { padding: 0; background: #fff; }
}
.admin-app .input-group > .btn { flex-shrink: 0; white-space: nowrap; }
.admin-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 5px; background: #f0f3f6; color: #667682; font-size: 13px; font-weight: 500; }
.admin-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.admin-status--success { background: #e8f6ef; color: #19734e; }
.admin-status--danger { background: #fff0ee; color: #b5493b; }
.admin-content .email-delivery-table { min-width: 1680px; }
.email-delivery-table td:nth-child(4) { min-width: 220px; font-size: 13px; }
.email-delivery-table td:nth-child(2) { min-width: 230px; }
.email-delivery-table td:nth-child(3) { min-width: 270px; max-width: 320px; }
.email-delivery-table td:nth-child(6) { min-width: 200px; max-width: 300px; overflow-wrap: anywhere; }
.admin-app .admin-content > .grid, .admin-app .admin-content .col-span-12 { min-width: 0; }
/* Independent pagination controls with a compact page window. */
.admin-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 20px 0 4px; }
.admin-pagination-summary { margin: 0; font-size: 14px; color: var(--admin-muted); line-height: 1.6; }
.admin-pagination-summary strong { color: #435866; font-weight: 500; }
.admin-pagination-controls { display: flex; align-items: center; gap: 6px; }
.admin-pagination-button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; background: #fff; border: 1px solid #e1e7eb; border-radius: 7px; color: #61717e; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .15s, border-color .15s; }
.admin-pagination-button > span { font-size: 25px; line-height: 1; margin-top: -2px; }
.admin-pagination-button[href]:hover { color: var(--admin-brand); background: var(--admin-brand-soft); border-color: #b6d7f5; }
.admin-pagination-button.is-current { background: var(--admin-brand); border-color: var(--admin-brand); color: #fff; box-shadow: 0 2px 4px #2b90eb20; }
.admin-pagination-button.is-disabled { background: #f0f3f5; border-color: transparent; color: #b2bdc5; cursor: default; }
.admin-pagination-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; color: #95a1ab; font-size: 14px; }
.admin-pagination-mobile { display: none; }
@media (max-width: 639px) {
    .admin-pagination { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 18px; }
    .admin-pagination-summary { text-align: center; font-size: 13px; }
    .admin-pagination-controls { justify-content: space-between; }
    .admin-pagination-number, .admin-pagination-gap { display: none; }
    .admin-pagination-mobile { display: inline; color: #61717e; font-size: 14px; }
    .admin-pagination-button { min-width: 38px; height: 38px; }
}

/* Avoid stacking legacy page-heading margins below the shared title. */
.admin-content > .grid > .col-span-12 > .grid > .col-span-12 {
    margin-top: 0;
}
.admin-content .h-10:has(h2) {
    margin-top: 0;
    margin-bottom: 8px;
    height: auto;
    min-height: 36px;
}
.admin-content .h-10:has(h2) + .mt-4 {
    margin-top: 8px;
}
.admin-content > .grid > .col-span-12 > .grid > .col-span-12 > .mt-4:first-child {
    margin-top: 0;
}
.admin-content > .grid > .col-span-12 > .grid > .col-span-12 > .mt-4 .box.mt-5 {
    margin-top: 0;
}
/* Plan Types: page actions, table tools and row actions have distinct roles. */
.admin-page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-page-actions .btn, .plan-bulk-toolbar .btn { display: inline-flex; align-items: center; gap: 8px; }
.admin-page-actions svg, .plan-bulk-toolbar svg { width: 15px; height: 15px; }
.plan-import-form { margin: 0; }
.plan-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; }
.plan-search-form { display: flex; align-items: center; gap: 8px; width: min(100%, 480px); }
.plan-search-field { position: relative; flex: 1; min-width: 0; }
.plan-search-field > svg { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; color: #8c9aa5; pointer-events: none; }
.plan-search-field .form-control { padding-left: 37px; }
.plan-result-count { white-space: nowrap; font-size: 14px; color: var(--admin-muted); }
.plan-bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-bottom: 16px; border-radius: 7px; background: #f7f9fa; border: 1px solid var(--admin-line); font-size: 13px; color: var(--admin-muted); }
.plan-bulk-toolbar.has-selection { background: var(--admin-brand-soft); border-color: #c7dff5; color: var(--admin-brand-dark); }
.admin-app .plan-bulk-toolbar .btn { min-height: 30px; padding: 5px 10px; font-size: 13px; }
.admin-app .plan-bulk-toolbar .btn:disabled { background: transparent; border-color: #dce3e7; color: #9aa6ae; cursor: not-allowed; opacity: .65; }
.plan-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.plan-row-actions .plan-edit-button { order: -1; }
.plan-row-actions .btn-danger { margin-left: 10px; }
.plan-types-table .admin-status { white-space: nowrap; }
.plan-types-table th:last-child { text-align: right; }
@media (max-width: 767px) {
    .admin-page-heading:has(.admin-page-actions) { align-items: flex-start; flex-direction: column; gap: 16px; }
    .admin-page-actions { width: 100%; }
    .admin-page-actions > .btn, .admin-page-actions .plan-import-form { flex: 1; }
    .plan-import-form > .btn { width: 100%; }
    .plan-list-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
    .plan-search-form { width: 100%; }
    .plan-bulk-toolbar { font-size: 12px; }
}
.dashboard-caption { margin: -4px 0 20px; color: var(--admin-muted); font-size: 14px; }
.dashboard-filters { padding: 20px; margin-bottom: 22px; }
.dashboard-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 15px; }
.dashboard-filter-heading > span, .dashboard-filter-note { font-size: 13px; color: var(--admin-muted); }
.dashboard-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dashboard-filter-grid .form-label { display: block; }
.dashboard-filter-grid .form-control, .dashboard-filter-grid .form-select { width: 100%; }
.dashboard-advanced { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--admin-line); }
.dashboard-advanced > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; width: fit-content; font-size: 14px; color: var(--admin-brand); list-style: none; }
.dashboard-advanced > summary::-webkit-details-marker { display: none; }
.dashboard-advanced > summary svg { width: 14px; height: 14px; }
.dashboard-advanced[open] > summary svg { transform: rotate(180deg); }
.dashboard-advanced .dashboard-filter-grid { margin-top: 16px; }
.dashboard-filter-note { margin-top: 12px; }
.dashboard-filter-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.dashboard-filter-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.dashboard-filter-actions svg { width: 14px; height: 14px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.dashboard-metric { padding: 22px; min-width: 0; }
.dashboard-metric-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: #647582; }
.dashboard-metric-label svg { width: 18px; height: 18px; color: var(--admin-logo-blue); flex-shrink: 0; }
.dashboard-metric > strong { display: block; margin-top: 16px; font-size: clamp(24px, 2vw, 32px); font-weight: 600; letter-spacing: -.6px; overflow-wrap: anywhere; }
.dashboard-metric strong small { font-size: 14px; font-weight: 400; color: var(--admin-muted); letter-spacing: 0; }
.dashboard-metric > p { margin-top: 10px; font-size: 12px; color: var(--admin-muted); }
.dashboard-metric .dashboard-unavailable { font-size: 22px; color: #8a97a1; padding-top: 8px; letter-spacing: 0; }
.admin-app .dashboard-metric-primary { border-color: #c9dff5; background: #f4f9ff; }
.dashboard-metric-primary > strong { color: var(--admin-brand); }
.dashboard-breakdowns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 22px; }
.dashboard-panel { padding: 20px; min-width: 0; }
.dashboard-panel h2 { font-size: 16px; margin-bottom: 16px; }
.dashboard-table-scroll { overflow: auto; max-height: 360px; }
.dashboard-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dashboard-panel-heading > span { font-size: 13px; color: var(--admin-muted); }
@media (max-width: 1279px) { .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .dashboard-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-filter-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .dashboard-breakdowns { grid-template-columns: 1fr; }
    .dashboard-metric { padding: 16px; }
    .dashboard-metric-label { font-size: 13px; }
}
@media (max-width: 399px) { .dashboard-metrics, .dashboard-filter-grid { grid-template-columns: 1fr; } }
/* Shared search treatment for every listing. */
.admin-list-search { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 480px; margin: 0 0 16px; }
.admin-search-field { position: relative; flex: 1; min-width: 0; }
.admin-search-field > svg { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; color: #8c9aa5; pointer-events: none; }
.admin-app .admin-search-field .form-control { width: 100%; height: 40px; padding-left: 37px; }
.admin-app .admin-list-search > .btn { height: 40px; flex-shrink: 0; padding: 0 16px; }
.admin-search-clear { font-size: 14px; color: var(--admin-muted); padding: 8px 4px; white-space: nowrap; }
.admin-search-clear:hover { color: var(--admin-brand); }
.admin-search-help { font-size: 13px; color: var(--admin-muted); margin: -4px 0 16px; }
.plan-list-toolbar .admin-list-search { margin-bottom: 0; }
.admin-app .dataTables_filter { float: none; text-align: left; margin-bottom: 16px; }
.admin-app .dataTables_filter label { display: block; font-size: 0; max-width: 480px; }
.admin-app .dataTables_filter input[type=search] { display: block; width: 100%; height: 40px; margin: 0; padding-left: 37px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c9aa5' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 12px center; }
@media (max-width: 639px) { .admin-list-search { max-width: none; } .admin-search-help { line-height: 1.8; } }
