/* SCCZ Design System */

:root {
    --primary: #1e3a8a;
    --primary-dark: #172554;
    --accent: #ea580c;
    --accent-dark: #c2410c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 0.5rem;
    --max-width: 1280px;
    --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Typography */
.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

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

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

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

.text-gray {
    color: var(--gray-500);
}

.text-muted {
    color: var(--gray-600);
}

/* Spacing */
.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

/* Layout */
.flex {
    display: flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.flex-1 {
    flex: 1 1 0%;
}

/* Grid columns */
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Header */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-header nav a {
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: color 0.2s, background-color 0.2s;
}

.site-header nav a:hover {
    color: var(--primary);
    background-color: var(--gray-100);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero .btn-accent {
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.2s, transform 0.1s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.card-text {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

/* Section */
.section {
    padding: 4rem 1rem;
}

.section.bg-light {
    background-color: var(--gray-50);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 3rem;
}

/* Footer */
.site-footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 1rem 1.5rem;
}

.site-footer h4 {
    color: var(--white);
    margin: 0 0 1rem;
    font-size: 1rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Tables */
.table-container {
    overflow-x: auto;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.table th,
.table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background-color: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background-color: var(--gray-50);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background-color: var(--white);
    color: var(--gray-800);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: #dcfce7;
    color: var(--success);
}

.badge-danger {
    background-color: #fee2e2;
    color: var(--danger);
}

.badge-warning {
    background-color: #fef3c7;
    color: var(--warning);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-700);
}

.pagination a:hover {
    background-color: var(--gray-100);
}

.pagination .active span {
    background-color: var(--primary);
    color: var(--white);
}

/* Admin sidebar */
.admin-sidebar {
    width: 16rem;
    background-color: var(--primary);
    color: var(--white);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
}

.admin-sidebar a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.admin-sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.admin-main {
    margin-left: 16rem;
    padding: 2rem;
    min-height: 100vh;
    background-color: var(--gray-100);
}

/* Utility */
.block {
    display: block;
}

.w-full {
    width: 100%;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.rounded {
    border-radius: var(--radius);
}

.shadow {
    box-shadow: var(--shadow);
}

.bg-white {
    background-color: var(--white);
}

.bg-light {
    background-color: var(--gray-50);
}

.border {
    border: 1px solid var(--gray-200);
}

.divide-y>*+* {
    border-top: 1px solid var(--gray-200);
}

.capitalize {
    text-transform: capitalize;
}

.text-right {
    text-align: right;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }
}

@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .site-header nav {
        display: none;
    }
}

.admin-app {
    background: #f2f6fa;
    color: #19344f;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.admin-sidebar {
    background: #183f6d;
    box-shadow: none;
    color: #d9e6f4;
    display: flex;
    flex-direction: column;
    height: 100vh;
    left: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 15rem;
    z-index: 20;
}

.admin-brand {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    color: #fff !important;
    display: flex !important;
    font-size: .77rem;
    font-weight: 800;
    gap: .65rem;
    line-height: 1.1;
    min-height: 4.25rem;
    padding: .85rem 1rem !important;
}

.admin-brand:hover {
    background: transparent !important;
}

.admin-brand-mark {
    align-items: center;
    background: #f4ad24;
    border-radius: .35rem;
    color: #fff;
    display: inline-flex;
    font-size: .85rem;
    height: 1.7rem;
    justify-content: center;
    width: 1.7rem;
}

.admin-brand small {
    color: #a8c0da;
    display: block;
    font-size: .58rem;
    font-weight: 500;
    margin-top: .18rem;
}

.admin-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: .8rem .55rem;
}

.admin-nav p {
    color: #83a6c9;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .13em;
    margin: .85rem .5rem .35rem;
    text-transform: uppercase;
}

.admin-nav a {
    align-items: center;
    border-radius: .38rem;
    color: #d5e4f3 !important;
    display: flex !important;
    font-size: .7rem;
    font-weight: 600;
    gap: .65rem;
    margin: .08rem 0;
    min-height: 2rem;
    padding: .45rem .55rem !important;
}

.admin-nav a span {
    color: #a9c5df;
    font-size: .8rem;
    text-align: center;
    width: .95rem;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, .08) !important;
}

.admin-nav a.is-active {
    background: rgba(255, 255, 255, .17) !important;
    color: #fff !important;
}

.admin-nav a.is-active span {
    color: #fff;
}

.admin-sidebar-footer {
    align-items: center;
    background: #15375f;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex: 0 0 auto;
    gap: .55rem;
    min-height: 4rem;
    padding: .65rem .8rem;
}

.admin-user-initial {
    align-items: center;
    background: #d59b2d;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .68rem;
    font-weight: 800;
    height: 1.7rem;
    justify-content: center;
    width: 1.7rem;
}

.admin-sidebar-footer div {
    min-width: 0;
}

.admin-sidebar-footer strong,
.admin-sidebar-footer small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-sidebar-footer strong {
    color: #fff;
    font-size: .63rem;
}

.admin-sidebar-footer small {
    color: #9ab6d2;
    font-size: .55rem;
    margin-top: .15rem;
    text-transform: capitalize;
}

.admin-sidebar-footer form {
    margin-left: auto;
}

.admin-sidebar-footer button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #c4d8eb;
    cursor: pointer;
    display: inline-flex;
    font-size: .65rem;
    gap: .3rem;
    padding: .25rem;
    white-space: nowrap;
}

.admin-sidebar-footer button>span:first-child {
    font-size: 1rem;
}

.admin-main {
    background: #f2f6fa;
    margin-left: 15rem;
    min-height: 100vh;
    padding: 0;
    transition: margin-left .2s ease;
}

.admin-sidebar {
    transition: width .2s ease;
}

.admin-topbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #deebf5;
    display: flex;
    height: 3.55rem;
    justify-content: space-between;
    padding: 0 1.4rem;
}

.admin-topbar-start {
    align-items: center;
    display: flex;
    gap: .8rem;
    min-width: 0;
}

.admin-sidebar-toggle {
    align-items: center;
    background: #f5f9fc;
    border: 1px solid #dce8f2;
    border-radius: .35rem;
    color: #385a78;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: inherit;
    font-size: .65rem;
    font-weight: 700;
    gap: .35rem;
    min-height: 2rem;
    padding: .35rem .55rem;
}

.admin-sidebar-toggle:hover {
    background: #eaf2f8;
    border-color: #c8dbea;
}

.admin-sidebar-toggle>span:first-child {
    font-size: 1rem;
    line-height: .8;
}

.admin-crumb {
    color: #5c738c;
    font-size: .72rem;
    font-weight: 600;
}

.admin-crumb b {
    color: #a9b9c8;
    font-weight: 400;
    margin: 0 .45rem;
}

.admin-view-site {
    border: 1px solid #dce8f2;
    border-radius: .35rem;
    color: #4b6682;
    font-size: .66rem;
    font-weight: 700;
    padding: .45rem .65rem;
}

.admin-content {
    margin: 0 auto;
    max-width: 92rem;
    padding: 1.35rem;
}

.dashboard-welcome {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dashboard-date {
    color: #71859b;
    font-size: .67rem;
    font-weight: 600;
    margin: 0 0 .18rem;
}

.dashboard-welcome h1 {
    color: #173452;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    letter-spacing: -.035em;
    line-height: 1.1;
    margin: 0;
}

.dashboard-welcome h1 span {
    font-size: .9em;
}

.dashboard-welcome>div>p:last-child {
    color: #74889c;
    font-size: .75rem;
    margin: .32rem 0 0;
}

.dashboard-site-link {
    background: #fff;
    border: 1px solid #dbe8f2;
    border-radius: .35rem;
    color: #3f6388;
    font-size: .67rem;
    font-weight: 700;
    padding: .5rem .7rem;
    white-space: nowrap;
}

.dashboard-kpis {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-kpi {
    background: #fff;
    border-left: 3px solid #4186e8;
    border-radius: .5rem;
    box-shadow: 0 2px 8px rgba(29, 67, 104, .03);
    display: grid;
    gap: .3rem;
    min-height: 6.8rem;
    padding: .9rem;
}

.dashboard-kpi-green {
    border-color: #36ba7f;
}

.dashboard-kpi-amber {
    border-color: #f2a52c;
}

.dashboard-kpi-violet {
    border-color: #956ee8;
}

.dashboard-kpi>span,
.dashboard-panel-heading p {
    color: #8296aa;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin: 0;
    text-transform: uppercase;
}

.dashboard-kpi strong {
    color: #19344f;
    font-size: 1.55rem;
    letter-spacing: -.05em;
    line-height: 1;
}

.dashboard-kpi small {
    color: #8194a8;
    font-size: .61rem;
}

.dashboard-panel {
    background: #fff;
    border: 1px solid #e2edf5;
    border-radius: .55rem;
}

.dashboard-actions-panel {
    margin-top: .85rem;
    padding: 1rem;
}

.dashboard-panel-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: .8rem;
}

.dashboard-panel-heading h2 {
    color: #1d3854;
    font-size: .87rem;
    letter-spacing: -.02em;
    margin: .24rem 0 0;
}

.dashboard-panel-heading>a {
    color: #406789;
    font-size: .62rem;
    font-weight: 800;
}

.dashboard-actions {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-actions a {
    align-items: center;
    border: 1px dashed #cddfeb;
    border-radius: .45rem;
    color: #2f4d69;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 5rem;
    padding: .55rem;
    text-align: center;
}

.dashboard-actions a:hover {
    background: #f7fbff;
    border-color: #8cb6de;
}

.dashboard-action-icon {
    align-items: center;
    background: #dceaff;
    border-radius: .4rem;
    color: #3d82df;
    display: inline-flex;
    font-size: .95rem;
    font-weight: 800;
    height: 1.55rem;
    justify-content: center;
    margin-bottom: .38rem;
    width: 1.55rem;
}

.dashboard-action-green {
    background: #d7f6e8;
    color: #32ad73;
}

.dashboard-action-violet {
    background: #eee1ff;
    color: #8e65d2;
}

.dashboard-actions strong {
    font-size: .66rem;
}

.dashboard-actions small {
    color: #8295a8;
    font-size: .55rem;
    margin-top: .18rem;
}

.dashboard-lower-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
    margin-top: .85rem;
}

.dashboard-user-panel,
.dashboard-review-panel {
    min-height: 15rem;
    padding: 1rem;
}

.dashboard-user-list {
    border-top: 1px solid #edf3f8;
}

.dashboard-user-row {
    align-items: center;
    border-bottom: 1px solid #edf3f8;
    color: #294764;
    display: grid;
    gap: .55rem;
    grid-template-columns: 1.45rem 1fr auto;
    min-height: 2.65rem;
}

.dashboard-user-row:hover {
    background: #f8fbfd;
}

.dashboard-user-avatar {
    align-items: center;
    background: #234d7c;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: .58rem;
    font-weight: 800;
    height: 1.35rem;
    justify-content: center;
    width: 1.35rem;
}

.dashboard-user-row strong,
.dashboard-user-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-user-row strong {
    font-size: .65rem;
}

.dashboard-user-row small {
    color: #8093a5;
    font-size: .55rem;
    margin-top: .08rem;
}

.dashboard-user-row em {
    background: #eff5fa;
    border-radius: 999px;
    color: #6e849b;
    font-size: .52rem;
    font-style: normal;
    padding: .22rem .35rem;
    text-transform: capitalize;
}

.dashboard-empty {
    color: #8094a8;
    font-size: .72rem;
    text-align: center;
}

.dashboard-review-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 10rem;
    padding: .5rem;
    text-align: center;
}

.dashboard-review-icon {
    align-items: center;
    background: #e4f7ec;
    border-radius: 50%;
    color: #38ad75;
    display: inline-flex;
    font-weight: 900;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.dashboard-review-content h3 {
    color: #284762;
    font-size: .82rem;
    margin: .65rem 0 .22rem;
}

.dashboard-review-content p {
    color: #8294a6;
    font-size: .65rem;
    line-height: 1.45;
    margin: 0;
    max-width: 16rem;
}

.dashboard-review-button {
    background: #f3f8fc;
    border-radius: .35rem;
    color: #406789;
    font-size: .62rem;
    font-weight: 800;
    margin-top: .8rem;
    padding: .45rem .6rem;
}

@media (max-width: 1023px) {
    .dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) {
    .admin-sidebar-is-collapsed .admin-sidebar {
        width: 4rem;
    }

    .admin-sidebar-is-collapsed .admin-main {
        margin-left: 4rem;
    }

    .admin-sidebar-is-collapsed .admin-brand {
        justify-content: center;
        padding-inline: .5rem !important;
    }

    .admin-sidebar-is-collapsed .admin-brand>span:last-child,
    .admin-sidebar-is-collapsed .admin-nav p,
    .admin-sidebar-is-collapsed .admin-sidebar-footer div {
        display: none;
    }

    .admin-sidebar-is-collapsed .admin-nav {
        padding-inline: .45rem;
    }

    .admin-sidebar-is-collapsed .admin-nav a {
        font-size: 0;
        gap: 0;
        justify-content: center;
        padding-inline: .4rem !important;
    }

    .admin-sidebar-is-collapsed .admin-nav a span {
        font-size: .9rem;
        width: 1.2rem;
    }

    .admin-sidebar-is-collapsed .admin-sidebar-footer {
        justify-content: center;
        padding-inline: .35rem;
    }

    .admin-sidebar-is-collapsed .admin-user-initial {
        display: none;
    }

    .admin-sidebar-is-collapsed .admin-sidebar-footer form {
        margin-left: 0;
    }

    .admin-sidebar-is-collapsed .admin-signout-label {
        display: none;
    }
}

@media (max-width: 640px) {
    .admin-sidebar {
        height: auto;
        position: relative;
        width: 100%;
    }

    .admin-nav {
        max-height: 19rem;
        overflow-y: auto;
        padding-bottom: 1rem;
    }

    .admin-sidebar-footer {
        position: relative;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-topbar {
        padding: 0 1rem;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-sidebar-is-collapsed .admin-nav,
    .admin-sidebar-is-collapsed .admin-sidebar-footer {
        display: none;
    }

    .admin-sidebar-toggle-label {
        display: none;
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-kpis {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .admin-content {
        padding: 1.5rem;
    }

    .dashboard-kpis {
        gap: .9rem;
    }

    .dashboard-lower-grid {
        gap: .9rem;
    }
}

@media (min-width: 1280px) {
    .admin-content {
        padding: 1.6rem 2rem;
    }

    .dashboard-kpi {
        min-height: 7.2rem;
    }

    .dashboard-user-panel,
    .dashboard-review-panel {
        min-height: 16rem;
    }
}

@media (min-width: 1536px) {
    .admin-content {
        max-width: 104rem;
    }

    .dashboard-lower-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    }
}

.department-editor-form {
    max-width: 100%;
}

.department-editor-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.department-editor-title {
    align-items: center;
    display: flex;
    gap: .65rem;
}

.department-editor-title>span {
    align-items: center;
    background: #dbe9f7;
    border-radius: .35rem;
    color: #315a83;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 900;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.department-editor-title h1 {
    color: #173452;
    font-size: 1rem;
    letter-spacing: -.025em;
    margin: 0;
}

.department-editor-title p {
    color: #7e91a5;
    font-size: .62rem;
    margin: .15rem 0 0;
}

.department-editor-actions,
.department-editor-footer>div {
    align-items: center;
    display: flex;
    gap: .55rem;
}

.department-editor-cancel {
    background: #fff;
    border: 1px solid #d9e6f0;
    border-radius: .35rem;
    color: #607990;
    font-size: .67rem;
    font-weight: 700;
    padding: .5rem .7rem;
}

.department-editor-save {
    background: #183f6d;
    border: 0;
    border-radius: .35rem;
    color: #fff;
    cursor: pointer;
    font-size: .67rem;
    font-weight: 800;
    padding: .55rem .8rem;
}

.department-editor-alert {
    background: #fff2ef;
    border: 1px solid #ffd4ca;
    border-radius: .4rem;
    color: #a94837;
    font-size: .72rem;
    margin-bottom: .8rem;
    padding: .75rem .85rem;
}

.department-editor-card {
    background: #fff;
    border: 1px solid #e0ebf4;
    border-radius: .55rem;
    overflow: hidden;
}

.department-editor-tabs {
    border-bottom: 1px solid #e4edf5;
    display: flex;
    gap: .15rem;
    overflow-x: auto;
    padding: 0 .55rem;
    scrollbar-width: thin;
}

.department-editor-tabs button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #647d94;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: .62rem;
    font-weight: 700;
    padding: .8rem .55rem .68rem;
    white-space: nowrap;
}

.department-editor-tabs button:hover,
.department-editor-tabs button.is-active {
    border-bottom-color: #2e73bd;
    color: #214d7c;
}

.department-editor-body {
    padding: 1.1rem;
}

.department-editor-panel {
    display: none;
}

.department-editor-panel.is-active {
    display: block;
}

.department-editor-section-title {
    margin-bottom: .9rem;
}

.department-editor-section-title p {
    color: #7990a6;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin: 0 0 .25rem;
    text-transform: uppercase;
}

.department-editor-section-title h2 {
    color: #284663;
    font-size: .94rem;
    letter-spacing: -.025em;
    margin: 0;
}

.department-editor-section-title small {
    color: #7f92a5;
    display: inline-block;
    font-size: .65rem;
    margin-top: .35rem;
}

.department-editor-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: .8rem;
}

.department-editor-field {
    display: grid;
    gap: .38rem;
}

.department-editor-field>span {
    color: #3c5871;
    font-size: .66rem;
    font-weight: 700;
}

.department-editor-field>span small {
    color: #879bad;
    font-size: .55rem;
    font-weight: 500;
    margin-left: .25rem;
}

.department-editor-field input,
.department-editor-field textarea {
    background: #fff;
    border: 1px solid #ceddea;
    border-radius: .38rem;
    color: #294761;
    font: inherit;
    font-size: .71rem;
    line-height: 1.45;
    outline: 0;
    padding: .58rem .65rem;
    resize: vertical;
    width: 100%;
}

.department-editor-field input {
    min-height: 2.25rem;
}

.department-editor-field input:focus,
.department-editor-field textarea:focus {
    border-color: #4389d0;
    box-shadow: 0 0 0 3px rgba(67, 137, 208, .12);
}

.department-editor-field-wide {
    margin-top: .8rem;
}

.department-editor-panel>.department-editor-field-wide:first-of-type {
    margin-top: 0;
}

.department-editor-toggle {
    align-items: center;
    color: #506d86;
    display: inline-flex;
    font-size: .68rem;
    gap: .5rem;
    margin-top: 1rem;
}

.department-editor-toggle input {
    accent-color: #235b94;
}

.department-editor-related-list {
    border-top: 1px solid #e3edf5;
}

.department-editor-related-list a {
    align-items: center;
    border-bottom: 1px solid #e7eef5;
    color: #294761;
    display: grid;
    gap: .65rem;
    grid-template-columns: 1.8rem 1fr auto;
    padding: .75rem 0;
}

.department-editor-related-list a>span {
    align-items: center;
    background: #e8f2fb;
    border-radius: .35rem;
    color: #3e78af;
    display: inline-flex;
    font-size: .65rem;
    font-weight: 800;
    height: 1.65rem;
    justify-content: center;
    width: 1.65rem;
}

.department-editor-related-list strong,
.department-editor-related-list small {
    display: block;
}

.department-editor-related-list strong {
    font-size: .72rem;
}

.department-editor-related-list small {
    color: #8195a7;
    font-size: .61rem;
    margin-top: .15rem;
}

.department-editor-related-list b {
    color: #41698f;
}

.department-editor-related-list p {
    color: #8195a7;
    font-size: .72rem;
}

.department-editor-footer {
    align-items: center;
    background: #fbfdff;
    border-top: 1px solid #e3edf5;
    display: flex;
    justify-content: space-between;
    padding: .75rem 1.1rem;
}

.department-editor-footer>a {
    color: #4c6f8f;
    font-size: .64rem;
    font-weight: 700;
}

@media (max-width: 640px) {

    .department-editor-header,
    .department-editor-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .department-editor-actions {
        width: 100%;
    }

    .department-editor-actions>* {
        flex: 1;
        text-align: center;
    }

    .department-editor-grid {
        grid-template-columns: 1fr;
    }

    .department-editor-footer>div {
        width: 100%;
    }

    .department-editor-footer>div>* {
        flex: 1;
        text-align: center;
    }
}

.programme-editor-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.programme-editor-title {
    align-items: center;
    display: flex;
    gap: .65rem;
}

.programme-editor-title>span {
    align-items: center;
    background: #dbe9f7;
    border-radius: .35rem;
    color: #315a83;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 900;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.programme-editor-title h1 {
    color: #173452;
    font-size: 1rem;
    letter-spacing: -.025em;
    margin: 0;
}

.programme-editor-title p {
    color: #7e91a5;
    font-size: .62rem;
    margin: .15rem 0 0;
}

.programme-editor-actions,
.programme-editor-footer>div {
    align-items: center;
    display: flex;
    gap: .55rem;
}

.programme-editor-cancel {
    background: #fff;
    border: 1px solid #d9e6f0;
    border-radius: .35rem;
    color: #607990;
    font-size: .67rem;
    font-weight: 700;
    padding: .5rem .7rem;
}

.programme-editor-save {
    background: #183f6d;
    border: 0;
    border-radius: .35rem;
    color: #fff;
    cursor: pointer;
    font-size: .67rem;
    font-weight: 800;
    padding: .55rem .8rem;
}

.programme-editor-alert {
    background: #fff2ef;
    border: 1px solid #ffd4ca;
    border-radius: .4rem;
    color: #a94837;
    font-size: .72rem;
    margin-bottom: .8rem;
    padding: .75rem .85rem;
}

.programme-editor-card {
    background: #fff;
    border: 1px solid #e0ebf4;
    border-radius: .55rem;
    overflow: hidden;
}

.programme-editor-tabs {
    border-bottom: 1px solid #e4edf5;
    display: flex;
    gap: .15rem;
    overflow-x: auto;
    padding: 0 .55rem;
    scrollbar-width: thin;
}

.programme-editor-tabs button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #647d94;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: .62rem;
    font-weight: 700;
    padding: .8rem .55rem .68rem;
    white-space: nowrap;
}

.programme-editor-tabs button:hover,
.programme-editor-tabs button.is-active {
    border-bottom-color: #2e73bd;
    color: #214d7c;
}

.programme-editor-body {
    padding: 1.1rem;
}

.programme-editor-panel {
    display: none;
}

.programme-editor-panel.is-active {
    display: block;
}

.programme-editor-section-title {
    margin-bottom: .9rem;
}

.programme-editor-section-title p {
    color: #7990a6;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin: 0 0 .25rem;
    text-transform: uppercase;
}

.programme-editor-section-title h2 {
    color: #284663;
    font-size: .94rem;
    letter-spacing: -.025em;
    margin: 0;
}

.programme-editor-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.programme-editor-field {
    display: grid;
    gap: .38rem;
    margin-top: .8rem;
}

.programme-editor-grid .programme-editor-field {
    margin-top: 0;
}

.programme-editor-field>span {
    color: #3c5871;
    font-size: .66rem;
    font-weight: 700;
}

.programme-editor-field b {
    color: #df5e47;
}

.programme-editor-field input,
.programme-editor-field select,
.programme-editor-field textarea {
    background: #fff;
    border: 1px solid #ceddea;
    border-radius: .38rem;
    color: #294761;
    font: inherit;
    font-size: .71rem;
    line-height: 1.45;
    outline: 0;
    padding: .58rem .65rem;
    resize: vertical;
    width: 100%;
}

.programme-editor-field input,
.programme-editor-field select {
    min-height: 2.25rem;
}

.programme-editor-field input:focus,
.programme-editor-field select:focus,
.programme-editor-field textarea:focus {
    border-color: #4389d0;
    box-shadow: 0 0 0 3px rgba(67, 137, 208, .12);
}

.programme-editor-toggle {
    align-items: center;
    color: #506d86;
    display: inline-flex;
    font-size: .68rem;
    gap: .5rem;
    margin-top: 1rem;
}

.programme-editor-toggle input {
    accent-color: #235b94;
}

.programme-editor-footer {
    align-items: center;
    background: #fbfdff;
    border-top: 1px solid #e3edf5;
    display: flex;
    justify-content: space-between;
    padding: .75rem 1.1rem;
}

.programme-editor-footer>a {
    color: #4c6f8f;
    font-size: .64rem;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .programme-editor-grid-wide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .programme-editor-header,
    .programme-editor-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .programme-editor-actions,
    .programme-editor-footer>div {
        width: 100%;
    }

    .programme-editor-actions>*,
    .programme-editor-footer>div>* {
        flex: 1;
        text-align: center;
    }

    .programme-editor-grid {
        grid-template-columns: 1fr;
    }
}

.faculty-editor-header,
.faculty-editor-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.faculty-editor-header {
    margin-bottom: 1rem;
}

.faculty-editor-header h1 {
    color: #173452;
    font-size: 1rem;
    margin: 0;
}

.faculty-editor-header p {
    color: #7e91a5;
    font-size: .62rem;
    margin: .15rem 0 0;
}

.faculty-editor-header>div:last-child,
.faculty-editor-footer>div {
    display: flex;
    gap: .55rem;
}

.faculty-editor-header a,
.faculty-editor-footer a {
    background: #fff;
    border: 1px solid #d9e6f0;
    border-radius: .35rem;
    color: #607990;
    font-size: .67rem;
    font-weight: 700;
    padding: .5rem .7rem;
}

.faculty-editor-header button,
.faculty-editor-footer button {
    background: #183f6d;
    border: 0;
    border-radius: .35rem;
    color: #fff;
    cursor: pointer;
    font-size: .67rem;
    font-weight: 800;
    padding: .55rem .8rem;
}

.faculty-editor-alert {
    background: #fff2ef;
    border: 1px solid #ffd4ca;
    border-radius: .4rem;
    color: #a94837;
    font-size: .72rem;
    margin-bottom: .8rem;
    padding: .75rem .85rem;
}

.faculty-editor-card {
    background: #fff;
    border: 1px solid #e0ebf4;
    border-radius: .55rem;
    overflow: hidden;
}

.faculty-editor-tabs {
    border-bottom: 1px solid #e4edf5;
    display: flex;
    overflow-x: auto;
    padding: 0 .55rem;
}

.faculty-editor-tabs button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #647d94;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: .62rem;
    font-weight: 700;
    padding: .8rem .55rem .68rem;
    white-space: nowrap;
}

.faculty-editor-tabs button.is-active {
    border-bottom-color: #2e73bd;
    color: #214d7c;
}

.faculty-editor-body {
    padding: 1.1rem;
}

.faculty-editor-panel {
    display: none;
}

.faculty-editor-panel.is-active {
    display: block;
}

.faculty-editor-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faculty-editor-panel label {
    color: #3c5871;
    display: grid;
    font-size: .66rem;
    font-weight: 700;
    gap: .38rem;
    margin-top: .8rem;
}

.faculty-editor-grid label {
    margin-top: 0;
}

.faculty-editor-panel input,
.faculty-editor-panel select,
.faculty-editor-panel textarea {
    border: 1px solid #ceddea;
    border-radius: .38rem;
    color: #294761;
    font: inherit;
    font-size: .71rem;
    min-height: 2.25rem;
    outline: 0;
    padding: .58rem .65rem;
    resize: vertical;
    width: 100%;
}

.faculty-editor-panel textarea {
    min-height: auto;
}

.faculty-editor-panel input:focus,
.faculty-editor-panel select:focus,
.faculty-editor-panel textarea:focus {
    border-color: #4389d0;
    box-shadow: 0 0 0 3px rgba(67, 137, 208, .12);
}

.faculty-editor-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: .9rem;
}

.faculty-editor-checks label {
    align-items: center;
    display: inline-flex;
    gap: .45rem;
    margin: 0;
}

.faculty-editor-checks input {
    accent-color: #235b94;
    min-height: auto;
    width: auto;
}

.faculty-editor-panel h2 {
    color: #284663;
    font-size: .94rem;
    margin: 0;
}

.faculty-editor-footer {
    background: #fbfdff;
    border-top: 1px solid #e3edf5;
    padding: .75rem 1.1rem;
}

.faculty-editor-footer>a {
    background: transparent;
    border: 0;
    color: #4c6f8f;
    padding: 0;
}

@media (min-width: 1024px) {
    .faculty-editor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.faculty-editor-grid label:first-child {
    grid-column: span 2;
}

@media (max-width: 640px) {

    .faculty-editor-header,
    .faculty-editor-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .faculty-editor-header>div:last-child,
    .faculty-editor-footer>div {
        width: 100%;
    }

    .faculty-editor-header>div:last-child>*,
    .faculty-editor-footer>div>* {
        flex: 1;
        text-align: center;
    }

    .faculty-editor-grid {
        grid-template-columns: 1fr;
    }
}