@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #2ca58d;
    --primary-hover-color: #21937a;
    --primary-light-color: #eaf6f4;
    --secondary-color: #0a2342;
    --secondary-hover-color: #071a33;
    --success-color: #22C55E;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #0EA5E9;
    --background-color: #eef2f6;
    --surface-color: #FFFFFF;
    --surface-muted-color: #F8FAFC;
    --sidebar-color: #FFFFFF;
    --heading-color: #0a2342;
    --text-color: #334155;
    --muted-text-color: #64748B;
    --border-color: #E2E8F0;
    --font-family: "Roboto", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.12);
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --topbar-height: 72px;
    --transition-speed: 200ms;
}

.dark {
    --background-color: #0B1120;
    --surface-color: #111827;
    --surface-muted-color: #0F172A;
    --heading-color: #F8FAFC;
    --text-color: #CBD5E1;
    --muted-text-color: #94A3B8;
    --border-color: #1F2937;
    --sidebar-color: #111827;
}

* {
    box-sizing: border-box;
    font-family: var(--font-family);
    letter-spacing: 0;
}

html {
    color-scheme: light;
}

html.dark {
    color-scheme: dark;
}

body.admin-body {
    margin: 0;
    min-height: 100vh;
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a,
input,
select,
textarea,
.dropdown-menu,
.admin-card {
    transition: all var(--transition-speed) ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary-color) 22%, transparent);
    outline-offset: 2px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
}

.admin-shell {
    min-height: 100vh;
    padding-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.admin-main {
    flex: 1;
    width: 100%;
    padding: 24px;
}

.admin-content-surface {
    min-width: 0;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    color: var(--muted-text-color);
    font-size: 12px;
    font-weight: 500;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background: var(--sidebar-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-color);
}

.admin-sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
}

.admin-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-brand-logo,
.admin-brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 14px;
}

.admin-brand-logo {
    object-fit: contain;
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 4px;
}

.admin-brand-mark {
    display: grid;
    place-items: center;
    background: var(--primary-light-color);
    color: var(--primary-color);
    font-weight: 800;
}

.admin-brand-copy {
    min-width: 0;
    display: block;
}

.admin-brand-name {
    display: block;
    color: var(--heading-color);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-brand-meta {
    display: block;
    color: var(--muted-text-color);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.admin-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.admin-nav-group {
    margin-bottom: 12px;
}

.admin-nav-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: transparent;
    color: var(--muted-text-color);
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-nav-group-toggle i {
    font-size: 12px;
}

.admin-nav-group:not(.is-open) .admin-nav-group-toggle i {
    transform: rotate(-90deg);
}

.admin-nav-group:not(.is-open) .admin-nav-group-items {
    display: none;
}

.admin-nav-group-items {
    display: grid;
    gap: 4px;
}

.admin-nav-link {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.admin-nav-link i {
    width: 16px;
    min-width: 16px;
    text-align: center;
    color: var(--muted-text-color);
    font-size: 16px;
    line-height: 1;
}

.admin-nav-link:hover {
    background: var(--surface-muted-color);
    color: var(--heading-color);
}

.admin-nav-link.is-active {
    background: var(--primary-light-color);
    color: var(--primary-color);
    box-shadow: none;
}

.admin-nav-link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background-color: var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.admin-nav-link.is-active i {
    color: var(--primary-color);
}

.admin-sidebar-user {
    margin: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: grid;
    gap: 8px;
}

.admin-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px;
    border-radius: 12px;
}

.admin-sidebar-profile:hover {
    background: var(--surface-muted-color);
}

.admin-sidebar-profile strong {
    display: block;
    color: var(--heading-color);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar-profile small {
    display: block;
    color: var(--muted-text-color);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar-logout {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted-text-color);
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
}

.admin-sidebar-logout:hover {
    background: #FEF2F2;
    color: var(--danger-color);
}

.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: none;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(4px);
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--topbar-height);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--surface-color) 94%, transparent);
    backdrop-filter: blur(18px);
}

.admin-topbar-left,
.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-topbar-actions {
    justify-content: flex-end;
    justify-self: end;
}

.admin-topbar-search {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-muted-color);
    padding: 0 16px;
}

.admin-topbar-search i {
    color: var(--muted-text-color);
    font-size: 16px;
}

.admin-topbar-search input {
    width: 100%;
    min-height: unset !important;
    height: 40px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.admin-language-button,
.admin-icon-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-color);
    color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.admin-language-button {
    font-size: 12px;
    font-weight: 700;
}

.admin-icon-button i {
    font-size: 16px;
}

.admin-icon-button:hover,
.admin-language-button:hover {
    color: var(--primary-color);
    border-color: color-mix(in srgb, var(--primary-color) 42%, var(--border-color));
    transform: translateY(-1px);
}

.admin-profile-button {
    max-width: min(210px, 48vw);
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-color);
    color: var(--text-color);
    padding: 6px 10px;
    box-shadow: var(--shadow-sm);
}

.admin-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--primary-light-color);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
}

.admin-profile-copy {
    min-width: 0;
    display: block;
    text-align: left;
}

.admin-profile-copy strong,
.admin-profile-menu-head strong {
    display: block;
    color: var(--heading-color);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-profile-copy small,
.admin-profile-menu-head span {
    display: block;
    color: var(--muted-text-color);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-profile-menu {
    width: 260px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.admin-profile-menu-head {
    padding: 8px 10px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    border-radius: 10px;
    font-size: 14px;
}

.admin-breadcrumb {
    margin-bottom: 8px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 500;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--muted-text-color);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "·";
    padding: 0 8px;
    color: var(--muted-text-color);
    font-weight: bold;
}

.breadcrumb-item a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-hover-color);
}

.breadcrumb-item.active {
    color: var(--text-color);
}

.dark .breadcrumb-item.active {
    color: var(--heading-color);
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-page-header h1 {
    margin: 0;
    color: var(--heading-color);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.admin-page-header p {
    margin: 6px 0 0;
    color: var(--muted-text-color);
    font-size: 14px;
    max-width: 58rem;
}

.admin-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-card,
main .bg-white,
main .dark\:bg-gray-950 {
    border-color: var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03) !important;
}

.admin-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.admin-card:hover {
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.admin-card-title {
    margin: 0;
    color: var(--heading-color);
    font-size: 16px;
    font-weight: 500;
}

.admin-card-body {
    padding: 24px;
}

.admin-chart-canvas {
    height: 320px;
    min-height: 260px;
}

.admin-chart-canvas canvas {
    width: 100% !important;
    height: 100% !important;
}

.btn-primary,
.admin-btn-primary,
.btn-secondary,
.admin-btn-secondary,
.btn-danger,
.admin-btn-danger,
.btn-success,
.admin-btn-success {
    min-height: 35px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 5px !important;
    padding-inline: 10px !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn-primary,
.admin-btn-primary {
    border: 1px solid var(--primary-color) !important;
    background: var(--primary-color) !important;
    color: #fff !important;
}

.btn-primary:hover,
.admin-btn-primary:hover {
    background: var(--primary-hover-color) !important;
    transform: translateY(-1px);
}

.btn-secondary,
.admin-btn-secondary {
    border: 1px solid var(--border-color) !important;
    background: var(--surface-color) !important;
    color: var(--text-color) !important;
}

.btn-secondary:hover,
.admin-btn-secondary:hover {
    background: var(--surface-muted-color) !important;
}

.btn-danger,
.admin-btn-danger {
    border: 1px solid var(--danger-color) !important;
    background: var(--danger-color) !important;
    color: #fff !important;
}

.btn-success,
.admin-btn-success {
    border: 1px solid var(--success-color) !important;
    background: var(--success-color) !important;
    color: #fff !important;
}

.btn-warning,
.admin-btn-warning {
    border: 1px solid var(--warning-color) !important;
    background: var(--warning-color) !important;
    color: #fff !important;
}

.btn-warning:hover,
.admin-btn-warning:hover {
    background: #D97706 !important;
}

.btn-info,
.admin-btn-info {
    border: 1px solid var(--secondary-color) !important;
    background: var(--secondary-color) !important;
    color: #fff !important;
}

.btn-info:hover,
.admin-btn-info:hover {
    background: var(--secondary-hover-color) !important;
}

button:disabled,
.btn:disabled,
.disabled {
    cursor: not-allowed;
    opacity: .58;
    transform: none !important;
}

.form-label,
label {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="url"],
select,
textarea {
    min-height: 35px !important;
    border: 1px solid #d9dee7 !important;
    border-radius: 5px !important;
    background: #f8fafc !important;
    padding: 0px 10px !important;
    color: #111827 !important;
    font-family: Roboto, system-ui, sans-serif;
    font-size: 14px !important;
    font-weight: 300 !important;
    box-shadow: none !important;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 18%, transparent) !important;
}

.form-text,
.helper-text {
    color: var(--muted-text-color);
    font-size: 12px;
    font-weight: 500;
}

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

.invalid-feedback {
    color: var(--danger-color);
    font-size: 12px;
}

.badge,
.admin-status-badge {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.admin-alert,
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 16px !important;
    border-width: 1px;
    box-shadow: var(--shadow-sm);
}

.admin-dismissible-alert {
    align-items: center;
    justify-content: space-between;
}

.admin-dismissible-alert button {
    border: 0;
    background: transparent;
    color: inherit;
}

.dataTables_wrapper {
    color: var(--text-color);
}

.dataTables_wrapper>div:first-child,
.dataTables_wrapper>div:last-child {
    padding: 16px 20px;
    gap: 12px;
}

.dataTables_wrapper table.dataTable {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.dataTables_wrapper table.dataTable thead th {
    background: var(--surface-muted-color) !important;
    color: var(--muted-text-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    font-weight: 700;
    text-transform: uppercase;
}

.dataTables_wrapper table.dataTable tbody td {
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-color) !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
}

.dataTables_wrapper table.dataTable tbody tr:hover {
    background: color-mix(in srgb, var(--primary-light-color) 58%, transparent) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    border-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_processing {
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-lg);
    color: var(--primary-color) !important;
}

.fade-in {
    animation: fadeIn var(--transition-speed) ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.admin-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 999px;
    animation: adminSpin .7s linear infinite;
}

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

.admin-sidebar-is-collapsed .admin-shell {
    padding-left: var(--sidebar-collapsed-width);
}

.admin-sidebar-is-collapsed .admin-sidebar {
    width: var(--sidebar-collapsed-width);
}

.admin-sidebar-is-collapsed .admin-brand-copy,
.admin-sidebar-is-collapsed .admin-nav-group-toggle span,
.admin-sidebar-is-collapsed .admin-nav-group-toggle i,
.admin-sidebar-is-collapsed .admin-nav-link span,
.admin-sidebar-is-collapsed .admin-sidebar-profile span,
.admin-sidebar-is-collapsed .admin-sidebar-logout span {
    display: none;
}

.admin-sidebar-is-collapsed .admin-sidebar-brand {
    justify-content: center;
    padding-inline: 12px;
}

.admin-sidebar-is-collapsed .admin-nav-link,
.admin-sidebar-is-collapsed .admin-sidebar-logout {
    justify-content: center;
    padding-inline: 0;
}

.admin-sidebar-is-collapsed .admin-nav-group-items {
    display: grid !important;
}

.admin-sidebar-is-collapsed .admin-nav-group-toggle {
    justify-content: center;
    min-height: 6px;
    padding: 6px 0;
}

.admin-sidebar-is-collapsed .admin-sidebar-profile {
    justify-content: center;
}

@media (max-width: 991px) {
    .admin-topbar {
        grid-template-columns: auto 1fr auto;
    }

    .admin-topbar-search {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .admin-shell {
        padding-left: 0;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-speed) ease;
    }

    .admin-sidebar.sidebar-mobile-visible {
        transform: translateX(0);
    }

    .admin-sidebar-overlay:not(.hidden) {
        display: block;
    }

    .admin-main {
        padding: 16px;
    }

    .admin-topbar {
        grid-template-columns: auto 1fr auto;
        padding-inline: 16px;
        gap: 10px;
    }

    .admin-topbar-search {
        display: none;
    }

    .admin-profile-copy,
    .admin-profile-button>.bi-chevron-down,
    .admin-language-button {
        display: none;
    }

    .admin-profile-button {
        width: 44px;
        padding: 6px;
        justify-content: center;
    }

    .admin-page-header {
        flex-direction: column;
    }

    .admin-page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-card-body {
        padding: 18px;
    }

    .admin-footer {
        flex-direction: column;
    }

    .dataTables_wrapper>div:first-child,
    .dataTables_wrapper>div:last-child {
        align-items: stretch !important;
        flex-direction: column !important;
    }
}

/* Shared responsive safeguards for admin content and filter/list surfaces. */
/* Admin SaaS form component system */
.admin-form-label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 600
}

.admin-required {
    color: #ef4444
}

.admin-form-help {
    margin: 7px 0 0;
    color: #667085;
    font-size: 13px
}

.admin-form-control,
.form-control.admin-form-control,
.form-select.admin-form-control {
    width: 100%;
    min-height: 38px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 0px 10px;
    color: #111827;
    font-family: Roboto, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    box-shadow: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease
}

.admin-form-control::placeholder {
    color: #98a2b3
}

.admin-form-control:hover:not(:disabled):not([readonly]) {
    border-color: #b8c1ce;
}

.admin-form-control:focus {
    border-color: var(--primary-color, #2ca58d);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #2ca58d) 20%, transparent);
}

.admin-form-control.is-invalid,
.admin-form-control[aria-invalid=true] {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

.admin-form-control.is-valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}

.admin-form-control:disabled,
.admin-form-control[readonly] {
    border-color: #e2e8f0;
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: .75;
    box-shadow: none;
}

.admin-form-textarea {
    min-height: 120px !important;
    padding: 16px 18px !important;
    resize: vertical
}

.admin-form-select {
    padding-right: 48px !important
}

.admin-multi-select {
    min-height: 130px !important;
    padding-block: 10px !important
}

.admin-search-control {
    position: relative
}

.admin-search-control>i {
    position: absolute;
    left: 12px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #667085;
    font-size: 16px
}

.admin-search-control .admin-form-control {
    padding-left: 36px !important
}

.admin-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

.admin-file-upload {
    display: flex;
    min-height: 60px;
    align-items: center;
    gap: 14px;
    border: 1px dashed #b8c1ce;
    border-radius: 14px;
    background: #f8fafc;
    padding: 16px 18px;
    cursor: pointer;
    transition: .2s ease
}

.admin-file-upload:hover {
    border-color: var(--primary-color);
    background: #fff
}

.admin-file-upload>i {
    color: var(--primary-color);
    font-size: 28px
}

.admin-file-upload span {
    display: flex;
    flex-direction: column
}

.admin-file-upload strong {
    color: #111827;
    font-size: 15px
}

.admin-file-upload small {
    color: #667085;
    font-size: 13px
}

.admin-choice {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 10px
}

.admin-choice .form-check-input {
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1px solid #b8c1ce;
    box-shadow: none
}

.admin-checkbox {
    border-radius: 6px !important
}

.admin-radio {
    border-radius: 50% !important
}

.admin-choice .form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent)
}

.admin-choice .form-check-input:checked {
    border-color: var(--primary-color);
    background-color: var(--primary-color)
}

.admin-choice-label {
    display: flex;
    flex-direction: column;
    color: #344054;
    font-size: 15px;
    font-weight: 500
}

.admin-choice-label small {
    color: #667085;
    font-size: 13px;
    font-weight: 400
}

.admin-switch-wrap {
    grid-template-columns: 46px minmax(0, 1fr)
}

.admin-switch {
    width: 46px !important;
    height: 26px !important;
    border-radius: 999px !important
}

.admin-button {
    min-height: 35px !important;
    border-radius: 5px !important;
    padding-inline: 10px !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease
}

.admin-button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(22, 163, 106, .18) !important
}

.admin-icon-action {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 5px !important
}

.admin-action-button {
    min-height: 32px !important;
    padding-inline: 8px !important
}

.admin-dropdown-menu {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #e4e7ec !important;
    border-radius: 14px !important;
    background: #fff !important;
    padding: 8px !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .14) !important
}

.admin-dropdown-menu .dropdown-item {
    min-height: 44px;
    border-radius: 9px;
    padding: 10px 14px;
    color: #344054
}

.admin-dropdown-menu .dropdown-item:hover,
.admin-dropdown-menu .dropdown-item:focus {
    background: #f1f5f9;
    color: #0f766e
}

.admin-dropdown-menu .dropdown-item.active {
    background: var(--primary-color);
    color: #fff
}

.admin-icon-control {
    position: relative
}

.admin-icon-control>i {
    position: absolute;
    right: 18px;
    bottom: 19px;
    color: #667085;
    pointer-events: none
}

.dark .admin-form-label,
.dark .admin-choice-label {
    color: #e2e8f0
}

.dark .admin-form-control {
    border-color: #344054 !important;
    background: #101828 !important;
    color: #f8fafc !important
}

.dark .admin-form-control:hover,
.dark .admin-form-control:focus {
    background: #182230 !important
}

.dark .admin-form-help,
.dark .admin-choice-label small {
    color: #98a2b3
}

.dark .admin-file-upload {
    border-color: #475467;
    background: #101828
}

.dark .admin-file-upload strong {
    color: #f8fafc
}

.dark .admin-dropdown-menu {
    border-color: #344054 !important;
    background: #101828 !important
}

.dark .admin-dropdown-menu .dropdown-item {
    color: #e2e8f0
}

@media(max-width:639px) {
    .admin-form-control {
        font-size: 16px !important
    }

    .admin-button:not(.admin-icon-action) {
        width: 100%
    }

    .admin-dropdown {
        width: 100%
    }

    .admin-dropdown>.admin-button {
        width: 100%
    }
}

/* Project-wide legacy control bridge: applies the component system to every admin module. */
.admin-main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.dataTables_filter input),
.admin-main select:not(.dataTables_length select),
.admin-main textarea {
    min-height: 35px !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    padding: 0px 10px !important;
    color: #111827 !important;
    font-family: Roboto, system-ui, sans-serif;
    font-size: 14px !important;
    font-weight: 300 !important;
    box-shadow: none !important;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease
}

.admin-main textarea {
    min-height: 120px !important;
    padding: 16px 18px !important;
    resize: vertical
}

.admin-main select {
    padding-right: 48px !important
}

.admin-main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.admin-main select:hover,
.admin-main textarea:hover {
    border-color: #b8c1ce !important;
    background: #fff !important
}

.admin-main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.admin-main select:focus,
.admin-main textarea:focus {
    border-color: var(--primary-color) !important;
    outline: 0 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent) !important
}

.admin-main input[type=file] {
    min-height: 35px !important;
    border: 1px dashed #b8c1ce !important;
    border-radius: 5px !important;
    background: #f8fafc !important;
    padding: 3px 6px !important;
    color: #344054 !important;
    font-size: 14px !important
}

.admin-main input[type=file]::file-selector-button {
    height: 27px;
    margin-right: 12px;
    border: 0;
    border-radius: 3px;
    background: #ccfbf1;
    padding: 0 14px;
    color: #0f766e;
    font-weight: 600
}

.admin-main input[type=checkbox]:not(.sr-only),
.admin-main input[type=radio]:not(.sr-only) {
    width: 22px !important;
    height: 22px !important;
    border: 1px solid #b8c1ce !important;
    box-shadow: none !important
}

.admin-checkbox {
    border-radius: 6px !important
}

.admin-radio {
    border-radius: 50% !important
}

.admin-main input[type=checkbox]:not(.sr-only):checked,
.admin-main input[type=radio]:not(.sr-only):checked {
    border-color: var(--primary-color) !important;
    background-color: var(--primary-color) !important
}

.admin-main .admin-search-enhanced {
    padding-left: 54px !important;
    padding-right: 46px !important
}

.admin-main .admin-search-enhancer-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #667085;
    font-size: 20px;
    pointer-events: none
}

.dark .admin-main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.dark .admin-main select,
.dark .admin-main textarea,
.dark .admin-main input[type=file] {
    border-color: #344054 !important;
    background: #101828 !important;
    color: #f8fafc !important
}

.admin-main .border-red-500,
.admin-main .is-invalid,
.admin-main [aria-invalid=true] {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12) !important
}

.admin-main .is-valid {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .12) !important
}

.admin-main input:disabled,
.admin-main select:disabled,
.admin-main textarea:disabled,
.admin-main input[readonly],
.admin-main textarea[readonly] {
    border-color: #e2e8f0 !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    opacity: .75;
    box-shadow: none !important
}

.admin-search-control:focus-within>i {
    color: var(--primary-color)
}

.admin-settings-tabs {
    overflow: hidden;
}

.admin-settings-tabs-inner {
    padding: 12px;
}

.admin-settings-tabs-nav {
    align-items: center;
    gap: 8px;
}

.admin-settings-tabs .tab-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 9px 14px;
    color: var(--muted-text-color);
    font-size: 14px;
    font-weight: 500;
}

.admin-settings-tabs .tab-button:hover {
    background: var(--surface-muted-color);
    color: var(--heading-color);
}

.admin-settings-tabs .tab-button.is-active {
    background: var(--primary-light-color);
    color: var(--primary-color);
    font-weight: 600;
}



@media (max-width: 1023px) {
    .admin-content-surface {
        max-width: 100%;
        overflow-x: clip;
    }

    .admin-content-surface form.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .admin-content-surface input,
    .admin-content-surface select,
    .admin-content-surface textarea {
        max-width: 100%;
    }
}

@media (max-width: 639px) {
    .admin-content-surface {
        padding-inline: 0;
    }

    .admin-content-surface form.grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .admin-content-surface .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }

    #settingsForm nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #settingsForm .tab-button {
        min-width: 0;
        padding-inline: .5rem;
        text-align: center;
    }

    /* Select2 visual styling bridge to match the 35px height, 6px border-radius, and font-weight 300 specs */
    .select2-container--default .select2-selection--single {
        height: 35px !important;
        border: 1px solid #ced4da !important;
        border-radius: 6px !important;
        background: #ffffff !important;
        box-shadow: none !important;
        transition: border-color .2s ease, background .2s ease, box-shadow .2s ease !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 33px !important;
        padding-left: 10px !important;
        color: #111827 !important;
        font-family: Roboto, system-ui, sans-serif !important;
        font-size: 14px !important;
        font-weight: 300 !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 33px !important;
    }

    .select2-container--default .select2-selection--single:focus,
    .select2-container--default.select2-container--focus .select2-selection--single {
        border-color: var(--primary-color) !important;
        outline: none !important;
        background: #fff !important;
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent) !important;
    }

    /* Dark mode Select2 bridge */
    .dark .select2-container--default .select2-selection--single {
        border-color: #344054 !important;
        background: #101828 !important;
    }

    .dark .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #f8fafc !important;
    }

    /* Custom DataTable Action Dropdown trigger - 32px circular icon button with hover scale effects */
    .dataTables_wrapper table.dataTable tbody td .relative>button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border-radius: 9999px !important;
        border: 1px solid var(--border-color) !important;
        background: var(--surface-color) !important;
        color: var(--text-color) !important;
        transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
    }

    .dataTables_wrapper table.dataTable tbody td .relative>button:hover {
        transform: scale(1.05) translateY(-1px) !important;
        background: var(--surface-muted-color) !important;
        color: var(--heading-color) !important;
        border-color: color-mix(in srgb, var(--primary-color) 42%, var(--border-color)) !important;
    }

    /* Smooth color transitions for light/dark mode toggling */
    body,
    .admin-sidebar,
    .admin-topbar,
    .admin-card,
    .admin-footer,
    .admin-form-control,
    .admin-button,
    .admin-nav-link {
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
    }

    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            scroll-behavior: auto !important;
            transition: none !important;
            animation: none !important;
        }
    }
