:root {
    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    --cyan-dark: #0891b2;

    --background: #020617;
    --background-soft: #07111f;
    --panel: #0f172a;
    --panel-dark: #08101e;

    --border: rgba(34, 211, 238, 0.14);
    --border-soft: rgba(148, 163, 184, 0.14);

    --muted: #94a3b8;
    --muted-dark: #64748b;
    --text: #e2e8f0;
    --text-bright: #f8fafc;

    --success: #34d399;
    --success-light: #6ee7b7;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --danger: #f43f5e;
    --danger-light: #fda4af;

    --sidebar-width: 280px;
}

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

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    color-scheme: dark;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at top right,
            rgba(6, 182, 212, 0.08),
            transparent 32%
        ),
        var(--background);
}

body.menu-open {
    overflow: hidden;
}

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

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

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

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

/* =========================================================
   APP LAYOUT
   ========================================================= */

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 50;
    top: 0;
    bottom: 0;
    left: 0;

    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;

    border-right: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.96);
    backdrop-filter: blur(18px);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sidebar-brand {
    display: flex;
    min-height: 84px;
    align-items: center;
    gap: 12px;
    padding: 0 20px;

    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;

    border-radius: 14px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan-light), var(--cyan));

    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.25);
}

.sidebar-brand strong {
    display: block;
    overflow: hidden;

    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-brand span {
    display: block;
    overflow: hidden;
    margin-top: 2px;

    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-brand .icon-btn {
    margin-left: auto;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 18px 12px;

    scrollbar-color: rgba(34, 211, 238, 0.25) transparent;
    scrollbar-width: thin;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.22);
}

.nav-section {
    padding: 16px 12px 8px;

    color: var(--muted-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.nav-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 13px;

    margin: 3px 0;
    padding: 11px 13px;

    border-radius: 12px;
    color: var(--muted);

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

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

.nav-link i {
    width: 20px;
    flex: 0 0 20px;
    text-align: center;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(30, 41, 59, 0.72);
    transform: translateX(2px);
}

.nav-link.active {
    color: #67e8f9;
    background: linear-gradient(
        90deg,
        rgba(6, 182, 212, 0.16),
        rgba(6, 182, 212, 0.05)
    );

    box-shadow: inset 3px 0 var(--cyan-light);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;

    border-top: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(2, 6, 23, 0.7);
}

.sidebar-user strong,
.topbar-user strong {
    display: block;
    overflow: hidden;

    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-user span,
.topbar-user span {
    display: block;
    overflow: hidden;
    margin-top: 2px;

    color: var(--muted-dark);
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.user-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;

    border: 1px solid rgba(103, 232, 249, 0.25);
    border-radius: 12px;

    color: #cffafe;
    background: linear-gradient(135deg, #164e63, #0891b2);

    font-weight: 900;
}

.user-avatar.small {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.icon-btn {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;

    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 11px;

    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.75);
    cursor: pointer;

    transition:
        border-color 0.2s,
        color 0.2s,
        background 0.2s,
        transform 0.2s;
}

.icon-btn:hover {
    border-color: rgba(34, 211, 238, 0.4);
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.1);
}

.icon-btn:active {
    transform: scale(0.96);
}

.icon-btn.danger:hover {
    border-color: rgba(244, 63, 94, 0.35);
    color: var(--danger-light);
    background: rgba(244, 63, 94, 0.08);
}

.main-wrap {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    z-index: 30;
    top: 0;

    display: flex;
    height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 0 28px;

    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(16px);
}

.topbar-title {
    min-width: 0;
}

.topbar-title span {
    display: block;
    overflow: hidden;

    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.topbar-title small {
    display: block;
    margin-top: 4px;

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

.topbar-user {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
}

.content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px;
}

.sidebar-backdrop {
    display: none;
}

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

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 22px;
}

.page-head h1 {
    margin: 0;

    color: var(--text-bright);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
}

.page-head p {
    max-width: 720px;
    margin: 7px 0 0;

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

/* =========================================================
   CARDS & PANELS
   ========================================================= */

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

    margin-bottom: 20px;
}

.card,
.panel,
.stat-card {
    border: 1px solid rgba(34, 211, 238, 0.13);
    border-radius: 18px;

    background: linear-gradient(
        145deg,
        rgba(15, 23, 42, 0.9),
        rgba(8, 15, 29, 0.9)
    );

    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
}

.card {
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.card::after {
    position: absolute;
    top: -35px;
    right: -35px;

    width: 90px;
    height: 90px;

    border-radius: 50%;
    background: rgba(6, 182, 212, 0.06);

    content: "";
}

.card small {
    display: block;

    color: var(--muted-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.card strong {
    display: block;
    margin-top: 11px;

    color: var(--text-bright);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 900;
}

.panel {
    overflow-x: auto;
    margin-bottom: 20px;
    padding: 20px;
}

.panel h2,
.panel h3 {
    margin: 0 0 16px;

    color: var(--text-bright);
    font-weight: 800;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.salary-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;

    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    display: flex;
    min-height: 132px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;

    padding: 22px;

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

.stat-card::after {
    position: absolute;
    top: -45px;
    right: -45px;

    width: 130px;
    height: 130px;

    border-radius: 50%;
    background: rgba(6, 182, 212, 0.05);

    content: "";
}

.stat-card:hover {
    border-color: rgba(34, 211, 238, 0.28);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
    transform: translateY(-2px);
}

.stat-card-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.stat-label {
    display: block;

    color: var(--muted-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stat-value {
    display: block;
    overflow: hidden;
    margin-top: 12px;

    color: var(--text-bright);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;

    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 15px;

    color: #67e8f9;
    background: rgba(6, 182, 212, 0.1);

    font-size: 18px;
}

.stat-icon.warning {
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning-light);
    background: rgba(245, 158, 11, 0.1);
}

.stat-icon.success {
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success-light);
    background: rgba(16, 185, 129, 0.1);
}

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

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

/* =========================================================
   SALARY PANEL
   ========================================================= */

.salary-panel {
    overflow: hidden;
    padding: 0;
}

.salary-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 22px 28px;

    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.salary-panel-title {
    min-width: 0;
}

.salary-panel-title h2 {
    margin: 0;

    color: var(--text-bright);
    font-size: 18px;
    font-weight: 800;
}

.salary-panel-title p {
    max-width: 720px;
    margin: 8px 0 0;

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

.salary-filter-form {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.salary-select-wrapper {
    position: relative;
    min-width: 210px;
}

.salary-select-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;

    color: var(--cyan-light);
    font-size: 13px;

    pointer-events: none;
    transform: translateY(-50%);
}

.salary-select-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 15px;

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

    pointer-events: none;
    transform: translateY(-50%);
}

.salary-filter-select {
    width: 100%;
    min-height: 46px;
    appearance: none;

    padding: 0 42px;

    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    outline: none;

    color: var(--text-bright);
    background-color: #07111f;

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

    color-scheme: dark;
    cursor: pointer;

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

.salary-filter-select:hover {
    border-color: rgba(34, 211, 238, 0.5);
    background-color: #091525;
}

.salary-filter-select:focus {
    border-color: var(--cyan-light);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.salary-filter-select option {
    color: #f8fafc !important;
    background: #0f172a !important;
    font-weight: 600;
}

.salary-filter-select option:checked {
    color: #ffffff !important;
    background: #0891b2 !important;
}

.salary-filter-reset {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 0 12px;

    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 11px;

    color: var(--danger-light);
    background: rgba(244, 63, 94, 0.08);

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

    transition:
        border-color 0.2s,
        background 0.2s,
        transform 0.2s;
}

.salary-filter-reset:hover {
    border-color: rgba(244, 63, 94, 0.42);
    background: rgba(244, 63, 94, 0.14);
    transform: translateY(-1px);
}

.salary-table-wrapper {
    width: 100%;
    overflow-x: auto;

    scrollbar-color: rgba(34, 211, 238, 0.25) transparent;
    scrollbar-width: thin;
}

.salary-table-wrapper::-webkit-scrollbar {
    height: 7px;
}

.salary-table-wrapper::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.2);
}

.salary-table {
    min-width: 920px;
}

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

.form {
    overflow: visible;
}

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

.form label,
.field-label {
    display: block;

    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.form input,
.form select,
.form textarea,
.ui-input {
    width: 100%;
    margin-top: 7px;
    padding: 11px 13px;

    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 11px;
    outline: none;

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

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

.form select {
    color-scheme: dark;
}

.form select option {
    color: var(--text-bright);
    background: var(--panel);
}

.form textarea {
    min-height: 100px;
    resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.ui-input:focus {
    border-color: var(--cyan-light);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.form > label {
    margin-top: 16px;
}

.form small {
    display: block;
    margin-top: 6px;

    color: var(--muted-dark);
    font-weight: 400;
}

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

.btn,
.ui-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 16px;
    padding: 10px 15px;

    border: 0;
    border-radius: 11px;

    color: #001018;
    background: linear-gradient(135deg, var(--cyan-light), var(--cyan-dark));

    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.18);

    font-weight: 800;
    cursor: pointer;

    transition:
        filter 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}

.btn:hover,
.ui-btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.24);
    transform: translateY(-1px);
}

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

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

    border-collapse: collapse;
}

th {
    padding: 14px 16px;

    border-bottom: 1px solid rgba(148, 163, 184, 0.16);

    color: #67e8f9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-align: left;
    text-transform: uppercase;
}

td {
    padding: 16px;

    border-bottom: 1px solid rgba(148, 163, 184, 0.08);

    color: #cbd5e1;
    font-size: 13px;
    vertical-align: middle;
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover td {
    background: rgba(15, 23, 42, 0.42);
}

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

td a {
    color: #67e8f9;
    font-weight: 700;
}

td button {
    border: 0;

    color: var(--danger-light);
    background: none;

    font-weight: 700;
    cursor: pointer;
}

.table-date,
.paid-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.table-date i,
.paid-date i {
    color: var(--muted-dark);
    font-size: 12px;
}

.salary-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.salary-team-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;

    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 10px;

    color: #67e8f9;
    background: rgba(6, 182, 212, 0.1);

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

.salary-team strong {
    color: var(--text-bright);
}

.salary-amount {
    color: var(--cyan-light);
    font-size: 14px;
    font-weight: 900;
}

.salary-notes {
    color: #cbd5e1;
    line-height: 1.5;
}

.not-paid {
    color: var(--muted-dark);
    font-size: 12px;
}

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

.badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 5px 10px;

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

    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.badge i {
    font-size: 10px;
}

.badge.success,
.badge.win {
    border-color: rgba(16, 185, 129, 0.22);
    color: var(--success-light);
    background: rgba(16, 185, 129, 0.12);
}

.badge.warning {
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--warning-light);
    background: rgba(245, 158, 11, 0.12);
}

.badge.danger,
.badge.lose {
    border-color: rgba(244, 63, 94, 0.22);
    color: var(--danger-light);
    background: rgba(244, 63, 94, 0.12);
}

.green {
    color: var(--success-light) !important;
}

.red {
    color: var(--danger-light) !important;
}

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

.empty-state {
    display: flex;
    max-width: 420px;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    margin: 0 auto;
    padding: 40px 20px;

    text-align: center;
}

.empty-state-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;

    margin-bottom: 16px;

    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 18px;

    color: var(--cyan-light);
    background: rgba(6, 182, 212, 0.1);

    font-size: 20px;
}

.empty-state h3 {
    margin: 0;

    color: var(--text-bright);
    font-size: 16px;
    font-weight: 800;
}

.empty-state p {
    margin: 9px 0 0;

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

/* =========================================================
   PAGINATION
   ========================================================= */

.salary-pagination {
    padding: 18px 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

/* =========================================================
   ALERT
   ========================================================= */

.alert {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;
    padding: 12px 14px;

    border-radius: 12px;

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

.alert.success {
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--success-light);
    background: rgba(16, 185, 129, 0.1);
}

.alert.error {
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: var(--danger-light);
    background: rgba(244, 63, 94, 0.1);
}

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

.login-page {
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(6, 182, 212, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(14, 116, 144, 0.14),
            transparent 32%
        ),
        var(--background);
}

.login-shell {
    position: relative;
    z-index: 2;

    display: grid;
    min-height: 100vh;
    max-width: 1180px;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;

    margin: auto;
    padding: 40px;
}

.login-hero h1 {
    margin: 22px 0;

    color: transparent;
    background: linear-gradient(135deg, #ffffff, #67e8f9);
    background-clip: text;
    -webkit-background-clip: text;

    font-size: clamp(2.7rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
}

.login-hero > p {
    max-width: 590px;

    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;

    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;

    color: #67e8f9;
    background: rgba(6, 182, 212, 0.08);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.hero-features {
    display: grid;
    gap: 13px;

    margin-top: 34px;
}

.hero-features div {
    display: flex;
    align-items: center;
    gap: 11px;

    color: #cbd5e1;
}

.hero-features i {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;

    border-radius: 10px;

    color: #67e8f9;
    background: rgba(6, 182, 212, 0.1);
}

.login-card {
    width: 100%;
    max-width: 470px;
    justify-self: end;

    padding: 34px;

    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 24px;

    background: rgba(8, 15, 29, 0.8);
    backdrop-filter: blur(20px);

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.login-logo {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 16px;

    color: #001018;
    background: linear-gradient(135deg, var(--cyan-light), var(--cyan-dark));

    font-size: 20px;
}

.login-heading span {
    color: var(--cyan-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 7px 0 5px;

    color: var(--text-bright);
    font-size: 25px;
}

.login-heading p {
    margin: 0 0 24px;

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

.field-label {
    margin-top: 16px;
}

.input-icon {
    position: relative;
    margin-top: 8px;
}

.input-icon > i {
    position: absolute;
    top: 50%;
    left: 13px;

    color: var(--muted-dark);

    transform: translateY(-50%);
}

.input-icon input {
    width: 100%;
    height: 48px;
    padding: 0 44px;

    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    outline: none;

    color: var(--text);
    background: var(--background-soft);
}

.input-icon input:focus {
    border-color: var(--cyan-light);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.input-icon button {
    position: absolute;
    top: 50%;
    right: 8px;

    width: 34px;
    height: 34px;

    border: 0;

    color: var(--muted-dark);
    background: transparent;
    cursor: pointer;

    transform: translateY(-50%);
}

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

    margin: 16px 0;

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

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

.login-submit {
    display: flex;
    width: 100%;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 15px;

    border: 0;
    border-radius: 12px;

    color: #001018;
    background: linear-gradient(135deg, var(--cyan-light), var(--cyan-dark));

    font-weight: 900;
    cursor: pointer;
}

.login-note {
    display: block;
    margin-top: 16px;

    color: #475569;
    text-align: center;
}

.login-orb {
    position: fixed;

    border-radius: 50%;
    opacity: 0.5;
    filter: blur(10px);
}

.orb-one {
    top: -70px;
    left: -80px;

    width: 240px;
    height: 240px;

    background: rgba(6, 182, 212, 0.09);
}

.orb-two {
    right: -100px;
    bottom: -120px;

    width: 330px;
    height: 330px;

    background: rgba(14, 116, 144, 0.08);
}

/* =========================================================
   GLOBAL DARK SELECT OPTIONS
   ========================================================= */

select {
    color-scheme: dark;
}

select option {
    color: #f8fafc;
    background-color: #0f172a;
}

select option:checked {
    color: #ffffff;
    background-color: #0891b2;
}

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

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

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

/* =========================================================
   RESPONSIVE SIDEBAR
   ========================================================= */

@media (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.4);
    }

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

    .sidebar-backdrop {
        position: fixed;
        z-index: 45;
        inset: 0;

        background: rgba(2, 6, 23, 0.72);
        backdrop-filter: blur(3px);
    }

    .sidebar-backdrop.open {
        display: block;
    }

    .main-wrap {
        margin-left: 0;
    }

    .content {
        padding: 22px;
    }

    .login-shell {
        max-width: 560px;
        grid-template-columns: 1fr;
    }

    .login-hero {
        display: none;
    }

    .login-card {
        justify-self: center;
    }

    .salary-panel-header {
        align-items: flex-start;
    }
}

/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

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

    .stat-card {
        min-height: 112px;
    }

    .salary-panel-header {
        flex-direction: column;
        gap: 18px;
    }

    .salary-filter-form,
    .salary-select-wrapper {
        width: 100%;
    }

    .salary-filter-form {
        align-items: stretch;
    }

    .salary-filter-reset {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .topbar {
        height: 70px;
        padding: 0 15px;
    }

    .topbar-title small {
        display: none;
    }

    .content {
        padding: 16px;
    }

    .stats,
    .grid2,
    .form-grid {
        grid-template-columns: 1fr;
    }

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

    .page-head .btn {
        align-self: flex-start;
    }

    .panel {
        padding: 15px;
        border-radius: 15px;
    }

    .salary-panel {
        padding: 0;
    }

    .salary-panel-header {
        padding: 18px;
    }

    .card {
        padding: 17px;
    }

    .login-shell {
        padding: 18px;
    }

    .login-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .salary-filter-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .salary-filter-reset span {
        display: none;
    }

    .salary-filter-reset {
        width: 46px;
        padding: 0;
    }

    /*
     * Tampilan tabel menjadi card di mobile.
     */
    .salary-table-wrapper {
        overflow: visible;
    }

    .salary-table {
        display: block;
        min-width: 0;
        padding: 12px;
    }

    .salary-table thead {
        display: none;
    }

    .salary-table tbody {
        display: grid;
        gap: 12px;
    }

    .salary-table tr {
        display: block;
        overflow: hidden;

        border: 1px solid rgba(34, 211, 238, 0.13);
        border-radius: 15px;

        background: rgba(8, 15, 29, 0.75);
    }

    .salary-table td {
        display: flex;
        min-height: 48px;
        align-items: center;
        justify-content: space-between;
        gap: 18px;

        padding: 12px 14px;

        border-bottom: 1px solid rgba(148, 163, 184, 0.08);

        text-align: right;
    }

    .salary-table td:last-child {
        border-bottom: 0;
    }

    .salary-table td::before {
        flex: 0 0 105px;

        color: var(--muted-dark);

        content: attr(data-label);

        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-align: left;
        text-transform: uppercase;
    }

    .salary-table tr:hover td {
        background: transparent;
    }

    .salary-table .empty-state {
        width: 100%;
        min-height: 240px;
    }

    .salary-table td[colspan] {
        display: block;
    }

    .salary-table td[colspan]::before {
        display: none;
    }

    .salary-team {
        justify-content: flex-end;
    }

    .salary-notes {
        max-width: 190px;
        text-align: right;
    }

    .stat-value {
        font-size: 1.45rem;
    }

    .salary-pagination {
        padding: 14px;
    }
}

@media (max-width: 420px) {
    .sidebar {
        width: min(88vw, 300px);
    }

    .topbar-user .user-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

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

    .salary-filter-reset {
        width: 100%;
    }

    .salary-filter-reset span {
        display: inline;
    }

    .salary-table td {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;

        text-align: left;
    }

    .salary-table td::before {
        flex-basis: auto;
    }

    .salary-team {
        justify-content: flex-start;
    }

    .salary-notes {
        max-width: none;
        text-align: left;
    }
}
/* =========================================================
   TOOLS DROPDOWN
   ========================================================= */

.nav-dropdown {
    margin: 3px 0;
}

.nav-dropdown-toggle {
    width: 100%;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.nav-dropdown-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    gap: 3px;
    margin-top: 5px;
    padding-left: 13px;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: grid;
}

.nav-sub-link {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;

    min-height: 48px;
    padding: 9px 11px;

    border-left: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 0 11px 11px 0;

    color: #94a3b8;
    background: transparent;

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

    transition:
        color 0.2s,
        background 0.2s,
        border-color 0.2s;
}

.nav-sub-link > i {
    width: 18px;
    color: #64748b;
    text-align: center;
}

.nav-sub-link > span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nav-sub-link > small {
    grid-column: 2;
    margin-top: 2px;

    color: #fbbf24;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-sub-link:hover {
    border-left-color: rgba(34, 211, 238, 0.5);
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.62);
}

.nav-sub-link:hover > i,
.nav-sub-link.active > i {
    color: #67e8f9;
}

.nav-sub-link.active {
    border-left-color: #22d3ee;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.09);
}

/* =========================================================
   TOOL MAINTENANCE PAGE
   ========================================================= */

.tool-maintenance-panel {
    position: relative;
    display: flex;
    min-height: 520px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;

    padding: 50px 24px;

    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at center,
            rgba(6, 182, 212, 0.08),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            rgba(15, 23, 42, 0.92),
            rgba(8, 15, 29, 0.92)
        );

    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);

    text-align: center;
}

.tool-maintenance-glow {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 340px;
    height: 340px;

    border-radius: 50%;

    background: rgba(6, 182, 212, 0.08);
    filter: blur(70px);

    pointer-events: none;
    transform: translate(-50%, -50%);
}

.tool-maintenance-icon {
    position: relative;
    z-index: 2;

    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;

    margin-bottom: 22px;

    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 24px;

    color: #67e8f9;
    background: linear-gradient(
        145deg,
        rgba(6, 182, 212, 0.18),
        rgba(8, 145, 178, 0.09)
    );

    box-shadow: 0 16px 45px rgba(6, 182, 212, 0.14);

    font-size: 30px;
}

.tool-maintenance-badge {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;

    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;

    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.tool-maintenance-panel h2 {
    position: relative;
    z-index: 2;

    margin: 22px 0 0;

    color: #f8fafc;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 900;
}

.tool-maintenance-panel > p {
    position: relative;
    z-index: 2;

    max-width: 620px;
    margin: 13px 0 0;

    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

.tool-maintenance-info {
    position: relative;
    z-index: 2;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;

    margin-top: 28px;
}

.tool-maintenance-info div {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 13px;

    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 11px;

    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.4);

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

.tool-maintenance-info i {
    color: #22d3ee;
}

.tool-maintenance-back {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    margin-top: 30px;
    padding: 11px 16px;

    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 12px;

    color: #67e8f9;
    background: rgba(6, 182, 212, 0.08);

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

    transition:
        border-color 0.2s,
        background 0.2s,
        transform 0.2s;
}

.tool-maintenance-back:hover {
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(6, 182, 212, 0.14);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .tool-maintenance-panel {
        min-height: 440px;
        padding: 40px 18px;
        border-radius: 18px;
    }

    .tool-maintenance-icon {
        width: 68px;
        height: 68px;
        border-radius: 20px;
        font-size: 25px;
    }

    .tool-maintenance-info {
        width: 100%;
        flex-direction: column;
    }

    .tool-maintenance-info div {
        width: 100%;
        justify-content: center;
    }
}
.lineup-box {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.28);
}

.lineup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.lineup-header h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 800;
}

.lineup-header p {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}

.lineup-add-button {
    flex: 0 0 auto;
    margin-top: 0;
}

.lineup-row {
    display: grid;
    grid-template-columns:
        minmax(180px, 1.4fr)
        minmax(150px, 1fr)
        auto
        42px;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 13px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.5);
}

.lineup-row select,
.lineup-row input[type="text"] {
    width: 100%;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    outline: none;
    color: #e2e8f0;
    background: #07111f;
}

.lineup-row select:focus,
.lineup-row input[type="text"]:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.lineup-substitute {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    white-space: nowrap;
}

.lineup-substitute input {
    width: auto !important;
    margin: 0 !important;
    accent-color: #06b6d4;
}

.lineup-remove-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 10px;
    color: #fda4af;
    background: rgba(244, 63, 94, 0.08);
    cursor: pointer;
}

.lineup-remove-button:hover {
    border-color: rgba(244, 63, 94, 0.45);
    background: rgba(244, 63, 94, 0.14);
}

.distribution-player-row {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(160px, 240px);
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.5);
}

.distribution-player-row .salary-team span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
}

.distribution-player-row label {
    margin: 0;
}

.distribution-player-row input[type="number"] {
    margin-top: 7px;
}

@media (max-width: 850px) {
    .lineup-row {
        grid-template-columns: 1fr 1fr;
    }

    .lineup-remove-button {
        justify-self: end;
    }
}

@media (max-width: 640px) {
    .lineup-header {
        flex-direction: column;
    }

    .lineup-add-button {
        width: 100%;
    }

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

    .lineup-remove-button {
        width: 100%;
    }

    .distribution-player-row {
        grid-template-columns: 1fr;
    }
}
.player-action-group {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.table-action.salary {
    color: #6ee7b7;
}

.table-action.salary:hover {
    color: #a7f3d0;
}

.player-salary-profile {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 22px;
    padding: 18px 20px;

    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 16px;

    background: rgba(15, 23, 42, 0.65);
}

.player-salary-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;

    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 14px;

    color: #67e8f9;
    background: rgba(6, 182, 212, 0.12);

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

.player-salary-profile strong {
    display: block;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 900;
}

.player-salary-profile span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
}

.salary-paid-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 10px;

    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 9px;

    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.1);

    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.salary-paid-button:hover {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.16);
}

.salary-completed {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #6ee7b7;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

/* =========================================================
   GAJI PER PLAYER — FILTER, TABEL, DAN RESPONSIVE
   ========================================================= */

.players-salary-table {
    width: 100%;
    min-width: 1180px;
    table-layout: fixed;
    border-collapse: collapse;
}

.players-salary-table th,
.players-salary-table td {
    vertical-align: middle;
}

.players-salary-table th:nth-child(1),
.players-salary-table td:nth-child(1) {
    width: 240px;
}

.players-salary-table th:nth-child(2),
.players-salary-table td:nth-child(2) {
    width: 85px;
}

.players-salary-table th:nth-child(3),
.players-salary-table td:nth-child(3) {
    width: 145px;
}

.players-salary-table th:nth-child(4),
.players-salary-table td:nth-child(4) {
    width: 165px;
}

.players-salary-table th:nth-child(5),
.players-salary-table td:nth-child(5),
.players-salary-table th:nth-child(6),
.players-salary-table td:nth-child(6),
.players-salary-table th:nth-child(7),
.players-salary-table td:nth-child(7) {
    width: 135px;
}

.players-salary-table th:nth-child(8),
.players-salary-table td:nth-child(8) {
    width: 95px;
}

.players-salary-table th:nth-child(9),
.players-salary-table td:nth-child(9) {
    width: 135px;
}

.players-salary-table td {
    height: 80px;
}

.players-salary-table td:nth-child(2),
.players-salary-table td:nth-child(3),
.players-salary-table td:nth-child(5),
.players-salary-table td:nth-child(6),
.players-salary-table td:nth-child(7),
.players-salary-table td:nth-child(8),
.players-salary-table td:nth-child(9) {
    white-space: nowrap;
}

.salary-total {
    color: #67e8f9;
    font-weight: 900;
    white-space: nowrap;
}

.salary-pending {
    color: var(--warning-light);
    font-weight: 900;
    white-space: nowrap;
}

.salary-paid {
    color: var(--success-light);
    font-weight: 900;
    white-space: nowrap;
}

.salary-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 38px;
    padding: 9px 12px;

    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 10px;

    color: #67e8f9;
    background: rgba(6, 182, 212, 0.09);

    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;

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

.salary-detail-button:hover {
    border-color: rgba(34, 211, 238, 0.45);
    color: #cffafe;
    background: rgba(6, 182, 212, 0.15);
    transform: translateY(-1px);
}

/*
 * Isi kolom player.
 * Class salary-team sudah digunakan pada Blade saat ini.
 */
.players-salary-table .salary-team {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.players-salary-table .salary-team-icon {
    display: grid;
    width: 42px;
    height: 42px;
    min-width: 42px;
    place-items: center;

    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 12px;

    color: #67e8f9;
    background: rgba(6, 182, 212, 0.1);

    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.players-salary-table .salary-team > div:last-child {
    min-width: 0;
}

.players-salary-table .salary-team strong {
    display: inline;
    overflow: hidden;

    color: var(--text-bright);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.players-salary-table .salary-team span {
    display: inline;
    overflow: hidden;

    margin-left: 4px;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* =========================================================
   FILTER GAJI PER PLAYER
   ========================================================= */

.salary-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;
}

.salary-panel-title {
    min-width: 0;
}

.salary-panel-title h2 {
    margin: 0;
}

.salary-panel-title p {
    margin: 6px 0 0;

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

.salary-filter-form {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.salary-search-wrapper,
.salary-select-wrapper {
    position: relative;
}

.salary-search-wrapper {
    min-width: 260px;
}

.salary-select-wrapper {
    min-width: 220px;
}

.salary-search-input,
.salary-filter-select {
    width: 100%;
    height: 54px;

    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 16px;
    outline: none;

    color: var(--text-bright);
    background: var(--background-soft);

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

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

.salary-search-input {
    padding: 0 18px 0 48px;
}

.salary-search-input::placeholder {
    color: var(--muted-dark);
    font-weight: 500;
}

.salary-filter-select {
    appearance: none;
    -webkit-appearance: none;

    padding: 0 48px;

    color-scheme: dark;
    cursor: pointer;
}

.salary-search-input:hover,
.salary-filter-select:hover {
    border-color: rgba(34, 211, 238, 0.42);
    background: #091525;
}

.salary-search-input:focus,
.salary-filter-select:focus {
    border-color: var(--cyan-light);
    background: #081524;

    box-shadow:
        0 0 0 4px rgba(34, 211, 238, 0.1),
        0 0 22px rgba(6, 182, 212, 0.12);
}

.salary-filter-select option {
    color: var(--text-bright);
    background: var(--panel);
    font-weight: 600;
}

.salary-filter-select option:checked {
    color: #ffffff;
    background: var(--cyan-dark);
}

.salary-search-icon,
.salary-select-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 18px;

    color: var(--cyan-light);
    font-size: 14px;

    pointer-events: none;
    transform: translateY(-50%);
}

.salary-select-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 18px;

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

    pointer-events: none;
    transform: translateY(-50%);
}

.salary-filter-button,
.salary-reset-button {
    height: 54px;
    margin-top: 0;
    padding: 0 18px;
}

.salary-reset-button {
    border: 1px solid rgba(148, 163, 184, 0.18);

    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.65);

    box-shadow: none;
}

.salary-reset-button:hover {
    color: var(--text-bright);
    background: rgba(51, 65, 85, 0.8);
}

/* =========================================================
   RESPONSIVE GAJI PER PLAYER
   ========================================================= */

@media (max-width: 1100px) {
    .salary-panel-header {
        flex-direction: column;
    }

    .salary-filter-form {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .salary-filter-form {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .salary-search-wrapper,
    .salary-select-wrapper,
    .salary-filter-button,
    .salary-reset-button {
        width: 100%;
        min-width: 0;
    }

    /*
     * Parent dari tabel memakai class Tailwind overflow-x-auto.
     */
    .panel > .overflow-x-auto {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;

        -webkit-overflow-scrolling: touch;
        scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
        scrollbar-width: thin;
    }

    .panel > .overflow-x-auto::-webkit-scrollbar {
        height: 7px;
    }

    .panel > .overflow-x-auto::-webkit-scrollbar-track {
        background: transparent;
    }

    .panel > .overflow-x-auto::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.48);
    }

    .players-salary-table {
        width: 100%;
        min-width: 1120px;
        table-layout: fixed;
    }

    .players-salary-table th,
    .players-salary-table td {
        padding-right: 10px;
        padding-left: 10px;
    }

    .players-salary-table th:nth-child(1),
    .players-salary-table td:nth-child(1) {
        width: 250px;
    }

    .players-salary-table th:nth-child(2),
    .players-salary-table td:nth-child(2) {
        width: 72px;
    }

    .players-salary-table th:nth-child(3),
    .players-salary-table td:nth-child(3) {
        width: 135px;
    }

    .players-salary-table th:nth-child(4),
    .players-salary-table td:nth-child(4) {
        width: 150px;
    }

    .players-salary-table th:nth-child(5),
    .players-salary-table td:nth-child(5),
    .players-salary-table th:nth-child(6),
    .players-salary-table td:nth-child(6),
    .players-salary-table th:nth-child(7),
    .players-salary-table td:nth-child(7) {
        width: 130px;
    }

    .players-salary-table th:nth-child(8),
    .players-salary-table td:nth-child(8) {
        width: 90px;
    }

    .players-salary-table th:nth-child(9),
    .players-salary-table td:nth-child(9) {
        width: 125px;
    }

    .players-salary-table td {
        height: 80px;
    }

    /*
     * Kolom player tetap terlihat ketika tabel digeser.
     */
.players-salary-table th:first-child,
.players-salary-table td:first-child {
    position: static;
    left: auto;
    z-index: auto;
    background: transparent;
    box-shadow: none;
}

.players-salary-table tbody tr:hover td:first-child {
    background: rgba(15, 23, 42, 0.42);
}

    .players-salary-table .salary-team {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 9px;
    }

    .players-salary-table .salary-team-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .players-salary-table .salary-team strong {
        font-size: 12px;
    }

    .players-salary-table .salary-team span {
        margin-left: 3px;
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .players-salary-table {
        min-width: 1080px;
    }

    .players-salary-table th,
    .players-salary-table td {
        padding-right: 8px;
        padding-left: 8px;
    }

    .players-salary-table th:nth-child(1),
    .players-salary-table td:nth-child(1) {
        width: 230px;
    }

    .players-salary-table th:nth-child(2),
    .players-salary-table td:nth-child(2) {
        width: 66px;
    }

    .players-salary-table th:nth-child(3),
    .players-salary-table td:nth-child(3) {
        width: 125px;
    }

    .players-salary-table .salary-team {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 8px;
    }

    .players-salary-table .salary-team-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 11px;
        font-size: 10px;
    }

    .players-salary-table .salary-team strong {
        font-size: 11px;
    }

    .players-salary-table .salary-team span {
        font-size: 10px;
    }
}
.badge.warning,
.badge.cancelled {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.badge.warning {
    border: 1px solid rgba(245, 158, 11, 0.22);

    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}

.badge.cancelled {
    border: 1px solid rgba(148, 163, 184, 0.22);

    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.15);
}