:root {
    font-family:
        Inter,
        Segoe UI,
        Arial,
        sans-serif;
    color: #193347;
    background: #f5f8fb;
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select {
    font: inherit;
}
button {
    cursor: pointer;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.brand small {
    display: block;
    margin-top: 2px;
    color: #92a9b9;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.brand_mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: white;
    background: linear-gradient(135deg, #32cfbb, #0e858e);
    box-shadow: 0 6px 14px #053e492b;
    font-size: 22px;
}
.eyebrow {
    color: #12aaad;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 2px;
}
.login_layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 46%) 1fr;
}
.login_intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px clamp(28px, 5vw, 82px);
    color: #fff;
    background:
        linear-gradient(140deg, #09283bdb, #0b656fcc),
        url('../images/background.jpg') center/cover;
}
.brand_light small {
    color: #bfe7e8;
}
.intro_copy {
    max-width: 530px;
}
.intro_copy .eyebrow {
    color: #77e8d7;
}
.intro_copy h1 {
    font-size: clamp(38px, 4.3vw, 67px);
    line-height: 1.08;
    letter-spacing: -2.5px;
    margin: 14px 0 20px;
}
.intro_copy p:last-child {
    font-size: 18px;
    line-height: 1.65;
    color: #d0e5e7;
}
.intro_footer {
    color: #c4dee2;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.login_panel {
    display: grid;
    place-items: center;
    padding: 32px;
    background: radial-gradient(circle at 90% 8%, #e2f7f5, transparent 32%), #f7fafc;
}
.login_card {
    width: min(100%, 410px);
    padding: 24px;
}
.badge {
    display: inline-block;
    background: #e0f6f3;
    color: #087e85;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 700;
}
.login_heading h2 {
    font-size: 37px;
    letter-spacing: -1.5px;
    margin: 18px 0 6px;
}
.login_heading p {
    color: #708493;
    margin: 0 0 32px;
    line-height: 1.55;
}
.field {
    margin: 0 0 18px;
}
.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}
.field input {
    width: 100%;
    height: 48px;
    background: #fff;
    border: 1px solid #d4e0e8;
    border-radius: 10px;
    padding: 0 14px;
    outline: none;
}
.field input:focus,
.topbar select:focus {
    border-color: #0cabb0;
    box-shadow: 0 0 0 3px #00b6ac24;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #5a7080;
    font-size: 13px;
    margin: 4px 0 24px;
}
.checkbox input {
    accent-color: #0d9297;
}
.primary_button {
    width: 100%;
    height: 50px;
    background: #0c818b;
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-weight: 750;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 20px #0c818b30;
}
.primary_button:hover {
    background: #076d79;
}
.primary_button:disabled {
    opacity: 0.6;
    cursor: wait;
}
.form_error {
    padding: 11px 13px;
    background: #fff0ee;
    border: 1px solid #ffd1ca;
    color: #b12e27;
    border-radius: 8px;
    font-size: 13px;
}
.security_note {
    text-align: center;
    color: #94a6b3;
    font-size: 12px;
    margin: 21px 0 0;
}
.app_shell {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: 100vh;
}
.sidebar {
    background: #092b3c;
    color: #d8e8ef;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.sidebar .brand {
    padding: 26px 22px;
    border-bottom: 1px solid #ffffff17;
}
.sidebar_scroll {
    padding: 18px 12px;
    overflow: auto;
    flex: 1;
}
.nav_caption {
    padding: 6px 12px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7096a7;
    font-weight: 800;
}
.nav_link,
.nav_group a,
.nav_group summary {
    display: block;
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 13px;
}
.nav_link.active,
.nav_group a:hover,
.nav_group summary:hover {
    background: #ffffff18;
    color: #fff;
}
.nav_group {
    margin-top: 3px;
}
.nav_group summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}
.nav_group summary::-webkit-details-marker {
    display: none;
}
.nav_group summary:after {
    content: '⌄';
    float: right;
    color: #78b1b9;
}
.nav_group a {
    margin-left: 11px;
    color: #b3c9d2;
    padding: 8px 12px;
}
.sidebar_footer {
    padding: 18px 24px;
    border-top: 1px solid #ffffff17;
    color: #83a5b3;
    font-size: 11px;
}
.workspace {
    min-width: 0;
}
.topbar {
    height: 72px;
    background: #fff;
    border-bottom: 1px solid #e4ebef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 3vw, 44px);
    gap: 16px;
}
.breadcrumb {
    font-size: 13px;
    color: #8a9eab;
}
.topbar_actions {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
}
.topbar_actions label {
    color: #8296a5;
}
.topbar select {
    padding: 7px 10px;
    border: 1px solid #d8e4e9;
    border-radius: 8px;
    background: #fff;
    color: #263f50;
}
.user_pill {
    border-radius: 999px;
    background: #e6f5f4;
    color: #0b7d83;
    padding: 8px 12px;
    font-weight: 750;
}
.logout_button {
    border: 0;
    background: transparent;
    color: #526d7b;
    font-size: 12px;
    font-weight: 700;
}
.logout_button:hover {
    color: #0c818b;
}
.menu_button {
    display: none;
    background: transparent;
    border: 0;
    color: #193347;
    font-size: 22px;
}
.dashboard {
    max-width: 1400px;
    margin: auto;
    padding: clamp(24px, 3.4vw, 48px);
}
.page_heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}
.page_heading h1 {
    font-size: clamp(25px, 3vw, 37px);
    letter-spacing: -1.3px;
    margin: 5px 0 9px;
}
.page_heading p:last-child {
    color: #708796;
    margin: 0;
    font-size: 14px;
}
.today {
    color: #728896;
    font-size: 12px;
    white-space: nowrap;
}
.hero_panel {
    min-height: 234px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(115deg, #0a6e79, #0e9c9e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(27px, 4vw, 51px);
    box-shadow: 0 15px 35px #0b879323;
}
.hero_panel > div:first-child {
    max-width: 570px;
}
.hero_kicker {
    color: #afece6;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}
.hero_panel h2 {
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 12px 0;
}
.hero_panel p {
    color: #d2f0ef;
    line-height: 1.5;
    margin: 0;
}
.hero_pattern {
    font-size: 210px;
    line-height: 1;
    font-weight: 900;
    color: #ffffff13;
    transform: rotate(-10deg);
}
.section_heading {
    font-size: 17px;
    margin: 35px 0 18px;
}
.quick_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.quick_card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 175px;
    padding: 21px;
    border: 1px solid #e5edf1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px #123b4b08;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}
.quick_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px #123b4b17;
}
.card_icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: #e2f6f3;
    border-radius: 10px;
    color: #0a8991;
    font-weight: 800;
    margin-bottom: 22px;
}
.quick_card strong {
    font-size: 15px;
}
.quick_card small {
    font-size: 12px;
    color: #78909f;
    margin-top: 5px;
}
.card_arrow {
    position: absolute;
    right: 21px;
    top: 25px;
    color: #7faeb2;
    font-size: 19px;
}
.dashboard_footer {
    border-top: 1px solid #e0eaee;
    margin-top: 37px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: #8499a5;
    font-size: 12px;
}
.dashboard_footer a {
    color: #0a818a;
    font-weight: 700;
}
html[dir='rtl'] .sidebar {
    order: 2;
}
html[dir='rtl'] .app_shell {
    grid-template-columns: minmax(0, 1fr) 252px;
}
html[dir='rtl'] .card_arrow {
    right: auto;
    left: 21px;
}
html[dir='rtl'] .nav_group summary:after {
    float: left;
}
@media (max-width: 1050px) {
    .quick_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .topbar_actions label {
        display: none;
    }
}
@media (max-width: 760px) {
    .login_layout {
        grid-template-columns: 1fr;
    }
    .login_intro {
        min-height: 230px;
        padding: 25px;
    }
    .intro_copy h1 {
        font-size: 30px;
    }
    .intro_copy p:last-child,
    .intro_footer {
        display: none;
    }
    .login_panel {
        padding: 20px;
    }
    .app_shell,
    html[dir='rtl'] .app_shell {
        display: block;
    }
    .sidebar {
        position: fixed;
        z-index: 4;
        top: 0;
        bottom: 0;
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.2s;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    html[dir='rtl'] .sidebar {
        right: 0;
        transform: translateX(100%);
    }
    html[dir='rtl'] .sidebar.open {
        transform: translateX(0);
    }
    .menu_button {
        display: block;
    }
    .breadcrumb {
        display: none;
    }
    .topbar {
        padding: 0 18px;
    }
    .topbar_actions {
        gap: 8px;
    }
    .quick_grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero_pattern {
        display: none;
    }
}
@media (max-width: 480px) {
    .quick_grid {
        grid-template-columns: 1fr;
    }
    .page_heading {
        display: block;
    }
    .today {
        display: block;
        margin-top: 12px;
    }
    .topbar select {
        max-width: 95px;
    }
    .user_pill {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
.login_language {
    display: block;
    margin: 0 0 24px auto;
    background: #fff;
    border: 1px solid #d4e0e8;
    color: #264555;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 12px;
}
html[dir='rtl'] .login_language {
    margin: 0 auto 24px 0;
}
.app_page .workspace {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.app_page .dashboard {
    flex: 1;
    width: 100%;
}
.site_copyright {
    padding: 16px 24px;
    text-align: center;
    color: #758b97;
    font-size: 12px;
    line-height: 1.5;
}
.app_page .site_copyright {
    border-top: 1px solid #e2ebef;
}
.login_page .login_layout {
    min-height: calc(100vh - 48px);
}
.login_page .site_copyright {
    min-height: 48px;
}
@media print {
    .site_copyright {
        display: none !important;
    }
}
/* Ocean workspace: light surfaces, restrained blue-green accents, clear navigation. */
:root {
    --ocean-ink: #183b4c;
    --ocean-muted: #687f8e;
    --ocean-line: #dce9ee;
    --ocean-soft: #edf8f8;
    --ocean-accent: #087f8c;
}
.app_page {
    background: #f7fafb;
    color: var(--ocean-ink);
}
.app_page .sidebar {
    background: #fff;
    color: var(--ocean-ink);
    border-inline-end: 1px solid var(--ocean-line);
    box-shadow: 3px 0 18px #123b4b08;
}
.app_page .sidebar .brand {
    border-bottom: 1px solid var(--ocean-line);
}
.app_page .sidebar .brand small {
    color: #7b929e;
}
.app_page .sidebar_footer {
    border-top: 1px solid var(--ocean-line);
    color: #718894;
}
.app_page .nav_caption {
    color: #7a96a1;
}
.app_page .nav_link,
.app_page .nav_group summary {
    color: #274a5c;
}
.app_page .nav_group a {
    color: #5c7887;
}
.app_page .nav_link.active,
.app_page .nav_group a.active,
.app_page .nav_group a:hover,
.app_page .nav_group summary:hover {
    background: var(--ocean-soft);
    color: var(--ocean-accent);
}
.app_page .nav_subgroup summary {
    color: #567b8a !important;
}
.app_page .topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fffffff2;
    backdrop-filter: blur(14px);
    border-bottom-color: var(--ocean-line);
    box-shadow: 0 2px 12px #123b4b06;
}
.app_page .hero_panel {
    background: linear-gradient(115deg, #0a6474, #0d8993 65%, #2aa9a3);
}
.app_page .quick_card,
.app_page .report_shortcut,
.app_page .portal_card {
    border-color: var(--ocean-line);
    box-shadow: 0 5px 17px #123b4b07;
}
.app_page .quick_card:hover,
.app_page .report_shortcut:hover,
.app_page .portal_card:hover {
    border-color: #90c9ce;
    box-shadow: 0 12px 27px #123b4b13;
}
@media (max-width: 760px) {
    .app_page .sidebar {
        box-shadow: 8px 0 30px #123b4b24;
    }
}
/* Login and Home: bounded navigation, compact hierarchy, accessible controls. */
.login_card {
    background: #fff;
    border: 1px solid #e2e9ed;
    border-radius: 22px;
    padding: 36px;
    box-shadow: 0 16px 50px #173b4c0c;
    width: min(100%, 460px);
}
.login_heading h2 {
    font-size: 34px;
}
.login_heading p {
    font-size: 14px;
}
.login_language {
    margin-bottom: 18px;
}
.login_intro {
    background:
        linear-gradient(150deg, #092b3cf2, #0c707bdb),
        url('../images/background.jpg') center/cover;
}
.login_intro .intro_copy h1 {
    font-size: clamp(36px, 4vw, 58px);
}
.login_page input:focus-visible,
.login_page button:focus-visible,
.login_page select:focus-visible {
    outline: 3px solid #1baba9;
    outline-offset: 3px;
}
body[data-kind='home'] .app_shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}
body[data-kind='home'] .sidebar {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
body[data-kind='home'] .sidebar_scroll {
    min-height: 0;
    overscroll-behavior: contain;
}
body[data-kind='home'] .workspace {
    height: 100%;
    min-height: 0;
}
body[data-kind='home'] .topbar {
    flex-shrink: 0;
    height: 66px;
}
body[data-kind='home'] .dashboard {
    overflow: auto;
    min-height: 0;
    padding: 26px 32px;
    overscroll-behavior: contain;
}
body[data-kind='home'] .site_copyright {
    display: none;
}
body[data-kind='home'] .page_heading {
    margin-bottom: 20px;
}
body[data-kind='home'] .hero_panel {
    min-height: 140px;
    padding: 25px 30px;
}
body[data-kind='home'] .hero_panel h2 {
    font-size: 27px;
}
body[data-kind='home'] .hero_pattern {
    font-size: 115px;
}
body[data-kind='home'] .home_modules {
    margin-top: 24px;
}
body[data-kind='home'] .quick_card {
    min-height: 120px;
    padding: 18px;
}
body[data-kind='home'] .card_icon {
    margin-bottom: 12px;
}
body[data-kind='home'] .section_heading {
    margin-top: 24px;
}
.home_snapshot {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #dce9ed;
    border-radius: 14px;
    padding: 20px;
}
.home_snapshot h2 {
    font-size: 18px;
    margin: 0;
}
.home_snapshot .home_section_intro {
    margin-bottom: 12px;
}
.home_snapshot [role='status'] {
    font-size: 13px;
    color: #687f8e;
    margin: 8px 0;
}
.home_table_scroll {
    max-height: 240px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #e0eaee;
    border-radius: 9px;
}
.home_table_scroll:focus-visible {
    outline: 3px solid #17a8aa;
    outline-offset: 2px;
}
.home_table_scroll thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #edf7f7;
}
.home_table_scroll th:last-child,
.home_table_scroll td:last-child {
    text-align: end;
    font-variant-numeric: tabular-nums;
}
.home_table_scroll tbody tr:last-child th,
.home_table_scroll tbody tr:last-child td {
    border-bottom: 0;
}
.home_snapshot[hidden] {
    display: none;
}
.portal_table_wrap {
    max-height: 65dvh;
    overscroll-behavior: contain;
}
.portal_table_wrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}
@media (max-width: 760px) {
    .login_card {
        padding: 25px;
    }
    .login_panel {
        padding: 24px 16px;
    }
    body[data-kind='home'] .dashboard {
        padding: 22px 16px;
    }
    body[data-kind='home'] .sidebar {
        height: 100dvh;
    }
    body[data-kind='home'] .app_shell {
        height: 100dvh;
    }
    body[data-kind='home'] .workspace {
        height: 100dvh;
    }
    .home_snapshot {
        padding: 16px;
    }
    .home_section_intro {
        align-items: start;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
@media print {
    body[data-kind='home'] .app_shell,
    body[data-kind='home'] .workspace {
        height: auto;
        overflow: visible;
    }
    .home_table_scroll {
        max-height: none;
        overflow: visible;
    }
    body[data-kind='home'] .dashboard {
        overflow: visible;
    }
}
