:root {
    --bg: #f5f6f8;
    --bg-soft: #eef1f5;
    --panel-dark: #15161a;
    --panel-dark-2: #24252b;
    --panel-dark-3: #313238;
    --card: rgba(255, 255, 255, 0.88);
    --card-solid: #ffffff;
    --text: #111318;
    --text-soft: #5f6673;
    --muted: #8b93a1;
    --line: rgba(17, 19, 24, 0.10);
    --line-strong: rgba(17, 19, 24, 0.16);
    --white-line: rgba(255, 255, 255, 0.14);
    --blue: #0071e3;
    --blue-dark: #005bbd;
    --green: #1f9d63;
    --red: #d93b3b;
    --orange: #f59e0b;
    --steel: #dfe5ed;
    --steel-dark: #b8c2cf;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 24px 70px rgba(15, 23, 42, 0.10);
    --shadow-dark: 0 28px 80px rgba(0, 0, 0, 0.34);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 113, 227, 0.10), transparent 34%),
        radial-gradient(circle at 95% 8%, rgba(120, 122, 255, 0.08), transparent 30%),
        linear-gradient(180deg, #f8f9fb 0%, #eef1f5 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(0, 113, 227, 0.36), transparent 32%),
        radial-gradient(circle at 82% 78%, rgba(31, 157, 99, 0.22), transparent 30%),
        radial-gradient(circle at 50% 110%, rgba(255, 255, 255, 0.10), transparent 32%),
        linear-gradient(135deg, #0b0c10 0%, #191b21 52%, #2b2d34 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-card {
    width: 100%;
    max-width: 470px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    padding: 38px;
    color: #ffffff;
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(26px);
}

.login-card h1 {
    margin: 14px 0 10px;
    font-size: 38px;
    letter-spacing: -1.2px;
    line-height: 1.05;
}

.login-card p {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.6;
    margin: 0 0 10px;
}

.login-card label {
    display: block;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 750;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.login-card input {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border-radius: 17px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    transition: 0.18s ease;
}

.login-card input:focus {
    border-color: rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.22);
}

.login-card button,
.btn {
    border: 0;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 20px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    line-height: 1;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, opacity 0.16s ease;
    white-space: nowrap;
}

.login-card button {
    width: 100%;
    margin-top: 24px;
    background: linear-gradient(180deg, #1683ff 0%, #006edb 100%);
    color: white;
    box-shadow: 0 18px 34px rgba(0, 113, 227, 0.30);
}

.btn:hover,
.login-card button:hover {
    transform: translateY(-1px);
}

.btn:active,
.login-card button:active {
    transform: translateY(0);
}

.test-note {
    margin-top: 20px;
    padding: 15px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    line-height: 1.5;
}

.app-body {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 286px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.10), transparent 30%),
        linear-gradient(180deg, #17181d 0%, #26272d 100%);
    color: #ffffff;
    padding: 22px;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 28px;
    padding: 10px 8px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04)),
        linear-gradient(180deg, #3b82f6 0%, #005bbd 100%);
    display: grid;
    place-items: center;
    font-weight: 950;
    box-shadow: 0 16px 36px rgba(0, 113, 227, 0.25);
}

.sidebar-brand strong {
    display: block;
    font-size: 20px;
    letter-spacing: -0.45px;
}

.sidebar-brand span {
    display: block;
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
    margin-top: 3px;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-nav a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    padding: 15px 16px;
    border-radius: 20px;
    font-weight: 750;
    font-size: 14px;
    letter-spacing: -0.1px;
    transition: 0.16s ease;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.92);
    color: #15161a;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 14px;
    padding: 14px 8px 4px;
}

.sidebar-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 850;
}

.main {
    margin-left: 286px;
    width: calc(100% - 286px);
    padding: 28px;
}

.topbar {
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 32px;
    padding: 24px 26px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(22px);
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--muted);
    font-weight: 850;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.topbar h1 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.9px;
    line-height: 1.08;
}

.user-box {
    text-align: right;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(244, 246, 249, 0.88) 100%);
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 22px;
    padding: 13px 17px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.user-box span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.user-box strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
}

.card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(249, 250, 252, 0.90) 100%);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.card h2 {
    margin: 0 0 14px;
    font-size: 21px;
    letter-spacing: -0.45px;
}

.card p {
    line-height: 1.55;
}

.stat {
    font-size: 42px;
    font-weight: 950;
    letter-spacing: -1.6px;
    margin: 6px 0;
}

.muted {
    color: var(--text-soft);
}

.btn-primary {
    background: linear-gradient(180deg, #1683ff 0%, #006edb 100%);
    color: white;
    box-shadow: 0 14px 30px rgba(0, 113, 227, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #087aff 0%, #005fc8 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    border: 1px solid rgba(17, 19, 24, 0.10);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.btn-green {
    background: linear-gradient(180deg, #27b875 0%, #168b55 100%);
    color: white;
    box-shadow: 0 14px 30px rgba(31, 157, 99, 0.22);
}

.btn-red {
    background: linear-gradient(180deg, #f15a5a 0%, #c92f2f 100%);
    color: white;
    box-shadow: 0 14px 30px rgba(217, 59, 59, 0.20);
}

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

.field label {
    display: block;
    font-weight: 850;
    margin-bottom: 7px;
    font-size: 13px;
    color: #2b3039;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    height: 50px;
    border-radius: 17px;
    border: 1px solid rgba(17, 19, 24, 0.12);
    padding: 0 14px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
    outline: none;
    transition: 0.16s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(0, 113, 227, 0.48);
    box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.12);
    background: #ffffff;
}

.field textarea {
    height: 96px;
    padding-top: 13px;
    resize: vertical;
    line-height: 1.5;
}

.weight-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.weight-box {
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.16), transparent 30%),
        linear-gradient(180deg, #1c1d22 0%, #101115 100%);
    color: white;
    border-radius: 28px;
    padding: 21px;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.weight-box span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 10px;
}

.weight-box strong {
    font-size: 38px;
    letter-spacing: -1.5px;
    line-height: 1;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.table-wrap {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

th,
td {
    padding: 15px 14px;
    border-bottom: 1px solid rgba(17, 19, 24, 0.08);
    text-align: left;
    font-size: 14px;
}

th {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    font-weight: 900;
    background: rgba(246, 248, 251, 0.84);
}

tbody tr {
    transition: background 0.14s ease;
}

tbody tr:hover {
    background: rgba(0, 113, 227, 0.045);
}

tr.selected {
    background: rgba(0, 113, 227, 0.10);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.badge-pending {
    background: #fff2d5;
    color: #9a6200;
}

.badge-complete {
    background: #daf6e8;
    color: #087541;
}

.badge-blocked,
.badge-danger {
    background: #ffe2e2;
    color: #a42121;
}

.badge-active {
    background: #dcecff;
    color: #075fb4;
}

.notice {
    padding: 15px 17px;
    border-radius: 22px;
    background: rgba(0, 113, 227, 0.09);
    border: 1px solid rgba(0, 113, 227, 0.20);
    color: #134b80;
    margin-bottom: 18px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.notice.success {
    background: rgba(31, 157, 99, 0.10);
    border-color: rgba(31, 157, 99, 0.22);
    color: #0f6d43;
}

.notice.danger {
    background: rgba(217, 59, 59, 0.10);
    border-color: rgba(217, 59, 59, 0.22);
    color: #9a2525;
}

.notice.warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.24);
    color: #8a5700;
}

.segmented {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    background: #2d2e34;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
}

.segmented a,
.segmented button {
    border: 0;
    border-radius: 18px;
    min-height: 46px;
    padding: 0 18px;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 850;
    cursor: pointer;
    text-decoration: none;
}

.segmented a.active,
.segmented button.active {
    background: #ffffff;
    color: #15161a;
}

.panel-soft {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(244, 246, 249, 0.86) 100%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

.hero-card {
    min-height: 210px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.42), transparent 32%),
        linear-gradient(135deg, #dce8f7 0%, #f8f3ff 48%, #f6dde4 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 34px;
    padding: 30px;
    box-shadow: var(--shadow-card);
}

.hero-card h1,
.hero-card h2 {
    margin-top: 0;
    letter-spacing: -1px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(17, 19, 24, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(17, 19, 24, 0.22);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(17, 19, 24, 0.34);
}

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

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

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

@media (max-width: 1050px) {
    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .app-body {
        display: block;
    }

    .main {
        margin-left: 0;
        width: 100%;
        padding: 18px;
    }

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

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-box {
        text-align: left;
    }
}

@media (max-width: 720px) {
    .login-card {
        padding: 28px;
        border-radius: 28px;
    }

    .login-card h1 {
        font-size: 32px;
    }

    .grid-3,
    .form-grid,
    .weight-row {
        grid-template-columns: 1fr;
    }

    .topbar,
    .card,
    .hero-card {
        border-radius: 26px;
    }

    .topbar h1 {
        font-size: 25px;
    }

    .weight-box strong {
        font-size: 33px;
    }

    .action-row .btn {
        width: 100%;
    }
}
.app-footer {
    margin-top: 28px;
    padding: 18px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: var(--text-soft);
    font-size: 13px;
}

.app-footer strong {
    color: var(--text);
    font-weight: 900;
}

.app-footer span {
    margin-left: 8px;
}

@media (max-width: 720px) {
    .app-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-footer span {
        margin-left: 0;
        margin-right: 8px;
    }
}
.card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.selected-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.10);
    color: #075fb4;
    font-size: 13px;
    font-weight: 900;
}

.setup-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.setup-option-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(249, 250, 252, 0.90) 100%);
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 28px;
    padding: 24px;
    min-height: 176px;
    cursor: pointer;
    transition: 0.18s ease;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.setup-option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 113, 227, 0.28);
    box-shadow: 0 24px 62px rgba(15, 23, 42, 0.10);
}

.setup-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(0, 113, 227, 0.13) 0%, rgba(0, 113, 227, 0.07) 100%);
    color: #075fb4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 950;
    margin-bottom: 15px;
}

.setup-option-card h3 {
    margin: 0 0 9px;
    font-size: 18px;
    color: var(--text);
    letter-spacing: -0.35px;
}

.setup-option-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}

.setup-option-footer {
    margin-top: 18px;
    color: #0071e3;
    font-size: 13px;
    font-weight: 900;
}

.setup-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.setup-modal-backdrop.is-open {
    display: flex;
}

.setup-modal {
    width: min(1120px, 96vw);
    max-height: 90vh;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 248, 251, 0.98) 100%);
    border-radius: 32px;
    box-shadow: 0 34px 100px rgba(15, 23, 42, 0.30);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.setup-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(17, 19, 24, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.setup-modal-header h2 {
    margin: 0 0 7px;
    font-size: 24px;
    color: var(--text);
    letter-spacing: -0.55px;
}

.setup-modal-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.setup-modal-close {
    border: 0;
    background: rgba(17, 19, 24, 0.06);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: 0.16s ease;
}

.setup-modal-close:hover {
    background: rgba(17, 19, 24, 0.10);
}

.setup-modal-body {
    padding: 26px 28px;
    overflow-y: auto;
}

.setup-modal-section {
    display: none;
}

.setup-modal-section.is-active {
    display: block;
}

.setup-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.setup-three-column {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.setup-note-box,
.setup-warning-box,
.setup-success-box {
    border-radius: 20px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    font-weight: 650;
}

.setup-note-box {
    background: rgba(248, 250, 253, 0.88);
    border: 1px solid rgba(17, 19, 24, 0.08);
    color: var(--text-soft);
}

.setup-warning-box {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.24);
    color: #8a5700;
}

.setup-success-box {
    background: rgba(31, 157, 99, 0.10);
    border: 1px solid rgba(31, 157, 99, 0.22);
    color: #0f6d43;
}

.setup-mini-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.setup-mini-table th,
.setup-mini-table td {
    border-bottom: 1px solid rgba(17, 19, 24, 0.08);
    padding: 13px 12px;
    text-align: left;
    font-size: 14px;
}

.setup-mini-table th {
    color: var(--muted);
    background: rgba(246, 248, 251, 0.84);
}

.setup-muted-action {
    opacity: 0.55;
    pointer-events: none;
}

.setup-inline-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
}

.setup-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    cursor: pointer;
    color: var(--text);
}

.setup-check-label input {
    width: 17px;
    height: 17px;
}

.setup-status {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(248, 250, 253, 0.88);
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 18px;
    color: var(--text-soft);
    font-weight: 850;
}

.setup-status-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.24);
    color: #8a5700;
}

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

    .setup-two-column,
    .setup-three-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .setup-card-grid {
        grid-template-columns: 1fr;
    }
}
.ws-page {
    height: calc(100vh - 170px);
    min-height: 620px;
    display: grid;
    grid-template-rows: 1fr;
    gap: 14px;
    overflow: hidden;
}

.ws-main {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 14px;
}

.ws-left {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
}

.ws-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 250, 252, 0.92) 100%);
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.ws-weights {
    padding: 16px;
}

.ws-thin-status {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ws-pill {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(17, 19, 24, 0.08);
    background: rgba(248, 250, 253, 0.90);
    color: var(--text-soft);
    white-space: nowrap;
}

.ws-pill.mode-first {
    background: rgba(0, 113, 227, 0.10);
    border-color: rgba(0, 113, 227, 0.22);
    color: #075fb4;
}

.ws-pill.mode-second,
.ws-pill.bridge-ok {
    background: rgba(31, 157, 99, 0.10);
    border-color: rgba(31, 157, 99, 0.22);
    color: #0f6d43;
}

.ws-pill.bridge-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.24);
    color: #8a5700;
}

.ws-pill.bridge-error {
    background: rgba(217, 59, 59, 0.10);
    border-color: rgba(217, 59, 59, 0.22);
    color: #9a2525;
}

.ws-weights-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 12px;
}

.ws-weight-box {
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.15), transparent 30%),
        linear-gradient(180deg, #1c1d22 0%, #101115 100%);
    border-radius: 24px;
    padding: 16px 18px;
    color: #ffffff;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.ws-weight-box.fixed-ready {
    border-color: #27b875;
    box-shadow: 0 0 0 4px rgba(31, 157, 99, 0.13);
}

.ws-weight-box.first {
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.14), transparent 30%),
        linear-gradient(180deg, #30333b 0%, #202229 100%);
}

.ws-weight-box.net {
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.14), transparent 30%),
        linear-gradient(180deg, #168b55 0%, #0f5f3d 100%);
}

.ws-weight-label {
    font-size: 12px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.62);
    text-transform: uppercase;
    letter-spacing: 0.65px;
}

.ws-weight-live-wrap {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.ws-weight-input {
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    width: 100%;
    padding: 0;
    font-weight: 950;
    font-size: 56px;
    line-height: 1;
    letter-spacing: -1.4px;
}

.ws-weight-input::-webkit-outer-spin-button,
.ws-weight-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ws-weight-value {
    font-size: 38px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -1.2px;
}

.ws-weight-unit {
    font-size: 18px;
    font-weight: 900;
}

.ws-protocol {
    margin-top: 12px;
    border-radius: 18px;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 850;
    border: 1px solid rgba(17, 19, 24, 0.08);
    background: rgba(248, 250, 253, 0.88);
    color: var(--text-soft);
}

.ws-protocol.ok {
    background: rgba(31, 157, 99, 0.10);
    color: #0f6d43;
    border-color: rgba(31, 157, 99, 0.22);
}

.ws-protocol.warning {
    background: rgba(245, 158, 11, 0.12);
    color: #8a5700;
    border-color: rgba(245, 158, 11, 0.24);
}

.ws-protocol.error {
    background: rgba(217, 59, 59, 0.10);
    color: #9a2525;
    border-color: rgba(217, 59, 59, 0.22);
}

.ws-form-card {
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 16px;
    gap: 12px;
    overflow: hidden;
}

.ws-form-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ws-form-head h2,
.ws-pending-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 950;
    color: var(--text);
    letter-spacing: -0.45px;
}

.ws-selected-info {
    min-height: 18px;
    font-size: 12px;
    font-weight: 850;
    color: #0f6d43;
    text-align: right;
}

.ws-form-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 10px;
    align-content: start;
    overflow: hidden;
}

.ws-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.ws-field label {
    font-size: 12px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.1;
}

.ws-required-star {
    color: var(--red);
}

.ws-field input {
    height: 44px;
    border-radius: 15px;
    border: 1px solid rgba(17, 19, 24, 0.12);
    padding: 0 12px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    background: rgba(255, 255, 255, 0.88);
    transition: 0.15s ease;
}

.ws-field input:focus {
    border-color: rgba(0, 113, 227, 0.48);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
    background: #ffffff;
}

.ws-field input.ws-error {
    border-color: rgba(217, 59, 59, 0.70);
    background: rgba(255, 242, 242, 0.94);
    box-shadow: 0 0 0 4px rgba(217, 59, 59, 0.10);
}

.ws-plate-input {
    height: 52px !important;
    font-size: 22px !important;
    font-weight: 950;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ws-actions {
    display: grid;
    grid-template-columns: 130px 1fr 120px 120px;
    gap: 10px;
}

.ws-btn {
    height: 50px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
    transition: 0.15s ease;
}

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

.ws-btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

.ws-btn-fix {
    background: rgba(17, 19, 24, 0.08);
    color: var(--text);
}

.ws-btn-save {
    background: linear-gradient(180deg, #1683ff 0%, #006edb 100%);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 113, 227, 0.22);
}

.ws-btn-save.second {
    background: linear-gradient(180deg, #27b875 0%, #168b55 100%);
    box-shadow: 0 14px 30px rgba(31, 157, 99, 0.22);
}

.ws-btn-print {
    background: linear-gradient(180deg, #6f7785 0%, #4d5562 100%);
    color: #ffffff;
}

.ws-btn-reset {
    background: linear-gradient(180deg, #f15a5a 0%, #c92f2f 100%);
    color: #ffffff;
}

.ws-pending-card {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    padding: 16px;
    gap: 12px;
    overflow: hidden;
}

.ws-pending-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ws-search input {
    width: 100%;
    height: 42px;
    border-radius: 15px;
    border: 1px solid rgba(17, 19, 24, 0.12);
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.88);
}

.ws-search input:focus {
    border-color: rgba(0, 113, 227, 0.48);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
    background: #ffffff;
}

.ws-pending-list {
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.ws-pending-item {
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 18px;
    padding: 12px;
    background: rgba(248, 250, 253, 0.88);
    cursor: pointer;
    transition: 0.15s ease;
}

.ws-pending-item:hover {
    background: rgba(0, 113, 227, 0.07);
    border-color: rgba(0, 113, 227, 0.20);
}

.ws-pending-item.active {
    background: rgba(31, 157, 99, 0.10);
    border-color: rgba(31, 157, 99, 0.28);
    box-shadow: 0 0 0 3px rgba(31, 157, 99, 0.10);
}

.ws-pending-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.ws-pending-number {
    font-size: 11px;
    font-weight: 900;
    color: var(--muted);
}

.ws-pending-plate {
    font-size: 17px;
    font-weight: 950;
    color: var(--text);
    line-height: 1.1;
}

.ws-pending-meta {
    font-size: 12px;
    color: var(--text-soft);
    font-weight: 750;
    line-height: 1.35;
}

.ws-pending-weight {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 950;
    color: var(--text);
}

.ws-empty {
    border: 1px dashed rgba(17, 19, 24, 0.18);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 850;
    background: rgba(248, 250, 253, 0.88);
}

@media (max-width: 1500px) {
    .ws-main {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .ws-weights-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }

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

@media (max-width: 1280px) {
    .ws-page {
        height: auto;
        overflow: visible;
    }

    .ws-main {
        grid-template-columns: 1fr;
    }

    .ws-left {
        grid-template-rows: auto auto;
    }

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

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

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

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

    .ws-pending-list {
        max-height: 340px;
    }
}

@media (max-width: 760px) {
    .ws-form-grid,
    .ws-weights-grid,
    .ws-actions {
        grid-template-columns: 1fr;
    }

    .ws-field.span-2 {
        grid-column: span 1;
    }
}
.dashboard-action-card {
    display: block;
    text-decoration: none;
    color: inherit;
    min-height: 190px;
    transition: 0.2s ease;
}

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

.dashboard-action-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dashboard-action-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #2563eb;
    font-weight: 800;
    font-size: 14px;
}

.dashboard-action-arrow {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    color: #111827;
}

.dashboard-action-card h2 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.1;
}

.dashboard-action-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.stat-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card .stat {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: #111827;
}

@media (max-width: 900px) {
    .dashboard-action-card h2 {
        font-size: 26px;
    }

    .stat-card .stat {
        font-size: 42px;
    }
}
/* =========================================================
   MORE AGGRESSIVE CARD / BORDER / INDUSTRIAL CONTRAST
   Put at the VERY BOTTOM of app.css
   ========================================================= */

.main {
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 82, 204, 0.13), transparent 30%),
        radial-gradient(circle at 95% 0%, rgba(20, 33, 61, 0.12), transparent 28%),
        linear-gradient(180deg, #edf2f8 0%, #e8eef6 100%) !important;
}

/* stronger global card borders */
.card,
.dashboard-action-card,
.stat-card,
.topbar,
.user-box,
.app-footer,
.ws-card,
.setup-option-card,
.profile-cover,
.table-wrap,
.notice,
.setup-modal,
.profile-field,
.ws-pending-item {
    border: 2px solid #aebdd0 !important;
    box-shadow:
        0 22px 48px rgba(15, 23, 42, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.85) !important;
}

/* aggressive hover */
.dashboard-action-card:hover,
.card:hover,
.setup-option-card:hover,
.ws-pending-item:hover {
    border-color: #2563eb !important;
    box-shadow:
        0 28px 70px rgba(37, 99, 235, 0.20),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95) !important;
}

/* topbar stronger */
.topbar {
    border-color: #a7b8cf !important;
    box-shadow:
        0 24px 55px rgba(15, 23, 42, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
}

/* dashboard action cards become stronger */
.dashboard-action-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    background:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.16), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%) !important;
}

.dashboard-action-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: linear-gradient(180deg, #2563eb 0%, #0f172a 100%);
}

.dashboard-action-card h2 {
    font-size: 36px !important;
    font-weight: 950 !important;
    color: #05070d !important;
}

.dashboard-action-card p {
    color: #4f5b6c !important;
    font-weight: 750 !important;
}

/* number badge stronger */
.dashboard-action-badge {
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

/* arrow stronger */
.dashboard-action-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 22px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.20);
}

/* stat cards stronger */
.stat-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.08), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%) !important;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #0f172a 0%, #2563eb 100%);
}

.stat-card .stat {
    color: #05070d !important;
    font-size: 62px !important;
    font-weight: 950 !important;
    letter-spacing: -2px;
}

/* stronger text */
.topbar h1,
.card h2,
.dashboard-action-card h2,
.stat-card .stat {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.muted {
    color: #536072 !important;
}

/* sidebar stronger separation */
.sidebar {
    border-right: 2px solid #111827 !important;
    box-shadow: 12px 0 34px rgba(15, 23, 42, 0.18);
}

.sidebar-nav a.active {
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
}

/* buttons more aggressive */
.btn-primary {
    background: linear-gradient(180deg, #1d7cff 0%, #0054c8 100%) !important;
    border: 2px solid #004aad !important;
    box-shadow: 0 18px 36px rgba(0, 84, 200, 0.32) !important;
}

.btn-secondary {
    border: 2px solid #b7c3d3 !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10) !important;
}

/* footer stronger */
.app-footer {
    border-color: #aebdd0 !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10) !important;
}
/* =========================================================
   BALANCED FORM VISIBILITY
   Softer borders, still visible
   ========================================================= */

.card form {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

body[data-page="company-create"] .card {
    background: #ffffff !important;
    border: 1.5px solid #aebdd0 !important;
    border-radius: 28px !important;
}

.field label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
}

.field input,
.field select,
.field textarea {
    height: 50px !important;
    background: #ffffff !important;
    border: 1.5px solid #b7c5d7 !important;
    border-radius: 16px !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 0 14px !important;
    box-shadow: none !important;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #8fa3bd !important;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none !important;
    border-color: #1e73e8 !important;
    box-shadow: 0 0 0 3px rgba(30, 115, 232, 0.12) !important;
}

.setup-two-column {
    gap: 18px !important;
}

.action-row {
    margin-top: 18px !important;
}

.topbar,
.card,
.app-footer {
    border-color: #aebdd0 !important;
}

.btn-primary {
    box-shadow: 0 12px 26px rgba(0, 111, 230, 0.22) !important;
}

.btn-secondary {
    box-shadow: none !important;
}
.control-alert {
    border: 1.5px solid #aebdd0;
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 800;
}

.control-alert-success {
    background: #ecfdf5;
    color: #166534;
    border-color: #86efac;
}

.control-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fca5a5;
}

.control-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.control-hero-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.control-back-btn {
    width: fit-content;
}

.control-company-title {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.control-company-mark {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: #0f2747;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 900;
    flex: 0 0 auto;
    border: 1.5px solid #aebdd0;
}

.control-company-title h2 {
    margin: 2px 0 10px;
    font-size: 28px;
    line-height: 1.15;
    color: #111827;
}

.control-title-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.control-title-line strong {
    color: #111827;
}

.control-hero-actions,
.control-action-row,
.control-report-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.control-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.control-stat-card {
    padding: 20px;
}

.control-stat-card span,
.control-info-grid span,
.control-access-box span,
.control-admin-login span,
.control-report-grid span {
    display: block;
    font-size: 12px;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.control-stat-card strong {
    display: block;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
}

.control-stat-card em,
.control-access-box em {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    margin-top: 8px;
}

.control-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.control-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.control-section-head h2 {
    margin: 3px 0 0;
    font-size: 21px;
    color: #111827;
}

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

.control-info-grid > div,
.control-access-box > div,
.control-admin-login > div,
.control-report-grid > div {
    background: #f8fafc;
    border: 1.5px solid #c4d0df;
    border-radius: 18px;
    padding: 15px;
    min-width: 0;
}

.control-info-grid strong,
.control-access-box strong,
.control-admin-login strong,
.control-report-grid strong {
    display: block;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
    word-break: break-word;
}

.control-access-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.control-license-grid {
    margin-top: 14px;
}

.control-admin-login {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

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

.control-report-note {
    margin-top: 14px;
}

.empty-box {
    background: #f8fafc;
    border: 1.5px solid #c4d0df;
    border-radius: 18px;
    padding: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.btn-success {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

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

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

@media (max-width: 760px) {
    .control-hero-card,
    .control-company-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .control-stat-grid,
    .control-grid-2,
    .control-info-grid,
    .control-access-box,
    .control-admin-login,
    .control-report-grid {
        grid-template-columns: 1fr;
    }
}
.security-dashboard-grid {
    align-items: stretch;
}

.security-protocol-card {
    grid-column: span 2;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.security-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.security-alert-popup {
    margin-top: 18px;
    border: 1.5px solid #aebdd0;
    border-radius: 26px;
    background: #f8fbff;
    padding: 18px;
}

.security-alert-levels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.security-count-box {
    min-height: 118px;
    border: 1.5px solid #aebdd0;
    border-radius: 22px;
    padding: 18px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.security-count-box span {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.security-count-box strong {
    font-size: 44px;
    line-height: 1;
    font-weight: 950;
}

.security-count-danger {
    border-color: #dc2626;
    background: #fff1f2;
    color: #991b1b;
}

.security-count-warning {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

.security-count-purple {
    border-color: #7c3aed;
    background: #f5f3ff;
    color: #4c1d95;
}

.security-count-zero {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #166534;
}

.security-card-actions {
    margin-top: 16px;
}

.security-card-actions .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1200px) {
    .security-protocol-card {
        grid-column: span 4;
    }
}

@media (max-width: 900px) {
    .security-protocol-card {
        grid-column: span 1;
    }

    .security-alert-levels {
        grid-template-columns: 1fr;
    }
}
.ws-pill-operator,
.ws-pill-station-main {
    gap: 8px;
    max-width: 360px;
}

.ws-pill-operator span,
.ws-pill-station-main span,
.ws-pill-number span {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.75;
}

.ws-pill-operator strong,
.ws-pill-station-main strong,
.ws-pill-number strong {
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ws-memory-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1.5px solid #aebdd0;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ws-memory-switch input {
    width: 18px;
    height: 18px;
    accent-color: #1e73e8;
    cursor: pointer;
}

.ws-plate-input.ws-platform-active {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14) !important;
}

.ws-field.ws-guide-current input {
    background: #ecfdf5 !important;
    border-color: #22c55e !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12) !important;
}

.ws-field.ws-guide-filled input {
    background: #f7fff9 !important;
    border-color: #86efac !important;
}

.ws-field.ws-guide-current label::after {
    content: "  ← შემდეგი";
    color: #15803d;
    font-weight: 900;
}
/* =========================================================
   MODERN LIGHT SIDEBAR — MyScale Premium SaaS Style
   Paste at the VERY BOTTOM of app.css
   ========================================================= */

.sidebar {
    width: 286px !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(30, 115, 232, 0.10), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
    color: #111827 !important;
    padding: 18px !important;
    border-right: 1.5px solid #b7c5d7 !important;
    box-shadow: 12px 0 34px rgba(15, 23, 42, 0.08) !important;
}

/* Brand card */
.sidebar-brand {
    margin-bottom: 22px !important;
    padding: 14px !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    border: 1.5px solid #b7c5d7 !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07) !important;
}

.brand-mark {
    width: 48px !important;
    height: 48px !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #247dff 0%, #0b5ed7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(30, 115, 232, 0.24) !important;
}

.sidebar-brand strong {
    color: #0f172a !important;
    font-size: 21px !important;
    font-weight: 950 !important;
    letter-spacing: -0.5px !important;
}

.sidebar-brand span {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

/* Navigation */
.sidebar-nav {
    gap: 7px !important;
}

.sidebar-nav a {
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 14px !important;
    border-radius: 18px !important;
    color: #475569 !important;
    background: transparent !important;
    border: 1.5px solid transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    letter-spacing: -0.15px !important;
}

.sidebar-nav a::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
    flex: 0 0 auto;
    transition: 0.16s ease;
}

.sidebar-nav a:hover {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #c4d0df !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07) !important;
}

.sidebar-nav a:hover::before {
    background: #1e73e8;
}

/* Active menu item */
.sidebar-nav a.active {
    background: linear-gradient(180deg, #1e7bff 0%, #0b5ed7 100%) !important;
    color: #ffffff !important;
    border-color: #0b5ed7 !important;
    box-shadow: 0 16px 34px rgba(30, 115, 232, 0.28) !important;
}

.sidebar-nav a.active::before {
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18) !important;
}

.sidebar-nav a span {
    display: block !important;
    min-width: 0 !important;
}

/* Footer */
.sidebar-footer {
    margin-top: auto !important;
    padding: 14px !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    border: 1.5px solid #b7c5d7 !important;
    color: #64748b !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06) !important;
}

.sidebar-footer span {
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #64748b !important;
}

.sidebar-footer a {
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 950 !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18) !important;
}

/* Main background tuned for light sidebar */
.main {
    background:
        radial-gradient(circle at 12% 0%, rgba(30, 115, 232, 0.10), transparent 30%),
        radial-gradient(circle at 95% 0%, rgba(15, 23, 42, 0.07), transparent 28%),
        linear-gradient(180deg, #edf4fb 0%, #e8eef6 100%) !important;
}

/* Mobile/tablet safety */
@media (max-width: 1050px) {
    .sidebar {
        position: static !important;
        width: 100% !important;
        min-height: auto !important;
        border-right: 0 !important;
        border-bottom: 1.5px solid #b7c5d7 !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
    }

    .sidebar-nav {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        padding-bottom: 4px !important;
    }

    .sidebar-nav a {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    .sidebar-footer {
        margin-top: 14px !important;
    }
}
.cs-monitoring-shell {
    min-height: calc(100dvh - 315px);
    display: flex;
    flex-direction: column;
}

.cs-monitoring-only {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cs-monitoring-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.cs-monitoring-inner h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.cs-monitoring-loader {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 6px solid #d8e4f2;
    border-top-color: #1e73e8;
    animation: cs-monitoring-spin 0.85s linear infinite;
}

@keyframes cs-monitoring-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-height: 760px) {
    .cs-monitoring-shell {
        min-height: calc(100dvh - 250px);
    }

    .cs-monitoring-only {
        min-height: 150px;
    }
}
.setup-status-success {
    border-color: #86efac;
    background: #ecfdf5;
    color: #166534;
}

.setup-status-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.setup-logo-preview {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1.5px solid #b7c5d7;
    border-radius: 18px;
    background: #ffffff;
}

.setup-logo-preview span {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.setup-logo-preview img {
    max-width: 150px;
    max-height: 70px;
    object-fit: contain;
    border: 1px solid #d8e2ee;
    border-radius: 12px;
    background: #ffffff;
    padding: 8px;
}

.setup-checkbox-line {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border: 1.5px solid #b7c5d7;
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.setup-checkbox-line input {
    width: 18px;
    height: 18px;
    accent-color: #1e73e8;
}
/* =========================================================
   MyScale Global Comfort Blue Skin
   Soft blue-gray working style for full software
   Does not change logic / structure
   ========================================================= */

@media screen {
    body.app-body::after,
    body[data-page]::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 2147483000;
        pointer-events: none;

        /* soft blue comfort layer */
        background: rgba(58, 96, 138, 0.17) !important;

        /* keeps page readable, not black */
        backdrop-filter: saturate(0.96) contrast(0.97) brightness(0.985) !important;
    }
}

html,
body.app-body,
body[data-page] {
    background-color: #d6e1ed !important;
    background-image:
        linear-gradient(180deg, #dce7f2 0%, #d2deeb 48%, #c9d6e4 100%) !important;
    background-attachment: fixed !important;
}

body.app-body .main,
body[data-page] .main,
body.app-body .content,
body[data-page] .content {
    background: transparent !important;
}

/* Main cards across software */
body.app-body .card,
body[data-page] .card,
body.app-body .page-card,
body[data-page] .page-card,
body.app-body .setup-card,
body[data-page] .setup-card,
body.app-body .dashboard-card,
body[data-page] .dashboard-card,
body.app-body .stat-card,
body[data-page] .stat-card,
body.app-body .admin-card,
body[data-page] .admin-card {
    background: #e2ebf4 !important;
    border-color: #7f98b6 !important;
}

/* Inner working areas stay light enough */
body.app-body .table-wrap,
body[data-page] .table-wrap,
body.app-body table,
body[data-page] table {
    background-color: #f4f8fc !important;
}

/* Inputs/selects/buttons keep visible borders */
body.app-body input:not([type="checkbox"]):not([type="radio"]),
body.app-body select,
body.app-body textarea,
body[data-page] input:not([type="checkbox"]):not([type="radio"]),
body[data-page] select,
body[data-page] textarea {
    border-color: #7891ad !important;
}

body.app-body .btn,
body.app-body button,
body[data-page] .btn,
body[data-page] button {
    border-color: #7891ad;
}

/* Sidebar comfort tone */
body.app-body .sidebar,
body[data-page] .sidebar {
    background:
        linear-gradient(180deg, #e5eef8 0%, #dbe7f3 52%, #d2deeb 100%) !important;
}

/* Do not apply screen comfort layer on print */
@media print {
    body.app-body::after,
    body[data-page]::after {
        display: none !important;
    }
}
/* =========================================================
   MyScale Global Message Boxes
   Replaces browser alert / confirm / prompt visual style
   ========================================================= */

.myscale-dialog-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483600 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    background: rgba(15, 23, 42, 0.42) !important;
    backdrop-filter: blur(10px) saturate(1.05) !important;
}

.myscale-dialog-backdrop.is-open {
    display: flex !important;
}

.myscale-dialog {
    width: min(460px, 94vw) !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(30, 115, 232, 0.10), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%) !important;
    border: 2px solid #aebdd0 !important;
    border-radius: 28px !important;
    box-shadow:
        0 34px 100px rgba(15, 23, 42, 0.34),
        inset 0 0 0 1px rgba(255, 255, 255, 0.88) !important;
    overflow: hidden !important;
    transform: translateY(8px) scale(0.98) !important;
    opacity: 0 !important;
    animation: myscaleDialogIn 0.16s ease forwards !important;
}

@keyframes myscaleDialogIn {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.myscale-dialog-head {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 22px 24px 14px !important;
}

.myscale-dialog-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 17px !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 950 !important;
    background: linear-gradient(180deg, #1e7bff 0%, #0b5ed7 100%) !important;
    box-shadow: 0 14px 28px rgba(30, 115, 232, 0.24) !important;
}

.myscale-dialog-icon.success {
    background: linear-gradient(180deg, #27b875 0%, #168b55 100%) !important;
}

.myscale-dialog-icon.warning {
    background: linear-gradient(180deg, #f59e0b 0%, #c27803 100%) !important;
}

.myscale-dialog-icon.danger {
    background: linear-gradient(180deg, #f15a5a 0%, #c92f2f 100%) !important;
}

.myscale-dialog-title {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 20px !important;
    font-weight: 950 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.35px !important;
}

.myscale-dialog-subtitle {
    margin: 5px 0 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.myscale-dialog-body {
    padding: 8px 24px 20px !important;
}

.myscale-dialog-message {
    margin: 0 !important;
    color: #1f2937 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.65 !important;
    white-space: pre-line !important;
}

.myscale-dialog-input {
    width: 100% !important;
    height: 52px !important;
    margin-top: 16px !important;
    background: #ffffff !important;
    border: 1.5px solid #b7c5d7 !important;
    border-radius: 16px !important;
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    padding: 0 14px !important;
    outline: none !important;
    box-shadow: none !important;
}

.myscale-dialog-input:focus {
    border-color: #1e73e8 !important;
    box-shadow: 0 0 0 3px rgba(30, 115, 232, 0.14) !important;
}

.myscale-dialog-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    padding: 16px 24px 22px !important;
    border-top: 1.5px solid #d5dfeb !important;
    background: rgba(248, 250, 252, 0.78) !important;
}

.myscale-dialog-btn {
    min-height: 46px !important;
    border-radius: 999px !important;
    padding: 0 18px !important;
    border: 1.5px solid #b7c5d7 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    transition: 0.15s ease !important;
}

.myscale-dialog-btn:hover {
    transform: translateY(-1px) !important;
}

.myscale-dialog-btn-cancel {
    background: #ffffff !important;
    color: #334155 !important;
}

.myscale-dialog-btn-confirm {
    background: linear-gradient(180deg, #1e7bff 0%, #0b5ed7 100%) !important;
    border-color: #0b5ed7 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(30, 115, 232, 0.22) !important;
}

.myscale-dialog-btn-confirm.danger {
    background: linear-gradient(180deg, #f15a5a 0%, #c92f2f 100%) !important;
    border-color: #c92f2f !important;
    box-shadow: 0 14px 28px rgba(217, 59, 59, 0.20) !important;
}

@media (max-width: 560px) {
    .myscale-dialog-actions {
        flex-direction: column-reverse !important;
    }

    .myscale-dialog-btn {
        width: 100% !important;
    }
}
/* =========================================================
   MyScale Dialog Visibility Fix
   If backdrop opens but box is invisible
   ========================================================= */

#myscaleDialogRoot {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    pointer-events: none !important;
}

#myscaleDialogRoot .myscale-dialog-backdrop {
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

#myscaleDialogRoot .myscale-dialog {
    position: relative !important;
    z-index: 2147483647 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

#myscaleDialogRoot .myscale-dialog *,
#myscaleDialogRoot .myscale-dialog {
    filter: none !important;
}