@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo/static/Cairo-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo/static/Cairo-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo/static/Cairo-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo/static/Cairo-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo/static/Cairo-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo/static/Cairo-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo/static/Cairo-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo/static/Cairo-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root,
html[data-theme="light"] {
    --font-family-ar: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
    --font-family-en: "Segoe UI", Tahoma, Arial, sans-serif;
    --font-family-base: var(--font-family-en);
    --font-family-heading: var(--font-family-en);
    --font-family-sans-serif: var(--font-family-base);
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
        monospace;
    --font-weight-thin: 100;
    --font-weight-extralight: 200;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --space-3xs: 0.25rem;
    --space-2xs: 0.375rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.25rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 28px;
    --radius-pill: 999px;
    --color-indigo: #6610f2;
    --color-purple: #6f42c1;
    --color-pink: #e83e8c;
    --color-orange: #fd7e14;
    --color-teal: #20c997;
    --color-primary: #164988;
    --color-primary-rgb: 22, 73, 136;
    --color-primary-strong: #123b70;
    --color-primary-darker: #0f315c;
    --color-secondary: #b6ca3a;
    --color-secondary-rgb: 182, 202, 58;
    --color-secondary-strong: #93a52d;
    --color-background: #f4f8fc;
    --color-background-rgb: 244, 248, 252;
    --color-background-alt: #eef4fb;
    --color-background-alt-rgb: 238, 244, 251;
    --color-surface: #ffffff;
    --color-surface-rgb: 255, 255, 255;
    --color-surface-muted: #f8fbff;
    --color-surface-muted-rgb: 248, 251, 255;
    --color-border: #dbe5f0;
    --color-border-rgb: 219, 229, 240;
    --color-border-strong: #c7d5e4;
    --color-border-strong-rgb: 199, 213, 228;
    --color-text: #122033;
    --color-text-rgb: 18, 32, 51;
    --color-text-muted: #64748b;
    --color-text-muted-rgb: 100, 116, 139;
    --color-text-muted-soft: #94a3b8;
    --color-heading: #122033;
    --color-heading-rgb: 18, 32, 51;
    --color-link: #164988;
    --color-ink: #343a40;
    --color-ink-rgb: 52, 58, 64;
    --color-white: #ffffff;
    --color-white-rgb: 255, 255, 255;
    --color-black: #000000;
    --color-black-rgb: 0, 0, 0;
    --color-success: #10b981;
    --color-success-rgb: 16, 185, 129;
    --color-success-strong: #0f8f65;
    --color-success-darker: #0b5b42;
    --color-success-bright: #34d399;
    --color-success-soft: #d9f7ee;
    --color-success-soft-alt: #ebfbf5;
    --color-warning: #f59e0b;
    --color-warning-rgb: 245, 158, 11;
    --color-warning-strong: #c77e08;
    --color-warning-darker: #7a4b03;
    --color-warning-bright: #fbbf24;
    --color-warning-soft: #fef0cc;
    --color-warning-soft-alt: #fff6df;
    --color-danger: #ef4444;
    --color-danger-rgb: 239, 68, 68;
    --color-danger-strong: #cf2e2e;
    --color-danger-dark: #b91c1c;
    --color-danger-darker: #7f1d1d;
    --color-danger-bright: #f87171;
    --color-danger-soft: #fde2e2;
    --color-danger-soft-alt: #fef0f0;
    --color-info: #0ea5e9;
    --color-info-rgb: 14, 165, 233;
    --color-info-strong: #0284c7;
    --color-info-dark: #0369a1;
    --color-info-darker: #0c5460;
    --color-info-bright: #38bdf8;
    --color-info-soft: #dff5ff;
    --color-info-soft-alt: #eff9fe;
    --color-shadow-rgb: 15, 23, 42;
    --shadow-xs: 0 8px 18px rgba(var(--color-shadow-rgb), 0.05);
    --shadow-sm: 0 12px 28px rgba(var(--color-shadow-rgb), 0.08);
    --shadow-md: 0 16px 40px rgba(var(--color-shadow-rgb), 0.12);
    --shadow-lg: 0 24px 60px rgba(var(--color-shadow-rgb), 0.16);
    --shadow-xl: 0 30px 70px rgba(var(--color-shadow-rgb), 0.2);
    --color-shadow: 0 16px 40px rgba(var(--color-shadow-rgb), 0.08);
    --color-shadow-strong: 0 24px 60px rgba(var(--color-shadow-rgb), 0.14);
    --sidebar-bg: var(--color-surface);
    --sidebar-text: var(--color-text-muted);
    --sidebar-hover: rgba(var(--color-secondary-rgb), 0.16);
    --sidebar-active: rgba(var(--color-secondary-rgb), 0.22);
    --topbar-bg: rgba(var(--color-surface-rgb), 0.94);
    --input-bg: var(--color-surface);
    --input-border: var(--color-border);
    --card-bg: var(--color-surface);
    --badge-bg: var(--color-background-alt);
    --badge-text: var(--color-text-muted);
    --dropdown-bg: var(--color-surface);
    --modal-bg: var(--color-surface);
    --scrollbar-thumb: rgba(var(--color-black-rgb), 0.4);
    --legacy-primary-base: var(--color-primary);
    --legacy-primary-rgb: var(--color-primary-rgb);
    --legacy-primary-dark: var(--color-primary-strong);
    --legacy-primary-darker: var(--color-primary-darker);
    --legacy-primary-deep: #0c2950;
    --legacy-primary-soft: #d7e5f6;
    --legacy-primary-soft-alt: #c6d9f0;
    --legacy-primary-soft-strong: #b6cde9;
    --legacy-primary-soft-contrast: #a5c0e2;
    --legacy-primary-soft-contrast-alt: #94b4db;
    --legacy-primary-bright: #3a73b8;
    --brand-primary: var(--color-primary);
    --brand-primary-dark: var(--color-primary-strong);
    --brand-primary-soft: rgba(var(--color-primary-rgb), 0.08);
    --brand-primary-soft-strong: rgba(var(--color-primary-rgb), 0.14);
    --brand-accent: var(--color-secondary);
    --brand-accent-dark: var(--color-secondary-strong);
    --brand-accent-soft: rgba(var(--color-secondary-rgb), 0.16);
    --brand-accent-soft-strong: rgba(var(--color-secondary-rgb), 0.24);
    --shell-surface: var(--color-background);
    --shell-surface-elevated: var(--color-surface);
    --shell-border: var(--color-border);
    --shell-border-strong: var(--color-border-strong);
    --shell-text: var(--color-text);
    --shell-muted: var(--color-text-muted);
    --shell-shadow: var(--shadow-sm);
    --shell-shadow-hover: var(--shadow-md);
    --control-height-sm: 2.5rem;
    --control-height-md: 2.875rem;
    --control-height-lg: 3.125rem;
    --page-gutter-inline: clamp(1rem, 2vw, 1.75rem);
    --page-section-gap: var(--space-xl);
}

html[data-theme="dark"] {
    --color-indigo: #7c3aed;
    --color-purple: #8b5cf6;
    --color-pink: #ec4899;
    --color-orange: #fb923c;
    --color-teal: #2dd4bf;
    --color-background: #0f1724;
    --color-background-rgb: 15, 23, 36;
    --color-background-alt: #131d2d;
    --color-background-alt-rgb: 19, 29, 45;
    --color-surface: #162235;
    --color-surface-rgb: 22, 34, 53;
    --color-surface-muted: #1c2a40;
    --color-surface-muted-rgb: 28, 42, 64;
    --color-border: #25364d;
    --color-border-rgb: 37, 54, 77;
    --color-border-strong: #324762;
    --color-border-strong-rgb: 50, 71, 98;
    --color-text: #e6edf5;
    --color-text-rgb: 230, 237, 245;
    --color-text-muted: #97a9bd;
    --color-text-muted-rgb: 151, 169, 189;
    --color-text-muted-soft: #70839a;
    --color-heading: #f7fafc;
    --color-heading-rgb: 247, 250, 252;
    --color-link: #8eb7ef;
    --color-ink: #e1e8f0;
    --color-ink-rgb: 225, 232, 240;
    --color-shadow-rgb: 0, 0, 0;
    --color-shadow: 0 16px 40px rgba(var(--color-shadow-rgb), 0.28);
    --color-shadow-strong: 0 24px 60px rgba(var(--color-shadow-rgb), 0.42);
    --sidebar-bg: #111b2b;
    --sidebar-text: #c3d1e0;
    --sidebar-hover: rgba(var(--color-secondary-rgb), 0.18);
    --sidebar-active: rgba(var(--color-secondary-rgb), 0.26);
    --topbar-bg: rgba(15, 23, 36, 0.92);
    --input-bg: #101a2b;
    --input-border: #334964;
    --card-bg: #162235;
    --badge-bg: #223149;
    --badge-text: #d7e4f1;
    --dropdown-bg: #182538;
    --modal-bg: #182538;
    --scrollbar-thumb: rgba(var(--color-white-rgb), 0.35);
    --legacy-primary-base: #78a4df;
    --legacy-primary-rgb: 120, 164, 223;
    --legacy-primary-dark: #5f8dca;
    --legacy-primary-darker: #3b5c89;
    --legacy-primary-deep: #263b58;
    --legacy-primary-soft: #162235;
    --legacy-primary-soft-alt: #1a2b42;
    --legacy-primary-soft-strong: #213550;
    --legacy-primary-soft-contrast: #325476;
    --legacy-primary-soft-contrast-alt: #416489;
    --legacy-primary-bright: #8eb7ef;
    --shell-shadow: var(--shadow-md);
    --shell-shadow-hover: var(--shadow-lg);
}

html[data-theme="dark"] .sidebar-brand-link .brand-logo-wrap,
html[data-theme="dark"] .login-box__brand .brand-logo-wrap {
    background: rgba(var(--color-white-rgb), 0.94);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

html[lang^="ar"],
html[dir="rtl"] {
    --font-family-base: var(--font-family-ar);
    --font-family-heading: var(--font-family-ar);
    --font-family-sans-serif: var(--font-family-ar);
}

html[lang^="en"],
html[dir="ltr"] {
    --font-family-base: var(--font-family-en);
    --font-family-heading: var(--font-family-en);
    --font-family-sans-serif: var(--font-family-en);
}

html,
body {
    font-family: var(--font-family-base);
}

body,
button,
input,
optgroup,
select,
textarea,
.btn,
.badge,
.alert,
.breadcrumb,
.card,
.card-header,
.card-body,
.card-footer,
.dropdown-menu,
.dropdown-item,
.modal-content,
.modal-title,
.table,
.table th,
.table td,
.sidebar-left,
.sidebar-left .nav-link,
.sidebar-left .item-text,
.topnav,
.topnav__menu,
.login-shell,
.login-box,
.shell-page-header,
.content-card,
.quick-link-item,
.tooltip,
.tooltip *,
.popover,
.popover *,
.gauge text,
.notyf__toast,
.notyf__toast * {
    font-family: var(--font-family-base) !important;
}

code,
pre,
kbd,
samp {
    font-family: var(--font-family-monospace) !important;
}

.fe,
.fe::before {
    font-family: "feather" !important;
}

body {
    background-color: var(--shell-surface);
    color: var(--shell-text);
    font-weight: var(--font-weight-regular);
    line-height: 1.65;
}

html[data-theme="dark"] body {
    background-color: var(--color-background);
    color: var(--color-text);
}

body,
.main-content,
.wrapper,
.login-shell {
    background-color: var(--shell-surface);
    color: var(--shell-text);
}

body {
    line-height: 1.55;
}

.wrapper {
    min-height: 100vh;
}

.main-content {
    min-height: calc(100vh - 4.75rem);
}

.main-content > .container-fluid {
    padding: var(--page-section-gap) var(--page-gutter-inline) calc(var(--page-section-gap) + var(--space-xl));
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
.modal-title {
    font-family: var(--font-family-heading) !important;
    color: var(--color-heading);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

html[lang^="ar"] h1,
html[lang^="ar"] h2,
html[lang^="ar"] h3,
html[lang^="ar"] h4,
html[lang^="ar"] h5,
html[lang^="ar"] h6,
html[lang^="ar"] strong,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] strong {
    letter-spacing: 0;
}

a {
    color: var(--color-link);
}

a:hover {
    color: var(--brand-primary-dark);
}

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

.text-dark,
.text-body {
    color: var(--shell-text) !important;
}

.text-accent {
    color: var(--brand-accent-dark) !important;
}

.text-success {
    color: var(--color-success-strong) !important;
}

.text-warning {
    color: var(--color-warning-strong) !important;
}

.text-danger {
    color: var(--color-danger-dark) !important;
}

.text-info {
    color: var(--color-info-dark) !important;
}

.text-muted {
    color: var(--shell-muted) !important;
}

.bg-brand-soft {
    background: var(--brand-primary-soft) !important;
}

.bg-accent-light,
.bg-accent-soft {
    background: var(--brand-accent-soft) !important;
}

.bg-primary-light {
    background: rgba(var(--color-primary-rgb), 0.14) !important;
}

.bg-success-light {
    background: rgba(var(--color-success-rgb), 0.14) !important;
}

.bg-warning-light {
    background: rgba(var(--color-warning-rgb), 0.14) !important;
}

.bg-danger-light {
    background: rgba(var(--color-danger-rgb), 0.14) !important;
}

.bg-info-light {
    background: rgba(var(--color-info-rgb), 0.14) !important;
}

.dashboard-card {
    border: 1px solid color-mix(in srgb, var(--color-primary) 6%, transparent);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: var(--shell-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.dashboard-card .card-header {
    padding: var(--space-lg) var(--space-xl);
    background: transparent;
    border-bottom-color: var(--shell-border);
}

.dashboard-card .card-body {
    padding: var(--space-xl);
}

.dashboard-card .card-title,
.page-title,
.shell-page-header__title {
    color: var(--shell-text);
    font-weight: var(--font-weight-semibold);
}

.page-title,
.shell-page-header__title,
.login-panel h1,
.login-box h2,
.quick-link-title,
.card-title {
    font-family: var(--font-family-heading) !important;
}

.sidebar-section-title {
    font-size: 0.78rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
}

html[lang^="ar"] .sidebar-section-title,
html[dir="rtl"] .sidebar-section-title {
    letter-spacing: 0;
}

.sidebar-left .navbar-nav .nav-link,
.sidebar-left .navbar-nav .nav-link .item-text,
.topnav__chip,
.topnav__icon-button,
.topnav__profile-toggle,
.topnav__menu .dropdown-item,
.btn {
    font-weight: var(--font-weight-medium);
}

.login-panel p,
.login-box p,
.login-panel-list li,
.content-card__description,
.shell-banner__content {
    line-height: 1.7;
}

.table th {
    font-size: 0.82rem;
    font-weight: var(--font-weight-semibold);
    color: var(--shell-muted);
}

.table td {
    font-size: 0.92rem;
}

.form-control,
.custom-select,
.login-label,
.custom-control-label {
    font-weight: var(--font-weight-regular);
}

.form-control::placeholder,
textarea::placeholder,
input::placeholder {
    font-weight: var(--font-weight-regular);
    color: var(--shell-muted);
}

.status-badge,
.badge {
    font-size: 0.76rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
}

html[lang^="ar"] .status-badge,
html[lang^="ar"] .badge,
html[dir="rtl"] .status-badge,
html[dir="rtl"] .badge {
    letter-spacing: 0;
}

.card,
.modal-content,
.dropdown-menu,
.list-group-item {
    background-color: var(--color-surface);
    border-color: var(--color-border);
}

.card,
.table-responsive,
.dropdown-menu,
.modal-content,
.alert {
    border-radius: var(--radius-lg);
}

.card-header,
.card-footer {
    background-color: transparent;
    border-color: var(--color-border);
}

.alert {
    padding: var(--space-md) var(--space-lg);
    border-width: 1px;
    box-shadow: none;
}

.alert-info {
    background-color: rgba(var(--color-info-rgb), 0.12);
    border-color: rgba(var(--color-info-rgb), 0.2);
    color: var(--color-info-dark);
}

.alert-warning {
    background-color: rgba(var(--color-warning-rgb), 0.12);
    border-color: rgba(var(--color-warning-rgb), 0.2);
    color: var(--color-warning-strong);
}

.alert-success {
    background-color: rgba(var(--color-success-rgb), 0.12);
    border-color: rgba(var(--color-success-rgb), 0.2);
    color: var(--color-success-strong);
}

.alert-danger {
    background-color: rgba(var(--color-danger-rgb), 0.12);
    border-color: rgba(var(--color-danger-rgb), 0.2);
    color: var(--color-danger-dark);
}

.inline-icon-gap {
    margin-inline-end: 0.5rem;
}

.badge-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    overflow-wrap: anywhere;
}

.badge-cloud .status-badge {
    white-space: normal;
    text-align: center;
    max-width: 100%;
}

.shell-form-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.shell-form-actions .btn {
    min-width: 9rem;
}

.btn {
    min-height: var(--control-height-md);
    padding: calc(var(--space-sm) - 1px) var(--space-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    border-width: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
        color 0.2s ease;
}

.btn-lg {
    min-height: var(--control-height-lg);
    padding-inline: var(--space-xl);
    border-radius: var(--radius-lg);
}

.btn-sm {
    min-height: var(--control-height-sm);
    padding: calc(var(--space-xs) - 1px) var(--space-md);
    border-radius: var(--radius-sm);
}

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

.btn:focus,
.btn.focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.18) !important;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.68;
    transform: none;
    box-shadow: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border-color: var(--brand-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-xs);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--color-primary-darker) 100%);
    border-color: var(--brand-primary-dark);
    box-shadow: var(--shadow-sm) !important;
}

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: rgba(var(--color-primary-rgb), 0.28);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active {
    color: var(--brand-primary);
    border-color: rgba(var(--color-primary-rgb), 0.45);
    background: var(--brand-primary-soft);
    box-shadow: none;
}

.btn-secondary {
    color: color-mix(in srgb, var(--brand-accent-dark) 78%, var(--color-black));
    border-color: rgba(var(--color-secondary-rgb), 0.3);
    background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 0.96) 0%, rgba(var(--color-secondary-rgb), 0.8) 100%);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:not(:disabled):not(.disabled):active {
    color: color-mix(in srgb, var(--brand-accent-dark) 78%, var(--color-black));
    border-color: rgba(var(--color-secondary-rgb), 0.42);
    background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 1) 0%, rgba(var(--color-secondary-rgb), 0.88) 100%);
}

.btn-light {
    color: var(--shell-text);
    border-color: var(--shell-border);
    background: var(--color-surface);
}

.btn-light:hover,
.btn-light:focus,
.btn-light:not(:disabled):not(.disabled):active {
    background: var(--color-surface-muted);
    border-color: var(--shell-border-strong);
}

.btn-ghost {
    color: var(--brand-primary);
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.btn-ghost:hover,
.btn-ghost:focus,
.btn-ghost:not(:disabled):not(.disabled):active {
    color: var(--brand-primary-dark);
    background: var(--brand-primary-soft);
    border-color: transparent;
}

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

.form-control,
.custom-select,
select.form-control,
textarea.form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--color-text);
    min-height: var(--control-height-md);
    padding: 0.6875rem var(--space-md);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.form-control::placeholder,
.custom-select::placeholder,
textarea.form-control::placeholder {
    color: var(--color-text-muted-soft);
}

textarea.form-control {
    min-height: auto;
}

.form-control:focus,
.custom-select:focus,
textarea.form-control:focus {
    background-color: var(--input-bg);
    border-color: rgba(var(--color-primary-rgb), 0.38);
    color: var(--color-text);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.18);
}

.form-control:disabled,
.custom-select:disabled,
textarea.form-control:disabled,
.form-control[readonly] {
    background-color: var(--color-surface-muted);
    color: var(--shell-muted);
}

.custom-control-label,
.form-label {
    color: var(--color-heading);
}

.form-label {
    display: inline-block;
    margin-bottom: var(--space-xs);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
}

.table,
.table td,
.table th {
    color: var(--color-text);
}

.table thead th {
    border-bottom-color: var(--color-border);
}

.table td,
.table th {
    border-top-color: var(--color-border);
}

.table-responsive {
    border: 1px solid var(--shell-border);
    background: var(--card-bg);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.02);
}

.table-responsive > .table {
    margin-bottom: 0;
}

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

.dropdown-menu {
    background-color: var(--dropdown-bg);
    border-color: var(--color-border);
    color: var(--color-text);
    padding: var(--space-xs);
    box-shadow: var(--shadow-lg);
}

.dropdown-item,
.dropdown-item-text {
    color: var(--color-text);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--color-background-alt);
    color: var(--color-text);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: rgba(var(--color-primary-rgb), 0.18);
    color: var(--color-heading);
}

.modal-content {
    background-color: var(--modal-bg);
    border-color: var(--color-border);
    color: var(--color-text);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header,
.modal-footer {
    border-color: var(--color-border);
    padding: var(--space-lg) var(--space-xl);
}

.modal-body {
    padding: var(--space-lg) var(--space-xl);
}

.modal-header .close {
    color: var(--color-text-muted);
    text-shadow: none;
}

.alert-light {
    background-color: var(--color-background-alt);
    border-color: var(--color-border);
    color: var(--color-text);
}

.preview-pill {
    min-height: calc(var(--control-height-sm) - 0.125rem);
    padding-inline: var(--space-md);
    border: 1px solid rgba(var(--color-primary-rgb), 0.12);
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
}

.nav-placeholder-tag {
    border: 1px solid rgba(var(--color-secondary-rgb), 0.3);
    background: var(--brand-accent-soft);
    color: var(--brand-accent-dark);
}

.brand-lockup {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    max-width: 100%;
}

.brand-lockup--sm,
.brand-lockup--md {
    gap: 0;
}

.brand-lockup--with-copy {
    gap: 0.55rem;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
}

.brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.brand-logo--sm {
    width: min(100%, 168px);
}

.brand-logo--md {
    width: min(100%, 208px);
}

.brand-logo--lg {
    width: min(100%, 304px);
}

.brand-copy {
    display: block;
    line-height: 1.3;
}

.brand-copy span {
    display: block;
    color: var(--shell-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    max-width: 22rem;
}

.topnav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: 4.75rem;
    background: var(--topbar-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 6%, transparent);
    position: relative;
    z-index: 1040;
    overflow: visible;
    padding-inline: var(--page-gutter-inline);
}

.topnav__toggle {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xs);
}

.topnav__toggle:hover,
.topnav__toggle:focus {
    color: var(--brand-primary-dark);
    background: var(--brand-primary-soft);
}

.topnav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: 2.75rem;
    flex-wrap: nowrap;
    margin-inline-start: auto;
    position: relative;
    z-index: 1041;
}

.topnav__chip {
    display: flex;
    align-items: center;
}

.topnav__icon-button,
.topnav__profile-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.35rem var(--space-sm);
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    background: var(--color-surface);
    color: var(--shell-muted) !important;
    box-shadow: var(--shadow-xs);
}

.topnav__icon-button:hover,
.topnav__icon-button:focus,
.topnav__profile-toggle:hover,
.topnav__profile-toggle:focus,
.topnav__profile-dropdown.show .topnav__profile-toggle {
    background: var(--brand-primary-soft);
    border-color: rgba(var(--color-primary-rgb), 0.18);
    color: var(--brand-primary) !important;
    text-decoration: none;
}

.topnav__profile-dropdown,
.topnav__profile-dropdown.show {
    position: relative;
    z-index: 1080;
}

.topnav__profile-toggle::after {
    margin-inline-start: 0.55rem;
    color: currentColor;
}

.topnav__menu {
    min-width: 18rem;
    margin-top: var(--space-sm);
    padding: var(--space-xs);
    border: 1px solid var(--shell-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1090;
}

.topnav__menu .dropdown-item,
.topnav__menu .dropdown-item-text {
    white-space: normal;
    padding: var(--space-sm) calc(var(--space-md) - 0.05rem);
    border-radius: var(--radius-md);
}

.topnav__menu .dropdown-item:hover,
.topnav__menu .dropdown-item:focus {
    background: var(--brand-primary-soft);
    color: var(--shell-text);
}

.topnav__menu .dropdown-divider {
    border-top-color: var(--shell-border);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: var(--color-white);
    font-weight: 800;
    font-size: 0.82rem;
}

.sidebar-left {
    background: var(--shell-surface-elevated) !important;
    border-color: var(--shell-border) !important;
    box-shadow: var(--shadow-xs);
}

.sidebar-left .navbar-brand {
    padding-inline: 0.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-brand-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sidebar-brand-link .brand-lockup {
    width: 100%;
    align-items: center;
}

.sidebar-brand-link .brand-logo-wrap,
.login-box__brand .brand-logo-wrap {
    border-radius: var(--radius-lg);
}

.sidebar-brand-link .brand-logo--sm {
    width: min(100%, 182px);
}

.sidebar-left .nav-heading {
    padding-inline: var(--space-md);
}

.sidebar-left .navbar-nav > .nav-item {
    margin-bottom: var(--space-2xs);
}

.sidebar-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--shell-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sidebar-nav__text {
    margin-inline-start: var(--space-sm);
}

.sidebar-nav__submenu {
    padding-inline-start: var(--space-md);
    margin-top: var(--space-2xs);
}

.sidebar-nav__icon {
    color: var(--color-text-muted-soft) !important;
    transition: color 0.2s ease;
}

.sidebar-left .navbar-nav .nav-link {
    min-height: 3rem;
    padding: 0.8rem var(--space-md);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    color: var(--shell-muted) !important;
}

.sidebar-left .navbar-nav .nav-link .item-text {
    color: var(--shell-text);
}

.sidebar-left .navbar-nav .nav-link.dropdown-toggle::after {
    color: var(--color-text-muted-soft);
    transition: color 0.2s ease;
}

.sidebar-left .navbar-nav .nav-link:hover,
.sidebar-left .navbar-nav .nav-link:focus,
.sidebar-left .navbar-nav .nav-link.active,
.sidebar-left .navbar-nav .nav-item.active > .nav-link {
    color: var(--brand-accent-dark) !important;
    background: var(--brand-accent-soft) !important;
    box-shadow: inset 0 0 0 1px rgba(var(--color-secondary-rgb), 0.22);
}

.sidebar-left .navbar-nav .nav-link:hover i,
.sidebar-left .navbar-nav .nav-link:focus i,
.sidebar-left .navbar-nav .nav-link.active i,
.sidebar-left .navbar-nav .nav-item.active > .nav-link i {
    color: var(--brand-accent-dark) !important;
}

.sidebar-left .navbar-nav .nav-link:hover .item-text,
.sidebar-left .navbar-nav .nav-link:focus .item-text,
.sidebar-left .navbar-nav .nav-link.active .item-text,
.sidebar-left .navbar-nav .nav-item.active > .nav-link .item-text,
.sidebar-left .navbar-nav .nav-link:hover.dropdown-toggle::after,
.sidebar-left .navbar-nav .nav-link:focus.dropdown-toggle::after,
.sidebar-left .navbar-nav .nav-link.active.dropdown-toggle::after,
.sidebar-left .navbar-nav .nav-item.active > .nav-link.dropdown-toggle::after {
    color: var(--brand-accent-dark) !important;
}

.sidebar-left .navbar-nav .nav-item.active > .nav-link {
    font-weight: 700;
}

.sidebar-left .navbar-nav > .nav-item.active::after {
    background-color: var(--brand-accent) !important;
    width: 3px !important;
    border-radius: 999px;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: 0.2rem;
    background: color-mix(in srgb, var(--topbar-bg) 88%, transparent);
    border: 1px solid rgba(var(--color-primary-rgb), 0.08);
    border-radius: var(--radius-pill);
    min-height: 2.75rem;
    box-shadow: var(--shadow-xs);
}

.language-switcher--compact .language-switcher__label {
    display: none;
}

.language-switcher__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: calc(var(--space-xs) - 0.05rem) calc(var(--space-sm) - 0.05rem);
    min-height: 2.25rem;
    border-radius: var(--radius-pill);
    color: var(--shell-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.language-switcher__item:hover {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    text-decoration: none;
}

.language-switcher__item.is-active {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-xs);
}

.shell-page-header {
    margin-bottom: var(--space-xl);
}

.shell-page-header__row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.shell-page-header__copy {
    flex: 1 1 22rem;
    min-width: 0;
}

.shell-page-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 0 1 auto;
    min-width: 0;
    margin-inline-start: auto;
}

.shell-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: var(--space-xs);
}

.shell-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--shell-muted);
}

.shell-banner {
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    border-inline-start: 4px solid var(--brand-primary);
    background: var(--card-bg);
    color: var(--shell-text);
    border-radius: var(--radius-md);
}

.shell-banner__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
}

.shell-banner__content {
    flex: 1 1 auto;
    min-width: 0;
}

.shell-banner__title {
    display: block;
    margin-bottom: 0.25rem;
}

.shell-banner__meta {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    border-radius: var(--radius-pill);
    padding: 0.35rem var(--space-sm);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    line-height: 1.1;
    white-space: nowrap;
}

.status-badge--brand {
    background: var(--brand-primary);
    color: var(--color-white);
}

.status-badge--accent {
    background: var(--brand-accent);
    color: color-mix(in srgb, var(--brand-accent-dark) 72%, var(--color-black));
}

.status-badge--soft {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    border-color: rgba(var(--color-primary-rgb), 0.12);
}

.status-badge--neutral,
.status-badge--muted,
.status-badge--light {
    background: var(--badge-bg);
    color: var(--badge-text);
    border-color: color-mix(in srgb, var(--color-text-muted) 12%, transparent);
}

.status-badge--success {
    background: rgba(var(--color-success-rgb), 0.12);
    color: var(--color-success-strong);
    border-color: rgba(var(--color-success-rgb), 0.2);
}

.status-badge--warning {
    background: rgba(var(--color-warning-rgb), 0.12);
    color: var(--color-warning-strong);
    border-color: rgba(var(--color-warning-rgb), 0.2);
}

.status-badge--danger {
    background: rgba(var(--color-danger-rgb), 0.12);
    color: var(--color-danger-dark);
    border-color: rgba(var(--color-danger-rgb), 0.2);
}

.status-badge--info {
    background: rgba(var(--color-info-rgb), 0.12);
    color: var(--color-info-dark);
    border-color: rgba(var(--color-info-rgb), 0.2);
}

.content-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.content-card__copy {
    flex: 1 1 22rem;
    min-width: 0;
}

.content-card__meta {
    display: block;
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
}

.content-card__description {
    margin-bottom: 0;
    color: var(--shell-muted);
    font-size: 0.85rem;
}

.stat-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.stat-icon,
.quick-action-icon,
.quick-link-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 2.05rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--shell-text);
}

.stat-icon-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: var(--color-white);
}

.stat-icon-accent {
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
    color: color-mix(in srgb, var(--brand-accent-dark) 72%, var(--color-black));
}

.stat-icon-info {
    background: linear-gradient(135deg, var(--color-info-bright) 0%, var(--color-info) 100%);
    color: var(--color-white);
}

.stat-icon-warning {
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-strong) 100%);
    color: var(--color-white);
}

.action-card__body {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.quick-action-card {
    cursor: pointer;
}

.quick-action-card:hover,
.stat-card:hover {
    box-shadow: var(--shell-shadow-hover);
    transform: translateY(-3px);
}

.action-card__copy {
    min-width: 0;
}

.action-card__title {
    color: var(--shell-text);
}

.action-card__description {
    margin-bottom: var(--space-sm);
    color: var(--shell-muted);
    font-size: 0.85rem;
}

.quick-action-icon,
.quick-link-icon {
    border-radius: var(--radius-md);
}

.quick-link-item {
    display: flex;
    align-items: center;
    padding: var(--space-md) calc(var(--space-md) + 0.1rem);
    border: 1px solid var(--shell-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    background: var(--card-bg);
}

.quick-link-item:hover {
    border-color: rgba(var(--color-primary-rgb), 0.18);
    box-shadow: var(--shadow-xs);
    text-decoration: none;
}

.quick-link-content {
    flex: 1;
    min-width: 0;
    margin-inline: var(--space-sm);
}

.quick-link-title {
    font-weight: 700;
    color: var(--shell-text);
}

.quick-link-count {
    font-size: 0.82rem;
    color: var(--shell-muted);
}

.quick-link-arrow {
    color: var(--shell-muted);
}

.info-panel__body {
    display: grid;
    gap: var(--space-lg);
}

.dashboard-table th,
.dashboard-table td {
    padding: 0.95rem var(--space-lg);
    vertical-align: middle;
}

.dashboard-table th {
    border-top: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--shell-muted);
}

.dashboard-table tbody tr:hover {
    background: color-mix(in srgb, var(--color-background-alt) 82%, transparent);
}

.freelancer-contracts-panel__installments-cell {
    padding: var(--space-md) var(--space-lg) var(--space-lg) !important;
    background: transparent;
}

.freelancer-contracts-panel__installments-wrap {
    padding: var(--space-md);
    border: 1px solid rgba(var(--color-border-rgb), 0.82);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--color-surface-muted) 88%, transparent);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.02);
}

.freelancer-contracts-panel__installments-title {
    color: var(--color-heading);
}

.freelancer-contracts-panel__installments-table-wrap {
    border-radius: calc(var(--radius-lg) - 0.25rem);
}

.freelancer-contracts-panel__installments-table {
    margin-bottom: 0;
}

.freelancer-contracts-panel__installments-table thead th {
    border-top: 0;
}

.freelancer-contracts-panel__installments-table tbody tr:hover {
    background: color-mix(in srgb, var(--color-surface) 72%, transparent);
}

.freelancer-contracts-panel__mark-paid-form {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.freelancer-contracts-panel__mark-paid-form .form-control,
.freelancer-contracts-panel__mark-paid-form .btn {
    margin: 0 !important;
}

.freelancer-contracts-panel__mark-paid-form .form-control {
    min-width: 9rem;
}

html[dir="rtl"] .freelancer-contracts-panel__mark-paid-form {
    justify-content: flex-start;
}

@media (max-width: 767.98px) {
    .freelancer-contracts-panel__installments-cell {
        padding-inline: var(--space-sm) !important;
    }

    .freelancer-contracts-panel__installments-wrap {
        padding: var(--space-sm);
    }

    .freelancer-contracts-panel__mark-paid-form {
        justify-content: stretch;
    }

    .freelancer-contracts-panel__mark-paid-form .form-control,
    .freelancer-contracts-panel__mark-paid-form .btn {
        width: 100%;
    }
}

.empty-state {
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
}

.empty-state__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: 1.5rem;
}

.empty-state__title {
    font-weight: 800;
    color: var(--shell-text);
}

.empty-state__description {
    color: var(--shell-muted);
    margin-bottom: 0;
}

.empty-state.border.rounded {
    border-color: var(--shell-border) !important;
    border-radius: var(--radius-lg) !important;
    background: color-mix(in srgb, var(--color-surface-muted) 60%, transparent);
}

.shell-modal__body {
    color: var(--shell-text);
}

.login-shell {
    min-height: 100vh;
    padding-inline: 0 !important;
    overflow: hidden;
}

.login-shell__row {
    min-height: 100vh;
    margin: 0;
}

.login-shell__hero-col,
.login-shell__content-col {
    padding: 0;
}

.login-shell__locale {
    position: relative;
    z-index: 3;
    padding: var(--space-md) var(--space-md) 0;
}

.login-panel {
    padding: clamp(2.9rem, 4.5vw, 4.5rem) clamp(2.4rem, 4vw, 4rem);
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.4rem, 2.7vh, 2rem);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(160deg, rgba(var(--color-primary-rgb), 0.92) 0%, rgba(var(--color-primary-rgb), 0.82) 58%, rgba(var(--color-secondary-rgb), 0.46) 100%);
    color: var(--color-white);
    border-radius: 0;
}

.login-panel::before,
.login-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-panel::before {
    inset: -2rem;
    background-image: url("../../bg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.08);
    filter: blur(12px) saturate(0.9);
    opacity: 0.45;
}

.login-panel::after {
    background:
        radial-gradient(circle at top left, rgba(var(--color-white-rgb), 0.14), transparent 32%),
        linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.24) 0%, rgba(var(--color-primary-rgb), 0.58) 52%, rgba(var(--color-primary-rgb), 0.72) 100%);
}

.login-panel > * {
    position: relative;
    z-index: 1;
}

.login-panel__media {
    display: flex;
    align-items: center;
}

.login-panel__logo-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 25.5rem);
    padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1.5rem, 2.5vw, 2.1rem);
    background: rgba(var(--color-white-rgb), 0.95);
    border: 1px solid rgba(var(--color-white-rgb), 0.62);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.login-panel__brand {
    margin-bottom: 0;
}

.login-panel__logo-card .brand-lockup {
    width: 100%;
    align-items: center;
}

.login-panel__logo-card .brand-logo-wrap {
    justify-content: center;
    width: 100%;
}

.login-panel__logo-card .brand-logo--lg {
    width: min(100%, 290px);
}

.login-panel__content {
    width: 100%;
    max-width: 31rem;
}

.login-panel h1 {
    color: var(--color-white);
    width: 100%;
    font-size: clamp(1.9rem, 2.1vw, 2.55rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.login-panel p,
.login-panel li {
    color: rgba(var(--color-white-rgb), 0.92);
}

.login-panel p {
    max-width: 29rem;
}

.login-panel-list {
    margin: 0;
    display: grid;
    gap: 0.6rem;
    max-width: 31rem;
}

.login-panel .brand-copy span {
    color: var(--color-white);
}

.login-shell__form-col {
    max-width: 42rem;
    padding-inline: 0.75rem;
}

.login-shell__content-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 3vw, 3rem);
}

.login-box {
    background: color-mix(in srgb, var(--color-surface) 96%, transparent);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(var(--color-primary-rgb), 0.09);
    width: 100%;
    max-width: 38.5rem;
    margin-inline: auto;
    padding: 1.4rem 1.85rem 1.55rem;
}

.login-box__brand {
    flex: 1 1 auto;
    min-width: 0;
}

.login-box__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: 0.9rem;
}

.login-box h2 {
    margin-bottom: 0.35rem !important;
    font-size: 1.38rem;
}

.login-box > p.text-muted {
    margin-bottom: 0.95rem !important;
    max-width: 33rem;
}

.login-box__banner {
    margin-bottom: 0.95rem;
}

.login-box__banner.shell-banner {
    padding: 0.95rem 1.1rem;
    border-radius: var(--radius-md);
}

.login-box__banner .shell-banner__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.9rem;
}

.login-box__banner .shell-banner__title {
    margin-bottom: 0.2rem;
}

.login-box__banner .shell-banner__content {
    max-width: none;
}

.login-box__banner .shell-banner__meta {
    justify-content: flex-end;
}

.login-box__form {
    display: grid;
    gap: var(--space-sm);
}

.login-box__form .form-group {
    margin-bottom: 0;
}

.login-box__form .form-control-lg {
    min-height: 3.05rem;
    height: auto;
    padding: 0.78rem 0.95rem;
    border-radius: 14px;
    font-size: 0.98rem;
}

.login-box__meta {
    gap: var(--space-sm);
    margin-bottom: 0;
}

.login-box__actions {
    display: grid;
    gap: var(--space-xs);
}

.login-box__actions .btn {
    margin: 0 !important;
    min-height: 3.05rem;
    padding-block: 0.85rem;
}

.login-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.3rem;
}

.login-box .custom-control-label,
.login-box__meta .small {
    font-size: 0.84rem;
}

.login-helper {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--brand-accent-soft);
    color: var(--brand-accent-dark);
    font-size: 0.72rem;
    font-weight: 700;
}

.vertical .main-content,
.vertical.hover .main-content,
.narrow.open .main-content {
    overflow: visible;
}

@media (max-width: 991.98px) {
    .shell-page-header__row,
    .shell-banner__row,
    .login-box__top,
    .content-card__header {
        flex-direction: column;
        align-items: stretch;
    }

    .topnav {
        align-items: flex-start;
        padding-block: var(--space-sm);
    }

    .topnav__actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .shell-page-header__actions {
        width: 100%;
    }

    .shell-page-header__actions .btn {
        width: 100%;
    }

    .login-box {
        margin: 1rem 0 1.5rem;
        padding: 1.3rem 1.15rem 1.35rem;
    }

    .login-shell__content-col {
        min-height: auto;
        padding: 1rem;
    }

    .login-panel__logo-card {
        width: 100%;
        border-radius: 24px;
    }

    .login-box__banner .shell-banner__row {
        grid-template-columns: 1fr;
    }

    .login-box__banner .shell-banner__meta {
        justify-content: flex-start;
    }
}

@media (min-width: 992px) {
    .login-shell {
        position: relative;
        padding: 0 !important;
    }

    .login-shell__form-col {
        max-width: 32rem;
        display: flex;
        justify-content: center;
    }

    .login-box {
        width: min(100%, 31rem);
        max-width: 31rem;
        min-height: 31rem;
        aspect-ratio: 1 / 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 0.85rem;
        padding: 1.55rem 1.75rem;
    }

    .login-box--forgot-square {
        width: min(100%, 33rem);
        max-width: 33rem;
        min-height: 33rem;
        aspect-ratio: 1 / 1;
        justify-content: flex-start;
        gap: 0.7rem;
        overflow: hidden;
    }

    .login-box--forgot-square h2 {
        font-size: clamp(1.45rem, 1.25vw, 1.8rem);
        line-height: 1.1;
        margin-bottom: 0.25rem !important;
    }

    .login-box--forgot-square > p.text-muted {
        margin-bottom: 0.65rem !important;
    }

    .login-box--forgot-square .login-box__banner {
        margin-bottom: 0.6rem;
    }

    .login-box--forgot-square .login-box__banner.shell-banner {
        padding: 0.75rem 0.9rem;
    }

    .login-box--forgot-square .login-box__form {
        flex: 1 1 auto;
        justify-content: flex-start;
        gap: 0.6rem;
    }

    .login-box--forgot-square .login-box__actions {
        margin-top: auto;
    }

    .login-box--forgot-square .login-box__actions .btn {
        min-height: 2.9rem;
        padding-block: 0.65rem;
    }

    .login-box h2 {
        font-size: clamp(1.55rem, 1.35vw, 1.95rem);
        line-height: 1.15;
    }

    .login-box__form {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .login-shell__locale {
        position: absolute;
        inset-inline-end: clamp(1.25rem, 2vw, 2rem);
        top: 1.25rem;
        z-index: 3;
        padding: 0 !important;
    }

    .login-shell__row {
        min-height: 100vh;
    }
}
