:root {
    --navy-950: #031633;
    --navy-900: #061f49;
    --blue-700: #034cf5;
    --blue-600: #0a62ff;
    --blue-100: #eaf2ff;
    --ink-900: #07153d;
    --ink-700: #243b6b;
    --ink-500: #66779d;
    --line: #dce5f5;
    --line-strong: #cbd8ee;
    --surface: #ffffff;
    --surface-muted: #f5f8fc;
    --green: #0f9c45;
    --teal: #087c82;
    --amber: #775007;
    --orange: #bd6b00;
    --pink: #d31573;
    --violet: #8a48df;
    --sky: #5c9cff;
    --shadow: 0 14px 34px rgba(21, 47, 91, 0.09);
    --sidebar-width: 336px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background: #f7f9fd;
    color: var(--ink-900);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

a {
    color: inherit;
}

.login-body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(10, 98, 255, 0.1), rgba(10, 98, 255, 0) 44%),
        #f7f9fd;
}

.login-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.login-panel {
    width: min(440px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.login-brand {
    padding: 0 0 26px;
    color: var(--ink-900);
}

.login-brand .brand-mark {
    background: #eef5ff;
}

.login-brand small {
    color: #0f3b88;
}

.login-panel h1 {
    margin: 0;
    font-size: 1.65rem;
    letter-spacing: 0;
}

.login-panel > p {
    margin: 10px 0 22px;
    color: var(--ink-500);
    font-weight: 700;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    display: grid;
    gap: 7px;
    color: #243b6b;
    font-weight: 900;
}

.login-form input {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink-900);
    background: #fff;
}

.login-form input:focus {
    outline: 3px solid rgba(10, 98, 255, 0.16);
    border-color: #82a9ff;
}

.login-form button {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--blue-600);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.login-form button:hover {
    background: var(--blue-700);
}

.auth-message {
    margin-bottom: 16px;
    padding: 12px 13px;
    border-radius: 8px;
    font-weight: 800;
}

.auth-message.success {
    color: #0a7d39;
    background: #e2f6e9;
    border: 1px solid #c4e9d0;
}

.auth-message.error {
    color: #b2105c;
    background: #ffe9f4;
    border: 1px solid #ffc4df;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(4, 78, 184, 0.22), rgba(1, 11, 28, 0) 34%),
        linear-gradient(180deg, var(--navy-950), #011024);
    color: #fff;
    padding: 28px 14px 24px;
}

.brand {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 0 10px 28px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 3px solid #0aa3ff;
    border-radius: 8px;
    color: #19a8ff;
    background: rgba(8, 139, 255, 0.1);
}

.brand-mark .icon {
    width: 34px;
    height: 34px;
    stroke-width: 1.6;
}

.brand strong {
    display: block;
    font-size: 1.36rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: #8ebfff;
    font-size: 0.87rem;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item,
.nav-group-title,
.subitem {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-radius: 8px;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item {
    gap: 12px;
    padding: 0 16px;
}

.nav-item.active {
    background: linear-gradient(90deg, #075fff, #0047dc);
    box-shadow: 0 14px 28px rgba(0, 89, 255, 0.25);
}

.nav-item:hover,
.subitem:hover,
.nav-group-title:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.compact {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    margin: 8px 10px 0;
    padding-left: 4px;
    padding-right: 4px;
}

.nav-item strong {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 25px;
    height: 25px;
    border-radius: 999px;
    background: var(--blue-600);
    font-size: 0.82rem;
}

.nav-group {
    padding: 0 10px;
}

.nav-group-title {
    width: 100%;
    justify-content: space-between;
    border: 0;
    background: transparent;
    padding: 0 4px;
    cursor: pointer;
}

.nav-group-title span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 700;
}

.nav-group-title > .icon {
    width: 1rem;
    height: 1rem;
}

.nav-subitems {
    position: relative;
    display: grid;
    gap: 4px;
    margin: 2px 0 14px 18px;
    padding-left: 14px;
}

.nav-subitems::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(168, 197, 255, 0.45);
}

.subitem {
    position: relative;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.98rem;
}

.subitem::before {
    content: "";
    position: absolute;
    left: -18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #85a6d9;
}

.subitem.active {
    color: #3fd0ff;
    background: rgba(13, 95, 209, 0.18);
}

.subitem.active::before {
    background: #0a88ff;
    box-shadow: 0 0 0 4px rgba(10, 136, 255, 0.14);
}

.main-content {
    min-width: 0;
    padding: 0 30px 30px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 116px;
    margin: 0 -30px;
    padding: 0 30px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.title-area {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.title-area h1 {
    margin: 0;
    color: var(--ink-900);
    font-size: clamp(1.65rem, 2.2vw, 2.25rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.title-area p {
    margin: 10px 0 0;
    color: #2d447c;
    font-size: 1.02rem;
}

.profile-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.icon-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #1c3676;
    cursor: pointer;
}

.icon-button:hover,
.favorite-button:hover,
.learn-link:hover {
    border-color: #9ab9ff;
    color: var(--blue-700);
}

.notification-button span {
    position: absolute;
    right: -3px;
    top: -6px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--blue-600);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
}

.profile-card {
    display: grid;
    grid-template-columns: 54px minmax(142px, 1fr) 18px;
    gap: 12px;
    align-items: center;
    min-width: 252px;
}

.avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background:
        linear-gradient(180deg, #eef5ff, #d7eaff);
    color: #1d4e91;
    border: 1px solid #d6e4f7;
}

.avatar .icon {
    width: 31px;
    height: 31px;
}

.profile-card strong {
    display: block;
    color: var(--ink-900);
    font-size: 0.99rem;
}

.profile-card small {
    display: block;
    margin-top: 3px;
    color: #0f3b88;
    font-size: 0.88rem;
}

.logout-form {
    margin: 0;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #ffc4df;
    border-radius: 8px;
    background: #fff;
    color: #b2105c;
    font-weight: 900;
    cursor: pointer;
}

.logout-button:hover {
    background: #ffe9f4;
}

.mobile-menu {
    display: none;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(145px, 0.68fr)) minmax(112px, 0.38fr);
    gap: 14px;
    align-items: stretch;
    margin: 28px 0;
}

.search-field,
.select-field,
.sort-field {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(20, 53, 101, 0.04);
}

.search-field {
    height: 62px;
}

.search-field input {
    width: 100%;
    height: 100%;
    padding: 0 58px 0 20px;
    border: 0;
    border-radius: 8px;
    outline: none;
    color: var(--ink-900);
    background: transparent;
}

.search-field input::placeholder {
    color: #51658f;
}

.search-field .icon {
    position: absolute;
    right: 20px;
    color: #263e80;
}

.select-field {
    height: 62px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    padding: 8px 42px 8px 18px;
}

.select-field span {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #3b4f7d;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.select-field span .icon {
    color: var(--blue-600);
}

.select-field select,
.sort-field select {
    width: 100%;
    border: 0;
    outline: none;
    appearance: none;
    color: #071942;
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.select-field::after,
.sort-field::after {
    content: "";
    position: absolute;
    right: 18px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #3e5890;
    border-bottom: 2px solid #3e5890;
    transform: rotate(45deg);
    pointer-events: none;
}

.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 62px;
    border: 1px solid #85aaff;
    border-radius: 8px;
    background: #fff;
    color: var(--blue-700);
    font-weight: 800;
    cursor: pointer;
}

.summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 220px);
    align-items: center;
    gap: 18px 24px;
    margin: 4px 0 22px;
}

.summary-row > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 34px;
}

.summary-row strong {
    color: var(--blue-600);
    font-size: 1.56rem;
    line-height: 1;
}

.summary-row span {
    color: #172b59;
    font-weight: 800;
}

.sort-field {
    justify-self: end;
    display: grid;
    grid-template-columns: max-content minmax(118px, 1fr);
    gap: 12px;
    width: 220px;
    min-height: 46px;
    padding: 0 36px 0 14px;
}

.sort-field span {
    color: #263b72;
    font-size: 0.88rem;
    font-weight: 700;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
}

.pericia-card {
    display: flex;
    flex-direction: column;
    min-height: 326px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 31px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.tag.success {
    color: #0a7d39;
    background: #e2f6e9;
    border: 1px solid #c4e9d0;
}

.tag.warning {
    color: #e45a00;
    background: #fff0df;
    border: 1px solid #ffc889;
}

.tag.danger {
    color: #ef4d00;
    background: #fff0e8;
    border: 1px solid #ffb38d;
}

.favorite-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #59709f;
    cursor: pointer;
}

.favorite-button.is-active {
    color: #d31573;
}

.favorite-button.is-active .icon {
    fill: currentColor;
}

.pericia-heading {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-top: 14px;
}

.case-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
}

.case-icon .icon {
    width: 31px;
    height: 31px;
}

.case-icon.green {
    color: #15934c;
    background: #dff6e8;
}

.case-icon.blue {
    color: #0770d4;
    background: #e5f0ff;
}

.case-icon.violet {
    color: var(--violet);
    background: #f0e6ff;
}

.case-icon.pink {
    color: var(--pink);
    background: #ffe6f1;
}

.case-icon.amber {
    color: #9b6d10;
    background: #fff2d4;
}

.case-icon.teal {
    color: var(--teal);
    background: #daf6f5;
}

.case-icon.orange {
    color: #c07a00;
    background: #fff0ce;
}

.case-icon.sky {
    color: #3386ff;
    background: #e7f3ff;
}

.pericia-heading h2 {
    margin: 0;
    color: #10153b;
    font-size: 1.05rem;
    line-height: 1.22;
    letter-spacing: 0;
}

.pericia-heading a {
    display: inline-block;
    margin-top: 6px;
    color: #0056e8;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
}

.case-meta {
    display: grid;
    gap: 13px;
    margin: 22px 0 0;
}

.case-meta div {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    color: #2d4376;
}

.case-meta .icon {
    width: 17px;
    height: 17px;
    color: #405c96;
}

.case-meta dt {
    display: none;
}

.case-meta dd {
    margin: 0;
    font-size: 0.98rem;
}

.card-footer {
    display: grid;
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
}

.format-pill {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border: 1px solid #e2e8f2;
    border-radius: 7px;
    background: #f4f7fb;
    color: #17336f;
    font-size: 0.85rem;
    font-weight: 700;
}

.price {
    font-size: 1.28rem;
    line-height: 1;
}

.price.green {
    color: var(--green);
}

.price.blue {
    color: #0069b8;
}

.price.violet {
    color: var(--violet);
}

.price.pink {
    color: var(--pink);
}

.price.amber {
    color: var(--amber);
}

.price.teal {
    color: var(--teal);
}

.price.orange {
    color: var(--orange);
}

.price.sky {
    color: var(--sky);
}

.accept-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(90deg, #075fff, #004cf4);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(2, 77, 239, 0.18);
}

.accept-button:hover {
    background: linear-gradient(90deg, #004fe0, #003fc6);
}

.accept-button.is-accepted {
    background: #0f9c45;
}

.view[hidden] {
    display: none;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    gap: 18px;
    margin: 28px 0 0;
}

.workspace-grid.single {
    grid-template-columns: 1fr;
}

.workspace-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.workspace-panel.wide {
    grid-column: 1 / -1;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-heading h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: 1.08rem;
}

.ghost-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #82a9ff;
    border-radius: 7px;
    background: #fff;
    color: var(--blue-700);
    font-weight: 900;
    cursor: pointer;
}

.ghost-action:hover {
    background: var(--blue-100);
}

.ghost-action:disabled,
.details-button:disabled {
    cursor: not-allowed;
    border-color: #d7e1f5;
    background: #f3f6fb;
    color: #8a9abd;
}

.timeline-list,
.task-list,
.payment-list,
.settings-list,
.notification-list {
    display: grid;
    gap: 12px;
}

.timeline-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid #edf2fb;
    border-radius: 8px;
    background: #fbfdff;
}

.date-chip {
    display: grid;
    place-items: center;
    width: 50px;
    min-height: 54px;
    border-radius: 8px;
    background: var(--blue-100);
    color: var(--blue-700);
}

.date-chip strong {
    font-size: 1.22rem;
    line-height: 1;
}

.date-chip span {
    color: #405c96;
    font-size: 0.78rem;
    font-weight: 900;
}

.timeline-row h3,
.opportunity-card h3 {
    margin: 0;
    color: var(--ink-900);
    font-size: 0.98rem;
}

.timeline-row p,
.opportunity-card p {
    margin: 5px 0 0;
    color: #43577f;
}

.task-list div {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid #edf2fb;
    border-radius: 8px;
    background: #fbfdff;
    color: #263b72;
    font-weight: 800;
}

.task-list .icon {
    color: var(--blue-600);
}

.opportunity-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.opportunity-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #edf2fb;
    border-radius: 8px;
    background: #fbfdff;
}

.opportunity-card .price {
    grid-column: 2;
}

.table-panel {
    width: 100%;
    overflow-x: auto;
}

.table-panel table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.table-panel th,
.table-panel td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf2fb;
    text-align: left;
    white-space: nowrap;
}

.table-panel th {
    color: #51658f;
    font-size: 0.82rem;
}

.profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-fields label {
    display: grid;
    gap: 7px;
}

.profile-fields span {
    color: #4d5f86;
    font-size: 0.86rem;
    font-weight: 900;
}

.profile-fields input {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink-900);
}

.profile-summary {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.avatar.large {
    width: 68px;
    height: 68px;
}

.profile-summary strong {
    font-size: 1.1rem;
}

.profile-summary span,
.profile-summary p {
    color: #43577f;
}

.profile-summary p {
    margin: 6px 0 0;
    line-height: 1.45;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 16px;
    margin: 28px 0 0;
}

.document-card,
.notification-card,
.payment-row,
.settings-row {
    display: grid;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.document-card {
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
}

.document-card > .icon {
    color: var(--blue-600);
}

.document-card h2,
.notification-card h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: 1rem;
}

.document-card p,
.notification-card p {
    margin: 5px 0 0;
    color: #43577f;
}

.inline-upload-form {
    display: grid;
    gap: 8px;
    min-width: 190px;
}

.inline-upload-form label {
    display: grid;
    gap: 5px;
    color: #52658f;
    font-size: 0.78rem;
    font-weight: 800;
}

.inline-upload-form input[type="file"] {
    width: 100%;
    max-width: 230px;
    color: #43577f;
    font-size: 0.82rem;
}

.inline-upload-form .details-button {
    width: 100%;
}

.credential-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 4px 0 22px;
}

.credential-progress > div {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce7f8;
}

.credential-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #16a34a);
}

.credential-progress strong {
    min-width: 46px;
    color: var(--ink-900);
    text-align: right;
}

.credential-timeline {
    display: grid;
    gap: 16px;
}

.credential-timeline > div {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.credential-timeline > div > span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 4px solid #cae0ff;
    border-radius: 50%;
    background: var(--blue-600);
}

.credential-timeline strong {
    color: var(--ink-900);
}

.credential-timeline p {
    margin: 4px 0 0;
    color: #43577f;
}

.credential-timeline em {
    color: var(--blue-700);
    font-style: normal;
    font-weight: 900;
}

.credential-timeline em.done {
    color: #177245;
}

.credential-timeline em.progress,
.credential-timeline em.confirmed {
    color: #2563eb;
}

.credential-timeline em.danger {
    color: #b42318;
}

.credential-documents {
    display: grid;
    gap: 12px;
}

.credential-documents > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #e2e9f6;
    border-radius: 8px;
    background: #f8fbff;
}

.credential-documents strong {
    display: block;
    color: var(--ink-900);
}

.credential-documents p {
    margin: 4px 0 0;
    color: #52658f;
    overflow-wrap: anywhere;
}

.payment-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    box-shadow: none;
}

.payment-row div {
    display: grid;
    gap: 4px;
}

.payment-row span {
    color: #43577f;
}

.document-reject-form {
    display: grid;
    gap: 10px;
    min-width: 240px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #f2c7c3;
    border-radius: 8px;
    background: #fff7f6;
}

.document-reject-form label {
    display: grid;
    gap: 6px;
    color: #8f1d15;
    font-size: 0.78rem;
    font-weight: 900;
}

.document-reject-form textarea {
    width: 100%;
    min-height: 76px;
    resize: vertical;
    border: 1px solid #efb4ae;
    border-radius: 8px;
    padding: 9px 10px;
    color: var(--ink-900);
    font: inherit;
    font-size: 0.86rem;
    line-height: 1.4;
    background: #fff;
}

.document-reject-form textarea:focus {
    outline: 3px solid rgba(180, 35, 24, 0.14);
    border-color: #b42318;
}

.document-reject-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.notification-list {
    margin-top: 28px;
}

.notification-card {
    grid-template-columns: 54px minmax(0, 1fr) auto;
}

.notification-card small {
    display: block;
    margin-top: 4px;
    color: #62739d;
}

.user-form,
.case-form {
    display: grid;
    gap: 14px;
}

.case-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-form label,
.case-form label {
    display: grid;
    gap: 7px;
    color: #243b6b;
    font-weight: 900;
}

.user-form input,
.user-form select,
.case-form input,
.case-form select,
.case-form textarea,
.user-search-form input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink-900);
}

.case-form textarea {
    min-height: 88px;
    padding: 10px 12px;
    resize: vertical;
    font: inherit;
    line-height: 1.45;
}

.case-form .full-field {
    grid-column: 1 / -1;
}

.user-form-actions,
.case-form-actions,
.user-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-form-actions,
.case-form-actions {
    justify-content: flex-end;
    margin-top: 4px;
}

.case-form-actions {
    grid-column: 1 / -1;
}

.user-search-form {
    min-width: min(100%, 390px);
}

.users-table .details-button,
.cases-table .details-button {
    min-height: 34px;
    padding: 0 12px;
}

.settings-row {
    grid-template-columns: minmax(0, 1fr) auto;
    box-shadow: none;
    cursor: pointer;
}

.settings-row div {
    display: grid;
    gap: 5px;
}

.settings-row span {
    color: #43577f;
}

.settings-row input {
    width: 44px;
    height: 24px;
    appearance: none;
    border: 1px solid #bfd0ea;
    border-radius: 999px;
    background: #e8eef8;
    cursor: pointer;
}

.settings-row input::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(7, 21, 61, 0.2);
    transition: transform 160ms ease;
}

.settings-row input:checked {
    border-color: var(--blue-600);
    background: var(--blue-600);
}

.settings-row input:checked::before {
    transform: translateX(20px);
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
}

.role-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 184px;
    padding: 16px;
    border: 1px solid #edf2fb;
    border-radius: 8px;
    background: #fbfdff;
}

.role-card strong,
.role-card span,
.role-card em {
    display: block;
}

.role-card strong {
    color: var(--ink-900);
    font-size: 1rem;
}

.role-card span {
    margin-top: 4px;
    color: var(--blue-700);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.role-card p {
    margin: 0;
    color: #43577f;
    line-height: 1.4;
}

.role-card em {
    margin-top: auto;
    color: #62739d;
    font-style: normal;
    font-weight: 900;
}

.mine-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 16px;
    margin: 28px 0 18px;
}

.metric-card {
    min-height: 136px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.metric-card span,
.metric-card small {
    display: block;
    color: #4d5f86;
}

.metric-card span {
    font-size: 0.88rem;
    font-weight: 800;
}

.metric-card strong {
    display: block;
    margin: 10px 0 7px;
    color: var(--blue-600);
    font-size: 2rem;
    line-height: 1;
}

.metric-card small {
    line-height: 1.35;
}

.metric-card.urgent strong {
    color: #d31573;
}

.metric-card.value strong {
    color: var(--green);
    font-size: 1.42rem;
}

.mine-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-tab {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #253b6e;
    font-weight: 800;
    cursor: pointer;
}

.status-tab.active,
.status-tab:hover {
    border-color: #82a9ff;
    background: var(--blue-100);
    color: var(--blue-700);
}

.mine-search {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.mine-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 46px 0 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-900);
    outline: none;
}

.mine-search .icon {
    position: absolute;
    right: 14px;
    color: #405c96;
}

.mine-list {
    display: grid;
    gap: 14px;
}

.mine-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.mine-card-head,
.mine-card-body,
.mine-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mine-card-head {
    justify-content: space-between;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
}

.status-pill.confirmed {
    color: #0c5fc3;
    background: #e6f0ff;
    border: 1px solid #c4dbff;
}

.status-pill.progress {
    color: #087c82;
    background: #dbf8f5;
    border: 1px solid #bcebe8;
}

.status-pill.pending {
    color: #bd6b00;
    background: #fff2d4;
    border: 1px solid #ffd890;
}

.status-pill.done {
    color: #0a7d39;
    background: #e2f6e9;
    border: 1px solid #c4e9d0;
}

.status-pill.danger {
    color: #b2105c;
    background: #ffe9f4;
    border: 1px solid #ffc4df;
}

.case-code {
    color: #62739d;
    font-size: 0.88rem;
    font-weight: 900;
}

.mine-card-body {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) minmax(150px, auto);
    align-items: center;
}

.mine-copy h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: 1.08rem;
    line-height: 1.2;
}

.mine-copy a {
    display: inline-block;
    margin-top: 5px;
    color: #0056e8;
    text-decoration: none;
    font-weight: 900;
}

.mine-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 14px 0 0;
}

.mine-meta div {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 155px;
    color: #314978;
}

.mine-meta .icon {
    width: 16px;
    height: 16px;
    color: #405c96;
}

.mine-meta dt {
    display: none;
}

.mine-meta dd {
    margin: 0;
}

.mine-side {
    display: grid;
    justify-items: end;
    gap: 14px;
}

.mine-side .inline-upload-form {
    justify-items: end;
}

.details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #82a9ff;
    border-radius: 7px;
    background: #fff;
    color: var(--blue-700);
    font-weight: 900;
    cursor: pointer;
}

.details-button:hover {
    background: var(--blue-100);
}

.mine-progress {
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 8px;
    background: #f7faff;
    color: #314978;
}

.mine-progress span,
.mine-progress strong {
    font-size: 0.92rem;
}

.mine-progress strong {
    color: var(--ink-900);
}

.empty-state {
    margin: 32px 0;
    padding: 22px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: #293f72;
    text-align: center;
    font-weight: 800;
}

.notice {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7faff;
}

.notice-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 3px solid var(--blue-600);
    border-radius: 50%;
    color: var(--blue-600);
}

.notice-icon .icon {
    width: 21px;
    height: 21px;
}

.notice p {
    margin: 0;
    color: #334a7d;
    line-height: 1.45;
}

.learn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 0 18px;
    border: 1px solid #7aa4ff;
    border-radius: 7px;
    color: var(--blue-700);
    text-decoration: none;
    font-weight: 800;
    background: #fff;
}

.learn-link .icon {
    width: 17px;
    height: 17px;
}

body.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(3, 12, 30, 0.5);
}

.modal-backdrop[hidden] {
    display: none;
}

.details-modal {
    display: grid;
    gap: 20px;
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(3, 12, 30, 0.28);
}

.details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.details-header h2 {
    margin: 14px 0 6px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.details-header p {
    margin: 0;
    color: var(--ink-500);
    font-weight: 800;
}

.details-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.details-summary div,
.details-grid div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.details-summary span,
.details-grid dt {
    color: var(--ink-500);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.details-summary strong,
.details-grid dd {
    min-width: 0;
    margin: 0;
    color: var(--ink-900);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.details-footer {
    display: flex;
    justify-content: flex-end;
}

.details-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #82a9ff;
    border-radius: 7px;
    background: #fff;
    color: var(--blue-700);
    font-weight: 900;
    cursor: pointer;
}

.details-close-button:hover {
    background: var(--blue-100);
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    max-width: min(360px, calc(100vw - 44px));
    padding: 13px 16px;
    border-radius: 8px;
    background: #09204d;
    color: #fff;
    box-shadow: 0 16px 40px rgba(7, 21, 61, 0.22);
    font-weight: 800;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mobile-overlay {
    display: none;
}

@media (max-width: 1340px) {
    .toolbar {
        grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(170px, 0.7fr));
    }

    .search-field {
        grid-column: span 2;
    }

    .filter-button {
        grid-column: span 1;
    }

    .cards-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }

    .mine-overview {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
    }

    .opportunity-strip {
        grid-template-columns: 1fr;
    }

    .role-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .summary-row {
        grid-template-columns: minmax(0, 1fr) minmax(190px, 220px);
    }
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        z-index: 25;
        inset: 0 auto 0 0;
        width: min(var(--sidebar-width), calc(100vw - 64px));
        transform: translateX(-105%);
        transition: transform 180ms ease;
        box-shadow: 20px 0 42px rgba(4, 13, 31, 0.25);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .mobile-overlay {
        position: fixed;
        z-index: 20;
        inset: 0;
        background: rgba(4, 13, 31, 0.45);
    }

    body.sidebar-open .mobile-overlay {
        display: block;
    }

    .mobile-menu {
        display: inline-grid;
    }

    .main-content {
        padding: 0 18px 24px;
    }

    .topbar {
        min-height: auto;
        margin: 0 -18px;
        padding: 18px;
        align-items: flex-start;
    }

    .profile-area {
        gap: 8px;
    }

    .logout-button {
        min-height: 40px;
        padding: 0 12px;
    }

    .profile-card {
        min-width: 0;
        grid-template-columns: 44px 18px;
    }

    .profile-card > div:nth-child(2) {
        display: none;
    }

    .avatar {
        width: 44px;
        height: 44px;
    }

    .toolbar {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .search-field {
        grid-column: 1 / -1;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .summary-row {
        grid-template-columns: 1fr 1fr;
    }

    .mine-controls {
        grid-template-columns: 1fr;
    }

    .workspace-grid,
    .document-grid {
        grid-template-columns: 1fr;
    }

    .workspace-panel.wide {
        grid-column: auto;
    }

    .mine-card-body {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .mine-side {
        grid-column: 2;
        justify-items: start;
        grid-template-columns: auto auto;
        align-items: center;
    }

    .sort-field {
        grid-column: 1 / -1;
        width: min(100%, 260px);
    }

    .notice {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .learn-link {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 650px) {
    .topbar {
        flex-direction: column;
        gap: 18px;
    }

    .title-area {
        align-items: flex-start;
    }

    .title-area h1 {
        font-size: 1.55rem;
    }

    .title-area p {
        font-size: 0.94rem;
    }

    .profile-area {
        width: 100%;
        justify-content: space-between;
    }

    .logout-form {
        margin-left: auto;
    }

    .toolbar,
    .summary-row,
    .cards-grid,
    .mine-overview,
    .details-summary,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .mine-card-body {
        grid-template-columns: 1fr;
    }

    .mine-side {
        grid-column: auto;
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .mine-meta {
        display: grid;
        gap: 10px;
    }

    .mine-progress,
    .mine-card-head,
    .timeline-row,
    .document-card,
    .notification-card,
    .payment-row {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .mine-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-heading,
    .settings-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-fields {
        grid-template-columns: 1fr;
    }

    .case-form {
        grid-template-columns: 1fr;
    }

    .role-grid {
        grid-template-columns: 1fr;
    }

    .credential-timeline > div {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .credential-timeline em {
        grid-column: 2;
    }

    .credential-documents > div {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .select-field,
    .search-field,
    .filter-button {
        min-height: 58px;
    }

    .summary-row > div {
        justify-content: space-between;
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
    }

    .sort-field {
        width: 100%;
        grid-template-columns: 1fr minmax(130px, 1fr);
    }

    .pericia-card {
        min-height: 306px;
    }

    .notice {
        grid-template-columns: 1fr;
    }

    .notice-icon,
    .learn-link {
        grid-column: auto;
    }

    .modal-backdrop {
        padding: 12px;
    }

    .details-modal {
        max-height: calc(100vh - 24px);
        padding: 18px;
    }

    .details-header {
        gap: 14px;
    }

    .details-header h2 {
        font-size: 1.12rem;
    }
}

/* DocPlantao coordinator sidebar */
body {
    background: #f7f9fd;
}

.app-shell {
    grid-template-columns: calc(var(--sidebar-width) + 48px) minmax(0, 1fr);
}

.sidebar {
    margin: 24px 0 24px 24px;
    height: calc(100vh - 48px);
    padding: 0 28px 28px;
    border: 1px solid #dfe6f2;
    border-radius: 18px;
    background: #fff;
    color: var(--ink-900);
    box-shadow: 0 16px 36px rgba(15, 36, 72, 0.12);
}

.sidebar .brand {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 42px;
    gap: 16px;
    align-items: center;
    margin: 0 -28px 24px;
    padding: 32px 28px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(135deg, #075fff 0%, #004fe8 100%);
    color: #fff;
}

.sidebar .brand-mark {
    position: relative;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
}

.sidebar .brand-mark .icon {
    display: none;
}

.sidebar .brand-mark::before {
    content: "D";
    position: absolute;
    inset: -7px 0 0 6px;
    color: currentColor;
    font-size: 4rem;
    font-weight: 1000;
    line-height: 1;
    letter-spacing: 0;
}

.sidebar .brand-mark::after {
    content: "+";
    position: absolute;
    left: -4px;
    top: 13px;
    color: currentColor;
    font-size: 2.6rem;
    font-weight: 1000;
    line-height: 1;
}

.sidebar .brand strong {
    font-size: 1.55rem;
    line-height: 1;
}

.sidebar .brand small {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
}

.brand-menu-icon {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.9);
}

.brand-menu-icon .icon {
    width: 36px;
    height: 36px;
    stroke-width: 2.4;
}

.sidebar .side-nav {
    gap: 0;
}

.sidebar .nav-item,
.sidebar .nav-group-title,
.sidebar .subitem {
    color: var(--ink-900);
    border-radius: 8px;
}

.sidebar .nav-item {
    min-height: 58px;
    gap: 20px;
    padding: 0 24px;
    font-size: 1.08rem;
    font-weight: 900;
}

.sidebar .nav-item > .icon,
.sidebar .nav-group-title span > .icon {
    width: 29px;
    height: 29px;
    color: var(--blue-600);
    stroke-width: 2;
}

.sidebar .nav-item.active {
    color: var(--blue-600);
    background: #edf4ff;
    box-shadow: none;
}

.sidebar .nav-item:hover,
.sidebar .subitem:hover,
.sidebar .nav-group-title:hover {
    background: #f3f7ff;
    color: var(--blue-600);
}

.sidebar .nav-group {
    padding: 0;
}

.sidebar .nav-group + .nav-group,
.sidebar .nav-item.compact {
    border-top: 1px solid #e4eaf3;
}

.sidebar .nav-group-title {
    min-height: 64px;
    padding: 0 20px 0 24px;
    font-size: 1.14rem;
}

.sidebar .nav-group-title span {
    gap: 20px;
    font-weight: 950;
}

.sidebar .nav-group-title > .icon {
    width: 20px;
    height: 20px;
    color: var(--blue-600);
    stroke-width: 2.8;
}

.sidebar .nav-subitems {
    gap: 0;
    margin: -4px 0 24px 58px;
    padding-left: 34px;
}

.sidebar .nav-subitems::before {
    left: 0;
    top: 0;
    bottom: 20px;
    width: 2px;
    background: #c7cfdd;
}

.sidebar .subitem {
    min-height: 45px;
    gap: 18px;
    padding: 0 8px 0 0;
    color: var(--ink-900);
    font-size: 1rem;
    font-weight: 700;
}

.sidebar .subitem .icon {
    width: 23px;
    height: 23px;
    color: #556176;
    stroke-width: 2;
}

.sidebar .subitem span {
    min-width: 0;
}

.sidebar .subitem::before {
    left: -34px;
    top: 22px;
    width: 32px;
    height: 2px;
    border-radius: 0;
    background: #c7cfdd;
}

.sidebar .subitem.active {
    color: var(--blue-600);
    background: transparent;
}

.sidebar .subitem.active .icon {
    color: var(--blue-600);
}

.sidebar .subitem.active::before {
    background: #9db1d3;
    box-shadow: none;
}

.sidebar .nav-item.compact {
    min-height: 62px;
    margin: 0;
    padding: 0 24px;
    border-radius: 0;
}

.sidebar .nav-item.compact.active {
    border-radius: 8px;
}

.sidebar .nav-item strong {
    width: 26px;
    height: 26px;
    background: var(--blue-600);
}

.sidebar .finance-link > .icon {
    color: var(--green);
}

.sidebar .reports-link > .icon {
    color: var(--violet);
}

.sidebar .alerts-link > .icon {
    color: #dc1f34;
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: min(var(--sidebar-width), calc(100vw - 48px));
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .sidebar .brand {
        border-radius: 0;
    }
}

@media (max-width: 650px) {
    .sidebar {
        width: min(342px, calc(100vw - 42px));
        padding: 0 22px 24px;
    }

    .sidebar .brand {
        grid-template-columns: 54px minmax(0, 1fr) 32px;
        margin: 0 -22px 22px;
        padding: 26px 22px;
    }

    .sidebar .brand strong {
        font-size: 1.3rem;
    }

    .sidebar .nav-item,
    .sidebar .nav-group-title {
        padding-left: 18px;
        padding-right: 18px;
    }

    .sidebar .nav-subitems {
        margin-left: 48px;
    }
}

/* Coordinator operational dashboard */
.coordinator-dashboard-active {
    background: #f4f7fc;
}

.coordinator-dashboard-active .app-shell {
    display: block;
    min-height: 100vh;
}

.coordinator-dashboard-active .main-content {
    min-height: 100vh;
    padding: 0;
}

.coordinator-dashboard-active .main-content > .topbar {
    display: none;
}

.coordinator-dashboard-active:not(.sidebar-open) .sidebar {
    display: none;
}

.coordinator-dashboard-active.sidebar-open .sidebar {
    position: fixed;
    z-index: 35;
    inset: 0 auto 0 0;
    display: block;
    width: min(var(--sidebar-width), calc(100vw - 52px));
    height: 100vh;
    margin: 0;
    border-radius: 0;
}

.coordinator-dashboard-active.sidebar-open .mobile-overlay {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: block;
    background: rgba(4, 13, 31, 0.45);
}

.coordinator-dashboard-active .toast {
    z-index: 45;
}

.coordinator-dashboard {
    min-height: calc(100vh - 16px);
    margin: 8px;
    overflow: hidden;
    border: 1px solid #cfd9ea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(12, 31, 69, 0.1);
}

.coordinator-dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 130px;
    padding: 0 28px 0 44px;
    background:
        radial-gradient(circle at 76% 26%, rgba(0, 100, 255, 0.28), transparent 34%),
        linear-gradient(135deg, #062c75 0%, #004da8 52%, #052b72 100%);
    color: #fff;
}

.coordinator-brand,
.coordinator-userbar,
.coordinator-user {
    display: flex;
    align-items: center;
}

.coordinator-brand {
    gap: 36px;
    min-width: 0;
}

.coordinator-brand strong {
    color: #fff;
    font-size: 2.45rem;
    line-height: 1;
    font-weight: 1000;
    letter-spacing: 0;
}

.coordinator-menu-button,
.coordinator-alert-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.coordinator-menu-button {
    width: 42px;
    height: 42px;
}

.coordinator-menu-button .icon {
    width: 42px;
    height: 42px;
    stroke-width: 2.6;
}

.coordinator-userbar {
    gap: 42px;
    flex: 0 0 auto;
}

.coordinator-alert-button {
    width: 52px;
    height: 52px;
}

.coordinator-alert-button .icon {
    width: 40px;
    height: 40px;
    stroke-width: 2.1;
}

.coordinator-alert-button span {
    position: absolute;
    top: -8px;
    right: -14px;
    display: grid;
    place-items: center;
    min-width: 48px;
    height: 48px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ef3045;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 1000;
    box-shadow: 0 5px 16px rgba(239, 48, 69, 0.26);
}

.coordinator-user {
    gap: 14px;
    min-width: 0;
}

.coordinator-user strong {
    color: #fff;
    font-size: 1.36rem;
    line-height: 1.1;
    white-space: nowrap;
}

.coordinator-user > .icon {
    width: 22px;
    height: 22px;
    stroke-width: 2.8;
}

.coordinator-avatar {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2c75e8, #0f49bb);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.coordinator-avatar .icon {
    width: 38px;
    height: 38px;
    fill: rgba(255, 255, 255, 0.95);
    stroke-width: 1.2;
}

.coordinator-dashboard-content {
    padding: 54px 44px 64px;
}

.coordinator-dashboard-heading h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: 3.45rem;
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: 0;
}

.coordinator-dashboard-heading p {
    margin: 24px 0 0;
    color: var(--ink-900);
    font-size: 1.85rem;
    line-height: 1.2;
}

.coordinator-dashboard-heading strong {
    color: #0642b4;
    font-weight: 500;
}

.coordinator-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
    margin-top: 50px;
}

.coordinator-metric-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    min-height: 174px;
    padding: 28px 18px 24px 16px;
    border: 1px solid #d4dceb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(14, 36, 76, 0.03);
}

.coordinator-metric-card h3 {
    margin: 0;
    color: var(--ink-900);
    font-size: 0.86rem;
    line-height: 1.12;
    font-weight: 1000;
    text-transform: uppercase;
}

.coordinator-metric-card strong {
    display: block;
    margin-top: 34px;
    font-size: 3.35rem;
    line-height: 0.88;
    font-weight: 1000;
}

.coordinator-metric-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 12px;
}

.coordinator-metric-icon .icon {
    width: 48px;
    height: 48px;
    stroke-width: 2;
}

.metric-blue .coordinator-metric-icon {
    color: #0756d7;
    background: #eaf3ff;
}

.metric-blue strong {
    color: #1158d8;
}

.metric-green .coordinator-metric-icon {
    color: #0aa04b;
    background: #e7f8ec;
}

.metric-green strong {
    color: #10a64b;
}

.metric-orange .coordinator-metric-icon {
    color: #ee6a00;
    background: #fff1e4;
}

.metric-orange strong {
    color: #ff6b00;
}

.metric-purple .coordinator-metric-icon {
    color: #7040d8;
    background: #f0eaff;
}

.metric-purple strong {
    color: #7040d8;
}

.metric-teal .coordinator-metric-icon {
    color: #0a8389;
    background: #e6fbfb;
}

.metric-teal strong {
    color: #08848a;
}

.metric-yellow .coordinator-metric-icon {
    color: #e2a300;
    background: #fff6df;
}

.metric-yellow strong {
    color: #f1ae00;
}

.metric-red .coordinator-metric-icon {
    color: #df263b;
    background: #ffe9ed;
}

.metric-red strong {
    color: #eb263c;
}

.coordinator-legacy-dashboard {
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid #e4eaf3;
}

.coordinator-legacy-dashboard .mine-overview {
    margin: 0 0 18px;
}

.coordinator-legacy-dashboard .workspace-grid {
    margin-top: 18px;
}

.coordinator-legacy-dashboard .workspace-panel,
.coordinator-legacy-dashboard .metric-card {
    box-shadow: 0 8px 22px rgba(14, 36, 76, 0.05);
}

@media (max-width: 1180px) {
    .coordinator-dashboard-top {
        min-height: 112px;
    }

    .coordinator-dashboard-content {
        padding: 42px 32px 52px;
    }

    .coordinator-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 740px) {
    .coordinator-dashboard {
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
    }

    .coordinator-dashboard-top {
        align-items: flex-start;
        gap: 24px;
        min-height: auto;
        padding: 24px 20px;
        flex-direction: column;
    }

    .coordinator-brand {
        width: 100%;
        justify-content: space-between;
        gap: 18px;
    }

    .coordinator-brand strong {
        font-size: 1.75rem;
    }

    .coordinator-menu-button,
    .coordinator-menu-button .icon {
        width: 34px;
        height: 34px;
    }

    .coordinator-userbar {
        width: 100%;
        justify-content: space-between;
        gap: 20px;
    }

    .coordinator-user strong {
        max-width: 178px;
        white-space: normal;
        font-size: 1rem;
    }

    .coordinator-avatar {
        width: 48px;
        height: 48px;
    }

    .coordinator-alert-button span {
        min-width: 36px;
        height: 36px;
        font-size: 0.94rem;
    }

    .coordinator-dashboard-content {
        padding: 34px 20px 44px;
    }

    .coordinator-dashboard-heading h2 {
        font-size: 2.35rem;
    }

    .coordinator-dashboard-heading p {
        margin-top: 18px;
        font-size: 1.35rem;
    }

    .coordinator-metrics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 34px;
    }

    .coordinator-metric-card {
        grid-template-columns: 76px minmax(0, 1fr);
        min-height: 136px;
        padding: 20px 18px;
    }

    .coordinator-metric-icon {
        width: 76px;
        height: 76px;
    }

    .coordinator-metric-icon .icon {
        width: 46px;
        height: 46px;
    }

    .coordinator-metric-card strong {
        margin-top: 22px;
        font-size: 2.7rem;
    }
}

/* Coordinator calendar */
.calendar-page-active {
    background: #f7f9fd;
}

.calendar-page-active .app-shell {
    display: block;
    min-height: 100vh;
}

.calendar-page-active .main-content {
    min-height: 100vh;
    padding: 0;
}

.calendar-page-active .main-content > .topbar {
    display: none;
}

.calendar-page-active:not(.sidebar-open) .sidebar {
    display: none;
}

.calendar-page-active.sidebar-open .sidebar {
    position: fixed;
    z-index: 35;
    inset: 0 auto 0 0;
    display: block;
    width: min(var(--sidebar-width), calc(100vw - 52px));
    height: 100vh;
    margin: 0;
    border-radius: 0;
}

.calendar-page-active.sidebar-open .mobile-overlay {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: block;
    background: rgba(4, 13, 31, 0.45);
}

.calendar-page-active .toast {
    z-index: 45;
}

.calendar-shell {
    min-height: calc(100vh - 16px);
    margin: 8px;
    overflow: hidden;
    border: 1px solid #d3ddeb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(12, 31, 69, 0.08);
}

.calendar-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    padding: 0 28px 0 32px;
    border-bottom: 1px solid #dbe3f0;
    background: #fff;
}

.calendar-brand-area,
.calendar-userbar,
.calendar-user {
    display: flex;
    align-items: center;
}

.calendar-brand-area {
    gap: 18px;
    min-width: 0;
}

.calendar-menu-button,
.calendar-alert-button,
.calendar-nav-button {
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink-900);
    cursor: pointer;
}

.calendar-menu-button {
    width: 40px;
    height: 40px;
}

.calendar-menu-button .icon {
    width: 34px;
    height: 34px;
    stroke-width: 2.5;
}

.calendar-logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #075cf5;
}

.calendar-logo-mark .icon {
    width: 42px;
    height: 42px;
    stroke-width: 3;
}

.calendar-brand-area strong {
    color: #075cf5;
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 1000;
    letter-spacing: 0;
}

.calendar-userbar {
    gap: 26px;
    flex: 0 0 auto;
}

.calendar-alert-button {
    position: relative;
    width: 46px;
    height: 46px;
    color: #56647e;
}

.calendar-alert-button .icon {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.calendar-alert-button span {
    position: absolute;
    top: -7px;
    right: -8px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ef2f3d;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 1000;
}

.calendar-divider {
    width: 1px;
    height: 44px;
    background: #dbe3f0;
}

.calendar-user {
    gap: 13px;
    min-width: 0;
}

.calendar-user strong {
    color: var(--ink-900);
    font-size: 1.05rem;
    font-weight: 750;
    white-space: nowrap;
}

.calendar-user > .icon {
    width: 19px;
    height: 19px;
    stroke-width: 2.7;
}

.calendar-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #c9d5e9;
    border-radius: 50%;
    background: #f7f9fd;
    color: #65728a;
}

.calendar-avatar .icon {
    width: 28px;
    height: 28px;
    fill: #65728a;
    stroke-width: 1.3;
}

.calendar-content {
    padding: 34px 32px 42px;
}

.calendar-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.calendar-title-row h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
}

.calendar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.calendar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid #075cf5;
    border-radius: 7px;
    background: #fff;
    color: #075cf5;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.calendar-action .icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.1;
}

.calendar-action:hover {
    background: #eef5ff;
    box-shadow: 0 6px 14px rgba(7, 92, 245, 0.1);
}

.calendar-action.primary {
    border-color: transparent;
    background: #075cf5;
    color: #fff;
    box-shadow: 0 8px 20px rgba(7, 92, 245, 0.22);
}

.calendar-action.primary:hover {
    background: #034cf5;
}

.calendar-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.calendar-filters > strong,
.calendar-view-controls > strong {
    color: var(--ink-900);
    font-size: 1rem;
    font-weight: 900;
}

.calendar-filters label {
    display: block;
}

.calendar-filters select {
    min-width: 178px;
    min-height: 50px;
    padding: 0 42px 0 20px;
    border: 1px solid #d1dbea;
    border-radius: 7px;
    background: #fff;
    color: var(--ink-900);
    font-weight: 650;
}

.calendar-filters select:focus,
.calendar-view-controls button:focus-visible,
.calendar-action:focus-visible,
.calendar-nav-button:focus-visible,
.calendar-menu-button:focus-visible,
.calendar-alert-button:focus-visible {
    outline: 3px solid rgba(7, 92, 245, 0.18);
    outline-offset: 2px;
}

.calendar-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin-top: 28px;
}

.calendar-stat {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    min-height: 126px;
    padding: 24px 22px;
    border: 1px solid #d4dceb;
    border-radius: 8px;
    background: #fff;
}

.calendar-stat h3 {
    margin: 0 0 10px;
    color: var(--ink-900);
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: 850;
    text-transform: uppercase;
}

.calendar-stat strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 950;
}

.calendar-stat-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
}

.calendar-stat-icon .icon {
    width: 42px;
    height: 42px;
    stroke-width: 2;
}

.calendar-stat-blue .calendar-stat-icon {
    color: #075cf5;
    background: #eaf3ff;
}

.calendar-stat-blue strong {
    color: #075cf5;
}

.calendar-stat-green .calendar-stat-icon {
    color: #0f9c45;
    background: #e8f8ef;
}

.calendar-stat-green strong {
    color: #0f9c45;
}

.calendar-stat-orange .calendar-stat-icon {
    color: #f08a00;
    background: #fff3df;
}

.calendar-stat-orange strong {
    color: #f08a00;
}

.calendar-stat-purple .calendar-stat-icon {
    color: #7447de;
    background: #f1ebff;
}

.calendar-stat-purple strong {
    color: #7447de;
}

.calendar-view-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.calendar-view-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 138px;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid #d1dbea;
    border-radius: 7px;
    background: #fff;
    color: var(--ink-900);
    font-weight: 750;
    cursor: pointer;
}

.calendar-view-controls button .icon {
    width: 22px;
    height: 22px;
    color: #5d6a82;
}

.calendar-view-controls button.active {
    border-color: transparent;
    background: #075cf5;
    color: #fff;
}

.calendar-view-controls button.active .icon {
    color: #fff;
}

.calendar-board {
    position: relative;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid #74a6ff;
    border-radius: 8px;
    background: #fff;
}

.calendar-board-header {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 60px;
    align-items: center;
    min-height: 82px;
    border-bottom: 1px solid #74a6ff;
}

.calendar-board-header h3 {
    margin: 0;
    color: var(--ink-900);
    font-size: 1.75rem;
    line-height: 1.1;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0;
}

.calendar-nav-button {
    width: 60px;
    height: 60px;
    color: #07153d;
}

.calendar-nav-button .icon {
    width: 30px;
    height: 30px;
    stroke-width: 2.8;
    transform: rotate(90deg);
}

.calendar-nav-button.next .icon {
    transform: rotate(-90deg);
}

.calendar-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
    display: grid;
    grid-template-rows: 60px 58px 62px minmax(112px, auto) 76px;
    min-width: 0;
    border-right: 1px solid #d8e2f2;
    color: var(--ink-900);
}

.calendar-day:last-child {
    border-right: 0;
}

.calendar-day > * {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-bottom: 1px solid #d8e2f2;
}

.calendar-day h4 {
    padding: 0 10px;
    font-size: 1.02rem;
    font-weight: 900;
    text-align: center;
}

.calendar-day p {
    padding: 0 10px;
    font-size: 1rem;
    font-weight: 650;
    text-align: center;
}

.calendar-coverage {
    gap: 10px;
    font-size: 1rem;
}

.calendar-coverage span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.calendar-coverage strong {
    font-size: 1.05rem;
    font-weight: 850;
}

.coverage-green {
    color: #0f9c45;
}

.coverage-green span {
    background: #17a95a;
}

.coverage-orange {
    color: #f08a00;
}

.coverage-orange span {
    background: #ff9b00;
}

.coverage-red {
    color: #e51f30;
}

.coverage-red span {
    background: #e51f30;
}

.calendar-day ul {
    display: grid;
    gap: 12px;
    align-content: center;
    justify-content: stretch;
    padding: 18px 22px;
    list-style: none;
}

.calendar-day li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    color: var(--ink-900);
    font-size: 0.92rem;
    font-weight: 650;
}

.calendar-day li span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-day li strong {
    flex: 0 0 auto;
    font-weight: 900;
}

.calendar-day footer {
    padding: 0 12px;
    border-bottom: 0;
    font-size: 0.94rem;
    font-weight: 750;
    text-align: center;
}

.calendar-day footer.is-complete {
    color: #0f9c45;
}

.calendar-day footer.has-open {
    color: #f08a00;
}

.calendar-day[hidden],
.calendar-list-view [hidden] {
    display: none;
}

.calendar-list-view {
    display: none;
    overflow-x: auto;
}

.calendar-list-view table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.calendar-list-view th,
.calendar-list-view td {
    padding: 18px 16px;
    border-bottom: 1px solid #d8e2f2;
    text-align: left;
    font-size: 0.95rem;
}

.calendar-list-view th {
    color: var(--ink-700);
    font-weight: 900;
    text-transform: uppercase;
}

.calendar-view-day .calendar-week-grid {
    grid-template-columns: minmax(280px, 420px);
}

.calendar-view-list .calendar-week-grid {
    display: none;
}

.calendar-view-list .calendar-list-view {
    display: block;
}

.calendar-empty .calendar-week-grid::after {
    content: "Nenhum plantão encontrado para os filtros selecionados.";
    display: grid;
    place-items: center;
    min-height: 220px;
    grid-column: 1 / -1;
    color: var(--ink-500);
    font-weight: 800;
}

@media (max-width: 1260px) {
    .calendar-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-actions {
        justify-content: flex-start;
    }

    .calendar-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-week-grid {
        overflow-x: auto;
        grid-template-columns: repeat(7, minmax(190px, 1fr));
    }
}

@media (max-width: 760px) {
    .calendar-shell {
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .calendar-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }

    .calendar-brand-area {
        width: 100%;
    }

    .calendar-brand-area strong {
        font-size: 1.25rem;
    }

    .calendar-userbar {
        width: 100%;
        justify-content: space-between;
        gap: 14px;
    }

    .calendar-divider {
        display: none;
    }

    .calendar-user strong {
        max-width: 170px;
        white-space: normal;
    }

    .calendar-content {
        padding: 26px 18px 36px;
    }

    .calendar-title-row h2 {
        font-size: 1.65rem;
    }

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

    .calendar-action,
    .calendar-view-controls button,
    .calendar-filters select {
        width: 100%;
    }

    .calendar-filters {
        display: grid;
        grid-template-columns: 1fr;
    }

    .calendar-stat-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .calendar-stat {
        min-height: 112px;
        grid-template-columns: 68px minmax(0, 1fr);
        padding: 20px;
    }

    .calendar-stat-icon {
        width: 62px;
        height: 62px;
    }

    .calendar-stat strong {
        font-size: 1.95rem;
    }

    .calendar-view-controls {
        display: grid;
        grid-template-columns: 1fr;
    }

    .calendar-board-header {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        min-height: 70px;
    }

    .calendar-board-header h3 {
        font-size: 1.35rem;
    }

    .calendar-nav-button {
        width: 48px;
        height: 48px;
    }
}

/* Financial operational module */
.finance-ops-active {
    background: #f8fafc;
}

.finance-ops-active .app-shell {
    display: block;
    min-height: 100vh;
}

.finance-ops-active .main-content {
    min-height: 100vh;
    padding: 0;
}

.finance-ops-active .main-content > .topbar {
    display: none;
}

.finance-ops-active:not(.sidebar-open) .sidebar {
    display: none;
}

.finance-ops-active.sidebar-open .sidebar {
    position: fixed;
    z-index: 35;
    inset: 0 auto 0 0;
    display: block;
    width: min(var(--sidebar-width), calc(100vw - 52px));
    height: 100vh;
    margin: 0;
    border-radius: 0;
}

.finance-ops-active.sidebar-open .mobile-overlay {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: block;
    background: rgba(4, 13, 31, 0.45);
}

.finance-ops-active .toast {
    z-index: 90;
}

.finance-ops-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    background: #fff;
    color: #07153d;
}

.finance-ops-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(circle at 0 42%, rgba(0, 92, 255, 0.18), transparent 28%),
        linear-gradient(180deg, #061a3a 0%, #062452 48%, #031a3f 100%);
    color: #fff;
    box-shadow: 14px 0 30px rgba(2, 15, 39, 0.16);
}

.finance-ops-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.finance-ops-menu {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.finance-ops-menu .icon {
    width: 30px;
    height: 30px;
    stroke-width: 2.4;
}

.finance-ops-brand > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #0ca6ff;
}

.finance-ops-brand > span .icon {
    width: 40px;
    height: 40px;
    stroke-width: 2.4;
}

.finance-ops-brand strong {
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
}

.finance-ops-nav {
    display: grid;
    gap: 6px;
    padding: 28px 0 18px;
}

.finance-ops-nav-item {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 64px;
    padding: 0 28px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 650;
}

.finance-ops-nav-item .icon {
    width: 26px;
    height: 26px;
    stroke-width: 2.1;
}

.finance-ops-nav-item.active,
.finance-ops-nav-item:hover {
    background: linear-gradient(90deg, #075cf5, #044de3);
    color: #fff;
}

.finance-ops-logout {
    margin-top: auto;
    padding: 18px 22px 28px;
}

.finance-ops-logout button {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 54px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 650;
    cursor: pointer;
}

.finance-ops-logout .icon {
    width: 28px;
    height: 28px;
}

.finance-ops-main {
    min-width: 0;
    background: #fff;
}

.finance-ops-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    padding: 0 34px;
    border-bottom: 1px solid #e1e7f1;
    background: #fff;
}

.finance-ops-title,
.finance-ops-userbar,
.finance-ops-period {
    display: flex;
    align-items: center;
}

.finance-ops-title {
    gap: 20px;
    min-width: 0;
}

.finance-ops-title > span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #075cf5;
    color: #fff;
}

.finance-ops-title .icon {
    width: 30px;
    height: 30px;
}

.finance-ops-title h2 {
    margin: 0;
    color: #07153d;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: 0;
}

.finance-ops-userbar {
    gap: 18px;
    flex: 0 0 auto;
}

.finance-ops-period {
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d4ddeb;
    border-radius: 8px;
    color: #51607a;
}

.finance-ops-period select {
    min-width: 150px;
    border: 0;
    background: transparent;
    color: #07153d;
    font-weight: 800;
}

.finance-ops-bell {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #46536d;
    cursor: pointer;
}

.finance-ops-bell .icon {
    width: 30px;
    height: 30px;
}

.finance-ops-bell span {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 999px;
    background: #075cf5;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 950;
}

.finance-ops-avatar {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #eaf0fb;
    color: #07153d;
}

.finance-ops-avatar .icon {
    width: 34px;
    height: 34px;
}

.finance-ops-userbar > .icon {
    width: 18px;
    height: 18px;
}

.finance-ops-content {
    padding: 36px 40px 56px;
}

.finance-period-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    color: #4a5774;
    font-size: 1.15rem;
}

.finance-period-row select {
    min-width: 210px;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid #d4ddeb;
    border-radius: 8px;
    background: #fff;
    color: #07153d;
    font-weight: 750;
}

.finance-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 26px;
}

.finance-metric-card {
    min-height: 292px;
    padding: 30px 26px 0;
    overflow: hidden;
    border: 1px solid #d8e0ee;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 8px 20px rgba(8, 29, 67, 0.06);
}

.finance-card-icon {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 50%;
}

.finance-card-icon .icon {
    width: 48px;
    height: 48px;
    stroke-width: 2.1;
}

.finance-metric-card h3 {
    margin: 28px 0 20px;
    color: #07153d;
    font-size: 1.08rem;
    font-weight: 950;
    text-transform: uppercase;
}

.finance-metric-card strong {
    display: block;
    font-size: 2.55rem;
    line-height: 1;
    font-weight: 950;
}

.finance-metric-card footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 66px;
    margin: 30px -26px 0;
    border-top: 1px solid #e3e9f3;
    font-weight: 800;
}

.finance-metric-card footer em {
    color: #4e5872;
    font-style: normal;
    font-weight: 650;
}

.up {
    color: #069444;
}

.down,
.attention {
    color: #ef6b00;
}

.finance-tone-blue .finance-card-icon,
.finance-card-icon.finance-tone-blue {
    color: #075cf5;
    background: #eaf3ff;
}

.finance-tone-blue strong {
    color: #075cf5;
}

.finance-tone-green .finance-card-icon,
.finance-card-icon.finance-tone-green {
    color: #0c9542;
    background: #e8f8ef;
}

.finance-tone-green strong {
    color: #0c9542;
}

.finance-tone-orange .finance-card-icon,
.finance-card-icon.finance-tone-orange {
    color: #f07a00;
    background: #fff0df;
}

.finance-tone-orange strong {
    color: #ef7600;
}

.finance-tone-purple .finance-card-icon,
.finance-card-icon.finance-tone-purple {
    color: #5f34b8;
    background: #f0e9ff;
}

.finance-tone-purple strong {
    color: #5f34b8;
}

.finance-tone-red .finance-card-icon {
    color: #d92334;
    background: #ffe7eb;
}

.finance-tone-red strong {
    color: #d92334;
}

.finance-tone-teal .finance-card-icon {
    color: #087b88;
    background: #e2f6f8;
}

.finance-tone-teal strong {
    color: #087b88;
}

.finance-indicator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.finance-indicator-card {
    min-height: 218px;
    padding: 20px 22px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.finance-indicator-card > div:first-child {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.finance-indicator-card .finance-card-icon {
    width: 78px;
    height: 78px;
}

.finance-indicator-card h3,
.finance-mini-card h3,
.finance-time-card h3 {
    margin: 0 0 10px;
    color: #07153d;
    font-size: 1.02rem;
    font-weight: 900;
}

.finance-indicator-card strong,
.finance-mini-card strong {
    display: block;
    color: #07153d;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 950;
}

.finance-sparkline {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 72px;
    margin-top: 18px;
}

.finance-sparkline span {
    flex: 1;
    min-width: 8px;
    border-radius: 999px;
    background: currentColor;
}

.finance-analytics-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.finance-panel,
.finance-mini-card,
.finance-table-panel,
.finance-flow-panel,
.finance-action-bar {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.finance-panel {
    padding: 18px 22px;
}

.finance-panel header h3 {
    margin: 0 0 16px;
    color: #07153d;
    font-size: 1.12rem;
    font-weight: 900;
}

.finance-panel header span {
    font-size: 0.95rem;
    font-weight: 700;
}

.finance-wide-panel {
    grid-column: span 4;
}

.finance-time-card {
    grid-column: span 2;
    position: relative;
    min-height: 244px;
}

.finance-time-card .finance-card-icon {
    position: absolute;
    top: 28px;
    left: 24px;
    width: 76px;
    height: 76px;
}

.finance-time-card h3,
.finance-time-card strong,
.finance-time-card small {
    display: block;
    margin-left: 108px;
}

.finance-time-card strong {
    margin-top: 22px;
    color: #07153d;
    font-size: 2.8rem;
    line-height: 1;
    font-weight: 950;
}

.finance-bars {
    position: absolute;
    right: 24px;
    bottom: 28px;
    display: flex;
    align-items: end;
    gap: 12px;
    height: 118px;
}

.finance-bars span {
    width: 16px;
    border-radius: 4px;
    background: #b792ef;
}

.finance-line-chart svg {
    width: 100%;
    height: 190px;
}

.finance-line-chart path:not(.chart-axis path),
.finance-line-chart .chart-blue,
.finance-line-chart .chart-green,
.finance-line-chart .chart-orange {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-blue {
    stroke: #075cf5;
}

.chart-green {
    stroke: #0c9542;
}

.chart-orange {
    stroke: #f07a00;
}

.chart-axis line {
    stroke: #e7edf5;
    stroke-width: 2;
}

.finance-chart-legend,
.finance-chart-months {
    display: flex;
    justify-content: center;
    gap: 46px;
    color: #07153d;
    font-weight: 700;
}

.finance-chart-legend span::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 5px;
    margin-right: 8px;
    border-radius: 99px;
    vertical-align: middle;
    background: currentColor;
}

.finance-chart-legend .blue {
    color: #075cf5;
}

.finance-chart-legend .green {
    color: #0c9542;
}

.finance-chart-legend .orange {
    color: #f07a00;
}

.finance-mini-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 150px;
    padding: 20px;
    grid-column: span 2;
}

.finance-mini-card .finance-card-icon {
    width: 76px;
    height: 76px;
}

.finance-mini-card .finance-donut {
    justify-self: end;
}

.finance-donut,
.finance-pie {
    border-radius: 50%;
    background: conic-gradient(#0c9542 0 25%, #d6deea 25% 100%);
}

.finance-donut {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
}

.finance-donut::before,
.finance-pie::before {
    content: "";
    display: block;
    border-radius: 50%;
    background: #fff;
}

.finance-donut::before {
    width: 58px;
    height: 58px;
}

.finance-donut span {
    position: absolute;
    color: #07153d;
    font-weight: 950;
}

.finance-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.finance-summary-table td {
    padding: 12px 8px;
    border-top: 1px solid #e5ebf4;
    font-weight: 800;
}

.dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 10px;
    border-radius: 50%;
}

.dot.blue {
    background: #075cf5;
}

.dot.green {
    background: #0c9542;
}

.dot.orange {
    background: #f07a00;
}

.dot.purple {
    background: #8b57df;
}

.bars {
    display: inline-block;
    width: 90px;
    height: 26px;
    background: repeating-linear-gradient(90deg, currentColor 0 7px, transparent 7px 14px);
}

.bars.blue {
    color: #075cf5;
}

.bars.green {
    color: #0c9542;
}

.bars.orange {
    color: #f07a00;
}

.finance-distribution {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.finance-pie {
    width: 150px;
    height: 150px;
    background: conic-gradient(#075cf5 0 32%, #58b978 32% 60%, #8b57df 60% 82%, #f07a00 82% 100%);
}

.finance-pie::before {
    width: 78px;
    height: 78px;
    margin: 36px;
}

.finance-distribution ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.finance-distribution li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 750;
}

.finance-table-panel {
    overflow: hidden;
}

.finance-table-panel table {
    width: 100%;
    border-collapse: collapse;
}

.finance-table-panel th,
.finance-table-panel td {
    padding: 34px 36px;
    border-bottom: 1px solid #e1e7f1;
    color: #07153d;
    text-align: left;
    font-size: 1.18rem;
    font-weight: 850;
}

.finance-table-panel th {
    background: #fbfcff;
    font-size: 1.05rem;
    font-weight: 950;
}

.finance-table-panel tr:last-child td {
    border-bottom: 0;
}

.finance-initials {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-right: 18px;
    border-radius: 50%;
    color: #075cf5;
    background: #edf4ff;
    font-weight: 950;
}

.finance-initials.tone-2 {
    color: #0c9542;
    background: #e7f7ef;
}

.finance-initials.tone-3 {
    color: #6c38bc;
    background: #f1eaff;
}

.finance-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 900;
}

.finance-status i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
}

.finance-status .icon {
    width: 28px;
    height: 28px;
}

.finance-status-success {
    color: #0c9542;
    background: #e7f7ef;
}

.finance-status-warning {
    color: #f09a00;
    background: #fff2dd;
}

.finance-status-danger {
    color: #dc1f2d;
    background: #ffe9ec;
}

.finance-row-action {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #56627d;
    cursor: pointer;
}

.finance-row-action .icon {
    width: 26px;
    height: 26px;
    transform: rotate(-90deg);
}

.finance-action-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    margin-top: 38px;
    padding: 34px 38px;
}

.finance-outline,
.finance-primary-button,
.finance-secondary-button,
.finance-success-button,
.finance-danger-button,
.finance-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 64px;
    border-radius: 8px;
    background: #fff;
    font-size: 1.16rem;
    font-weight: 900;
    cursor: pointer;
}

.finance-outline .icon,
.finance-primary-button .icon,
.finance-success-button .icon,
.finance-danger-button .icon,
.finance-upload-button .icon {
    width: 30px;
    height: 30px;
}

.finance-outline.blue {
    border: 1px solid #075cf5;
    color: #075cf5;
}

.finance-outline.green {
    border: 1px solid #0c9542;
    color: #0c9542;
}

.finance-outline.orange {
    border: 1px solid #f07a00;
    color: #f07a00;
}

.finance-outline.red {
    border: 1px solid #dc1f2d;
    color: #dc1f2d;
}

.finance-outline.purple {
    border: 1px solid #6c38bc;
    color: #6c38bc;
}

.finance-flow-panel {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 34px 0 24px;
}

.finance-flow-step {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    width: min(620px, calc(100% - 48px));
    min-height: 118px;
    margin: 0 auto;
    padding: 18px 32px;
    border: 1px solid #9ebcff;
    border-radius: 10px;
    background: #fff;
}

.finance-flow-step strong {
    color: #07153d;
    font-size: 1.55rem;
    font-weight: 900;
}

.finance-flow-step .finance-card-icon {
    width: 76px;
    height: 76px;
    margin: 0;
}

.finance-flow-arrow {
    display: block;
    color: #3a4562;
    font-size: 2.45rem;
    line-height: 1.25;
    text-align: center;
}

.finance-modal-backdrop {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow-y: auto;
    background: rgba(5, 17, 39, 0.28);
}

.finance-modal-backdrop[hidden] {
    display: none;
}

.finance-modal {
    width: min(960px, 100%);
    overflow: hidden;
    border: 1px solid #dde5f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(8, 29, 67, 0.18);
}

.finance-modal header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 118px;
    padding: 0 38px;
    border-bottom: 1px solid #dbe3ef;
}

.finance-modal header.blue-header {
    min-height: 138px;
    background: linear-gradient(135deg, #075cf5, #004ce3);
    color: #fff;
}

.finance-modal-title {
    display: flex;
    align-items: center;
    gap: 26px;
}

.finance-modal-title .icon {
    width: 58px;
    height: 58px;
    color: #075cf5;
    stroke-width: 2.2;
}

.blue-header .finance-modal-title .icon,
.blue-header .finance-modal-title h2 {
    color: #fff;
}

.finance-modal-title.danger .icon {
    color: #dc1f2d;
}

.finance-modal-title h2 {
    margin: 0;
    color: #07153d;
    font-size: 2.15rem;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: 0;
}

.finance-modal-close,
.finance-modal-back,
.finance-help-button {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.finance-modal-close {
    width: 64px;
    height: 64px;
    background: #eaf0fb;
    color: #07153d;
}

.finance-modal-close .icon {
    width: 34px;
    height: 34px;
    stroke-width: 2.5;
}

.finance-modal-back,
.finance-help-button {
    width: 54px;
    height: 54px;
    background: transparent;
    color: #fff;
}

.finance-modal-back .icon {
    width: 34px;
    height: 34px;
    transform: rotate(90deg);
}

.finance-help-button {
    border: 3px solid #fff;
}

.finance-modal-body {
    padding: 28px 46px;
}

.finance-detail-row {
    display: grid;
    grid-template-columns: 104px 240px minmax(0, 1fr);
    align-items: center;
    min-height: 92px;
    color: #5c6479;
    font-size: 1.35rem;
    font-weight: 700;
}

.finance-detail-row strong {
    color: #07153d;
    font-size: 1.35rem;
    font-weight: 950;
}

.finance-detail-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 12px;
}

.finance-detail-icon .icon {
    width: 46px;
    height: 46px;
}

.finance-detail-icon.blue {
    color: #075cf5;
    background: #eaf3ff;
}

.finance-detail-icon.green {
    color: #0c9542;
    background: #e8f8ef;
}

.finance-detail-icon.red {
    color: #dc1f2d;
    background: #ffe9ec;
}

.finance-modal hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #dbe3ef;
}

.green-value {
    color: #0c9542 !important;
}

.finance-checklist {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 36px;
    padding: 18px 0 8px;
}

.finance-checklist h3 {
    margin: 0 0 16px;
    color: #07153d;
    font-size: 1.35rem;
}

.finance-checklist p {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0;
    color: #28324b;
    font-size: 1.22rem;
}

.finance-checklist .icon {
    width: 30px;
    height: 30px;
    color: #0c9542;
}

.finance-modal footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: 32px 46px 40px;
    border-top: 1px solid #dbe3ef;
}

.finance-modal footer.stacked {
    grid-template-columns: 1fr;
}

.finance-danger-button {
    border: 1px solid #dc1f2d;
    color: #dc1f2d;
}

.finance-success-button {
    border: 0;
    background: #0c9542;
    color: #fff;
}

.finance-primary-button {
    border: 0;
    background: #075cf5;
    color: #fff;
}

.finance-secondary-button {
    border: 1px solid #aeb8cc;
    color: #59647b;
}

.finance-invoice-modal {
    width: min(900px, 100%);
}

.finance-invoice-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 44px 40px;
    border: 1px solid #d4ddeb;
    border-radius: 14px;
}

.finance-invoice-summary div {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 220px;
    padding: 20px;
    border-right: 1px solid #d4ddeb;
    color: #07153d;
}

.finance-invoice-summary div:last-child {
    border-right: 0;
}

.finance-invoice-summary .icon {
    width: 58px;
    height: 58px;
    color: #075cf5;
}

.finance-invoice-summary span {
    font-size: 1.28rem;
    font-weight: 750;
}

.finance-invoice-summary strong {
    color: #075cf5;
    font-size: 1.95rem;
    font-weight: 950;
}

.finance-invoice-form {
    display: grid;
    gap: 28px;
    margin: 0 40px;
    padding: 36px 0;
    border-top: 1px solid #dbe3ef;
    border-bottom: 1px solid #dbe3ef;
}

.finance-invoice-form label {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    color: #07153d;
    font-size: 1.28rem;
    font-weight: 850;
}

.finance-invoice-form input,
.finance-upload-button {
    width: 100%;
    min-height: 74px;
    padding: 0 28px;
    border: 1px solid #d4ddeb;
    border-radius: 12px;
    background: #fff;
    color: #07153d;
    font-size: 1.35rem;
}

.finance-upload-button {
    border-color: #8fb0ff;
    color: #075cf5;
}

.finance-problem-title {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 28px 0 18px;
    color: #dc1f2d;
    font-size: 1.5rem;
}

.finance-problem-title .icon {
    width: 58px;
    height: 58px;
}

.finance-problem-box {
    border: 1px solid #d4ddeb;
    border-radius: 12px;
}

.finance-problem-box div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 180px;
    align-items: center;
    min-height: 116px;
    padding: 0 34px;
    border-bottom: 1px solid #dbe3ef;
    color: #5c6479;
    font-size: 1.25rem;
    font-weight: 750;
}

.finance-problem-box div:last-child {
    border-bottom: 0;
}

.finance-problem-box strong {
    color: #dc1f2d;
    text-align: right;
}

@media (max-width: 1180px) {
    .finance-ops-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .finance-metric-grid,
    .finance-indicator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-wide-panel,
    .finance-time-card,
    .finance-mini-card {
        grid-column: span 2;
    }

    .finance-table-panel {
        overflow-x: auto;
    }

    .finance-table-panel table {
        min-width: 900px;
    }
}

@media (max-width: 760px) {
    .finance-ops-shell {
        grid-template-columns: 1fr;
    }

    .finance-ops-sidebar {
        position: static;
        min-height: auto;
    }

    .finance-ops-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    .finance-ops-nav-item {
        min-height: 52px;
        padding: 0 12px;
        gap: 10px;
        border-radius: 8px;
        font-size: 0.95rem;
    }

    .finance-ops-logout {
        padding: 8px 20px 18px;
    }

    .finance-ops-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 22px 18px;
    }

    .finance-ops-title h2 {
        font-size: 1.5rem;
    }

    .finance-ops-userbar {
        width: 100%;
        flex-wrap: wrap;
    }

    .finance-ops-content {
        padding: 24px 16px 38px;
    }

    .finance-metric-grid,
    .finance-indicator-grid,
    .finance-analytics-grid,
    .finance-action-bar,
    .finance-invoice-summary {
        grid-template-columns: 1fr;
    }

    .finance-wide-panel,
    .finance-time-card,
    .finance-mini-card {
        grid-column: span 1;
    }

    .finance-metric-card {
        min-height: 250px;
    }

    .finance-action-bar {
        gap: 14px;
        padding: 20px;
    }

    .finance-modal header,
    .finance-modal-body,
    .finance-modal footer {
        padding-left: 22px;
        padding-right: 22px;
    }

    .finance-modal-title h2 {
        font-size: 1.45rem;
    }

    .finance-detail-row,
    .finance-invoice-form label,
    .finance-problem-box div {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 0;
    }

    .finance-modal footer,
    .finance-invoice-summary {
        grid-template-columns: 1fr;
    }

    .finance-invoice-summary div {
        min-height: 150px;
        border-right: 0;
        border-bottom: 1px solid #d4ddeb;
    }

    .finance-invoice-summary div:last-child {
        border-bottom: 0;
    }
}

/* Doctor portal */
.doctor-portal-active {
    background: #f7f9fd;
}

.doctor-portal-active .app-shell {
    display: block;
    min-height: 100vh;
}

.doctor-portal-active .main-content {
    min-height: 100vh;
    padding: 0;
}

.doctor-portal-active .main-content > .topbar,
.doctor-portal-active .sidebar {
    display: none;
}

.doctor-portal-active.sidebar-open .mobile-overlay {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: block;
    background: rgba(3, 14, 35, 0.46);
}

.doctor-portal-active .toast {
    z-index: 120;
}

.doctor-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
    background: #f7f9fd;
    color: #06133a;
}

.doctor-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 28px 24px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 0 16%, rgba(0, 122, 255, 0.25), transparent 28%),
        linear-gradient(180deg, #061a3a 0%, #031936 54%, #021126 100%);
    color: #fff;
}

.doctor-brand {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.doctor-brand > span,
.doctor-logo,
.doctor-card-icon,
.doctor-row-icon,
.doctor-doc-icon,
.doctor-hospital-art {
    display: grid;
    place-items: center;
}

.doctor-brand > span {
    width: 52px;
    height: 52px;
    color: #16a6ff;
}

.doctor-brand .icon {
    width: 48px;
    height: 48px;
    stroke-width: 2.2;
}

.doctor-brand strong {
    display: block;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.05;
    font-weight: 950;
}

.doctor-brand small {
    display: block;
    margin-top: 6px;
    color: #82bbff;
    font-size: 1rem;
    font-weight: 650;
}

.doctor-nav {
    display: grid;
    gap: 8px;
}

.doctor-nav-item,
.doctor-nav-title,
.doctor-nav-child {
    display: flex;
    align-items: center;
    border: 0;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}

.doctor-nav-item,
.doctor-nav-title {
    min-height: 54px;
    gap: 16px;
    width: 100%;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 1.03rem;
    font-weight: 850;
}

.doctor-nav-item .icon,
.doctor-nav-title .icon {
    width: 27px;
    height: 27px;
    color: #2f8cff;
}

.doctor-nav-title {
    justify-content: space-between;
}

.doctor-nav-title span {
    display: flex;
    align-items: center;
    gap: 16px;
}

.doctor-nav-title > .icon {
    width: 18px;
    height: 18px;
    color: #fff;
}

.doctor-nav-item.active,
.doctor-nav-item:hover,
.doctor-nav-title:hover {
    background: rgba(17, 97, 219, 0.28);
}

.doctor-nav-children {
    display: grid;
    gap: 0;
    margin: 0 0 16px 31px;
    padding-left: 22px;
    border-left: 2px solid rgba(125, 171, 235, 0.4);
}

.doctor-nav-child {
    min-height: 42px;
    gap: 14px;
    font-size: 0.98rem;
    font-weight: 650;
}

.doctor-nav-child span {
    width: 12px;
    height: 12px;
    margin-left: -29px;
    border-radius: 50%;
    background: #5d94d7;
}

.doctor-nav-child.active,
.doctor-nav-child:hover {
    color: #79c7ff;
}

.doctor-logout {
    margin-top: auto;
    padding-top: 20px;
}

.doctor-logout button {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}

.doctor-main {
    min-width: 0;
}

.doctor-topbar {
    position: sticky;
    top: 0;
    z-index: 18;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    padding: 0 34px;
    border-bottom: 1px solid #dfe6f2;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.doctor-title-row,
.doctor-userbar,
.doctor-action-row {
    display: flex;
    align-items: center;
}

.doctor-title-row {
    gap: 16px;
    min-width: 0;
}

.doctor-menu-button,
.doctor-bell,
.doctor-modal-close,
.doctor-modal-back,
.doctor-shift-top button {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #06133a;
    cursor: pointer;
}

.doctor-menu-button {
    width: 42px;
    height: 42px;
}

.doctor-menu-button .icon {
    width: 30px;
    height: 30px;
}

.doctor-logo {
    width: 48px;
    height: 48px;
    color: #075fff;
}

.doctor-title-row h2,
.doctor-welcome h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.doctor-title-row p,
.doctor-welcome p {
    margin: 6px 0 0;
    color: #5b6b8f;
    font-weight: 700;
}

.doctor-userbar {
    gap: 16px;
}

.doctor-bell {
    position: relative;
    width: 44px;
    height: 44px;
}

.doctor-bell .icon {
    width: 28px;
    height: 28px;
}

.doctor-bell span {
    position: absolute;
    top: 2px;
    right: 0;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eb3146;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 950;
}

.doctor-avatar,
.doctor-profile-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8effb;
    color: #10265d;
}

.doctor-avatar {
    width: 50px;
    height: 50px;
}

.doctor-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px 34px 56px;
}

.doctor-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.doctor-status-badge,
.doctor-count-pill,
.doctor-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 850;
    color: #075fff;
    background: #eaf2ff;
}

.doctor-status-badge .icon {
    width: 18px;
    height: 18px;
}

.doctor-status-badge.green,
.doctor-status-badge.done,
.doctor-status-badge.confirmed,
.doctor-status-badge.active {
    color: #0b8a3a;
    background: #e2f6e9;
}

.doctor-status-badge.pending,
.doctor-status-badge.progress,
.doctor-count-pill.orange {
    color: #db7600;
    background: #fff1de;
}

.doctor-status-badge.danger {
    color: #d51d31;
    background: #ffe9ec;
}

.doctor-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.doctor-kpi-grid.four {
    margin-bottom: 28px;
}

.doctor-kpi {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 118px;
    padding: 18px;
    border: 1px solid #d9e3f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(20, 42, 82, 0.07);
}

.doctor-kpi > span,
.doctor-card-icon,
.doctor-row-icon,
.doctor-doc-icon {
    border-radius: 8px;
}

.doctor-kpi > span {
    width: 66px;
    height: 66px;
}

.doctor-kpi .icon,
.doctor-card-icon .icon {
    width: 34px;
    height: 34px;
}

.doctor-kpi small {
    display: block;
    color: #06133a;
    font-weight: 900;
    text-transform: uppercase;
}

.doctor-kpi strong {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
    line-height: 1;
}

.doctor-tone-blue > span,
.doctor-tone-blue.doctor-card-icon,
.doctor-tone-blue.doctor-row-icon,
.doctor-tone-blue.doctor-doc-icon,
.doctor-tone-blue .doctor-card-icon {
    color: #075fff;
    background: #eaf2ff;
}

.doctor-tone-green > span,
.doctor-tone-green.doctor-card-icon,
.doctor-tone-green.doctor-row-icon,
.doctor-tone-green.doctor-doc-icon,
.doctor-tone-green .doctor-card-icon {
    color: #0b9342;
    background: #e4f7eb;
}

.doctor-tone-orange > span,
.doctor-tone-orange.doctor-card-icon,
.doctor-tone-orange.doctor-row-icon,
.doctor-tone-orange.doctor-doc-icon,
.doctor-tone-orange .doctor-card-icon {
    color: #f07800;
    background: #fff0de;
}

.doctor-tone-purple > span,
.doctor-tone-purple.doctor-card-icon,
.doctor-tone-purple.doctor-row-icon,
.doctor-tone-purple.doctor-doc-icon,
.doctor-tone-purple .doctor-card-icon {
    color: #7138d8;
    background: #f0e8ff;
}

.doctor-tone-teal > span,
.doctor-tone-teal.doctor-card-icon,
.doctor-tone-teal.doctor-row-icon,
.doctor-tone-teal.doctor-doc-icon,
.doctor-tone-teal .doctor-card-icon {
    color: #05828b;
    background: #dcf7f7;
}

.doctor-kpi.doctor-tone-blue strong,
.doctor-shift-card strong {
    color: #075fff;
}

.doctor-kpi.doctor-tone-green strong,
.doctor-check-line,
.doctor-completed-card header {
    color: #0b9342;
}

.doctor-kpi.doctor-tone-orange strong,
.doctor-warning-row,
.doctor-alert-box,
.danger-text {
    color: #e36f00;
}

.doctor-kpi.doctor-tone-purple strong,
.doctor-money-card strong {
    color: #7138d8;
}

.doctor-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
}

.doctor-dashboard-grid.small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.doctor-panel,
.doctor-detail-card,
.doctor-live-card,
.doctor-completed-card,
.doctor-invoice-page,
.doctor-modal {
    border: 1px solid #d9e3f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(20, 42, 82, 0.08);
}

.doctor-panel,
.doctor-detail-card,
.doctor-live-card,
.doctor-completed-card,
.doctor-invoice-page {
    padding: 24px;
}

.doctor-panel.flat {
    box-shadow: none;
}

.doctor-panel.wide {
    grid-column: 1 / -1;
}

.doctor-panel header,
.doctor-next-shift header,
.doctor-market-heading,
.doctor-detail-hero,
.doctor-selected-shift,
.doctor-live-card header,
.doctor-completed-card header,
.doctor-invoice-page header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.doctor-panel h3,
.doctor-panel h4,
.doctor-live-card h3,
.doctor-completed-card h3,
.doctor-invoice-page h3 {
    margin: 0;
    color: #06133a;
    letter-spacing: 0;
}

.doctor-panel h3,
.doctor-invoice-page h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.18rem;
}

.doctor-panel header button,
.doctor-link-button {
    border: 0;
    background: transparent;
    color: #075fff;
    font-weight: 850;
    cursor: pointer;
}

.doctor-shift-summary,
.doctor-live-body {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin: 18px 0;
}

.doctor-hospital-art {
    width: 118px;
    height: 118px;
    border-radius: 8px;
    color: #075fff;
    background: #eaf2ff;
}

.doctor-hospital-art .icon {
    width: 72px;
    height: 72px;
}

.doctor-shift-summary h4,
.doctor-live-body h4 {
    margin: 0 0 8px;
    font-size: 1.55rem;
}

.doctor-shift-summary p,
.doctor-live-body p,
.doctor-list-row p,
.doctor-notice-row p,
.doctor-shift-card p,
.doctor-flow-box p,
.doctor-result-card p {
    margin: 5px 0 0;
    color: #52617f;
    font-weight: 650;
}

.doctor-action-row {
    flex-wrap: wrap;
    gap: 12px;
}

.doctor-primary,
.doctor-outline,
.doctor-list-row button,
.doctor-form-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.doctor-primary {
    border: 1px solid #075fff;
    background: linear-gradient(90deg, #075fff, #004be7);
    color: #fff;
    box-shadow: 0 9px 20px rgba(0, 76, 231, 0.18);
}

.doctor-outline,
.doctor-list-row button {
    border: 1px solid #075fff;
    background: #fff;
    color: #075fff;
}

.doctor-outline.green {
    border-color: #0b9342;
    color: #0b9342;
}

.doctor-outline.orange {
    border-color: #f07800;
    color: #f07800;
}

.doctor-outline.danger {
    border-color: #e42737;
    color: #e42737;
}

.doctor-primary.full,
.doctor-outline.full {
    width: 100%;
}

.doctor-list-row,
.doctor-warning-row,
.doctor-notice-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e2e9f4;
}

.doctor-list-row:last-of-type,
.doctor-warning-row:last-of-type,
.doctor-notice-row:last-of-type {
    border-bottom: 0;
}

.doctor-row-icon,
.doctor-doc-icon {
    width: 44px;
    height: 44px;
}

.doctor-warning-row {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid #ffd7ad;
    border-radius: 8px;
    background: #fff8ee;
}

.doctor-money-card {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    padding: 18px;
    border: 1px solid #e2e9f4;
    border-radius: 8px;
}

.doctor-money-card.muted strong {
    color: #075fff;
}

.doctor-table {
    display: grid;
    border: 1px solid #dce5f3;
    border-radius: 8px;
    overflow: hidden;
}

.doctor-table > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 12px 18px;
    border-bottom: 1px solid #e2e9f4;
}

.doctor-table > div:first-child {
    background: #f7f9fd;
}

.doctor-table > div:last-child {
    border-bottom: 0;
}

.doctor-table.documents > div {
    grid-template-columns: minmax(170px, 1fr) minmax(90px, 0.55fr) minmax(120px, 0.65fr) minmax(140px, 0.7fr);
}

.doctor-table.payments > div {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.doctor-filter-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(140px, 0.7fr));
    gap: 14px;
    margin-bottom: 22px;
}

.doctor-filter-row.compact {
    grid-template-columns: max-content repeat(4, minmax(130px, 180px));
    align-items: center;
}

.doctor-search,
.doctor-filter-row select,
.doctor-filter-row button,
.doctor-form-panel input,
.doctor-form-panel textarea,
.doctor-document-form input,
.doctor-document-form textarea {
    min-height: 52px;
    border: 1px solid #d4deee;
    border-radius: 8px;
    background: #fff;
    color: #06133a;
}

.doctor-search {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 0 16px;
}

.doctor-search input,
.doctor-form-panel input,
.doctor-form-panel textarea,
.doctor-document-form input,
.doctor-document-form textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.doctor-filter-row select,
.doctor-filter-row button {
    padding: 0 16px;
    font-weight: 800;
}

.doctor-filter-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #075fff;
    cursor: pointer;
}

.doctor-market-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 16px;
}

.doctor-shift-card {
    display: grid;
    gap: 13px;
    min-height: 326px;
    padding: 20px;
    border: 1px solid #d9e3f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(20, 42, 82, 0.07);
}

.doctor-shift-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doctor-shift-top .is-active .icon {
    fill: currentColor;
    color: #d31573;
}

.doctor-card-icon {
    width: 58px;
    height: 58px;
}

.doctor-shift-card h3 {
    margin: 0;
    font-size: 1.16rem;
}

.doctor-shift-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.doctor-shift-card dl div {
    display: flex;
    gap: 8px;
    color: #31456f;
}

.doctor-shift-card dd {
    margin: 0;
}

.doctor-shift-card dd span {
    display: inline-flex;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 7px;
    background: #f1f5fb;
    font-size: 0.85rem;
}

.doctor-verification-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 26px 0 0;
    color: #33476f;
    font-weight: 750;
}

.doctor-detail-card {
    display: grid;
    gap: 18px;
}

.doctor-detail-hero {
    padding-bottom: 18px;
    border-bottom: 1px solid #dfe6f2;
}

.doctor-detail-hero h3 {
    margin: 0;
    font-size: 1.65rem;
}

.doctor-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.doctor-check-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.doctor-check-line .icon {
    width: 20px;
    height: 20px;
    fill: #e4f7eb;
}

.doctor-info-list {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.doctor-info-list div,
.doctor-finance-lines div,
.doctor-modal-details div {
    display: grid;
    grid-template-columns: minmax(120px, 0.65fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.doctor-info-list dt,
.doctor-finance-lines dt,
.doctor-modal-details dt {
    color: #5b6b8f;
    font-weight: 800;
}

.doctor-info-list dd,
.doctor-finance-lines dd,
.doctor-modal-details dd {
    margin: 0;
    font-weight: 900;
}

.doctor-panel textarea,
.doctor-form-panel textarea,
.doctor-document-form textarea {
    min-height: 92px;
    resize: vertical;
}

.doctor-confirm-box {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
}

.doctor-confirm-box label,
.doctor-form-panel label,
.doctor-form-panel fieldset label,
.doctor-document-form label {
    display: grid;
    gap: 8px;
    color: #06133a;
    font-weight: 780;
}

.doctor-confirm-box label {
    display: flex;
    align-items: center;
}

.doctor-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.doctor-form-actions .doctor-outline + .doctor-outline + .doctor-primary {
    grid-column: span 1;
}

.doctor-day-band {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    margin-bottom: 18px;
    padding: 0 22px;
    border-radius: 8px;
    background: #eaf2ff;
    color: #075fff;
    font-size: 1.35rem;
    font-weight: 950;
}

.doctor-my-shifts {
    display: grid;
    gap: 18px;
}

.doctor-my-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 22px;
    border: 1px solid #d9e3f2;
    border-radius: 8px;
    background: #fff;
}

.doctor-my-card .doctor-action-row {
    grid-column: 1 / -1;
}

.doctor-live-card {
    max-width: 980px;
    margin: 0 auto;
}

.doctor-live-card header {
    min-height: 128px;
    padding: 0 28px;
    border: 1px solid #c9ebd5;
    border-radius: 8px;
    background: #e9f8ee;
    color: #087b35;
}

.doctor-live-card header span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #fff;
}

.doctor-live-card header h3 {
    margin-right: auto;
    color: #087b35;
    font-size: 2.2rem;
}

.doctor-live-card header em {
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #c8efd5;
    font-style: normal;
    font-weight: 950;
}

.doctor-live-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.doctor-live-actions button {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 170px;
    border: 2px solid currentColor;
    border-radius: 8px;
    background: #fff;
    color: #075fff;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
}

.doctor-live-actions button:nth-child(2) {
    color: #f07800;
}

.doctor-live-actions button:nth-child(3) {
    color: #0b9342;
}

.doctor-live-actions .icon {
    width: 42px;
    height: 42px;
}

.doctor-completed-card header {
    min-height: 92px;
    padding: 0 28px;
    border: 1px solid #c9ebd5;
    border-radius: 8px;
    background: #e9f8ee;
}

.doctor-completed-card header .icon:first-child {
    width: 54px;
    height: 54px;
}

.doctor-finance-lines {
    display: grid;
    gap: 0;
    margin: 20px 0;
    border-top: 1px solid #dfe6f2;
    border-bottom: 1px solid #dfe6f2;
}

.doctor-finance-lines div {
    min-height: 68px;
    border-bottom: 1px solid #dfe6f2;
}

.doctor-finance-lines div:last-child {
    border-bottom: 0;
}

.doctor-swap-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.doctor-swap-stats h3 {
    margin-bottom: 18px;
}

.doctor-swap-stat {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 76px;
    border-bottom: 1px solid #dfe6f2;
}

.doctor-swap-stat span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
}

.doctor-swap-stat em {
    font-style: normal;
    font-size: 1.8rem;
    font-weight: 950;
}

.doctor-form-panel {
    display: grid;
    gap: 16px;
}

.doctor-form-panel fieldset {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.doctor-form-panel legend {
    margin-bottom: 8px;
    color: #06133a;
    font-size: 1.1rem;
    font-weight: 950;
}

.doctor-selected-shift {
    justify-content: start;
    padding: 16px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
}

.doctor-selected-shift .doctor-hospital-art {
    width: 86px;
    height: 86px;
}

.doctor-selected-shift .doctor-hospital-art .icon {
    width: 48px;
    height: 48px;
}

.doctor-search-label input {
    margin-top: 8px;
    padding: 0 14px;
}

.doctor-candidate-list {
    display: grid;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    overflow: hidden;
}

.doctor-candidate-list label {
    display: grid;
    grid-template-columns: 24px 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 74px;
    padding: 12px;
    border-bottom: 1px solid #dfe6f2;
}

.doctor-candidate-list label:last-child {
    border-bottom: 0;
}

.doctor-candidate-list small {
    grid-column: 3;
    color: #5b6b8f;
}

.doctor-alert-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 14px 18px;
    border: 1px solid #ffc76f;
    border-radius: 8px;
    background: #fff8e9;
    font-weight: 800;
}

.doctor-transfer-flow {
    display: grid;
    max-width: 900px;
    margin: 0 auto;
}

.doctor-flow-box {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    min-height: 156px;
    padding: 24px;
    border: 1px solid #d9e3f2;
    border-radius: 8px;
    background: #fff;
}

.doctor-flow-box.doctor-tone-green {
    border-color: #9ed9b4;
    background: #f0faf3;
}

.doctor-flow-box.doctor-tone-orange {
    border-color: #ffc27a;
    background: #fff8ee;
}

.doctor-flow-box em {
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #eaf2ff;
    color: #075fff;
    font-style: normal;
    font-weight: 900;
}

.doctor-flow-arrow {
    justify-self: center;
    color: #075fff;
    font-size: 2.2rem;
    line-height: 1.2;
}

.doctor-credential-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.doctor-credential-kpis article {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 18px;
    border: 1px solid #d9e3f2;
    border-radius: 8px;
    background: #fff;
}

.doctor-credential-kpis article.approved {
    border-color: #bde5cb;
    background: #f0faf3;
}

.doctor-credential-kpis small {
    color: #66728c;
    text-transform: uppercase;
    font-weight: 850;
}

.doctor-credential-kpis .icon {
    width: 56px;
    height: 56px;
    color: #075fff;
}

.doctor-credential-kpis .approved .icon,
.doctor-credential-kpis .approved strong {
    color: #0b9342;
}

.doctor-credential-kpis strong {
    color: #075fff;
    font-size: 1.8rem;
}

.doctor-approval-panel {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid #bde5cb;
    border-radius: 8px;
    background: #f0faf3;
    color: #0b9342;
}

.doctor-approval-panel > span .icon {
    width: 76px;
    height: 76px;
}

.doctor-approval-panel h3 {
    margin: 0 0 20px;
    font-size: 2rem;
}

.doctor-approval-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.doctor-approval-dates p {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
}

.doctor-approval-dates span {
    color: #06133a;
    font-weight: 800;
}

.doctor-pendency-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 82px;
    border-bottom: 1px solid #dfe6f2;
}

.doctor-pendency-row span {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff0de;
    color: #e36f00;
    font-size: 1.6rem;
    font-weight: 950;
}

.doctor-profile-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: 22px 0;
}

.doctor-profile-avatar {
    width: 88px;
    height: 88px;
    color: #075fff;
}

.doctor-profile-card h4 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

.doctor-status-list {
    display: grid;
}

.doctor-status-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 54px minmax(160px, 0.8fr) 24px;
    gap: 18px;
    align-items: center;
    min-height: 86px;
    padding: 0 10px;
    border: 0;
    border-bottom: 1px solid #dfe6f2;
    background: transparent;
    color: #06133a;
    text-align: left;
    cursor: pointer;
}

.doctor-status-row:last-child {
    border-bottom: 0;
}

.doctor-status-row strong {
    font-size: 1.22rem;
}

.doctor-status-row em {
    color: #0b9342;
    font-style: normal;
    font-size: 1.1rem;
    font-weight: 900;
}

.doctor-status-row .doctor-tone-orange + em {
    color: #e36f00;
}

.doctor-history-list {
    position: relative;
    display: grid;
    gap: 28px;
    padding: 24px 0 24px 24px;
}

.doctor-history-list::before {
    content: "";
    position: absolute;
    top: 46px;
    bottom: 46px;
    left: 48px;
    width: 2px;
    background: #c9d3e3;
}

.doctor-history-item {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.doctor-history-item > span {
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    background: #0b9342;
}

.doctor-history-item.doctor-tone-orange > span {
    background: #f29a00;
}

.doctor-history-item time {
    display: block;
    color: #66728c;
    font-size: 1.15rem;
    font-weight: 750;
}

.doctor-history-item strong {
    display: block;
    margin-top: 8px;
    font-size: 1.25rem;
}

.doctor-invoice-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.doctor-invoice-page header {
    min-height: 104px;
    padding: 0 28px;
    background: linear-gradient(90deg, #075fff, #004be7);
    color: #fff;
}

.doctor-invoice-page header h3 {
    margin-right: auto;
    color: #fff;
    font-size: 1.8rem;
}

.doctor-invoice-page header .icon {
    width: 34px;
    height: 34px;
}

.doctor-invoice-page header button {
    border: 0;
    background: transparent;
    color: #fff;
}

.doctor-invoice-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 28px;
    border: 1px solid #d9e3f2;
    border-radius: 8px;
}

.doctor-invoice-summary div {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 150px;
    border-right: 1px solid #d9e3f2;
}

.doctor-invoice-summary div:last-child {
    border-right: 0;
}

.doctor-invoice-summary .icon {
    width: 42px;
    height: 42px;
    color: #075fff;
}

.doctor-invoice-summary strong {
    color: #075fff;
    font-size: 1.5rem;
}

.doctor-invoice-page .doctor-form-panel {
    padding: 0 28px 28px;
}

.doctor-notification-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.doctor-result-card {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 28px;
    text-align: center;
}

.doctor-result-card > span {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    color: #075fff;
    background: #eaf2ff;
}

.doctor-result-card > span .icon {
    width: 62px;
    height: 62px;
}

.doctor-result-card h2,
.doctor-result-card h3 {
    margin: 0;
    color: #06133a;
    font-size: 1.75rem;
}

.doctor-result-card.success h2,
.doctor-result-card.success h3,
.doctor-result-card.success > span {
    color: #0b9342;
}

.doctor-result-card.success > span {
    background: #e4f7eb;
}

.doctor-result-card.danger h2,
.doctor-result-card.danger h3,
.doctor-result-card.danger > span {
    color: #e42737;
}

.doctor-result-card.danger > span {
    background: #ffe9ec;
}

.doctor-modal-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(4, 13, 31, 0.42);
}

.doctor-modal-backdrop[hidden] {
    display: none;
}

.doctor-modal {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.doctor-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef3fb;
}

.doctor-result-status {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 16px 0;
    border-top: 1px solid #dfe6f2;
}

.doctor-result-status strong {
    color: #075fff;
    text-transform: uppercase;
}

.doctor-modal-details {
    display: grid;
    gap: 0;
    width: 100%;
    margin: 0;
    border-top: 1px solid #dfe6f2;
    border-bottom: 1px solid #dfe6f2;
}

.doctor-modal-details div {
    min-height: 62px;
    border-bottom: 1px solid #dfe6f2;
}

.doctor-modal-details div:last-child {
    border-bottom: 0;
}

.doctor-modal-details .icon {
    color: #075fff;
}

.doctor-ranking-modal {
    width: min(820px, 100%);
    padding: 0;
}

.doctor-ranking-modal header {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    min-height: 92px;
    padding: 0 28px;
    border-bottom: 1px solid #dfe6f2;
}

.doctor-ranking-modal h2 {
    margin: 0;
    text-align: center;
    font-size: 1.8rem;
}

.doctor-modal-back {
    width: 44px;
    height: 44px;
}

.doctor-modal-back .icon {
    transform: rotate(90deg);
}

.doctor-ranking-intro {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 34px 28px 18px;
    text-align: center;
}

.doctor-ranking-intro span {
    display: grid;
    place-items: center;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: #eaf2ff;
    color: #075fff;
}

.doctor-ranking-list {
    display: grid;
    gap: 18px;
    padding: 18px 36px 36px;
}

.doctor-ranking-row {
    display: grid;
    grid-template-columns: 74px 82px minmax(0, 1fr) 70px;
    gap: 16px;
    align-items: center;
    min-height: 126px;
    padding: 18px;
    border: 1px solid #d9e3f2;
    border-radius: 8px;
}

.doctor-ranking-row > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #fff;
    background: #e5aa00;
    font-size: 1.4rem;
    font-weight: 950;
}

.doctor-ranking-row.silver > span {
    background: #7c8797;
}

.doctor-ranking-row.bronze > span {
    background: #d67516;
}

.doctor-ranking-row .doctor-avatar {
    width: 70px;
    height: 70px;
}

.doctor-ranking-row strong {
    display: block;
    font-size: 1.3rem;
}

.doctor-ranking-row em {
    color: #0b9342;
    font-style: normal;
    font-weight: 950;
}

.doctor-ranking-row > .icon {
    width: 42px;
    height: 42px;
    color: #0b9342;
}

.doctor-document-modal {
    width: min(760px, 100%);
}

.doctor-document-modal header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 92px;
    padding: 0 30px;
    border-bottom: 1px solid #dfe6f2;
}

.doctor-document-modal header div {
    display: flex;
    align-items: center;
    gap: 18px;
}

.doctor-document-modal header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.doctor-document-form {
    display: grid;
    gap: 18px;
    padding: 28px 30px;
}

.doctor-document-form p {
    display: grid;
    gap: 8px;
    margin: 0;
}

.doctor-file-chip {
    justify-self: start;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid #d4deee;
    border-radius: 8px;
    background: #fff;
    color: #06133a;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .doctor-kpi-grid,
    .doctor-market-grid,
    .doctor-credential-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .doctor-dashboard-grid,
    .doctor-dashboard-grid.small,
    .doctor-detail-grid,
    .doctor-swap-layout,
    .doctor-notification-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .doctor-shell {
        grid-template-columns: 1fr;
    }

    .doctor-sidebar {
        position: fixed;
        z-index: 80;
        inset: 0 auto 0 0;
        width: min(330px, calc(100vw - 52px));
        height: 100vh;
        transform: translateX(-105%);
        transition: transform 180ms ease;
        box-shadow: 20px 0 42px rgba(4, 13, 31, 0.25);
    }

    .doctor-portal-active.sidebar-open .doctor-sidebar {
        transform: translateX(0);
    }

    .doctor-topbar {
        position: static;
        padding: 18px;
        align-items: flex-start;
        gap: 18px;
    }

    .doctor-title-row h2 {
        font-size: 1.45rem;
    }

    .doctor-content {
        padding: 22px 18px 84px;
    }

    .doctor-filter-row,
    .doctor-filter-row.compact {
        grid-template-columns: 1fr;
    }

    .doctor-market-grid,
    .doctor-kpi-grid,
    .doctor-credential-kpis,
    .doctor-invoice-summary {
        grid-template-columns: 1fr;
    }

    .doctor-my-card,
    .doctor-shift-summary,
    .doctor-live-body,
    .doctor-flow-box,
    .doctor-approval-panel,
    .doctor-profile-card {
        grid-template-columns: 1fr;
    }

    .doctor-live-actions,
    .doctor-form-actions,
    .doctor-approval-dates {
        grid-template-columns: 1fr;
    }

    .doctor-table {
        overflow-x: auto;
    }

    .doctor-table > div,
    .doctor-table.documents > div,
    .doctor-table.payments > div {
        min-width: 760px;
    }

    .doctor-live-card header {
        display: grid;
        justify-items: start;
        height: auto;
        padding: 24px;
    }

    .doctor-live-card header h3 {
        font-size: 1.7rem;
    }

    .doctor-live-actions button {
        min-height: 120px;
    }

    .doctor-ranking-row {
        grid-template-columns: 58px 58px minmax(0, 1fr);
    }

    .doctor-ranking-row > .icon {
        display: none;
    }
}

@media (max-width: 620px) {
    .doctor-topbar {
        flex-direction: column;
    }

    .doctor-userbar {
        width: 100%;
        justify-content: space-between;
    }

    .doctor-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .doctor-kpi {
        grid-template-columns: 56px minmax(0, 1fr);
        min-height: 104px;
    }

    .doctor-kpi > span {
        width: 54px;
        height: 54px;
    }

    .doctor-kpi strong {
        font-size: 1.55rem;
    }

    .doctor-panel,
    .doctor-detail-card,
    .doctor-live-card,
    .doctor-completed-card {
        padding: 18px;
    }

    .doctor-hospital-art {
        width: 96px;
        height: 96px;
    }

    .doctor-modal-backdrop {
        padding: 14px;
    }

    .doctor-modal {
        max-height: calc(100vh - 28px);
    }
}
