/* ============================================================
   LAGER-SCHMIERDATENBANK - Stylesheet
   Industrial Anthracite Theme (DECISIONS D10)
   Orientierung: Starrag.com – dunkel, technisch, reduziert.
   Kein Blau, keine Bootstrap-/SaaS-Optik, dezente Linien,
   kantige Komponenten, Monospace für technische Werte.
   ============================================================ */

:root {
    /* Anthrazit-Grauskala */
    --anth-950: #101216;   /* Seite unten / Footer */
    --anth-900: #16181d;   /* Hauptfläche */
    --anth-850: #1b1e24;   /* Hero-Hintergrund */
    --anth-800: #1f232a;   /* Karten / Panels */
    --anth-700: #2a2f38;   /* Eingaben, Tabellenkopf, Hover */
    --anth-600: #3a4150;   /* Linien (betont), Buttons sekundär */
    --anth-400: #9aa3af;   /* gedämpfter Text */
    --anth-200: #e5e8ec;   /* Haupttext */
    --white:    #ffffff;   /* Akzent */
    --black:    #000000;   /* Black */

    /* Statusfarben – sparsam einsetzen */
    --status-ok:        #3fb96f;
    --status-ok-bg:     rgba(63, 185, 112, 0.233);
    --status-warn:      #d99a2b;
    --status-warn-bg:   rgba(217, 154, 43, 0.10);
    --status-danger:    #d1544a;
    --status-danger-bg: rgba(209, 84, 74, 0.12);
    --status-info-bg:   rgba(154, 163, 175, 0.10);

    /* Semantik */
    --color-bg:      var(--anth-900);
    --color-surface: var(--anth-800);
    --color-input:   var(--anth-700);
    --color-text:    var(--anth-200);
    --color-muted:   var(--anth-400);
    --color-line:    var(--anth-600);
    --color-line-soft: #262b33;

    --radius: 45px;
    /* Glass UI */
    --glass-bg: rgba(27, 30, 36, 0.76);
    --glass-bg-strong: rgba(22, 24, 29, 0.86);
    --glass-border: rgba(255, 255, 255, 0.11);
    --glass-highlight: rgba(255, 255, 255, 0.045);
    --glass-blur: 45px;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-color: var(--anth-600) var(--anth-900);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background: var(--color-bg) url('../images/background.jpg') center/cover no-repeat fixed;
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

main.container {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

a {
    color: var(--white);
}

/* ---------- Header ---------- */



.site-header {
    background: rgba(137, 255, 3, 0.03);

    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);

    
    border-bottom: 2px solid rgba(254, 254, 255, 0.349);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand {
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
}

.site-nav a {
    color: var(--anth-400);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* ---------- Footer ---------- */

.site-footer {
    
    font-size: 0.8rem;
    padding: 1.25rem 0;
    margin-top: auto;

    text-align: center;
    background: rgba(137, 255, 3, 0.04);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);

    border-top: 2px solid rgba(254, 254, 255, 0.349);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.site-footer p {
    margin: 0;
}

/* ---------- Hero (Startseite) ---------- */

.hero {
    position: relative;
    z-index: 100;
    background: rgba(27, 30, 36, 0.75);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    border: 2px solid rgba(251, 255, 0, 0.40);
    border-radius: 40px;
    
    box-shadow:
        0 16px 50px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    padding: 2rem 2rem 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero h1 {
    margin: 0 0 0.5rem;
    color: var(--white);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero .subtitle {
    margin: 0 0 2.5rem;
    color: var(--anth-400);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

/* ---------- Zentrale Suche ---------- */

.search-zone {
    position: relative;
    z-index: 9999;
    max-width: 720px;
    margin: 0 auto;
}

.search-wrap {
    position: relative;
    z-index: 1000;
}

.search-input {
    width: 100%;
    padding: 1.1rem 1.25rem;
    font-size: 1.25rem;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    color: var(--white);
    background: var(--anth-900);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.search-input::placeholder {
    color: var(--anth-400);
    opacity: 1;
}

.search-input:focus {
    outline: 2px solid var(--white);
    outline-offset: 0;
    border-color: var(--white);
}

.search-hint {
    margin: 0.9rem 0 0;
    color: var(--anth-400);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* ---------- Autocomplete ---------- */

/* ---------- Autocomplete ---------- */

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: rgba(27, 30, 36, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;

    z-index: 9999;

    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;

    margin-top: 8px;
    text-align: left;

    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.autocomplete-list:empty {
    display: none;
}

.autocomplete-item {
    padding: 0.7rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--color-line-soft);
    color: var(--anth-200);
    font-size: 0.95rem;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--anth-700);
}

.autocomplete-item strong {
    color: var(--white);
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
}

.autocomplete-item .ref {
    display: block;
    font-size: 0.78rem;
    color: var(--anth-400);
    font-family: var(--font-mono);
}

/* ---------- Lagerdaten-Panel ---------- */

.bearing-panel {
    position: relative;
    z-index: 0;
    
    background: rgba(27, 30, 36, 0.75);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    border: 2px solid rgba(255, 255, 255, 0.40);
    border-radius: 40px;

    box-shadow:
        0 16px 50px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    padding: 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.bearing-panel .designation {
    font-family: var(--font-mono);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.bearing-panel .ident {
    margin-top: 0.35rem;
    color: var(--anth-200);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.bearing-panel .tech-data {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-line-soft);
    color: var(--anth-400);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* ---------- Panels / Karten ---------- */

.panel,
.card {
    background: rgba(27, 30, 36, 0.75);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    border: 2px solid rgba(251, 255, 0, 0.40);
    border-radius: 40px;

    box-shadow:
        0 16px 50px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    padding: 2rem;
    margin-bottom: 1.5rem;
}

.panel h1,
.panel h2,
.card h1,
.card h2,
.card h3 {
    margin-top: 0;
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.panel h1,
.card h1 {
    font-size: 1.4rem;
}

.section-label {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--anth-400);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ---------- Dashboard-KPIs ---------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--color-line-soft);
    border: 1px solid var(--color-line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 1rem;
}

.stat-cell {
    background: var(--anth-850);
    padding: 1rem 1rem 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.stat-cell:nth-child(3) {
    display: none !important;
}
.stat-cell:nth-child(6) {
    display: none !important;
}


.stat-cell .num {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.stat-cell .label {
    margin: 0.4rem 0 0.5rem;
    color: var(--anth-400);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.stat-cell .link {
    color: var(--anth-200);
    font-size: 0.8rem;
    text-decoration: none;
    border-bottom: 1px solid var(--anth-600);
}

.stat-cell .link:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* ---------- Formulare ---------- */

label {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--anth-200);
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--color-input);
    color: var(--white);
}

input::placeholder,
textarea::placeholder {
    color: var(--anth-400);
    opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--white);
    outline-offset: 0;
    border-color: var(--white);
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--anth-400) 50%),
        linear-gradient(135deg, var(--anth-400) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.25rem;
}

select option {
    background: var(--anth-800);
    color: var(--white);
}

input[type="checkbox"] {
    accent-color: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--anth-400);
    margin-top: 0.25rem;
}

/* ---------- Buttons ---------- */

button,
.btn {
    display: inline-block;
    background: var(--white);
    color: var(--anth-900);
    border: 1px solid var(--white);
    border-radius: var(--radius);
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

button:hover,
.btn:hover {
    background: transparent;
    color: var(--white);
}

button.primary,
.btn.primary {
    background: rgba(115, 216, 0, 0.767);
    color: var(--anth-900);
}

button.primary:hover,
.btn.primary:hover {
    background: transparent;
    color: var(--white);
}

button.block,
.btn.block {
    display: block;
    width: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--anth-200);
    border-color: var(--anth-600);
}

.btn-secondary:hover {
    color: var(--white);
    border-color: var(--white);
}

.btn-danger {
    background: transparent;
    color: var(--status-danger);
    border-color: var(--status-danger);
}

.btn-danger:hover {
    background: var(--status-danger);
    color: var(--white);
}

.btn-small {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
}

/* Icon buttons for actions */
.btn-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.5rem;
        border: 1px solid var(--white);
        border-radius: var(--radius);
        background: var(--white);
        color: var(--anth-900);
        cursor: pointer;
        text-decoration: none;
}
.btn-icon:hover {
        background: transparent;
        color: var(--white);
}
.btn-icon-delete {
        background: transparent;
        color: var(--status-danger);
        border-color: var(--status-danger);
}
.btn-icon-delete:hover {
        background: var(--status-danger);
        color: var(--white);
}

/* ---------- Ergebnis / Meldungen ---------- */

.result-box {
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-line-soft);
    color: var(--anth-200);
}

.result-box:empty {
    display: none;
}

.result-box.success {
    background: var(--status-ok-bg);
    border: 1px solid var(--status-ok);
}

.result-box.warning {
    background: var(--status-warn-bg);
    border: 1px solid var(--status-warn);
}

.result-box.error {
    background: var(--status-danger-bg);
    border: 1px solid var(--status-danger);
}

.result-box.info {
    background: var(--status-info-bg);
    border: 1px solid var(--anth-600);
}

.result-value {
    font-size: 2.6rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--white);
    line-height: 1.15;
}

.result-detail {
    white-space: pre-wrap;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: var(--anth-900);
    border: 1px solid var(--color-line-soft);
    color: var(--anth-200);
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    margin-top: 0.75rem;
}

.flash {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);

    z-index: 99999;
    min-width: 280px;
    max-width: 420px;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: flash-in 1s ease-out;
}

@keyframes flash-in {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 640px) {
    .flash {
        top: 12px;
        left: 50%;
        right: auto;
        width: calc(100% - 24px);
        min-width: 0;
        max-width: 420px;
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .admin-nav a.nav-logout {
        margin-left: auto;
    }
}

 .flash.success {
    background: rgba(173, 206, 55, 0.397);
    border: 1px solid rgba(63, 185, 111, 0.65);
    color: var(--anth-200);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.flash.error {
    background: rgba(16, 18, 22, 0.50);
    border: 3px solid rgba(255, 17, 0, 0.932);
    color: var(--anth-200);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.flash.info {
    background: rgba(173, 206, 55, 0.397);
    border: 1px solid rgba(63, 185, 111, 0.65);
    color: var(--anth-200);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ---------- Tabellen ---------- */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th,
td {
    text-align: left;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid var(--color-line-soft);
    vertical-align: top;
}

th {
    background: var(--anth-700);
    color: var(--anth-200);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

tr:hover td {
    background: rgba(42, 47, 56, 0.5);
}

td a {
    color: var(--white);
}

/* ---------- Badges ---------- */

.badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge.success {
    background: var(--status-ok-bg);
    color: var(--status-ok);
    border: 1px solid var(--status-ok);
}

.badge.warning {
    background: var(--status-warn-bg);
    color: var(--status-warn);
    border: 1px solid var(--status-warn);
}

.badge.danger {
    background: var(--status-danger-bg);
    color: var(--status-danger);
    border: 1px solid var(--status-danger);
}

.badge.muted {
    background: transparent;
    color: var(--anth-400);
    border: 1px solid var(--anth-600);
}

/* ---------- Admin-Navigation ---------- */


.panel > h1 {
    text-align: center;
    font-size: 1.5rem;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 2px solid rgba(117, 204, 37, 0.72);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.admin-nav a {
    background: rgba(31, 36, 27, 0.55);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    border: none;
    border-radius: 18px;

    padding: 0.6rem 0.75rem;

    text-decoration: none;
    color: var(--anth-500);

    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;

    transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav a:hover {
    background: rgba(117, 204, 37, 0.72);
    color: var(--white);
    border-bottom-color: transparent;
}

.admin-nav a.active {
     background: rgba(118, 204, 37, 0.39);
    color: var(--white);
    border-bottom-color: transparent;
}

.admin-nav a.nav-logout {
    margin-left: auto;
    color: var(--status-danger);
}

.admin-nav a.nav-logout:hover {
    background: rgba(255, 0, 0, 0.72);
    color: var(--white);
    border-bottom-color: transparent;
}

.stat-cell {
   
    min-height: 50px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: enter !important;

    text-align: center !important;
}



/* ---------- Login ---------- */

.login-card {
    max-width: 420px;
    margin: 3rem auto;
}

.login-card h1 {
    text-align: center;
}



.login-card .flash {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    margin-bottom: 1rem;

    text-align: center;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;

     animation: login-flash-in 1s ease-out;
}

@keyframes login-flash-in {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

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

.login-card .flash.error {
    color: #fff;
    border-color: #ff5c5c;
    border: 3px solid #000000;
    background: rgba(255, 0, 0, 0.75);
}

/* ---------- Sonstiges ---------- */

.hidden {
    display: none !important;
}

.muted {
    color: var(--anth-400);
}

.small {
    font-size: 0.85rem;
}

.mono {
    font-family: var(--font-mono);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

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

.actions-cell form {
    display: inline;
}

details.source-box {
    margin-top: 0.75rem;
}

details.source-box summary {
    cursor: pointer;
    color: var(--anth-200);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

details.source-box summary:hover {
    color: var(--white);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .hero {
        padding: 2.5rem 1.5rem 2rem;
    }

    .hero h1 {
        font-size: 1.9rem;
        letter-spacing: 0.12em;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
    }

    .site-nav a {
        margin-left: 0;
        margin-right: 1.25rem;
    }

    main.container {
        padding-top: 1.25rem;
    }

    .hero {
        padding: 2rem 1rem 1.75rem;
    }

    .hero h1 {
        font-size: 1.45rem;
    }

    .hero .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

    .search-input {
        font-size: 1.05rem;
        padding: 0.95rem 1rem;
        min-height: 48px;
    }

    .panel,
    .card {
        padding: 1.25rem 1rem;
    }

    .bearing-panel {
        padding: 1.25rem 1rem;
    }

    .bearing-panel .designation {
        font-size: 1.5rem;
    }

    .result-value {
        font-size: 2rem;
    }

    .admin-nav {
        gap: 1rem;
    }

    button,
    .btn {
        min-height: 44px;
    }
}

/* Custom classes for greases.php enhancement */
.grease-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: var(--anth-850);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--white);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-line-soft);
}

.grease-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.grease-table th {
    background: var(--anth-700);
    color: var(--anth-200);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid var(--color-line-soft);
    padding: 0.65rem 0.8rem;
}

.grease-table td {
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid var(--color-line-soft);
    vertical-align: top;
}

.grease-table tr:hover td {
    background: rgba(42, 47, 56, 0.5);
}

.status-toggle {
    display: inline-flex;
    align-items: center;
    width: 38px;
    height: 22px;
    padding: 2px;
    border: 1px solid var(--anth-600);
    border-radius: 999px;
    background: var(--anth-600);
    cursor: pointer;
}

.status-toggle-knob {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    transition: transform 0.15s ease;
}

.status-toggle.is-active {
    background: var(--status-ok);
    border-color: var(--status-ok);
}

.status-toggle.is-active .status-toggle-knob {
    transform: translateX(14px);
}

.status-toggle.is-inactive .status-toggle-knob {
    transform: translateX(0);
}

.status-toggle:hover {
    opacity: 0.85;
}

.reference-status {
    text-align: center;
    vertical-align: middle;
}

.reference-verified {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reference-verified label {
    align-self: stretch;
}

.reference-verified input[type="checkbox"] {
    width: 20px !important;
    height: 20px;
    margin: 10px auto 0 !important;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 3.5rem;
}

.password-toggle {
    position: absolute !important;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);

    width: 2.5rem !important;
    height: 2.5rem !important;
    min-height: 0 !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    background: transparent !important;
    border: none !important;
    color: var(--anth-400);

    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: normal;
}

.password-toggle:hover {
    background: transparent !important;
    color: var(--white);
}

@media (max-width: 600px) {
    #current-time {
        display: block;
        width: 100%;
        text-align: center;
    }
}

.stat-cell {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.stat-cell .num,
.stat-cell .label {
    transition: color 0.15s ease;
}

.stat-cell:hover .num,
.stat-cell:hover .label {
    color: #8cc63f;
}

.stat-cell:hover {
    transform: translateY(-10px);
}

.stat-cell:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

