:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --text: #172033;
    --muted: #6b7280;

    --primary: #315efb;
    --primary-dark: #2449c9;
    --primary-soft: #e9efff;

    --danger: #dc3f4d;
    --danger-dark: #ba2e3a;
    --danger-soft: #feecee;

    --success: #16874b;
    --success-soft: #e6f8ee;

    --warning: #b56a00;
    --warning-soft: #fff4dc;

    --border: #dfe5ef;
    --border-dark: #cbd5e1;

    --topbar: #111827;
    --topbar-soft: #1f2937;

    --shadow-small: 0 4px 14px rgba(34, 52, 84, 0.06);
    --shadow: 0 12px 30px rgba(34, 52, 84, 0.09);
    --shadow-large: 0 18px 50px rgba(17, 24, 39, 0.15);

    --radius-small: 10px;
    --radius: 16px;
    --radius-large: 22px;

    --topbar-height: 72px;
}

/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans Myanmar",
        Arial,
        sans-serif;

    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

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

button {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   TOP HEADER
========================================================= */

.topbar {
    min-height: var(--topbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding: 0 5%;

    position: sticky;
    top: 0;
    z-index: 1000;

    background: var(--topbar);
    color: #ffffff;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.14);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    min-width: 0;

    font-weight: 850;
    letter-spacing: 0.1px;
}

.brand-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 13px;

    background: linear-gradient(
        145deg,
        #4e73ff,
        #315efb
    );

    color: #ffffff;
    font-size: 14px;
    font-weight: 900;

    box-shadow:
        0 8px 18px rgba(49, 94, 251, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

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

.menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.menu-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* =========================================================
   MAIN NAVIGATION
========================================================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-links > a {
    position: relative;

    display: inline-flex;
    align-items: center;

    min-height: 42px;

    padding: 9px 13px;

    border-radius: 11px;

    color: #dbe3f1;

    font-size: 14px;
    font-weight: 650;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.nav-links > a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links > a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-links > a.active::after {
    content: "";

    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 3px;

    height: 2px;

    border-radius: 999px;

    background: #7390ff;
}

/* =========================================================
   PROFILE DROPDOWN
========================================================= */

.profile-menu {
    position: relative;
    margin-left: 5px;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 44px;

    padding: 5px 10px 5px 6px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease;
}

.profile-button:hover,
.profile-button.open {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.13);
}

.profile-avatar {
    width: 33px;
    height: 33px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--primary);
    color: #ffffff;

    font-size: 14px;
    font-weight: 900;
}

.profile-name {
    max-width: 140px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 14px;
    font-weight: 700;
}

.profile-arrow {
    color: #cdd5e4;
    font-size: 16px;

    transition: transform 0.18s ease;
}

.profile-button.open .profile-arrow {
    transform: rotate(180deg);
}

.profile-dropdown {
    display: none;

    position: absolute;
    top: calc(100% + 12px);
    right: 0;

    width: 230px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: #ffffff;
    color: var(--text);

    box-shadow: var(--shadow-large);

    z-index: 1200;
}

.profile-dropdown.open {
    display: block;
    animation: dropdownAppear 0.16s ease;
}

@keyframes dropdownAppear {
    from {
        opacity: 0;
        transform: translateY(-7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown-header {
    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 16px;

    border-bottom: 1px solid var(--border);

    background: var(--surface-soft);
}

.profile-dropdown-header strong {
    font-size: 14px;
}

.profile-dropdown-header small {
    color: var(--muted);
}

.profile-dropdown > a {
    display: block;

    padding: 13px 16px;

    color: #344057;

    font-size: 14px;
    font-weight: 650;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.profile-dropdown > a:hover {
    background: #f4f7fc;
    color: var(--primary);
}

.profile-dropdown .dropdown-logout {
    border-top: 1px solid var(--border);
    color: var(--danger);
}

.profile-dropdown .dropdown-logout:hover {
    color: var(--danger-dark);
    background: var(--danger-soft);
}

/* =========================================================
   PAGE CONTAINERS
========================================================= */

.page-container {
    width: min(1180px, 92%);
    margin: 30px auto 70px;
}

.auth-container {
    width: min(450px, 92%);
    min-height: 100vh;

    display: grid;
    place-items: center;

    margin: auto;
    padding: 30px 0;
}

/* =========================================================
   PAGE NAVIGATION / BACK BUTTON
========================================================= */

.page-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 16px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 40px;

    padding: 8px 13px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: #ffffff;
    color: #344057;

    font-size: 14px;
    font-weight: 750;

    box-shadow: var(--shadow-small);

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.back-button:hover {
    color: var(--primary);
    border-color: #b7c5f4;
    background: var(--primary-soft);
    transform: translateX(-2px);
}

.back-button span:first-child {
    font-size: 19px;
    line-height: 1;
}

/* =========================================================
   CARDS
========================================================= */

.auth-card,
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: var(--surface);

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

.auth-card {
    width: 100%;
    padding: 34px;
}

.card {
    padding: 24px;
}

/* =========================================================
   PAGE HEADER
========================================================= */

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}

.page-header h1,
.auth-card h1 {
    margin: 0 0 8px;

    font-size: clamp(25px, 4vw, 36px);
    line-height: 1.25;
}

.subtitle,
.muted {
    color: var(--muted);
}

.subtitle {
    margin-top: 5px;
    margin-bottom: 0;
}

/* =========================================================
   GRID
========================================================= */

.grid {
    display: grid;
    gap: 20px;
}

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

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

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

/* =========================================================
   STAT CARDS
========================================================= */

.stat-card {
    position: relative;

    overflow: hidden;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f9fbff
        );

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

.stat-card::after {
    content: "";

    position: absolute;
    width: 95px;
    height: 95px;

    right: -45px;
    top: -45px;

    border-radius: 50%;

    background: rgba(49, 94, 251, 0.06);
}

.stat-label {
    position: relative;
    z-index: 2;

    color: var(--muted);
    font-size: 14px;
}

.stat-value {
    position: relative;
    z-index: 2;

    display: block;

    margin-top: 8px;

    font-size: clamp(23px, 4vw, 32px);
    font-weight: 850;
    line-height: 1.25;
}

.stat-note {
    position: relative;
    z-index: 2;

    margin-top: 6px;

    color: var(--muted);
    font-size: 13px;
}

/* =========================================================
   SECTIONS
========================================================= */

.section {
    margin-top: 24px;
}

.section-title {
    margin: 0 0 16px;

    font-size: 20px;
    line-height: 1.35;
}

/* =========================================================
   FORMS
========================================================= */

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

    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

label {
    color: #263147;

    font-size: 14px;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;

    border: 1px solid var(--border-dark);
    border-radius: 12px;

    padding: 12px 14px;

    background: #ffffff;
    color: var(--text);

    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #acb8ca;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(49, 94, 251, 0.12);
}

input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    background: #f1f5f9;
}

textarea {
    min-height: 105px;
    resize: vertical;
}

.help-text {
    color: var(--muted);
    font-size: 13px;
}

/* =========================================================
   BUTTONS
========================================================= */

.form-actions,
.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 43px;

    border: 0;
    border-radius: 12px;

    padding: 10px 16px;

    background: var(--primary);
    color: #ffffff;

    cursor: pointer;

    font-weight: 750;

    box-shadow: 0 7px 16px rgba(49, 94, 251, 0.18);

    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);

    box-shadow: 0 10px 20px rgba(49, 94, 251, 0.22);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #e9eef8;
    color: #25324a;

    box-shadow: none;
}

.btn-secondary:hover {
    background: #dce4f1;
    color: #182238;

    box-shadow: none;
}

.btn-danger {
    background: var(--danger);

    box-shadow: 0 7px 16px rgba(220, 63, 77, 0.18);
}

.btn-danger:hover {
    background: var(--danger-dark);

    box-shadow: 0 10px 20px rgba(220, 63, 77, 0.22);
}

.btn-small {
    min-height: 35px;

    padding: 7px 11px;

    border-radius: 9px;

    font-size: 13px;
}

/* =========================================================
   ALERTS
========================================================= */

.alert {
    position: relative;

    border-radius: 13px;

    padding: 13px 16px;
    margin-bottom: 20px;

    font-weight: 650;
}

.alert-success {
    border: 1px solid #c7efda;

    background: var(--success-soft);
    color: #126b3b;
}

.alert-error {
    border: 1px solid #facdd1;

    background: var(--danger-soft);
    color: #a52631;
}

/* =========================================================
   TABLES
========================================================= */

.table-wrap {
    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: #ffffff;
}

table {
    width: 100%;
    min-width: 820px;

    border-collapse: collapse;

    background: #ffffff;
}

th,
td {
    padding: 13px 14px;

    text-align: left;
    vertical-align: middle;

    border-bottom: 1px solid var(--border);
}

th {
    background: #f4f7fc;
    color: #4b5563;

    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;
}

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

tbody tr:hover {
    background: #fafcff;
}

tr:last-child td {
    border-bottom: 0;
}

/* =========================================================
   BADGES
========================================================= */

.badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
}

.badge-active {
    color: #126b3b;
    background: #e4f8ed;
}

.badge-inactive {
    color: #8f2831;
    background: #feecee;
}

/* =========================================================
   MONTH FILTER
========================================================= */

.month-filter {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;

    gap: 10px;
}

.month-filter .form-group {
    min-width: 180px;
}

/* =========================================================
   SALARY CIRCLE
========================================================= */

.salary-ring-wrap {
    display: grid;
    place-items: center;

    padding: 24px;
}

.salary-ring {
    --progress: 0;

    position: relative;

    width: 220px;
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        conic-gradient(
            var(--primary) calc(var(--progress) * 1%),
            #e7ebf3 0
        );

    box-shadow:
        0 14px 35px rgba(49, 94, 251, 0.1);
}

.salary-ring::before {
    content: "";

    position: absolute;
    inset: 18px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        inset 0 0 0 1px var(--border),
        0 5px 16px rgba(34, 52, 84, 0.05);
}

.salary-ring-content {
    position: relative;
    z-index: 2;

    padding: 24px;

    text-align: center;
}

.salary-ring-amount {
    display: block;

    font-size: 24px;
    font-weight: 900;
    line-height: 1.3;
}

.salary-ring-percent {
    display: block;

    margin-top: 5px;

    color: var(--primary);

    font-weight: 850;
}

/* =========================================================
   SUMMARY
========================================================= */

.summary-list {
    display: grid;
    gap: 12px;
}

.summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    padding-bottom: 10px;

    border-bottom: 1px dashed var(--border);
}

.summary-row:last-child {
    padding-bottom: 0;
    border: 0;
}

.summary-row strong {
    text-align: right;
}

/* =========================================================
   LOGIN
========================================================= */

.login-logo {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #4b71ff,
            #315efb
        );

    color: #ffffff;

    font-size: 26px;
    font-weight: 900;

    box-shadow: 0 12px 25px rgba(49, 94, 251, 0.25);
}

/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    padding: 34px;

    text-align: center;

    color: var(--muted);
}

/* =========================================================
   TEXT COLORS
========================================================= */

.positive {
    color: var(--success);
}

.negative {
    color: var(--danger);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {
    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .brand-text {
        max-width: 220px;
    }

    .profile-name {
        display: none;
    }
}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 760px) {
    :root {
        --topbar-height: 66px;
    }

    .topbar {
        min-height: var(--topbar-height);

        padding: 0 4%;
    }

    .menu-button {
        display: grid;
        place-items: center;
    }

    .brand-icon {
        width: 36px;
        height: 36px;

        border-radius: 11px;
    }

    .brand-text {
        max-width: 190px;

        font-size: 14px;
    }

    .nav-links {
        display: none;

        position: fixed;
        top: var(--topbar-height);
        left: 0;
        right: 0;

        max-height: calc(100vh - var(--topbar-height));
        overflow-y: auto;

        flex-direction: column;
        align-items: stretch;

        gap: 5px;

        padding: 14px 4% 22px;

        background: var(--topbar);

        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
    }

    .nav-links.open {
        display: flex;

        animation: mobileMenuAppear 0.18s ease;
    }

    @keyframes mobileMenuAppear {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links > a {
        width: 100%;

        padding: 12px 13px;
    }

    .nav-links > a.active::after {
        display: none;
    }

    .profile-menu {
        width: 100%;
        margin: 5px 0 0;
    }

    .profile-button {
        width: 100%;

        justify-content: flex-start;

        border-radius: 12px;

        padding: 8px 11px;
    }

    .profile-name {
        display: block;
        max-width: none;
    }

    .profile-arrow {
        margin-left: auto;
    }

    .profile-dropdown {
        position: static;

        width: 100%;

        margin-top: 7px;

        border-color: rgba(255, 255, 255, 0.12);

        box-shadow: none;
    }

    .page-container {
        width: min(94%, 1180px);
        margin-top: 20px;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header .actions {
        width: 100%;
    }

    .page-header .actions .btn {
        flex: 1;
    }

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

    .form-group.full {
        grid-column: auto;
    }

    .card,
    .auth-card {
        padding: 20px;
        border-radius: 17px;
    }

    .salary-ring {
        width: 190px;
    }

    .month-filter {
        align-items: stretch;
    }

    .month-filter .form-group {
        min-width: 0;
        width: 100%;
    }

    .month-filter .btn {
        width: 100%;
    }

    .back-button {
        max-width: 100%;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {
    .brand-text {
        max-width: 145px;
    }

    .auth-card {
        padding: 22px;
    }

    .page-header h1,
    .auth-card h1 {
        font-size: 25px;
    }

    .salary-ring {
        width: 175px;
    }

    .salary-ring-amount {
        font-size: 21px;
    }

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

    .actions .btn {
        width: 100%;
    }
}
/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.footer-inner {
    width: min(1180px, 92%);
    min-height: 68px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    color: var(--muted);
    font-size: 14px;
}

.footer-inner p {
    margin: 0;
}

.footer-inner a {
    color: var(--danger);
    font-weight: 750;
}

.footer-inner a:hover {
    color: var(--danger-dark);
}

@media (max-width: 600px) {
    .footer-inner {
        min-height: 82px;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }
}
/* =========================================================
   PROFILE MENU FIX
========================================================= */

.topbar .profile-menu {
    position: relative;
    margin-left: 8px;
}

.topbar .profile-button {
    appearance: none;
    -webkit-appearance: none;

    display: flex;
    align-items: center;
    gap: 9px;

    min-width: 0;
    min-height: 44px;

    padding: 5px 12px 5px 6px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
    box-shadow: none;
}

.topbar .profile-button:hover,
.topbar .profile-button.open {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.topbar .profile-avatar {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #315efb;
    color: #ffffff;

    font-size: 14px;
    font-weight: 900;
}

.topbar .profile-name {
    display: block;

    max-width: 145px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: #ffffff;
}

.topbar .profile-arrow {
    display: inline-block;

    margin-left: 2px;

    color: #dbe3f1;
    font-size: 15px;

    transition: transform 0.18s ease;
}

.topbar .profile-button.open .profile-arrow {
    transform: rotate(180deg);
}

.topbar .profile-dropdown {
    display: none;

    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    width: 230px;

    padding: 0;
    overflow: hidden;

    border: 1px solid #dfe5ef;
    border-radius: 14px;

    background: #ffffff;
    color: #172033;

    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.18);

    z-index: 9999;
}

.topbar .profile-dropdown.open {
    display: block;
}

.topbar .profile-dropdown-header {
    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 15px 16px;

    border-bottom: 1px solid #dfe5ef;

    background: #f8fafc;
}

.topbar .profile-dropdown-header strong {
    color: #172033;
    font-size: 14px;
}

.topbar .profile-dropdown-header small {
    color: #6b7280;
    font-size: 12px;
}

.topbar .profile-dropdown > a {
    display: block;

    padding: 13px 16px;

    background: #ffffff;
    color: #344057;

    font-size: 14px;
    font-weight: 650;
}

.topbar .profile-dropdown > a:hover {
    background: #f4f7fc;
    color: #315efb;
}

.topbar .profile-dropdown > .dropdown-logout {
    border-top: 1px solid #dfe5ef;
    color: #dc3f4d;
}

.topbar .profile-dropdown > .dropdown-logout:hover {
    background: #feecee;
    color: #ba2e3a;
}

@media (max-width: 760px) {
    .topbar .profile-menu {
        width: 100%;
        margin: 5px 0 0;
    }

    .topbar .profile-button {
        width: 100%;
        border-radius: 12px;
    }

    .topbar .profile-name {
        display: block;
        max-width: none;
    }

    .topbar .profile-arrow {
        margin-left: auto;
    }

    .topbar .profile-dropdown {
        position: static;
        width: 100%;
        margin-top: 7px;
    }
}
/* =========================================================
   HEADER ACCOUNT — STABLE VERSION
========================================================= */

.header-account {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-left: 8px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 44px;

    padding: 5px 12px 5px 6px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);
}

.header-user-avatar {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #315efb;
    color: #ffffff;

    font-size: 14px;
    font-weight: 900;
}

.header-user-info {
    display: flex;
    flex-direction: column;

    min-width: 0;

    line-height: 1.2;
}

.header-user-info strong {
    max-width: 130px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: #ffffff;

    font-size: 13px;
    font-weight: 750;
}

.header-user-info small {
    margin-top: 3px;

    color: #aeb9cc;

    font-size: 11px;
}

.header-account-link,
.header-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 39px;

    padding: 8px 12px;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 750;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.header-account-link {
    border: 1px solid rgba(255, 255, 255, 0.13);

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.header-account-link:hover {
    background: rgba(255, 255, 255, 0.16);
}

.header-logout-link {
    border: 1px solid rgba(255, 98, 112, 0.25);

    background: rgba(220, 63, 77, 0.14);
    color: #ffadb4;
}

.header-logout-link:hover {
    border-color: rgba(255, 98, 112, 0.4);

    background: rgba(220, 63, 77, 0.25);
    color: #ffffff;
}

@media (max-width: 950px) {
    .header-user-info {
        display: none;
    }

    .header-user {
        padding-right: 6px;
    }
}

@media (max-width: 760px) {
    .header-account {
        width: 100%;

        flex-direction: column;
        align-items: stretch;

        margin: 8px 0 0;
    }

    .header-user {
        width: 100%;

        border-radius: 12px;
    }

    .header-user-info {
        display: flex;
    }

    .header-user-info strong {
        max-width: none;
    }

    .header-account-link,
    .header-logout-link {
        width: 100%;
    }
}
/* =========================================================
   EMPLOYEES PAGE
========================================================= */

.employees-stats {
    margin-bottom: 24px;
}

.employees-filter-card {
    margin-bottom: 24px;
}

.employees-filter-form {
    display: grid;
    grid-template-columns:
        minmax(260px, 2fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        auto;

    gap: 14px;
    align-items: end;
}

.employees-filter-actions {
    display: flex;
    gap: 9px;
}

.employee-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.employee-table-avatar {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 14px;
    font-weight: 900;
}

.employees-mobile-list {
    display: none;
}

.employee-mobile-card {
    border: 1px solid var(--border);
    border-radius: 18px;

    padding: 18px;

    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.employee-mobile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;
}

.employee-mobile-person {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.employee-mobile-avatar {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 15px;

    background: var(--primary);
    color: #ffffff;

    font-size: 18px;
    font-weight: 900;

    box-shadow: 0 8px 18px rgba(49, 94, 251, 0.2);
}

.employee-mobile-person h2 {
    margin: 0;

    font-size: 17px;
    line-height: 1.3;
}

.employee-mobile-person p {
    margin: 3px 0 0;

    color: var(--muted);
    font-size: 13px;
}

.employee-mobile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 17px;
}

.employee-mobile-detail {
    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--surface-soft);
}

.employee-mobile-detail span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);
    font-size: 12px;
}

.employee-mobile-detail strong {
    display: block;

    font-size: 14px;
    line-height: 1.4;
}

.employee-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;

    margin-top: 16px;
}

.employee-mobile-actions .btn {
    width: 100%;
}

.floating-add-button {
    display: none;

    position: fixed;
    right: 18px;
    bottom: 22px;

    width: 58px;
    height: 58px;

    place-items: center;

    border-radius: 50%;

    background: var(--primary);
    color: #ffffff;

    font-size: 31px;
    font-weight: 400;
    line-height: 1;

    box-shadow: 0 15px 30px rgba(49, 94, 251, 0.34);

    z-index: 900;
}

.floating-add-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 950px) {
    .employees-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employees-search-group {
        grid-column: 1 / -1;
    }

    .employees-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .employees-page-header {
        padding-right: 0;
    }

    .desktop-add-button {
        display: none;
    }

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

    .employees-stats .stat-card {
        padding: 16px;
    }

    .employees-stats .stat-value {
        font-size: 25px;
    }

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

    .employees-search-group,
    .employees-filter-actions {
        grid-column: auto;
    }

    .employees-filter-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employees-filter-actions .btn {
        width: 100%;
    }

    .employees-desktop-table {
        display: none;
    }

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

    .floating-add-button {
        display: grid;
    }

    .site-footer {
        padding-bottom: 76px;
    }
}

@media (max-width: 430px) {
    .employees-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-mobile-details {
        grid-template-columns: 1fr;
    }

    .employee-mobile-actions {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   ADMIN DASHBOARD
========================================================= */

.dashboard-page-header {
    align-items: flex-end;
}

.dashboard-month-filter {
    flex-wrap: nowrap;
}

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

    gap: 14px;

    margin-bottom: 24px;
}

.dashboard-action-card {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);

    box-shadow: var(--shadow-small);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.dashboard-action-card:hover {
    transform: translateY(-2px);

    border-color: #becafb;
    box-shadow: var(--shadow);
}

.dashboard-action-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 13px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 18px;
    font-weight: 900;
}

.dashboard-action-card div {
    min-width: 0;
}

.dashboard-action-card strong {
    display: block;

    font-size: 15px;
}

.dashboard-action-card small {
    display: block;

    margin-top: 3px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: var(--muted);
    font-size: 12px;
}

.dashboard-stats {
    margin-bottom: 24px;
}

.dashboard-stat-card {
    min-height: 165px;
}

.dashboard-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.dashboard-stat-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--primary-soft);

    font-size: 17px;
}

.dashboard-section-header {
    align-items: center;

    margin-bottom: 18px;
}

.dashboard-workers-mobile {
    display: none;
}

.dashboard-worker-username {
    display: block;

    margin-top: 2px;

    color: var(--muted);
}

.dashboard-progress {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 120px;
}

.dashboard-progress-track {
    position: relative;

    height: 8px;

    flex: 1;

    overflow: hidden;

    border-radius: 999px;

    background: #e8edf5;
}

.dashboard-progress-track span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background: var(--primary);
}

.dashboard-progress small {
    min-width: 38px;

    color: var(--muted);
    font-weight: 750;
}

.dashboard-worker-card {
    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: var(--surface);

    box-shadow: var(--shadow-small);
}

.dashboard-worker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.dashboard-worker-person {
    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 0;
}

.dashboard-worker-person h3 {
    margin: 0;

    font-size: 16px;
}

.dashboard-worker-person p {
    margin: 3px 0 0;

    color: var(--muted);
    font-size: 12px;
}

.dashboard-worker-header > strong {
    white-space: nowrap;

    font-size: 15px;
}

.dashboard-worker-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;

    margin-top: 15px;
}

.dashboard-worker-info-grid > div {
    padding: 11px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface-soft);
}

.dashboard-worker-info-grid span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);
    font-size: 11px;
}

.dashboard-worker-info-grid strong {
    display: block;

    font-size: 13px;
    line-height: 1.4;
}

.dashboard-mobile-progress {
    margin-top: 15px;
}

.dashboard-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 7px;

    font-size: 12px;
}

.dashboard-worker-view-button {
    width: 100%;

    margin-top: 15px;
}

.dashboard-recent-list {
    display: grid;
    gap: 8px;
}

.dashboard-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px;

    border: 1px solid transparent;
    border-radius: 13px;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease;
}

.dashboard-recent-item:hover {
    border-color: var(--border);

    background: var(--surface-soft);
}

.dashboard-recent-avatar {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: var(--primary-soft);
    color: var(--primary);

    font-weight: 900;
}

.dashboard-recent-content {
    min-width: 0;
    flex: 1;
}

.dashboard-recent-content strong {
    display: block;

    font-size: 14px;
}

.dashboard-recent-content small {
    display: block;

    margin-top: 3px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: var(--muted);
    font-size: 12px;
}

.dashboard-recent-amount {
    white-space: nowrap;

    color: var(--success);
    font-size: 14px;
}

@media (max-width: 950px) {
    .dashboard-quick-actions {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .dashboard-page-header {
        align-items: stretch;
    }

    .dashboard-month-filter {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-month-filter .form-group {
        width: 100%;
    }

    .dashboard-month-filter .btn {
        width: 100%;
    }

    .dashboard-quick-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 9px;
    }

    .dashboard-action-card {
        min-width: 0;

        flex-direction: column;
        align-items: center;

        padding: 13px 7px;

        text-align: center;
    }

    .dashboard-action-card small {
        display: none;
    }

    .dashboard-action-card strong {
        font-size: 11px;
        line-height: 1.35;
    }

    .dashboard-action-icon {
        width: 40px;
        height: 40px;

        font-size: 16px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 11px;
    }

    .dashboard-stat-card {
        min-height: 145px;

        padding: 15px;
    }

    .dashboard-stat-card .stat-value {
        font-size: 20px;
    }

    .dashboard-stat-card .stat-note {
        font-size: 11px;
    }

    .dashboard-stat-icon {
        width: 32px;
        height: 32px;

        font-size: 14px;
    }

    .dashboard-section-header {
        align-items: stretch;
    }

    .dashboard-section-header .btn {
        width: 100%;
    }

    .dashboard-workers-desktop {
        display: none;
    }

    .dashboard-workers-mobile {
        display: grid;
        gap: 12px;
    }

    .dashboard-recent-item {
        align-items: flex-start;
    }

    .dashboard-recent-amount {
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

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

    .dashboard-worker-header {
        flex-direction: column;
    }
}
/* =========================================================
   EMPLOYEE VIEW PAGE
========================================================= */

.employee-view-header {
    align-items: center;
}

.employee-view-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.employee-view-avatar {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 18px;

    background: var(--primary);
    color: #ffffff;

    font-size: 23px;
    font-weight: 900;

    box-shadow: 0 10px 24px rgba(49, 94, 251, 0.22);
}

.employee-view-profile h1 {
    margin: 0;
}

.employee-view-month-card {
    margin-bottom: 24px;
}

.employee-view-month-filter {
    justify-content: flex-end;
}

.employee-view-stats {
    margin-bottom: 24px;
}

.employee-target-information {
    margin-top: 18px;
    text-align: center;
}

.employee-target-information span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);
    font-size: 13px;
}

.employee-target-information strong {
    font-size: 18px;
}

.employee-view-summary-card {
    height: 100%;
}

.employee-view-net-row {
    margin-top: 5px;
    padding-top: 15px;

    border-top: 1px solid var(--border);
}

.employee-view-section-header {
    align-items: center;
    margin-bottom: 18px;
}

.employee-worklogs-mobile,
.employee-deductions-mobile {
    display: none;
}

.employee-log-card,
.employee-deduction-card {
    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: var(--surface);

    box-shadow: var(--shadow-small);
}

.employee-log-card-header,
.employee-deduction-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.employee-log-date-label,
.employee-deduction-header span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);
    font-size: 11px;
}

.employee-log-total {
    white-space: nowrap;
    font-size: 16px;
}

.employee-log-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;

    margin-top: 15px;
}

.employee-log-grid > div {
    padding: 11px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface-soft);
}

.employee-log-grid span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);
    font-size: 11px;
}

.employee-log-grid strong {
    display: block;
    font-size: 13px;
}

.employee-log-grid small {
    display: block;

    margin-top: 3px;

    color: var(--muted);
    font-size: 10px;
}

.employee-log-note,
.employee-deduction-reason {
    margin-top: 14px;
    padding: 12px;

    border-radius: 12px;

    background: var(--surface-soft);
}

.employee-log-note span,
.employee-deduction-reason span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);
    font-size: 11px;
}

.employee-log-note p,
.employee-deduction-reason p {
    margin: 0;

    font-size: 13px;
    line-height: 1.6;
}

.employee-log-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;

    margin-top: 14px;
}

.employee-log-actions .btn {
    width: 100%;
}

.employee-mobile-floating-actions {
    display: none;
}

.employee-floating-button {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #ffffff;

    font-size: 28px;
    line-height: 1;

    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.employee-floating-work {
    background: var(--primary);
}

.employee-floating-deduction {
    background: var(--danger);
}

@media (max-width: 950px) {
    .employee-view-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .employee-view-header {
        align-items: stretch;
    }

    .employee-view-main-actions {
        display: none;
    }

    .employee-view-avatar {
        width: 50px;
        height: 50px;

        border-radius: 15px;

        font-size: 19px;
    }

    .employee-view-profile h1 {
        font-size: 22px;
    }

    .employee-view-month-filter {
        display: grid;
        grid-template-columns: 1fr;
    }

    .employee-view-month-filter .form-group {
        width: 100%;
    }

    .employee-view-month-filter .btn {
        width: 100%;
    }

    .employee-view-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .employee-view-stats .stat-card {
        padding: 15px;
        min-height: 140px;
    }

    .employee-view-stats .stat-value {
        font-size: 19px;
    }

    .employee-view-stats .stat-note {
        font-size: 10px;
    }

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

    .employee-lifetime-stats {
        grid-template-columns: 1fr;
    }

    .employee-view-section-header {
        align-items: stretch;
    }

    .employee-view-section-header .btn {
        width: 100%;
    }

    .employee-worklogs-desktop,
    .employee-deductions-desktop {
        display: none;
    }

    .employee-worklogs-mobile,
    .employee-deductions-mobile {
        display: grid;
        gap: 12px;
    }

    .employee-mobile-floating-actions {
        position: fixed;
        right: 17px;
        bottom: 22px;

        display: flex;
        flex-direction: column;
        gap: 10px;

        z-index: 900;
    }

    .site-footer {
        padding-bottom: 145px;
    }
}

@media (max-width: 430px) {
    .employee-view-stats {
        grid-template-columns: 1fr 1fr;
    }

    .employee-log-grid {
        grid-template-columns: 1fr 1fr;
    }
}/* =========================================================
   EMPLOYEE VIEW PAGE
========================================================= */

.employee-view-header {
    align-items: center;
}

.employee-view-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.employee-view-avatar {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 18px;

    background: var(--primary);
    color: #ffffff;

    font-size: 23px;
    font-weight: 900;

    box-shadow: 0 10px 24px rgba(49, 94, 251, 0.22);
}

.employee-view-profile h1 {
    margin: 0;
}

.employee-view-month-card {
    margin-bottom: 24px;
}

.employee-view-month-filter {
    justify-content: flex-end;
}

.employee-view-stats {
    margin-bottom: 24px;
}

.employee-target-information {
    margin-top: 18px;
    text-align: center;
}

.employee-target-information span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);
    font-size: 13px;
}

.employee-target-information strong {
    font-size: 18px;
}

.employee-view-summary-card {
    height: 100%;
}

.employee-view-net-row {
    margin-top: 5px;
    padding-top: 15px;

    border-top: 1px solid var(--border);
}

.employee-view-section-header {
    align-items: center;
    margin-bottom: 18px;
}

.employee-worklogs-mobile,
.employee-deductions-mobile {
    display: none;
}

.employee-log-card,
.employee-deduction-card {
    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: var(--surface);

    box-shadow: var(--shadow-small);
}

.employee-log-card-header,
.employee-deduction-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.employee-log-date-label,
.employee-deduction-header span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);
    font-size: 11px;
}

.employee-log-total {
    white-space: nowrap;
    font-size: 16px;
}

.employee-log-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;

    margin-top: 15px;
}

.employee-log-grid > div {
    padding: 11px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface-soft);
}

.employee-log-grid span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);
    font-size: 11px;
}

.employee-log-grid strong {
    display: block;
    font-size: 13px;
}

.employee-log-grid small {
    display: block;

    margin-top: 3px;

    color: var(--muted);
    font-size: 10px;
}

.employee-log-note,
.employee-deduction-reason {
    margin-top: 14px;
    padding: 12px;

    border-radius: 12px;

    background: var(--surface-soft);
}

.employee-log-note span,
.employee-deduction-reason span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);
    font-size: 11px;
}

.employee-log-note p,
.employee-deduction-reason p {
    margin: 0;

    font-size: 13px;
    line-height: 1.6;
}

.employee-log-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;

    margin-top: 14px;
}

.employee-log-actions .btn {
    width: 100%;
}

.employee-mobile-floating-actions {
    display: none;
}

.employee-floating-button {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #ffffff;

    font-size: 28px;
    line-height: 1;

    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.employee-floating-work {
    background: var(--primary);
}

.employee-floating-deduction {
    background: var(--danger);
}

@media (max-width: 950px) {
    .employee-view-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .employee-view-header {
        align-items: stretch;
    }

    .employee-view-main-actions {
        display: none;
    }

    .employee-view-avatar {
        width: 50px;
        height: 50px;

        border-radius: 15px;

        font-size: 19px;
    }

    .employee-view-profile h1 {
        font-size: 22px;
    }

    .employee-view-month-filter {
        display: grid;
        grid-template-columns: 1fr;
    }

    .employee-view-month-filter .form-group {
        width: 100%;
    }

    .employee-view-month-filter .btn {
        width: 100%;
    }

    .employee-view-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .employee-view-stats .stat-card {
        padding: 15px;
        min-height: 140px;
    }

    .employee-view-stats .stat-value {
        font-size: 19px;
    }

    .employee-view-stats .stat-note {
        font-size: 10px;
    }

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

    .employee-lifetime-stats {
        grid-template-columns: 1fr;
    }

    .employee-view-section-header {
        align-items: stretch;
    }

    .employee-view-section-header .btn {
        width: 100%;
    }

    .employee-worklogs-desktop,
    .employee-deductions-desktop {
        display: none;
    }

    .employee-worklogs-mobile,
    .employee-deductions-mobile {
        display: grid;
        gap: 12px;
    }

    .employee-mobile-floating-actions {
        position: fixed;
        right: 17px;
        bottom: 22px;

        display: flex;
        flex-direction: column;
        gap: 10px;

        z-index: 900;
    }

    .site-footer {
        padding-bottom: 145px;
    }
}

@media (max-width: 430px) {
    .employee-view-stats {
        grid-template-columns: 1fr 1fr;
    }

    .employee-log-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* =========================================================
   WORK LOG FORM
========================================================= */

.work-log-page-header {
    align-items: center;
}

.work-log-worker {
    display: flex;
    align-items: center;
    gap: 14px;
}

.work-log-worker-avatar {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 17px;

    background: var(--primary);
    color: #ffffff;

    font-size: 21px;
    font-weight: 900;

    box-shadow: 0 10px 22px rgba(49, 94, 251, 0.22);
}

.work-log-worker h1 {
    margin: 0;
}

.work-log-error {
    margin-bottom: 20px;
}

.work-log-error strong {
    display: block;
    margin-bottom: 7px;
}

.work-log-error ul {
    margin: 0;
    padding-left: 20px;
}

.work-log-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.75fr);

    gap: 22px;
    align-items: start;
}

.work-log-rate-banner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 18px;
}

.work-log-rate-banner > div {
    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface-soft);
}

.work-log-rate-banner span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);
    font-size: 12px;
}

.work-log-rate-banner strong {
    font-size: 15px;
}

.work-log-snapshot-alert {
    margin-bottom: 18px;
}

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

.work-hours-panel {
    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: var(--surface-soft);
}

.work-hours-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 16px;
}

.work-hours-panel-header > div strong {
    display: block;

    margin-top: 3px;

    font-size: 13px;
}

.work-type-label {
    color: var(--muted);
    font-size: 12px;
}

.work-hours-pay {
    color: var(--success);

    white-space: nowrap;

    font-size: 16px;
    font-weight: 900;
}

.hours-input-wrap {
    position: relative;
}

.hours-input-wrap input {
    padding-right: 67px;

    font-size: 22px;
    font-weight: 800;
}

.hours-input-wrap > span {
    position: absolute;
    top: 50%;
    right: 15px;

    transform: translateY(-50%);

    color: var(--muted);
    font-size: 13px;
}

.quick-hours {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 6px;

    margin-top: 9px;
}

.quick-hours button {
    min-height: 36px;

    padding: 6px 3px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface);
    color: var(--text);

    font: inherit;
    font-size: 11px;
    font-weight: 750;

    cursor: pointer;
}

.quick-hours button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.quick-hours button.is-selected {
    border-color: var(--primary);

    background: var(--primary);
    color: #ffffff;
}

.work-log-submit-button {
    min-width: 210px;
}

.work-log-preview-card {
    position: sticky;
    top: 90px;
}

.work-log-preview-title span {
    display: block;

    font-size: 17px;
    font-weight: 850;
}

.work-log-preview-title small {
    display: block;

    margin-top: 4px;

    color: var(--muted);
    font-size: 12px;
}

.work-log-total-amount {
    margin: 22px 0;

    padding: 20px;

    border-radius: 17px;

    background: var(--primary-soft);

    text-align: center;
}

.work-log-total-amount span {
    display: block;

    margin-bottom: 8px;

    color: var(--muted);
    font-size: 12px;
}

.work-log-total-amount strong {
    display: block;

    color: var(--primary);

    font-size: 28px;
    line-height: 1.3;
}

.work-log-preview-list {
    margin-top: 0;
}

.work-log-preview-note {
    margin-top: 18px;

    padding: 13px;

    border-radius: 13px;

    background: var(--surface-soft);
}

.work-log-preview-note strong {
    display: block;

    margin-bottom: 5px;

    font-size: 12px;
}

.work-log-preview-note p {
    margin: 0;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.work-log-mobile-submit {
    display: none;
}

@media (max-width: 950px) {
    .work-log-layout {
        grid-template-columns: 1fr;
    }

    .work-log-preview-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .work-log-page-header {
        align-items: stretch;
    }

    .work-log-back-button {
        width: 100%;
    }

    .work-log-worker-avatar {
        width: 50px;
        height: 50px;

        border-radius: 15px;

        font-size: 19px;
    }

    .work-log-worker h1 {
        font-size: 21px;
    }

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

    .work-log-rate-banner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-hours-panel {
        padding: 14px;
    }

    .work-log-preview-card {
        margin-bottom: 76px;
    }

    .work-log-desktop-submit {
        display: none;
    }

    .work-log-mobile-submit {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 13px;

        padding: 10px 15px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));

        border-top: 1px solid var(--border);

        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);

        box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.09);

        z-index: 1000;
    }

    .work-log-mobile-submit > div {
        min-width: 0;
    }

    .work-log-mobile-submit span {
        display: block;

        color: var(--muted);
        font-size: 10px;
    }

    .work-log-mobile-submit strong {
        display: block;

        margin-top: 2px;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

        color: var(--success);
        font-size: 15px;
    }

    .work-log-mobile-submit .btn {
        min-width: 105px;
        flex-shrink: 0;
    }

    .site-footer {
        padding-bottom: 90px;
    }
}

@media (max-width: 430px) {
    .work-log-rate-banner {
        grid-template-columns: 1fr 1fr;
    }

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

    .work-log-total-amount strong {
        font-size: 23px;
    }
}
/* =========================================================
   DEDUCTION FORM
========================================================= */

.deduction-page-header {
    align-items: center;
}

.deduction-worker {
    display: flex;
    align-items: center;
    gap: 14px;
}

.deduction-worker-avatar {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 17px;

    background: var(--danger);
    color: #ffffff;

    font-size: 22px;
    font-weight: 900;

    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.22);
}

.deduction-worker h1 {
    margin: 0;
}

.deduction-error {
    margin-bottom: 20px;
}

.deduction-error strong {
    display: block;
    margin-bottom: 7px;
}

.deduction-error ul {
    margin: 0;
    padding-left: 20px;
}

.deduction-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);

    gap: 22px;
    align-items: start;
}

.deduction-warning-banner {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    margin-bottom: 20px;
    padding: 15px;

    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 15px;

    background: rgba(220, 38, 38, 0.06);
}

.deduction-warning-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: var(--danger);
    color: #ffffff;

    font-size: 25px;
    font-weight: 900;
}

.deduction-warning-banner strong {
    display: block;

    margin-bottom: 4px;

    color: var(--danger);
    font-size: 14px;
}

.deduction-warning-banner p {
    margin: 0;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

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

.deduction-amount-input-wrap {
    position: relative;
}

.deduction-amount-input-wrap input {
    padding-right: 55px;

    font-size: 21px;
    font-weight: 850;
}

.deduction-amount-input-wrap span {
    position: absolute;
    top: 50%;
    right: 16px;

    transform: translateY(-50%);

    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.deduction-quick-amounts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 7px;
}

.deduction-quick-amounts button {
    min-height: 42px;

    padding: 7px 4px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);
    color: var(--text);

    font: inherit;
    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}

.deduction-quick-amounts button:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.deduction-quick-amounts button.is-selected {
    border-color: var(--danger);

    background: var(--danger);
    color: #ffffff;
}

.deduction-reason-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 6px;
}

#deduction-reason-count {
    flex-shrink: 0;

    color: var(--muted);
    font-size: 11px;
}

.deduction-submit-button {
    min-width: 220px;
}

.deduction-preview-card {
    position: sticky;
    top: 90px;
}

.deduction-preview-heading span {
    display: block;

    font-size: 17px;
    font-weight: 850;
}

.deduction-preview-heading small {
    display: block;

    margin-top: 4px;

    color: var(--muted);
    font-size: 12px;
}

.deduction-preview-net {
    margin: 22px 0;

    padding: 20px;

    border-radius: 17px;

    background: rgba(220, 38, 38, 0.07);

    text-align: center;
}

.deduction-preview-net span {
    display: block;

    margin-bottom: 8px;

    color: var(--muted);
    font-size: 12px;
}

.deduction-preview-net strong {
    display: block;

    color: var(--danger);

    font-size: 27px;
    line-height: 1.3;
}

.deduction-preview-list {
    margin-top: 0;
}

.deduction-total-row {
    margin-top: 5px;
    padding-top: 14px;

    border-top: 1px solid var(--border);
}

.deduction-preview-note {
    margin-top: 18px;
    padding: 13px;

    border-radius: 13px;

    background: var(--surface-soft);
}

.deduction-preview-note strong {
    display: block;

    margin-bottom: 5px;

    font-size: 12px;
}

.deduction-preview-note p {
    margin: 0;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.deduction-mobile-submit {
    display: none;
}

@media (max-width: 950px) {
    .deduction-layout {
        grid-template-columns: 1fr;
    }

    .deduction-preview-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .deduction-page-header {
        align-items: stretch;
    }

    .deduction-back-button {
        width: 100%;
    }

    .deduction-worker-avatar {
        width: 50px;
        height: 50px;

        border-radius: 15px;

        font-size: 19px;
    }

    .deduction-worker h1 {
        font-size: 21px;
    }

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

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

    .deduction-desktop-submit {
        display: none;
    }

    .deduction-preview-card {
        margin-bottom: 78px;
    }

    .deduction-mobile-submit {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 13px;

        padding: 10px 15px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));

        border-top: 1px solid var(--border);

        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);

        box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.09);

        z-index: 1000;
    }

    .deduction-mobile-submit > div {
        min-width: 0;
    }

    .deduction-mobile-submit span {
        display: block;

        color: var(--muted);
        font-size: 10px;
    }

    .deduction-mobile-submit strong {
        display: block;

        margin-top: 2px;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

        color: var(--danger);
        font-size: 15px;
    }

    .deduction-mobile-submit .btn {
        min-width: 105px;
        flex-shrink: 0;
    }

    .site-footer {
        padding-bottom: 90px;
    }
}
/* =========================================================
   HOURLY RATES PAGE
========================================================= */

.rates-page-header {
    align-items: center;
}

.rates-page-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rates-page-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 18px;

    background: var(--primary);
    color: #ffffff;

    font-size: 17px;
    font-weight: 900;

    box-shadow: 0 11px 25px rgba(49, 94, 251, 0.23);
}

.rates-page-title-row h1 {
    margin: 0;
}

.rates-error {
    margin-bottom: 20px;
}

.rates-error strong {
    display: block;
    margin-bottom: 7px;
}

.rates-error ul {
    margin: 0;
    padding-left: 20px;
}

.rates-current-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 18px;
}

.rates-current-card {
    position: relative;
    overflow: hidden;
}

.rates-current-card::after {
    content: "";

    position: absolute;
    right: -35px;
    bottom: -55px;

    width: 140px;
    height: 140px;

    border-radius: 50%;

    background: var(--primary-soft);
}

.rates-current-card-top {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
}

.rates-type-label {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);
    font-size: 12px;
}

.rates-current-card h2 {
    margin: 0;

    font-size: 15px;
}

.rates-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 49px;
    min-height: 29px;

    padding: 5px 9px;

    border-radius: 9px;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.rates-type-badge-old {
    background: rgba(49, 94, 251, 0.11);
    color: var(--primary);
}

.rates-type-badge-new {
    background: rgba(22, 163, 74, 0.11);
    color: var(--success);
}

.rates-current-amount {
    position: relative;
    z-index: 1;

    margin: 20px 0;

    font-size: 29px;
    font-weight: 900;
    line-height: 1.2;
}

.rates-current-amount small {
    color: var(--muted);

    font-size: 12px;
    font-weight: 600;
}

.rates-eight-hour-line {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding-top: 13px;

    border-top: 1px solid var(--border);
}

.rates-eight-hour-line span {
    color: var(--muted);
    font-size: 12px;
}

.rates-eight-hour-line strong {
    font-size: 13px;
}

.rates-information-banner {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    margin-bottom: 20px;
    padding: 15px;

    border: 1px solid rgba(49, 94, 251, 0.17);
    border-radius: 15px;

    background: rgba(49, 94, 251, 0.06);
}

.rates-information-icon {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    background: var(--primary);
    color: #ffffff;

    font-size: 16px;
    font-weight: 900;
}

.rates-information-banner strong {
    display: block;

    margin-bottom: 4px;

    color: var(--primary);
    font-size: 13px;
}

.rates-information-banner p {
    margin: 0;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.rates-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.7fr);

    gap: 22px;
    align-items: start;
}

.rates-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 19px;
}

.rates-section-heading span {
    display: block;

    font-size: 17px;
    font-weight: 850;
}

.rates-section-heading small {
    display: block;

    margin-top: 4px;

    color: var(--muted);
    font-size: 12px;
}

.rates-form-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 15px;
}

.rates-edit-panel {
    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: var(--surface-soft);
}

.rates-edit-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 17px;
}

.rates-edit-title {
    display: block;

    margin-bottom: 3px;

    font-size: 15px;
    font-weight: 850;
}

.rates-edit-panel-header small {
    color: var(--muted);
    font-size: 11px;
}

.rates-change-indicator {
    padding: 5px 8px;

    border-radius: 8px;

    background: var(--surface);
    color: var(--muted);

    white-space: nowrap;

    font-size: 10px;
    font-weight: 750;
}

.rates-change-indicator.is-increased {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
}

.rates-change-indicator.is-decreased {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.rates-input-wrap {
    position: relative;
}

.rates-input-wrap input {
    padding-right: 56px;

    font-size: 22px;
    font-weight: 850;
}

.rates-input-wrap span {
    position: absolute;
    top: 50%;
    right: 16px;

    transform: translateY(-50%);

    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.rates-quick-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 7px;

    margin-top: 10px;
}

.rates-quick-buttons button {
    min-height: 38px;

    padding: 7px 4px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface);
    color: var(--text);

    font: inherit;
    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}

.rates-quick-buttons button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.rates-quick-buttons button.is-selected {
    border-color: var(--primary);

    background: var(--primary);
    color: #ffffff;
}

.rates-panel-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 14px;
    padding-top: 13px;

    border-top: 1px solid var(--border);
}

.rates-panel-preview span {
    color: var(--muted);
    font-size: 11px;
}

.rates-panel-preview strong {
    color: var(--success);
    font-size: 13px;
}

.rates-desktop-submit {
    margin-top: 20px;
}

.rates-save-button {
    min-width: 230px;
}

.rates-preview-card {
    position: sticky;
    top: 90px;
}

.rates-preview-heading span {
    display: block;

    font-size: 17px;
    font-weight: 850;
}

.rates-preview-heading small {
    display: block;

    margin-top: 4px;

    color: var(--muted);
    font-size: 12px;
}

.rates-preview-total {
    margin: 21px 0;

    padding: 19px;

    border-radius: 17px;

    background: var(--primary-soft);

    text-align: center;
}

.rates-preview-total span {
    display: block;

    margin-bottom: 7px;

    color: var(--muted);
    font-size: 11px;
}

.rates-preview-total strong {
    display: block;

    color: var(--primary);

    font-size: 26px;
    line-height: 1.3;
}

.rates-preview-list {
    margin-top: 0;
}

.rates-preview-note {
    margin-top: 18px;
    padding: 13px;

    border-radius: 13px;

    background: var(--surface-soft);
}

.rates-preview-note strong {
    display: block;

    margin-bottom: 5px;

    font-size: 12px;
}

.rates-preview-note p {
    margin: 0;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.rates-mobile-submit {
    display: none;
}

@media (max-width: 950px) {
    .rates-layout {
        grid-template-columns: 1fr;
    }

    .rates-preview-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .rates-page-icon {
        width: 50px;
        height: 50px;

        border-radius: 15px;

        font-size: 14px;
    }

    .rates-page-title-row h1 {
        font-size: 21px;
    }

    .rates-current-grid {
        grid-template-columns: 1fr;
    }

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

    .rates-current-amount {
        font-size: 25px;
    }

    .rates-desktop-submit {
        display: none;
    }

    .rates-preview-card {
        margin-bottom: 78px;
    }

    .rates-mobile-submit {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 13px;

        padding: 10px 15px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));

        border-top: 1px solid var(--border);

        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);

        box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.09);

        z-index: 1000;
    }

    .rates-mobile-submit > div {
        min-width: 0;
    }

    .rates-mobile-submit span {
        display: block;

        color: var(--muted);
        font-size: 10px;
    }

    .rates-mobile-submit strong {
        display: block;

        margin-top: 2px;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

        color: var(--primary);
        font-size: 15px;
    }

    .rates-mobile-submit .btn {
        min-width: 105px;
        flex-shrink: 0;
    }

    .site-footer {
        padding-bottom: 90px;
    }
}

@media (max-width: 430px) {
    .rates-current-card {
        padding: 16px;
    }

    .rates-edit-panel {
        padding: 14px;
    }

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

    .rates-preview-total strong {
        font-size: 22px;
    }
}
/* =========================================================
   USER DASHBOARD FINAL
========================================================= */

.user-welcome-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 20px;
    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--surface);

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

.user-welcome-profile {
    display: flex;
    align-items: center;

    gap: 15px;
}

.user-welcome-avatar {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 19px;

    background: var(--primary);
    color: #ffffff;

    font-size: 24px;
    font-weight: 900;

    box-shadow: 0 11px 25px rgba(49, 94, 251, 0.22);
}

.user-welcome-label {
    display: block;

    margin-bottom: 3px;

    color: var(--muted);
    font-size: 12px;
}

.user-welcome-profile h1 {
    margin: 0;

    font-size: 23px;
    line-height: 1.35;
}

.user-welcome-profile p {
    margin: 5px 0 0;

    color: var(--muted);
    font-size: 12px;
}

.user-month-filter {
    min-width: 280px;
}

.user-month-filter label {
    display: block;

    margin-bottom: 7px;

    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.user-month-filter-row {
    display: flex;
    align-items: center;

    gap: 8px;
}

.user-month-filter-row input {
    min-height: 44px;
}

.user-month-filter-row .btn {
    min-height: 44px;
    white-space: nowrap;
}

.user-salary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 20px;
}

.user-salary-main-card {
    overflow: hidden;
}

.user-salary-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;
}

.user-salary-card-heading span {
    display: block;

    font-size: 16px;
    font-weight: 850;
}

.user-salary-card-heading small {
    display: block;

    margin-top: 4px;

    color: var(--muted);
    font-size: 11px;
}

.user-salary-status {
    display: grid !important;
    place-items: center;

    min-width: 47px;
    min-height: 31px;

    padding: 5px 9px;

    border-radius: 10px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 11px !important;
    font-weight: 850 !important;
}

.user-salary-main-content {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 30px;

    margin-top: 21px;
}

.user-dashboard-ring {
    width: 190px;
    height: 190px;

    flex-shrink: 0;
}

.user-ring-label {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);
    font-size: 10px;
}

.user-dashboard-ring .salary-ring-amount {
    max-width: 130px;

    font-size: 20px;
    line-height: 1.35;
}

.user-target-information {
    display: grid;

    gap: 12px;

    min-width: 170px;
}

.user-target-information > div {
    padding: 13px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--surface-soft);
}

.user-target-information span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);
    font-size: 10px;
}

.user-target-information strong {
    display: block;

    font-size: 13px;
}

.user-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 18px;
}

.user-section-heading h2 {
    margin: 0;

    font-size: 17px;
}

.user-section-heading p {
    margin: 4px 0 0;

    color: var(--muted);
    font-size: 11px;
}

.user-summary-list {
    margin-top: 0;
}

.user-summary-list .summary-row span small {
    display: block;

    margin-top: 3px;

    color: var(--muted);
    font-size: 10px;
}

.user-net-summary-row {
    margin-top: 5px;
    padding-top: 15px;

    border-top: 1px solid var(--border);
}

.user-net-summary-row span,
.user-net-summary-row strong {
    font-size: 15px;
    font-weight: 850;
}

.user-lifetime-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.user-lifetime-card {
    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);

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

.user-lifetime-label {
    display: block;

    margin-bottom: 8px;

    color: var(--muted);
    font-size: 11px;
}

.user-lifetime-card strong {
    display: block;

    font-size: 18px;
    line-height: 1.4;
}

.user-lifetime-net {
    border-color: rgba(22, 163, 74, 0.2);

    background: rgba(22, 163, 74, 0.04);
}

.user-record-section {
    overflow: hidden;
}

.user-record-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 29px;

    padding: 5px 10px;

    border-radius: 9px;

    background: var(--primary-soft);
    color: var(--primary);

    white-space: nowrap;

    font-size: 10px;
    font-weight: 800;
}

.user-deduction-count {
    background: rgba(220, 38, 38, 0.08);
    color: var(--danger);
}

.user-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 180px;

    padding: 25px;

    border: 1px dashed var(--border);
    border-radius: 16px;

    background: var(--surface-soft);

    text-align: center;
}

.user-empty-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    margin-bottom: 12px;

    border-radius: 14px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 20px;
    font-weight: 900;
}

.user-empty-success {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
}

.user-empty-state strong {
    display: block;

    margin-bottom: 5px;

    font-size: 14px;
}

.user-empty-state p {
    max-width: 300px;

    margin: 0;

    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.user-mobile-records {
    display: none;
}

.user-work-record-card,
.user-deduction-record-card {
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: var(--surface);
}

.user-record-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.user-record-card-header span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);
    font-size: 10px;
}

.user-record-card-header strong {
    font-size: 13px;
}

.user-record-salary {
    color: var(--positive, var(--success));

    text-align: right;
}

.user-record-hours-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;

    margin-top: 13px;
}

.user-record-hours-grid > div {
    padding: 11px;

    border-radius: 12px;

    background: var(--surface-soft);
}

.user-record-hours-grid span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);
    font-size: 10px;
}

.user-record-hours-grid strong {
    display: block;

    font-size: 12px;
}

.user-record-hours-grid small {
    display: block;

    margin-top: 4px;

    color: var(--muted);
    font-size: 10px;
}

.user-record-note {
    margin-top: 12px;
    padding-top: 11px;

    border-top: 1px solid var(--border);
}

.user-record-note span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);
    font-size: 10px;
}

.user-record-note p {
    margin: 0;

    font-size: 11px;
    line-height: 1.65;

    overflow-wrap: anywhere;
}

.user-deduction-record-card {
    border-color: rgba(220, 38, 38, 0.16);
}

@media (max-width: 950px) {
    .user-salary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .user-welcome-card {
        align-items: stretch;
        flex-direction: column;

        gap: 18px;

        padding: 17px;
    }

    .user-welcome-avatar {
        width: 52px;
        height: 52px;

        border-radius: 16px;

        font-size: 20px;
    }

    .user-welcome-profile h1 {
        font-size: 20px;
    }

    .user-month-filter {
        min-width: 0;
        width: 100%;
    }

    .user-month-filter-row input {
        min-width: 0;
        flex: 1;
    }

    .user-salary-main-content {
        flex-direction: column;

        gap: 18px;
    }

    .user-dashboard-ring {
        width: 180px;
        height: 180px;
    }

    .user-target-information {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        width: 100%;
        min-width: 0;
    }

    .user-lifetime-grid {
        grid-template-columns: 1fr;
    }

    .user-lifetime-card {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 15px;
    }

    .user-lifetime-label {
        margin-bottom: 0;
    }

    .user-lifetime-card strong {
        text-align: right;

        font-size: 15px;
    }

    .user-desktop-table {
        display: none;
    }

    .user-mobile-records {
        display: grid;

        gap: 11px;
    }

    .user-record-section {
        padding: 16px;
    }
}

@media (max-width: 430px) {
    .user-month-filter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .user-month-filter-row .btn {
        width: 100%;
    }

    .user-dashboard-ring {
        width: 165px;
        height: 165px;
    }

    .user-dashboard-ring .salary-ring-amount {
        font-size: 17px;
    }

    .user-target-information {
        grid-template-columns: 1fr;
    }

    .user-section-heading h2 {
        font-size: 15px;
    }

    .user-record-count {
        padding: 5px 8px;
    }
}