/* =========================================
   GENERAL
   ========================================= */
:root {
    --hisense: #00AAA6;
    --hisense-dark: #008c88;
    --hisense-bg: #102B36;
    --hisense-soft: #e8f8f7;
    --ink: #123037;
    --muted: #6d8589;
    --line: #dde8e9;
    --panel: #ffffff;
    --page: #f5f9f9;
    --shadow: 0 18px 60px rgba(16, 57, 63, 0.08);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: #000;
}

body{
    min-height: 100vh;
    min-height: 100dvh;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f7;
    color: #263238;
}
/* =========================================
   BRAND
   ========================================= */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 3px 5px 18px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: var(--hisense);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .6px;
    box-shadow: 0 8px 28px rgba(0, 170, 166, .22);
}

.brand-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .8px;
}

.brand-caption {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px; 
}


/* =========================================
   APPLICATION
   ========================================= */

.app {
    display: flex;
    min-height: 100vh;
}


/* =========================================
   MAIN CONTENT
   ========================================= */

.main-content {
    flex: 1;
    min-width: 0;
}


/* =========================================
   CONTENT
   ========================================= */

.content {
    padding: 30px;
}


.content > h2 {
    margin-top: 0;
    margin-bottom: 20px;
}


/* =========================================
   DASHBOARD CARDS
   ========================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 40px;
}


.dashboard-card {
    background-color: #ffffff;

    border: 1px solid #dfe3e6;
    border-radius: 8px;

    padding: 20px;

    text-align: left;

    cursor: pointer;

    text-decoration: none;
    color: inherit;
}


.dashboard-card:hover {
    border-color: #8bd8d8;
}


.dashboard-card h3 {
    margin-top: 0;
    font-size: 24px;
}


.dashboard-card p {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 0;
}


/* =========================================
   DOCUMENT STATUS
   ========================================= */

.document-status {
    display: flex;
    gap: 15px;
}


.document-status div {
    flex: 1;

    background-color: #ffffff;

    border: 1px solid #dfe3e6;
    border-radius: 8px;

    padding: 20px;

    display: flex;
    justify-content: space-between;
}


.document-status strong {
    font-size: 24px;
}


body.auth-pending .app {
    visibility: hidden;
}
body.auth-pending::before {
    content: "Verifying access...";
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    background: #f4f6f7;
    color: #263238;
    font-family: Arial, sans-serif;
}

/* Shared index/table interaction */
table tbody tr {
    transition: background-color 160ms ease, box-shadow 160ms ease;
}
table tbody tr:hover {
    background-color: #e5f4f2;
}
table tbody tr:has(button, a, [role="button"], [data-action]) {
    cursor: pointer;
}
table tbody tr:has(button, a, [role="button"], [data-action]):hover {
    box-shadow: inset 3px 0 0 #168a80;
}
