:root {
    --blue: #0074a6;
    --blue-deep: #005b8f;
    --green: #009f5f;
    --green-soft: #ddf8ea;
    --yellow: #ffd22e;
    --attention: #d85a3a;
    --ink-strong: #0f172a;
    --surface: rgba(255, 255, 255, 0.88);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body {
    background:
        radial-gradient(circle at 78% 0%, rgba(30, 144, 255, 0.14), transparent 360px),
        radial-gradient(circle at 8% 24%, rgba(0, 116, 166, 0.10), transparent 300px),
        linear-gradient(180deg, #ffffff 0%, #eef6fd 100%);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    opacity: 0.7;
    z-index: -1;
}

.sidebar {
    background:
        linear-gradient(180deg, #0c78bc 0%, #096ca8 38%, #075b93 68%, #064b7b 100%);
    border-right: 0;
    padding: 26px 18px;
    backdrop-filter: none;
    box-shadow: 18px 0 45px rgba(15, 23, 42, 0.14);
}

.brand {
    padding-bottom: 28px;
}

.brand img {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 8px 14px rgba(7, 93, 112, 0.18));
}

.brand strong {
    color: #ffffff;
    letter-spacing: 0.01em;
}

.brand span,
.sidebar small,
.sidebar .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.nav {
    gap: 7px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.86);
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-item.active,
.nav-item:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.14));
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.nav-item.active {
    border-left: 4px solid var(--yellow);
    box-shadow: inset 0 0 0 1px rgba(255, 210, 46, 0.18), var(--shadow-soft);
}

.profile-switch {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-soft);
}

.profile-switch label {
    color: #ffffff;
}

.app {
    padding: 30px;
}

.topbar {
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid #e8edf0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    backdrop-filter: none;
}

h1 {
    color: var(--ink-strong);
    font-size: 31px;
    letter-spacing: -0.02em;
}

.btn {
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

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

.btn.primary {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 10px 22px rgba(0, 116, 166, 0.26);
}

.btn.secondary {
    border-color: rgba(0, 116, 166, 0.42);
    color: var(--blue);
}

.btn.ghost {
    background: #ffffff;
    border-color: rgba(0, 116, 166, 0.24);
    color: var(--blue);
}

.kpi,
.panel,
.table-wrap,
.calendar-day,
.team-card {
    background: #ffffff;
    border-color: #e8edf0;
    box-shadow: var(--shadow-soft);
    backdrop-filter: none;
}

.table-wrap {
    padding: 12px;
}

.table-wrap table {
    border-collapse: separate;
    border-spacing: 0 6px;
    table-layout: fixed;
    width: 100%;
}

.table-wrap thead th {
    border-bottom: 0;
}

.kpi {
    padding: 20px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(238, 247, 255, 0.96) 0%, rgba(255, 255, 255, 1) 76%),
        #ffffff;
    border-color: rgba(12, 120, 188, 0.15);
}

.kpi::before {
    content: none;
}

.kpi strong {
    color: var(--ink-strong);
    font-size: 28px;
    letter-spacing: -0.03em;
}

.kpi-trend {
    display: block;
    min-height: 36px;
    margin: 10px 0 4px;
}

.kpi-spark {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    align-items: end;
    height: 32px;
}

.kpi-spark i {
    display: block;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #1b8ce3, #0d6fb6);
    min-height: 7px;
}

.kpi-trend > strong {
    align-self: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 7px;
}

.kpi-trend > strong.positive {
    background: #dff8e8;
    color: #007a46;
}

.kpi-trend > strong.negative {
    background: #fff1eb;
    color: var(--attention);
}

.kpi-trend > span {
    display: none;
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.panel {
    padding: 20px;
}

.dashboard-date-range {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.dashboard-date-field {
    margin: 0;
    min-width: 190px;
}

.dashboard-date-field input {
    min-height: 40px;
}

.daily-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 14px;
}

.daily-insight-card {
    border: 1px solid rgba(12, 120, 188, 0.12);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(240, 248, 255, 0.92), #ffffff);
    box-shadow: var(--shadow-soft);
    padding: 14px;
}

.daily-insight-card span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.daily-insight-card strong {
    color: var(--blue-deep);
    display: block;
    font-size: 24px;
    letter-spacing: -0.03em;
    margin: 8px 0 5px;
}

.daily-insight-card small {
    color: #5c6b80;
    display: block;
    font-size: 12px;
    line-height: 1.35;
}

.daily-profit strong {
    letter-spacing: -0.04em;
    color: #0b74bb;
}

.mini-bar {
    background: linear-gradient(180deg, #1f95ef 0%, rgba(13, 111, 182, 0.34) 100%);
    cursor: help;
}

.mini-bar.negative {
    background: linear-gradient(180deg, #d85a3a 0%, rgba(216, 90, 58, 0.28) 100%);
}

.mini-bar strong {
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    padding: 5px 7px;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
    z-index: 2;
}

.mini-bar:hover strong {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.week-result {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 14px;
    margin-top: 36px;
    padding: 14px;
    border: 1px solid rgba(0, 159, 95, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(235, 252, 241, 0.92) 0%, rgba(255, 255, 255, 0.98) 72%),
        #ffffff;
}

.week-result span,
.week-result dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.week-result strong {
    display: block;
    margin-top: 6px;
    color: var(--ink-strong);
    font-size: 24px;
    letter-spacing: -0.03em;
}

.week-compare {
    display: inline-flex;
    margin-top: 8px;
    border-radius: 8px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    padding: 6px 8px;
}

.week-compare.positive {
    background: #dff8e8;
    color: #007a46;
}

.week-compare.negative {
    background: #fff1eb;
    color: var(--attention);
}

.week-result dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.week-result div {
    min-width: 0;
}

.week-result dd {
    margin: 5px 0 0;
    color: var(--ink-strong);
    font-weight: 800;
}

.weekly-evolution {
    margin-top: 16px;
    border-color: rgba(0, 159, 95, 0.16);
    background:
        linear-gradient(180deg, rgba(235, 252, 241, 0.92) 0%, rgba(255, 255, 255, 0.98) 72%),
        #ffffff;
}

.forecast-entry-panel {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
}

.forecast-entry-panel p {
    color: var(--muted);
    margin: 6px 0 0;
}

.forecast-control-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: end;
}

.forecast-control-panel p {
    color: var(--muted);
    margin: 6px 0 0;
}

.forecast-percent-field {
    margin: 0;
}

.forecast-year-actions {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0, 116, 166, 0.14);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin: 14px 0 0;
    padding: 12px;
}

.forecast-year-actions strong {
    color: var(--blue-deep);
    font-size: 20px;
    margin-right: auto;
}

.forecast-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.forecast-summary article,
.forecast-card {
    border: 1px solid rgba(0, 159, 95, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(235, 252, 241, 0.92) 0%, rgba(255, 255, 255, 0.98) 72%),
        #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 16px;
}

.forecast-summary span,
.forecast-summary small,
.forecast-card span,
.forecast-card small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
}

.forecast-summary strong {
    color: var(--ink-strong);
    display: block;
    font-size: 28px;
    letter-spacing: -0.03em;
    margin: 8px 0 4px;
}

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

.forecast-card {
    min-height: 150px;
}

.forecast-card > strong {
    color: var(--ink-strong);
    display: block;
    font-size: 18px;
    margin-top: 10px;
    text-transform: capitalize;
}

.forecast-card p {
    color: var(--green);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 12px 0 6px;
}

.forecast-card.negative p {
    color: var(--attention);
}

.forecast-card.actual {
    border-color: rgba(0, 116, 166, 0.22);
    background:
        linear-gradient(180deg, rgba(0, 116, 166, 0.10) 0%, rgba(255, 255, 255, 0.98) 72%),
        #ffffff;
}

.forecast-card.current {
    border-color: rgba(0, 116, 166, 0.34);
    background:
        linear-gradient(180deg, rgba(0, 116, 166, 0.14) 0%, rgba(255, 255, 255, 0.99) 72%),
        #ffffff;
}

.admin-settings-panel {
    margin-top: 16px;
}

.admin-settings-panel .panel-head {
    align-items: flex-start;
}

.admin-settings-panel .panel-head p {
    color: var(--muted);
    margin: 6px 0 0;
}

.tax-setting {
    display: grid;
    grid-template-columns: minmax(220px, 340px) auto minmax(180px, 1fr);
    gap: 12px;
    align-items: end;
    margin-top: 16px;
}

.tax-setting .field {
    margin: 0;
}

.tax-setting small {
    align-self: center;
    color: var(--muted);
    font-weight: 700;
}

.finance-settings-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto minmax(200px, 1fr);
}

.finance-settings-summary {
    margin-top: 16px;
}

.input-error {
    border-color: var(--attention) !important;
    box-shadow: 0 0 0 4px rgba(216, 90, 58, 0.12) !important;
}

.employee-dashboard {
    display: grid;
    gap: 16px;
}

.employee-dashboard[hidden] {
    display: none;
}

.employee-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    box-shadow: var(--shadow-soft);
    color: #ffffff;
    padding: 24px;
}

.employee-hero .eyebrow,
.employee-hero p {
    color: rgba(255, 255, 255, 0.82);
}

.employee-hero h2 {
    color: #ffffff;
    font-size: 30px;
    margin-bottom: 6px;
}

.employee-hero strong {
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    padding: 10px 12px;
    text-transform: capitalize;
}

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

.employee-kpi {
    border: 1px solid #e8edf0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.employee-kpi.money-card {
    background: linear-gradient(180deg, #e8faef 0%, #ffffff 78%);
    border-color: rgba(0, 159, 95, 0.18);
}

.employee-kpi.attention-card {
    background: linear-gradient(180deg, #fff3ee 0%, #ffffff 78%);
    border-color: rgba(216, 90, 58, 0.18);
}

.employee-kpi span,
.employee-kpi small {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.employee-kpi strong {
    color: var(--ink-strong);
    display: block;
    font-size: 32px;
    letter-spacing: -0.04em;
    margin: 10px 0 6px;
}

.employee-status-list {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.employee-status-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e8edf0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
}

.employee-status-item strong,
.employee-status-item span {
    display: block;
}

.employee-status-item strong {
    color: var(--ink-strong);
}

.employee-status-item span,
.employee-status-item small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.employee-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.quick-action {
    min-height: 54px;
    border: 1px solid rgba(0, 116, 166, 0.20);
    border-radius: 8px;
    background: #ffffff;
    color: var(--blue-deep);
    cursor: pointer;
    font-weight: 900;
    padding: 0 14px;
    text-align: left;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.quick-action:hover {
    border-color: rgba(0, 116, 166, 0.42);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

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

.notification-summary article {
    border: 1px solid #e8edf0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 14px 16px;
}

.notification-summary span,
.notification-summary small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
}

.notification-summary strong {
    color: var(--ink-strong);
    display: block;
    font-size: 24px;
    margin: 7px 0 4px;
}

.weekly-evolution .panel-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.week-bars {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    height: 196px;
    margin-top: 34px;
    padding-bottom: 28px;
}

.week-bar {
    min-height: 22px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #1c8fe8 0%, rgba(9, 108, 168, 0.34) 100%);
    position: relative;
    cursor: help;
}

.week-bar.negative {
    background: linear-gradient(180deg, #d85a3a 0%, rgba(216, 90, 58, 0.32) 100%);
}

.week-bar strong {
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    padding: 5px 7px;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
    z-index: 2;
}

.week-bar:hover strong {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.week-bar span {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

.timeline-item,
.entry,
.category-row {
    border-color: #e8edf0;
    background: #ffffff;
}

tbody tr {
    transition: background-color 0.16s ease;
}

#sales-table tr:not(.day-separator-row) td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

#sales-table tr:not(.day-separator-row) td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}

#sales-table tr:not(.day-separator-row) td {
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

tbody tr:hover {
    background: rgba(7, 93, 112, 0.035);
}

.day-separator-row td {
    padding: 30px 14px 14px;
    background: transparent;
    border-bottom: 0;
}

.day-separator-row span {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue-deep);
    font-size: 13px;
    font-weight: 800;
    text-transform: capitalize;
}

.day-separator-row span > strong {
    color: var(--green);
    font-size: 12px;
    margin-left: 6px;
    text-transform: uppercase;
}

.day-separator-row span::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(0, 116, 166, 0.34), rgba(0, 159, 95, 0.16), transparent);
}

.sale-row-status td {
    border-bottom-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.sale-row-status .student-cell strong,
.sale-row-status .student-cell small,
.sale-row-status td small {
    color: rgba(255, 255, 255, 0.86);
}

.sale-row-status td > strong,
.sale-row-status td {
    color: #ffffff;
}

.sale-row-status select,
.sale-row-status .small-button {
    border-color: rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.94);
    color: var(--blue-deep);
}

.sale-row-pending {
    background: linear-gradient(90deg, #c94f32 0%, #d85a3a 100%);
    box-shadow: none;
}

.sale-row-pending:hover {
    background: linear-gradient(90deg, #d85a3a 0%, #e66a49 100%);
}

.sale-row-enrolled {
    background: linear-gradient(90deg, #008f55 0%, #00a967 100%);
    box-shadow: none;
}

.sale-row-enrolled:hover {
    background: linear-gradient(90deg, #009b5c 0%, #00b871 100%);
}

.sale-row-graduated {
    background: linear-gradient(90deg, #0074a6 0%, #005b8f 100%);
    box-shadow: none;
}

.sale-row-graduated:hover {
    background: linear-gradient(90deg, #007db2 0%, #00639a 100%);
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #e8edf0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.pagination-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-actions button {
    min-height: 34px;
    border: 1px solid rgba(7, 93, 112, 0.24);
    border-radius: 8px;
    background: #ffffff;
    color: var(--blue);
    cursor: pointer;
    font-weight: 700;
    padding: 0 12px;
}

.pagination-actions button:disabled {
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.55;
}

th {
    letter-spacing: 0.04em;
    background: #f8fafc;
}

td {
    padding-top: 15px;
    padding-bottom: 15px;
}

#sales-table tr:not(.day-separator-row) {
    height: 132px;
}

.sales-table-panel th:nth-child(1),
.sales-table-panel td:nth-child(1) {
    width: 16%;
}

.sales-table-panel th:nth-child(2),
.sales-table-panel td:nth-child(2) {
    width: 14%;
}

.sales-table-panel th:nth-child(3),
.sales-table-panel td:nth-child(3) {
    width: 12%;
}

.sales-table-panel th:nth-child(4),
.sales-table-panel td:nth-child(4) {
    width: 16%;
}

.sales-table-panel th:nth-child(5),
.sales-table-panel td:nth-child(5) {
    width: 16%;
}

.sales-table-panel th:nth-child(6),
.sales-table-panel td:nth-child(6) {
    width: 8%;
}

.sales-table-panel th:nth-child(7),
.sales-table-panel td:nth-child(7) {
    width: 10%;
}

.sales-table-panel th:nth-child(8),
.sales-table-panel td:nth-child(8) {
    width: 8%;
}

#sales-table td {
    vertical-align: middle;
}

.student-cell {
    display: grid;
    grid-template-rows: 20px repeat(5, 16px);
    gap: 3px;
    min-height: 118px;
    max-height: 118px;
    overflow: hidden;
}

.student-cell strong,
.student-cell small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-cell strong {
    color: var(--ink-strong);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.student-cell small {
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
}

.status.approved {
    background: var(--green-soft);
}

.small-button {
    border-color: rgba(7, 93, 112, 0.24);
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.row-actions {
    display: grid;
    gap: 8px;
}

.remove-button {
    color: var(--attention);
}

.status-select,
.payment-select {
    cursor: pointer;
}

.academic-cell select,
.academic-status-select {
    min-width: 128px;
}

.amount-cell {
    white-space: nowrap;
}

.academic-select:disabled,
.field select:disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

.calendar-day {
    background: #ffffff;
    height: 176px;
    min-height: 0;
    overflow-y: auto;
    padding: 9px;
    scrollbar-width: thin;
}

.calendar-grid {
    align-items: stretch;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.calendar-day > strong {
    color: var(--ink-strong);
    display: block;
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 6px;
}

.calendar-toolbar {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0, 116, 166, 0.14);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin: 14px 0;
    padding: 12px;
}

.calendar-toolbar div {
    margin-right: auto;
}

.calendar-toolbar span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calendar-toolbar strong {
    color: var(--blue-deep);
    display: block;
    font-size: 18px;
    text-transform: capitalize;
}

.calendar-month-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 2px;
    padding: 16px 18px;
    border: 1px solid rgba(0, 116, 166, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 116, 166, 0.10), rgba(0, 159, 95, 0.08)),
        #ffffff;
    box-shadow: var(--shadow-soft);
}

.calendar-month-head h3 {
    color: var(--ink-strong);
    font-size: 22px;
    margin: 0;
    text-transform: capitalize;
}

.calendar-month-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.bill-chip {
    width: 100%;
    text-align: left;
    color: #ffffff;
    border: 0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    border-radius: 7px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 7px;
    margin-top: 5px;
    min-height: 44px;
    padding: 6px 7px;
}

.team-card {
    position: relative;
    overflow: hidden;
}

.bill-chip span,
.bill-chip strong,
.bill-chip small {
    display: block;
    line-height: 1.05;
}

.bill-chip span {
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bill-chip strong {
    align-self: start;
    font-size: 12px;
    white-space: nowrap;
}

.bill-chip small {
    font-size: 10px;
    font-weight: 800;
    grid-column: 1 / -1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bill-chip.generated {
    background: linear-gradient(135deg, #c94f32 0%, #d85a3a 100%);
}

.bill-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    margin-top: 3px;
}

.bill-actions button {
    min-height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--blue-deep);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    padding: 0 6px;
}

.bill-chip span,
.bill-chip strong,
.bill-chip small {
    color: #ffffff;
}

.bill-chip small {
    opacity: 0.88;
}

.team-card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-deep), var(--green));
}

.modal {
    box-shadow: var(--shadow);
    width: min(760px, calc(100vw - 28px));
}

.modal-content {
    padding: 24px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 210, 46, 0.20), transparent 220px),
        radial-gradient(circle at 100% 8%, rgba(0, 116, 166, 0.12), transparent 240px),
        #ffffff;
    border: 1px solid #e8edf0;
    backdrop-filter: none;
}

.modal-head {
    padding-bottom: 14px;
    border-bottom: 1px solid #e8edf0;
}

.modal-head h2 {
    position: relative;
    padding-left: 14px;
}

.modal-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 4px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--blue), var(--green));
}

.icon-button {
    background: #f8fafc;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 15px;
    margin: 20px 0;
    align-items: end;
}

.field {
    min-width: 0;
}

.field > span:first-child {
    display: block;
    min-height: 16px;
    white-space: nowrap;
}

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

.field input,
.field select {
    min-height: 42px;
    height: 42px;
    border-color: #cfdde3;
    background:
        linear-gradient(180deg, #ffffff 0%, #f9fcfd 100%);
    color: var(--ink-strong);
    font-weight: 600;
}

.field {
    position: relative;
}

.field input:hover,
.field select:hover {
    border-color: rgba(0, 116, 166, 0.42);
    box-shadow: 0 6px 16px rgba(7, 93, 112, 0.06);
}

.phone-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
}

.phone-row select,
.phone-row input {
    min-width: 0;
}

.phone-row select {
    padding-left: 8px;
    padding-right: 24px;
    text-overflow: clip;
    background-position: right 8px center;
    background-size: 12px;
}

.phone-row {
    padding: 4px;
    border: 1px solid #cfdde3;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f9fcfd 100%);
}

.phone-row select,
.phone-row input {
    border: 0;
    background: transparent;
    box-shadow: none;
    height: 34px;
    min-height: 34px;
}

.phone-row:focus-within {
    border-color: rgba(0, 116, 166, 0.72);
    box-shadow: 0 0 0 4px rgba(0, 116, 166, 0.12);
}

.money-input {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    min-height: 42px;
    border: 1px solid #cfdde3;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcfd 100%);
    overflow: hidden;
}

.money-input em {
    align-self: stretch;
    display: grid;
    place-items: center;
    background: rgba(0, 159, 95, 0.10);
    color: #007a46;
    font-style: normal;
    font-weight: 900;
}

.money-input.fee-input em {
    background: rgba(216, 90, 58, 0.12);
    color: var(--attention);
}

.money-input input {
    border: 0;
    background: transparent;
    box-shadow: none;
    min-height: 40px;
}

.money-input:focus-within {
    border-color: rgba(0, 116, 166, 0.72);
    box-shadow: 0 0 0 4px rgba(0, 116, 166, 0.12);
}

.span-half {
    grid-column: span 1;
}

.check-field {
    grid-column: 1 / -1;
    border-color: rgba(0, 116, 166, 0.24);
    background:
        linear-gradient(135deg, rgba(0, 116, 166, 0.10), rgba(0, 159, 95, 0.07)),
        #f8fdff;
    align-items: center;
    min-height: 60px;
}

.check-field input {
    accent-color: var(--blue);
}

.check-field strong {
    color: var(--blue-deep);
}

.conditional-fields {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.conditional-fields .field {
    grid-column: span 1;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .span-half,
    .conditional-fields .field {
        grid-column: span 1;
    }
}

.field span,
.field label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.field > span:first-child {
    color: #5d6879;
    letter-spacing: 0.01em;
}

.field input,
.field select,
.profile-switch select,
.filters input,
.filters select {
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input:focus,
.field select:focus,
.profile-switch select:focus,
.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: rgba(7, 93, 112, 0.72);
    box-shadow: 0 0 0 4px rgba(7, 93, 112, 0.12);
}

.modal-error {
    margin: 14px 0 0;
    border: 1px solid rgba(216, 90, 58, 0.34);
    border-radius: 8px;
    background: #fff1eb;
    color: var(--attention);
    font-size: 13px;
    font-weight: 800;
    padding: 11px 12px;
}

.field.field-error > span:first-child {
    color: var(--attention);
}

.field.field-error input,
.field.field-error select,
.field.field-error .phone-row {
    border-color: var(--attention);
    box-shadow: 0 0 0 4px rgba(216, 90, 58, 0.12);
}

.field select.select-approved {
    border-color: #008f55;
    background: #ffffff;
    color: #008f55;
}

.field select.select-enrolled {
    border-color: #008f55;
    background: #ffffff;
    color: #008f55;
}

.field select.select-pending {
    border-color: var(--attention);
    background: #ffffff;
    color: var(--attention);
}

.field select.select-graduated {
    border-color: #005b8f;
    background: #ffffff;
    color: #005b8f;
}

.modal-actions {
    padding-top: 14px;
    border-top: 1px solid #e8edf0;
}

.modal-actions .btn.primary {
    min-width: 120px;
}

.modal-actions .btn.secondary {
    background: #ffffff;
}

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

.sales-status-summary article {
    background: #ffffff;
    border: 1px solid #e8edf0;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: var(--shadow-soft);
}

.sales-status-summary span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.sales-status-summary strong {
    color: var(--ink-strong);
    display: block;
    font-size: 26px;
    margin-top: 8px;
}

.notification-grid {
    display: grid;
    gap: 12px;
}

.notification-card {
    border: 1px solid #e8edf0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}

.notification-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--blue);
}

.notification-card span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.notification-card strong {
    color: var(--ink-strong);
    display: block;
    font-size: 19px;
    margin-bottom: 6px;
}

.notification-card p {
    color: #344052;
    margin-bottom: 8px;
}

.notification-card small {
    color: var(--muted);
    font-weight: 700;
}

.notification-card.warning::before {
    background: var(--yellow);
}

.notification-card.urgent::before {
    background: var(--attention);
}

.notification-card.critical::before {
    background: var(--blue-deep);
}

.status.pending,
.status.analysis,
.status-select.pending,
.academic-select.pending {
    background: #ffffff;
    color: var(--attention);
}

.status.approved,
.status-select.approved,
.academic-select.enrolled,
.bill-chip.paid {
    background: #ffffff;
    color: #008f55;
}

.bill-chip.pending {
    background: linear-gradient(135deg, #c94f32 0%, #d85a3a 100%);
}

.bill-chip.paid {
    background: linear-gradient(135deg, #008f55 0%, #00a967 100%);
    color: #ffffff;
}

.academic-select.graduated {
    background: #ffffff;
    color: #005b8f;
}

.status.rejected {
    background: rgba(245, 197, 66, 0.22);
    color: var(--blue-deep);
}

@media (max-width: 1100px) {
    .calendar-grid {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }

    .daily-insights-grid,
    .tax-setting,
    .forecast-summary,
    .forecast-grid,
    .employee-kpi-grid,
    .employee-actions,
    .notification-summary {
        grid-template-columns: 1fr 1fr;
    }

    .finance-settings-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-date-range {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .forecast-control-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .daily-insights-grid {
        grid-template-columns: 1fr;
    }

    .calendar-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .forecast-year-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .forecast-year-actions strong {
        margin-right: 0;
    }

    .calendar-toolbar div {
        margin-right: 0;
    }

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

    .employee-hero,
    .forecast-entry-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .employee-kpi-grid,
    .tax-setting,
    .forecast-summary,
    .forecast-grid,
    .employee-actions,
    .notification-summary {
        grid-template-columns: 1fr;
    }

    .finance-settings-grid {
        grid-template-columns: 1fr;
    }
}

.export-actions {
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.export-month-field {
    min-width: 220px;
}

.export-month-field input {
    min-width: 220px;
}
