﻿:root {
    --bg-top: #edf5ff;
    --bg-bottom: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.96);
    --panel-bg: rgba(255, 255, 255, 0.9);
    --primary: #4d86df;
    --primary-dark: #356cc1;
    --primary-soft: rgba(77, 134, 223, 0.14);
    --text: #25364b;
    --muted: #74849a;
    --border: #ced8e8;
    --danger: #c53d32;
    --success: #21784a;
    --shadow: 0 28px 60px rgba(62, 98, 151, 0.16);
}

/* Modern Snowy Web Refresh */
:root {
    --modern-bg: #070b18;
    --modern-bg-2: #0b1430;
    --modern-card: rgba(15, 25, 52, 0.88);
    --modern-card-strong: rgba(17, 28, 58, 0.96);
    --modern-line: rgba(101, 228, 255, 0.16);
    --modern-line-strong: rgba(101, 228, 255, 0.32);
    --modern-text: #f3f7ff;
    --modern-muted: #9cafda;
    --modern-cyan: #65e4ff;
    --modern-green: #22d3a6;
    --modern-gold: #f5bf4f;
    --modern-red: #ef4035;
    --modern-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

body.dashboard-body,
body.login-page,
body.admin-panel-page {
    color: var(--modern-text);
    background:
        radial-gradient(circle at 18% 0%, rgba(101, 228, 255, 0.14), transparent 34%),
        radial-gradient(circle at 84% 12%, rgba(239, 64, 53, 0.12), transparent 30%),
        linear-gradient(145deg, #050713 0%, #0b1023 48%, #071225 100%);
}

body.dashboard-body::before,
body.login-page::before,
body.admin-panel-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(101, 228, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(101, 228, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 80%);
    z-index: 0;
}

.dashboard-layout,
.login-page .page,
.admin-panel-shell {
    position: relative;
    z-index: 1;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(15, 25, 52, 0.98), rgba(7, 11, 24, 0.96)),
        radial-gradient(circle at 50% 0%, rgba(101, 228, 255, 0.16), transparent 42%);
    border-right: 1px solid var(--modern-line);
    box-shadow: 18px 0 60px rgba(0, 0, 0, 0.32);
}

.sidebar-brand {
    padding: 18px 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    filter: drop-shadow(0 12px 28px rgba(239, 64, 53, 0.24));
}

.sidebar-title {
    color: #ffffff;
    letter-spacing: 0.14em;
    text-shadow: 0 8px 24px rgba(101, 228, 255, 0.18);
}

.menu-item,
.submenu-item {
    position: relative;
    overflow: hidden;
    min-height: 52px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(101, 228, 255, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 24px rgba(0, 0, 0, 0.16);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.menu-item::before,
.submenu-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(101, 228, 255, 0.16), transparent 48%, rgba(239, 64, 53, 0.12));
    opacity: 0;
    transition: opacity 0.18s ease;
}

.menu-item:hover,
.menu-item.active,
.submenu-item:hover,
.submenu-item.active {
    transform: translateY(-2px);
    background: rgba(101, 228, 255, 0.12);
    border-color: rgba(101, 228, 255, 0.34);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(101, 228, 255, 0.06);
}

.menu-item:hover::before,
.menu-item.active::before,
.submenu-item:hover::before,
.submenu-item.active::before {
    opacity: 1;
}

.menu-label,
.submenu-item,
.menu-item {
    color: #f7fbff;
}

.dashboard-main {
    background: transparent;
}

.dashboard-content,
.dashboard-content-wide {
    gap: 20px;
}

.welcome-panel,
.logo-panel,
.report-workspace,
.live-workspace,
.process-tracker-card,
.process-detail-card,
.hr-card,
.hr-detail-card,
.admin-panel-card,
.login-card,
.modal-card {
    background:
        linear-gradient(145deg, rgba(17, 28, 58, 0.96), rgba(9, 15, 34, 0.92)),
        radial-gradient(circle at 12% 0%, rgba(101, 228, 255, 0.12), transparent 38%);
    border: 1px solid var(--modern-line);
    box-shadow: var(--modern-shadow);
    backdrop-filter: blur(18px);
}

.welcome-panel,
.logo-panel {
    border-radius: 34px;
}

.welcome-tag,
.eyebrow,
.process-card-tag {
    color: var(--modern-cyan);
    letter-spacing: 0.22em;
    font-weight: 900;
}

.welcome-panel h1,
.report-header h2,
.live-header h2,
.process-tracker-title-wrap h2,
.hr-header h2,
.admin-panel-head h1,
.login-card h1 {
    color: #ffffff;
    text-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

.welcome-copy,
.admin-panel-copy,
.login-card .message {
    color: var(--modern-muted);
}

.home-hero {
    border-radius: 34px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(160deg, rgba(17, 28, 58, 0.72), rgba(7, 11, 24, 0.86));
    border: 1px solid rgba(101, 228, 255, 0.12);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.home-hero-logo,
.content-logo,
.login-card > .logo {
    filter: drop-shadow(0 28px 54px rgba(239, 64, 53, 0.24));
}

.report-filters,
.live-filters,
.hr-filters,
.process-toolbar {
    padding: 14px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(101, 228, 255, 0.12);
}

.filter-field,
.field,
.process-field {
    color: #dfe8ff;
}

.filter-field input,
.filter-field select,
.field input,
.login-card select,
.login-card input,
.process-search-input,
.process-field textarea {
    min-height: 50px;
    color: #ffffff;
    background: rgba(6, 11, 26, 0.78);
    border: 1px solid rgba(101, 228, 255, 0.16);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.filter-field input:focus,
.filter-field select:focus,
.field input:focus,
.login-card select:focus,
.login-card input:focus,
.process-search-input:focus,
.process-field textarea:focus {
    outline: none;
    border-color: rgba(101, 228, 255, 0.52);
    background: rgba(9, 15, 34, 0.94);
    box-shadow: 0 0 0 4px rgba(101, 228, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.run-report-button,
.submit-button,
.logout-button,
.process-button-primary,
.process-refresh-button {
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ef4035, #ff6b57);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(239, 64, 53, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.run-report-button:hover,
.submit-button:hover,
.logout-button:hover,
.process-button-primary:hover,
.process-refresh-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 22px 44px rgba(239, 64, 53, 0.32);
}

.secondary-button,
.process-button,
.admin-tab-button {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(101, 228, 255, 0.14);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.secondary-button:hover,
.process-button:hover,
.admin-tab-button:hover,
.admin-tab-button.active {
    transform: translateY(-1px);
    background: rgba(101, 228, 255, 0.13);
    border-color: rgba(101, 228, 255, 0.32);
}

.summary-card,
.live-total-card,
.live-section,
.hr-detail-item,
.process-counter-pill,
.process-thread-item,
.remembered-card,
.password-checklist {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(101, 228, 255, 0.12);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.summary-card strong,
.live-total-card strong,
.live-mini-summary strong,
.process-counter-pill span,
.remembered-name {
    color: #ffffff;
}

.summary-card span,
.live-total-card span,
.live-mini-summary span,
.hr-detail-item span,
.remembered-label,
.remembered-phone {
    color: var(--modern-muted);
}

.live-total-card {
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 166, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(17, 28, 58, 0.98), rgba(10, 18, 39, 0.94));
    border-color: rgba(34, 211, 166, 0.26);
}

.live-section-head,
.process-detail-head,
.admin-panel-head {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.report-table-wrapper,
.process-table-wrapper,
.hr-table-wrapper {
    border-radius: 26px;
    background: rgba(4, 8, 19, 0.72);
    border: 1px solid rgba(101, 228, 255, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.report-table,
.process-table,
.hr-table {
    color: #eff5ff;
}

.report-table thead,
.process-table thead,
.hr-table thead,
.admin-panel-page .report-table thead {
    background: rgba(101, 228, 255, 0.1);
}

.report-table th,
.report-table td,
.process-table th,
.process-table td,
.hr-table th,
.hr-table td {
    border-color: rgba(255, 255, 255, 0.07);
}

.report-table tbody tr,
.process-table tbody tr,
.hr-table tbody tr {
    transition: background 0.16s ease, transform 0.16s ease;
}

.report-table tbody tr:hover,
.process-table tbody tr:hover,
.hr-table tbody tr:hover {
    background: rgba(101, 228, 255, 0.08);
}

.process-status-badge,
.status-badge,
.member-status-pill {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.process-counter-pill {
    overflow: hidden;
}

.process-counter-pill.is-active,
.process-counter-pill:hover {
    border-color: rgba(101, 228, 255, 0.38);
    background: rgba(101, 228, 255, 0.13);
}

.process-counter-pill-wait {
    border-color: rgba(245, 191, 79, 0.24);
}

.process-counter-pill-reject {
    border-color: rgba(239, 64, 53, 0.24);
}

.process-counter-pill-solved {
    border-color: rgba(34, 211, 166, 0.24);
}

.process-detail-modal {
    animation: fadeIn 0.18s ease;
}

.process-detail-card {
    border-radius: 34px;
    animation: sheetUp 0.22s ease;
}

.process-detail-close,
.modal-close,
.icon-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hr-shell {
    gap: 18px;
}

.hr-detail-card {
    background:
        radial-gradient(circle at 0 0, rgba(255, 123, 123, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(17, 28, 58, 0.96), rgba(9, 15, 34, 0.92));
}

.login-page .page {
    min-height: 100vh;
}

.login-page .login-card {
    border-radius: 38px;
    overflow: hidden;
}

.login-page .login-card::before {
    background: radial-gradient(circle at 50% 0%, rgba(101, 228, 255, 0.18), transparent 40%);
}

.remember-field {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(101, 228, 255, 0.12);
}

.modal-backdrop {
    background: rgba(2, 6, 16, 0.72);
    backdrop-filter: blur(10px);
}

.modal-card {
    border-radius: 34px;
    animation: sheetUp 0.22s ease;
}

.password-check-item {
    border-radius: 14px;
}

.password-check-item.valid {
    background: rgba(34, 211, 166, 0.12);
    color: #dffcf5;
}

.password-check-item.invalid {
    background: rgba(239, 64, 53, 0.1);
    color: #ffd4d0;
}

.admin-panel-shell {
    min-height: 100vh;
}

.admin-panel-card {
    border-radius: 34px;
}

.admin-tab-bar {
    gap: 8px;
}

.admin-actions-cell {
    gap: 8px;
}

.admin-action-button {
    border-radius: 14px;
}

.report-empty {
    color: var(--modern-muted);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sheetUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .dashboard-layout {
        background: transparent;
    }

    .sidebar {
        border-radius: 0 0 28px 28px;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    }

    .sidebar-menu {
        grid-template-columns: 1fr;
    }

    .menu-item,
    .submenu-item {
        width: 100%;
        min-height: 48px;
    }

    .welcome-panel,
    .logo-panel,
    .process-tracker-card,
    .process-detail-card,
    .hr-card,
    .hr-detail-card,
    .live-total-card,
    .live-section,
    .report-workspace {
        border-radius: 24px;
    }

    .report-filters,
    .live-filters,
    .hr-filters,
    .process-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .dashboard-content,
    .dashboard-content-wide {
        padding: 12px;
    }

    .welcome-panel,
    .admin-panel-card,
    .login-page .login-card {
        border-radius: 22px;
    }

    .login-page .page {
        padding: 14px;
    }

    .home-hero {
        min-height: 48vh;
        border-radius: 22px;
    }

    .report-summary,
    .live-mini-summary,
    .live-mini-summary-3,
    .process-counter-strip,
    .hr-detail-grid {
        grid-template-columns: 1fr;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(108, 152, 225, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(108, 152, 225, 0.14), transparent 30%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 54%, #eef4fc 100%);
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.login-card {
    width: min(100%, 420px);
    position: relative;
    padding: 34px 26px 28px;
    border-radius: 34px;
    background: var(--card-bg);
    border: 1px solid rgba(123, 154, 201, 0.22);
    box-shadow: var(--shadow);
    text-align: center;
    overflow: hidden;
}

.login-card.remember-mode {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card.remember-mode .logo,
.login-card.remember-mode .eyebrow,
.login-card.remember-mode h1 {
    display: none;
}

.login-card.remember-mode .remembered-card {
    margin: 0;
}

.login-card::before,
.login-card::after {
    content: "";
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 1px solid rgba(108, 152, 225, 0.12);
    opacity: 0.7;
}

.login-card::before {
    top: 118px;
    left: -26px;
}

.login-card::after {
    top: 138px;
    right: -18px;
}

.logo {
    width: min(205px, 70%);
    display: block;
    margin: 0 auto 10px;
}

.eyebrow {
    margin: 0;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6c88ad;
}

h1 {
    margin: 10px 0 28px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    line-height: 1.15;
    color: #314964;
}

.login-form {
    display: grid;
    gap: 14px;
}

.remember-field {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    padding: 0 8px;
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 600;
}

.remember-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.remembered-card {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(77, 134, 223, 0.08);
    border: 1px solid rgba(77, 134, 223, 0.18);
    text-align: left;
}

.remembered-label {
    margin: 0;
    color: #6c88ad;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.remembered-name {
    margin: 0;
    color: #314964;
    font-size: 1.3rem;
    line-height: 1.2;
}

.remembered-phone {
    margin: -4px 0 2px;
    color: var(--muted);
    font-size: 0.96rem;
    font-weight: 600;
}

.remembered-submit {
    margin-top: 0;
}

.field {
    position: relative;
    display: block;
}

select,
input {
    width: 100%;
    height: 56px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
    padding: 0 52px 0 20px;
    appearance: none;
    color: var(--muted);
}

input {
    padding: 0 52px;
}

select:focus,
input:focus {
    border-color: #8ab0ec;
    box-shadow: 0 0 0 4px rgba(99, 148, 228, 0.14);
}

.field-icon {
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    color: #74849a;
    pointer-events: none;
}

.field-icon svg,
.icon-button svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.field-icon-left {
    left: 18px;
}

.field-icon-right {
    right: 18px;
}

.icon-button {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    border: 0;
    padding: 0;
    background: transparent;
    color: #74849a;
    cursor: pointer;
}

.submit-button {
    margin-top: 6px;
    height: 58px;
    border: 0;
    border-radius: 29px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(67, 117, 198, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(67, 117, 198, 0.32);
}

.message {
    min-height: 22px;
    margin: 2px 0 0;
    font-size: 0.96rem;
    font-weight: 600;
}

.message.error {
    color: var(--danger);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dashboard-body {
    min-height: 100vh;
}

.dashboard-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px 1fr;
}

.sidebar {
    background: linear-gradient(180deg, #2d4e7d 0%, #1f3655 100%);
    color: #fff;
    padding: 28px 22px;
    box-shadow: 18px 0 40px rgba(31, 54, 85, 0.16);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-brand {
    width: 100%;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
    background: transparent;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.sidebar-logo {
    width: 132px;
    display: block;
    margin: 0 auto 10px;
    filter: brightness(0) invert(1);
    opacity: 0.98;
}

.sidebar-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.sidebar-menu {
    display: grid;
    gap: 12px;
}

.menu-group {
    display: grid;
    gap: 10px;
}

.menu-group-toggle {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.submenu-list {
    display: none;
    gap: 8px;
    padding-left: 14px;
}

.menu-group.open .submenu-list {
    display: grid;
}

.submenu-item {
    display: block;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #edf4ff;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    padding: 0 14px;
    cursor: pointer;
    text-decoration: none;
    line-height: 42px;
}

.submenu-item.active {
    background: rgba(255, 255, 255, 0.2);
}

.menu-item {
    display: block;
    padding: 16px 18px;
    border-radius: 18px;
    color: #f4f8ff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
    transition: transform 0.18s ease, background 0.18s ease;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(3px);
}

.dashboard-main {
    padding: 24px 28px 28px;
}

body.home-mode .dashboard-main {
    padding: 0;
}

.menu-item,
.submenu-item {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.menu-item:hover,
.menu-item.active,
.submenu-item.active {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.18);
}

.logout-button {
    height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #355987 0%, #223b5c 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(34, 59, 92, 0.18);
}

.sidebar-logout {
    margin-top: auto;
    width: 100%;
}

.dashboard-content {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.dashboard-content-wide {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.dashboard-content-wide #welcomePanel:has(.live-workspace:not(.hidden)) {
    grid-column: 1 / -1;
}

.dashboard-content-wide #welcomePanel:has(.report-workspace:not(.hidden)) {
    grid-column: 1 / -1;
}

.welcome-panel,
.logo-panel {
    border-radius: 28px;
    background: var(--panel-bg);
    border: 1px solid rgba(123, 154, 201, 0.24);
    box-shadow: 0 16px 34px rgba(62, 98, 151, 0.08);
}

.welcome-panel {
    padding: 28px;
}

.logo-panel {
    position: relative;
    min-height: 620px;
    display: grid;
    place-items: center;
    padding: 28px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 24%),
        radial-gradient(circle at 18% 82%, rgba(96, 142, 221, 0.12), rgba(96, 142, 221, 0) 34%),
        radial-gradient(circle at 82% 86%, rgba(96, 142, 221, 0.1), rgba(96, 142, 221, 0) 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.96) 100%);
}

.logo-panel::before,
.logo-panel::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
}

.logo-panel::before {
    top: -180px;
    left: 50%;
    width: 540px;
    height: 540px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.18) 36%, rgba(255, 255, 255, 0) 68%);
    filter: blur(10px);
    z-index: -2;
}

.logo-panel::after {
    top: 0;
    left: 50%;
    width: 440px;
    height: 360px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0) 100%);
    clip-path: polygon(50% 0%, 82% 100%, 18% 100%);
    opacity: 0.9;
    filter: blur(2px);
    z-index: -1;
}

.content-logo {
    width: min(100%, 340px);
    opacity: 0.98;
    filter: drop-shadow(0 22px 36px rgba(44, 77, 121, 0.18));
}

.welcome-tag {
    margin: 0 0 10px;
    color: #6b85a9;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.welcome-copy {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.7;
}

.module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.module-chip {
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: #2c4d79;
    font-weight: 700;
}

.hidden {
    display: none !important;
}

.report-workspace {
    margin-top: 28px;
    display: grid;
    gap: 20px;
}

.hr-workspace {
    margin-top: 28px;
    display: grid;
    gap: 20px;
}

.hr-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.92fr);
    gap: 22px;
    align-items: start;
}

.hr-card,
.hr-detail-card {
    padding: 24px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(20, 28, 52, 0.98) 0%, rgba(13, 20, 39, 0.98) 100%);
    border: 1px solid rgba(103, 127, 196, 0.22);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

.hr-header h2 {
    margin: 0;
    color: #f4f7ff;
}

.hr-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
    gap: 14px;
    align-items: end;
}

.hr-search-field {
    grid-column: auto;
}

.hr-filters .filter-field span {
    color: #b9caef;
}

.hr-filters .filter-field input,
.hr-filters .filter-field select {
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(117, 144, 214, 0.26);
    background: rgba(9, 14, 28, 0.92);
    color: #f7fbff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hr-filters .filter-field input::placeholder {
    color: #8ea6d5;
}

.hr-filters .filter-field input:focus,
.hr-filters .filter-field select:focus {
    border-color: rgba(120, 156, 246, 0.62);
    box-shadow: 0 0 0 4px rgba(72, 104, 210, 0.18);
    outline: none;
}

.hr-filters .run-report-button {
    min-width: 140px;
    height: 52px;
    align-self: end;
    box-shadow: 0 18px 30px rgba(63, 89, 201, 0.3);
}

.hr-table-wrapper {
    background: rgba(9, 14, 28, 0.78);
    border: 1px solid rgba(117, 144, 214, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.hr-table {
    min-width: 100%;
}

.hr-table tbody tr {
    cursor: pointer;
}

.hr-table th {
    background: rgba(19, 28, 50, 0.98);
    color: #c8d8ff;
    border-bottom-color: rgba(117, 144, 214, 0.16);
}

.hr-table td {
    color: #eef4ff;
    white-space: normal;
    border-bottom-color: rgba(117, 144, 214, 0.12);
}

.hr-table tbody tr:hover {
    background: rgba(84, 110, 214, 0.12);
}

.hr-detail-card {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 24px;
}

.hr-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hr-detail-item {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(9, 14, 28, 0.76);
    border: 1px solid rgba(117, 144, 214, 0.16);
}

.hr-detail-item span {
    color: #9fb5e1;
    font-size: 0.84rem;
    font-weight: 700;
}

.hr-detail-item strong {
    color: #f4f8ff;
    font-size: 1rem;
    line-height: 1.5;
}

.hr-detail-item-full {
    grid-column: 1 / -1;
}

.report-header h2 {
    margin: 0 0 8px;
    color: #2a4468;
}

.report-header p {
    margin: 0;
    color: var(--muted);
}

.report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.report-tab {
    height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(77, 134, 223, 0.26);
    border-radius: 16px;
    background: #fff;
    color: #355680;
    font-weight: 700;
    cursor: pointer;
}

.report-tab.active {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(67, 117, 198, 0.2);
}

.report-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.filter-field {
    display: grid;
    gap: 8px;
}

.filter-field span {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--muted);
}

.filter-field input,
.filter-field select {
    height: 48px;
    padding: 0 16px;
    border-radius: 14px;
}

.run-report-button {
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.summary-card {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(123, 154, 201, 0.2);
    box-shadow: 0 12px 22px rgba(62, 98, 151, 0.06);
}

.summary-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.summary-card strong {
    font-size: 1.28rem;
    color: #21354f;
}

.report-table-wrapper {
    overflow: auto;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(123, 154, 201, 0.2);
    box-shadow: 0 12px 22px rgba(62, 98, 151, 0.06);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.report-table th,
.report-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(206, 216, 232, 0.7);
    text-align: left;
    white-space: nowrap;
}

.report-table th {
    position: sticky;
    top: 0;
    background: #f5f9ff;
    color: #355680;
    font-size: 0.88rem;
}

.report-table tbody tr:hover {
    background: rgba(77, 134, 223, 0.05);
}

.report-table td.table-number {
    text-align: right;
}

.report-empty {
    text-align: center !important;
    color: var(--muted);
    padding: 32px !important;
}

@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 260px 1fr;
    }

    .dashboard-content,
    .dashboard-content-wide {
        grid-template-columns: 1fr;
    }

    .logo-panel {
        min-height: 220px;
    }

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

    .hr-shell {
        grid-template-columns: 1fr;
    }

    .hr-detail-card {
        position: static;
        top: auto;
    }
}

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

    .sidebar {
        padding-bottom: 16px;
    }

    .dashboard-main {
        padding: 18px;
    }

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

    .topbar-info {
        display: grid;
        grid-template-columns: 1fr;
    }

    .report-filters {
        grid-template-columns: 1fr;
    }

    .hr-filters,
    .hr-detail-grid {
        grid-template-columns: 1fr;
    }
}

.logout-button:hover {
    background: linear-gradient(180deg, #3a628f 0%, #254162 100%);
}

.info-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-content {
    min-height: calc(100vh - 124px);
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: stretch;
}

.welcome-panel,
.logo-panel {
    background: var(--panel-bg);
    border: 1px solid rgba(123, 154, 201, 0.24);
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(62, 98, 151, 0.08);
}

.welcome-panel {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-tag {
    margin: 0 0 10px;
    font-size: 0.84rem;
    letter-spacing: 0.2em;
    color: #6c88ad;
    font-weight: 700;
}

.welcome-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.welcome-copy {
    margin: 0;
    max-width: 38ch;
    color: #55667c;
    font-size: 1.05rem;
    line-height: 1.7;
}

.logo-panel {
    display: grid;
    place-items: center;
    padding: 24px;
}

.content-logo {
    width: min(100%, 400px);
    opacity: 0.98;
    filter: drop-shadow(0 24px 38px rgba(44, 77, 121, 0.18));
}

.module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.module-chip {
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: #2e5183;
    font-size: 0.95rem;
    font-weight: 700;
}

.live-workspace {
    margin-top: 28px;
    display: grid;
    gap: 20px;
}

.live-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.live-header > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 106px;
    padding-block: 6px;
}

.live-header h2 {
    margin: 0;
    color: #2a4468;
}

.live-header p {
    margin: 8px 0 0;
    color: var(--muted);
}

.live-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr)) minmax(172px, 0.9fr);
    gap: 14px;
    align-items: end;
    width: min(100%, 760px);
}

.live-filters .filter-field {
    gap: 7px;
    justify-content: end;
}

.live-filters .filter-field span {
    text-align: center;
    letter-spacing: 0.01em;
}

.live-filters .filter-field input {
    height: 48px;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.live-wait-field input {
    padding: 0 16px;
    text-align: center;
}

.live-filters .run-report-button {
    height: 48px;
    align-self: end;
}

.live-total-card {
    background: #090d12;
    color: #7d92b5;
    border-radius: 20px;
    padding: 18px 22px;
    border: 1px solid rgba(74, 96, 126, 0.28);
    box-shadow: 0 16px 30px rgba(7, 10, 15, 0.22);
}

.live-total-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-total-card strong {
    font-size: 2.2rem;
    color: #7df542;
}

.live-status-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(240px, 1.25fr);
    gap: 14px;
}

.live-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid rgba(115, 134, 187, 0.14);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(14, 22, 41, 0.96), rgba(8, 12, 24, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 28px rgba(0, 0, 0, 0.22);
}

.live-status-item div {
    min-width: 0;
}

.live-status-item strong {
    display: block;
    color: #ffffff;
    font-size: clamp(1.02rem, 1.6vw, 1.32rem);
    font-weight: 900;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-status-item small {
    display: block;
    margin-top: 4px;
    color: #91a3cd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-status-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
}

.live-status-dot-active {
    background: #7dff6a;
    box-shadow: 0 0 0 6px rgba(125, 255, 106, 0.1), 0 0 22px rgba(125, 255, 106, 0.35);
}

.live-status-dot-refresh {
    background: #65e4ff;
    box-shadow: 0 0 0 6px rgba(101, 228, 255, 0.1), 0 0 22px rgba(101, 228, 255, 0.32);
}

.live-status-dot-clock {
    background: #ffcf5a;
    box-shadow: 0 0 0 6px rgba(255, 207, 90, 0.1), 0 0 22px rgba(255, 207, 90, 0.3);
}

.live-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 1100px) {
    .live-status-strip {
        grid-template-columns: 1fr 1fr;
    }

    .live-status-item-wide {
        grid-column: 1 / -1;
    }
}

.live-section {
    display: grid;
    gap: 12px;
}

.live-section-wide {
    grid-column: span 1;
}

.live-section-head {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    min-height: 352px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid rgba(123, 154, 201, 0.24);
    box-shadow: 0 12px 24px rgba(62, 98, 151, 0.08);
}

.live-section-head h3 {
    margin: 0 0 14px;
    color: #c1261c;
    font-size: 1.35rem;
}

.live-mini-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.live-mini-summary-3 {
    grid-template-columns: 1fr;
}

.live-mini-summary div {
    background: #05080d;
    color: #7df542;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: left;
    min-height: 64px;
    display: grid;
    align-content: center;
}

.live-mini-summary span {
    display: block;
    margin-bottom: 6px;
    color: #aeb7c7;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    word-break: break-word;
}

.live-mini-summary strong {
    font-size: 1.12rem;
    overflow-wrap: anywhere;
    line-height: 1.1;
}

.live-mini-summary small,
.market-cell span {
    display: block;
    margin-top: 5px;
    color: #9fb0d4;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
}

.market-cell strong {
    display: block;
    color: inherit;
}

.compact-table {
    min-width: 100%;
}

.compact-table th,
.compact-table td {
    padding: 10px 12px;
    font-size: 0.92rem;
}

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

    .sidebar {
        padding-bottom: 18px;
    }

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

    .live-grid-layout,
    .live-filters {
        grid-template-columns: 1fr;
    }

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

}

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

    .dashboard-main {
        padding: 14px;
    }

    .welcome-panel,
    .logo-panel {
        border-radius: 20px;
    }

    .welcome-panel {
        padding: 20px;
    }

    .module-list {
        gap: 8px;
    }

    .module-chip {
        width: 100%;
        text-align: center;
    }

    .sidebar {
        padding: 18px 14px;
    }

    .sidebar-logo {
        width: 110px;
    }

    .sidebar-title {
        font-size: 1.05rem;
    }

    .menu-item,
    .submenu-item {
        font-size: 0.94rem;
        padding: 14px 16px;
    }

    .logout-button {
        height: 48px;
    }

    .live-header {
        align-items: stretch;
    }

    .live-header h2 {
        font-size: 1.4rem;
    }

    .live-total-card strong {
        font-size: 1.7rem;
    }

    .live-section-head {
        padding: 14px;
        min-height: auto;
    }

    .live-mini-summary div {
        min-height: 72px;
    }

    .compact-table th,
    .compact-table td {
        padding: 8px 10px;
        font-size: 0.84rem;
    }

}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px 24px;
        border-radius: 28px;
    }

    h1 {
        font-size: 1.9rem;
    }

    select,
    input,
    .submit-button {
        height: 54px;
    }

    .dashboard-main {
        padding: 18px 14px 20px;
    }

    .welcome-panel,
    .logo-panel {
        border-radius: 22px;
    }

    .welcome-panel {
        padding: 24px;
    }

    .live-mini-summary,
    .live-mini-summary-3 {
        grid-template-columns: 1fr;
    }
}


.home-hero {
    width: 100%;
    min-height: calc(100vh - 52px);
    height: calc(100vh - 52px);
    overflow: hidden;
    position: relative;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 7%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.1) 14%, rgba(7, 11, 21, 0) 30%),
        linear-gradient(180deg, #262d3e 0%, #121a2c 26%, #0b1020 68%, #090e1b 100%);
}

.home-hero picture,
.home-hero .home-hero-image {
    display: none !important;
}

.home-hero-spotlight {
    position: absolute;
    top: 8%;
    left: 50%;
    width: min(68vw, 560px);
    height: 56vh;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.12) 24%, rgba(255, 255, 255, 0.02) 70%, rgba(255, 255, 255, 0) 100%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    opacity: 0.82;
    pointer-events: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 16%);
    pointer-events: none;
}

.home-hero-logo {
    position: relative;
    z-index: 1;
    width: min(78vw, 620px);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
}

#welcomePanel:has(.home-hero:not(.hidden)) {
    padding: 0;
    min-height: calc(100vh - 52px);
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.dashboard-content-wide:has(#homeHero:not(.hidden)) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 100vh;
    margin-top: -24px;
}

.dashboard-content-wide:has(#processWorkspace:not(.hidden)) {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-content-wide:has(#processWorkspace:not(.hidden)) .welcome-panel {
    width: 100%;
    max-width: none;
}

.dashboard-content-wide:has(#hrWorkspace:not(.hidden)) {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-content-wide:has(#hrWorkspace:not(.hidden)) .welcome-panel {
    width: 100%;
    max-width: none;
}

.dashboard-content-wide:has(#reportWorkspace:not(.hidden)) {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-content-wide:has(#reportWorkspace:not(.hidden)) .welcome-panel {
    width: 100%;
    max-width: none;
}

.dashboard-main:has(#homeHero:not(.hidden)) {
    padding: 0;
}

.dashboard-content:has(#homeHero:not(.hidden)) {
    min-height: calc(100vh + 24px);
}

body.home-mode .dashboard-content,
body.home-mode .dashboard-content-wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: calc(100vh + 2px);
    margin: 0;
}

body.home-mode #welcomePanel {
    padding: 0;
    min-height: calc(100vh + 2px);
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.home-mode .home-hero {
    width: 100%;
    height: calc(100vh + 2px);
    min-height: calc(100vh + 2px);
    border-radius: 0;
}

@media (max-width: 960px) {
    .home-hero,
    #welcomePanel:has(.home-hero:not(.hidden)) {
        min-height: auto;
        height: auto;
    }

    .home-hero {
        min-height: 60vh;
    }

    .home-hero-logo {
        width: min(82vw, 460px);
    }

    .home-hero-spotlight {
        width: min(84vw, 460px);
        height: 44vh;
    }
}

@media (max-width: 720px) {
    .home-hero {
        min-height: 100vh;
    }

    .home-hero-logo {
        width: min(88vw, 380px);
    }

    .home-hero-spotlight {
        width: min(88vw, 380px);
        height: 42vh;
    }
}

/* Dark Snowy Theme */
:root {
    --bg-top: #070b15;
    --bg-bottom: #0b1120;
    --card-bg: rgba(18, 26, 47, 0.96);
    --panel-bg: rgba(13, 20, 37, 0.92);
    --primary: #356df2;
    --primary-dark: #2553c8;
    --primary-soft: rgba(53, 109, 242, 0.18);
    --text: #f5f7ff;
    --muted: #96a4c8;
    --border: rgba(122, 145, 202, 0.2);
    --danger: #ff6a6a;
    --success: #92ff58;
    --shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

body {
    color: var(--text);
    background:
        radial-gradient(circle at 18% 18%, rgba(49, 100, 219, 0.16), transparent 24%),
        radial-gradient(circle at 82% 14%, rgba(49, 100, 219, 0.14), transparent 22%),
        linear-gradient(180deg, #060a14 0%, #0a1020 45%, #070c18 100%);
}

.login-card {
    width: min(100%, 1100px);
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(18, 25, 44, 0.96) 0%, rgba(14, 20, 36, 0.98) 100%);
    border: 1px solid rgba(130, 152, 214, 0.12);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
    text-align: left;
}

.login-card::before,
.login-card::after {
    display: none;
}

.login-card > .logo,
.login-card > .eyebrow,
.login-card > h1,
.login-card > .login-form {
    grid-column: 1;
    position: relative;
    z-index: 1;
}

.login-card > .logo {
    margin: 42px 0 10px 42px;
    width: 210px;
}

.login-card > .eyebrow {
    margin: 0 42px;
    color: #f04a4a;
    font-size: 1rem;
    letter-spacing: 0.12em;
}

.login-card > h1 {
    margin: 24px 42px 10px;
    color: #ffffff;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(2rem, 3vw, 3.3rem);
    font-weight: 700;
}

.login-card .login-form {
    margin: 0 42px 42px;
    align-self: end;
}

.login-card::selection {
    background: rgba(53, 109, 242, 0.26);
}

.login-card::after {
    display: none;
}

.login-card::before {
    display: none;
}

.login-card {
    overflow: hidden;
}

.login-card .field,
.login-card .message {
    position: relative;
    z-index: 1;
}

.login-card {
    background-image:
        linear-gradient(90deg, rgba(24, 33, 57, 0.96) 0 37%, rgba(12, 19, 35, 0.92) 37% 100%),
        radial-gradient(circle at 82% 18%, rgba(50, 96, 220, 0.28), transparent 18%),
        radial-gradient(circle at 58% 82%, rgba(0, 201, 154, 0.12), transparent 18%);
}

.login-card::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0 0 0 37%;
    background:
        radial-gradient(circle at 78% 16%, rgba(51, 99, 235, 0.26), transparent 14%),
        radial-gradient(circle at 28% 78%, rgba(0, 192, 150, 0.14), transparent 16%);
    pointer-events: none;
}

.login-form::after {
    content: "";
    position: absolute;
    inset: -120px -660px -120px 360px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 72% 22%, rgba(52, 101, 239, 0.22), transparent 18%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.login-form {
    gap: 18px;
}

.field > .sr-only + select,
.field > .field-icon-left + input,
select,
input {
    border: 1px solid rgba(149, 169, 223, 0.28);
    background: rgba(11, 17, 31, 0.72);
    color: #f8fbff;
}

select {
    color: #f8fbff;
}

select:focus,
input:focus {
    border-color: rgba(82, 126, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(53, 109, 242, 0.18);
}

.field-icon,
.icon-button {
    color: #b8c4e4;
}

.submit-button,
.run-report-button,
.logout-button {
    background: linear-gradient(180deg, #386df1 0%, #2b55c4 100%);
    box-shadow: 0 18px 34px rgba(21, 54, 138, 0.34);
}

.submit-button:hover,
.run-report-button:hover,
.logout-button:hover {
    background: linear-gradient(180deg, #487af7 0%, #345fd2 100%);
}

.message.error {
    color: #ff7d7d;
}

.message.success {
    color: #a8ff69;
}

.sidebar {
    background:
        linear-gradient(180deg, #11182c 0%, #0d1424 100%);
    border-right: 1px solid rgba(120, 145, 214, 0.12);
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.28);
}

.sidebar-brand {
    border-bottom-color: rgba(163, 184, 235, 0.12);
}

.sidebar-logo {
    filter: none;
}

.sidebar-title {
    color: #ffffff;
}

.menu-item,
.submenu-item {
    background: rgba(44, 61, 108, 0.46);
    border-color: rgba(118, 142, 210, 0.14);
    color: #f6f8ff;
}

.menu-item:hover,
.menu-item.active,
.submenu-item.active {
    background: rgba(53, 109, 242, 0.28);
    border-color: rgba(100, 145, 255, 0.2);
}

.dashboard-main {
    background:
        linear-gradient(180deg, rgba(8, 13, 25, 0.94) 0%, rgba(10, 15, 28, 0.96) 100%);
}

.welcome-panel,
.logo-panel,
.summary-card,
.report-table-wrapper,
.live-section-head {
    background: rgba(17, 25, 43, 0.92);
    border-color: rgba(121, 145, 208, 0.14);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.welcome-tag,
.filter-field span,
.summary-card span,
.live-total-card span,
.live-mini-summary span,
.report-header p,
.welcome-copy,
.eyebrow {
    color: #91a3cd;
}

.welcome-panel h1,
.report-header h2,
.live-header h2,
.live-section-head h3,
.summary-card strong,
.report-table th,
.report-table td,
.sidebar-title {
    color: #f7f9ff;
}

.live-header h2,
.report-header h2 {
    color: #ffffff;
}

.live-section-head h3 {
    color: #ff5b47;
}

.report-table-wrapper,
.report-table {
    background: rgba(12, 19, 34, 0.94);
}

.report-table th {
    background: #131b30;
    color: #b8c7eb;
    border-bottom-color: rgba(129, 150, 203, 0.16);
}

.report-table td {
    color: #edf2ff;
    border-bottom-color: rgba(129, 150, 203, 0.12);
}

.report-table tbody tr:hover {
    background: rgba(53, 109, 242, 0.12);
}

.report-empty {
    color: #93a4cf;
}

.summary-card {
    background: linear-gradient(180deg, rgba(22, 31, 53, 0.98), rgba(14, 20, 36, 0.98));
}

.live-total-card,
.live-mini-summary div {
    background: #090d16;
    border: 1px solid rgba(115, 134, 187, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.live-total-card strong,
.live-mini-summary strong {
    color: #90ff52;
}

.logo-panel {
    background:
        radial-gradient(circle at 50% 18%, rgba(56, 98, 229, 0.22), rgba(15, 22, 40, 0) 24%),
        linear-gradient(180deg, rgba(13, 19, 34, 0.96) 0%, rgba(10, 15, 28, 0.98) 100%);
}

body.home-mode .dashboard-main,
body.home-mode .dashboard-content,
body.home-mode #welcomePanel {
    background: transparent;
}

@media (max-width: 900px) {
    .login-card {
        grid-template-columns: 1fr;
        min-height: auto;
        background-image:
            linear-gradient(180deg, rgba(24, 33, 57, 0.96) 0%, rgba(12, 19, 35, 0.94) 100%);
    }

    .login-card > .logo,
    .login-card > .eyebrow,
    .login-card > h1,
    .login-card .login-form {
        margin-left: 28px;
        margin-right: 28px;
    }

    .login-card::after,
    .login-form::after {
        display: none;
    }
}

/* Login Spotlight Layout */
.login-page {
    background:
        radial-gradient(circle at 63% 14%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.1) 14%, rgba(7, 11, 21, 0) 30%),
        linear-gradient(180deg, #262d3e 0%, #121a2c 26%, #0b1020 68%, #090e1b 100%);
    overflow: hidden;
}

.login-page .page {
    min-height: 100vh;
    padding: 0;
    background:
        radial-gradient(circle at 63% 16%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 18%);
}

.login-page .page::before {
    content: "";
    position: fixed;
    top: 7%;
    left: 63%;
    width: min(68vw, 520px);
    height: 56vh;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.12) 24%, rgba(255, 255, 255, 0.02) 70%, rgba(255, 255, 255, 0) 100%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    opacity: 0.82;
    pointer-events: none;
}

.login-page .page::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 63% 18%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 16%);
    pointer-events: none;
}

.login-page .login-card {
    width: min(100%, 1180px);
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding: 0 56px 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.login-page .login-card::before,
.login-page .login-card::after,
.login-page .login-form::after {
    display: none;
}

.login-page .login-card > .logo {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: min(100%, 620px);
    margin: 276px auto 0;
    align-self: start;
    transform: translateX(-18px);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
}

.login-page .login-card > .eyebrow,
.login-page .login-card > h1 {
    display: none;
}

.login-page .login-card .login-form {
    grid-column: 1;
    width: min(100%, 380px);
    margin: 176px 0 0;
    gap: 18px;
    align-self: center;
}

.login-page .login-card .field,
.login-page .login-card .message {
    width: 100%;
}

.login-page .login-card select,
.login-page .login-card input {
    height: 58px;
    border-radius: 12px;
    border: 1px solid rgba(159, 177, 227, 0.34);
    background: rgba(9, 14, 27, 0.6);
    color: #f8fbff;
}

.login-page .login-card .submit-button {
    height: 60px;
    border-radius: 18px;
}

.login-page .login-card.remember-mode {
    min-height: 100vh;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
}

.login-page .login-card.remember-mode > .logo {
    display: block;
    grid-column: 2;
    grid-row: 1;
    margin: 0 auto;
    align-self: center;
}

.login-page .login-card.remember-mode > .remembered-card {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 380px);
    margin: 0;
    align-self: center;
}

@media (max-width: 720px) {
    .login-page .login-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 24px 28px;
        text-align: center;
    }

    .login-page .page::before {
        width: min(88vw, 420px);
        height: 48vh;
        top: 0;
        left: 50%;
    }

    .login-page .login-card {
        min-height: 100vh;
    }

    .login-page .login-card > .logo {
        width: min(88vw, 360px);
        grid-column: 1;
        grid-row: 1;
        margin: 150px auto 0;
        transform: none;
    }

    .login-page .login-card .login-form {
        grid-column: 1;
        margin: 24px auto 0;
    }

    .login-page .login-card.remember-mode > .logo {
        grid-column: 1;
        margin: 150px auto 0;
        align-self: start;
    }

    .login-page .login-card.remember-mode > .remembered-card {
        grid-column: 1;
        margin: 24px auto 0;
        align-self: center;
    }

    .login-page .page::after {
        background: radial-gradient(circle at 50% 13%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 16%);
    }
}

.secondary-button {
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(117, 144, 214, 0.28);
    background: rgba(18, 28, 48, 0.78);
    color: #f7f9ff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 8, 17, 0.72);
    backdrop-filter: blur(8px);
}

.modal-card {
    width: min(100%, 520px);
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(20, 29, 50, 0.98), rgba(10, 16, 28, 0.98));
    border: 1px solid rgba(120, 143, 198, 0.22);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.36);
}

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

.modal-header h2 {
    margin: 8px 0 0;
    color: #f7f9ff;
    font-family: inherit;
    font-size: 1.8rem;
}

.modal-close {
    border: 0;
    background: transparent;
    color: #dce6ff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.register-form {
    display: grid;
    gap: 16px;
}

.password-rule-note {
    margin: -2px 2px 0;
    color: #b8c7e7;
    font-size: 0.88rem;
    line-height: 1.45;
}

.password-checklist {
    display: grid;
    gap: 8px;
    margin-top: -4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(8, 13, 24, 0.46);
    border: 1px solid rgba(117, 144, 214, 0.16);
}

.password-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.3;
}

.password-check-item.valid {
    color: #9ff0b6;
}

.password-check-item.invalid {
    color: #ffb0b0;
}

.password-check-icon {
    width: 18px;
    display: inline-flex;
    justify-content: center;
    font-weight: 700;
}

.hidden {
    display: none !important;
}

.login-page .login-card .login-form {
    width: min(100%, 400px);
    margin: 216px 0 0;
}

.login-page .login-card > .logo {
    margin: 276px auto 0;
    align-self: start;
}

@media (max-width: 980px) {
    .admin-actions {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .modal-card {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .login-page .login-card .login-form {
        margin: 36px auto 0;
    }

    .login-page .login-card > .logo {
        margin: 92px auto 0;
        align-self: start;
    }
}

.admin-panel-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 18%),
        linear-gradient(180deg, #0b1222 0%, #10192f 100%);
    color: #eff5ff;
}

.admin-panel-shell {
    min-height: 100vh;
    padding: 36px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.admin-panel-card {
    width: min(1180px, 100%);
    padding: 28px;
    border-radius: 28px;
    background: rgba(13, 21, 38, 0.92);
    border: 1px solid rgba(117, 144, 214, 0.18);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.admin-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-panel-head h1 {
    margin: 8px 0 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: #f8fbff;
}

.admin-panel-copy {
    margin: 8px 0 0;
    color: #aebddd;
    font-size: 1rem;
}

.admin-panel-page .report-table-wrapper {
    border-radius: 20px;
    border: 1px solid rgba(117, 144, 214, 0.16);
    overflow: hidden;
    background: rgba(8, 13, 24, 0.82);
}

.admin-tab-bar {
    display: flex;
    gap: 12px;
    padding: 18px 18px 0;
    flex-wrap: wrap;
}

.admin-tab-button {
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(117, 144, 214, 0.2);
    background: rgba(15, 23, 40, 0.85);
    color: #dfe8ff;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-tab-button.active {
    background: linear-gradient(180deg, #3d68d8 0%, #2f53aa 100%);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(47, 83, 170, 0.28);
}

.admin-panel-page .report-table thead {
    background: rgba(48, 76, 123, 0.48);
}

.admin-panel-page .report-table th,
.admin-panel-page .report-table td {
    color: #eff5ff;
}

.admin-panel-page .report-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.admin-panel-page .report-empty {
    color: #bfcceb;
}

.admin-password-input {
    width: 100%;
    min-width: 140px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(117, 144, 214, 0.26);
    background: rgba(10, 16, 28, 0.85);
    color: #f6f9ff;
    font-size: 0.95rem;
}

.admin-save-button {
    height: 42px;
    min-width: 138px;
    padding: 0 14px;
    border-radius: 12px;
}

.admin-actions-cell {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-delete-button {
    height: 42px;
    min-width: 118px;
    padding: 0 14px;
    border-radius: 12px;
    border-color: rgba(220, 92, 92, 0.38);
    color: #ffd9d9;
    background: rgba(78, 18, 18, 0.72);
}

.admin-approve-button {
    height: 42px;
    min-width: 108px;
    padding: 0 14px;
    border-radius: 12px;
    border-color: rgba(79, 193, 117, 0.36);
    color: #d8ffe3;
    background: rgba(19, 76, 39, 0.72);
}

.admin-reject-button {
    height: 42px;
    min-width: 108px;
    padding: 0 14px;
    border-radius: 12px;
    border-color: rgba(233, 120, 120, 0.36);
    color: #ffe0e0;
    background: rgba(98, 29, 29, 0.72);
}

@media (max-width: 720px) {
    .admin-panel-shell {
        padding: 18px 12px;
    }

    .admin-panel-card {
        padding: 18px 14px;
        border-radius: 20px;
    }

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

    .admin-panel-head .secondary-button {
        width: 100%;
    }

    .admin-tab-bar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 14px 0;
    }

    .admin-tab-button {
        width: 100%;
        min-height: 46px;
        padding: 10px 14px;
        text-align: center;
    }

    .admin-panel-page .report-table-wrapper {
        margin-inline: -2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-panel-page .report-table {
        min-width: 760px;
    }

    .admin-panel-page .report-table th,
    .admin-panel-page .report-table td {
        padding: 12px 10px;
        font-size: 0.88rem;
        vertical-align: top;
    }

    .admin-password-input {
        min-width: 160px;
    }

    .admin-actions-cell {
        min-width: 280px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .admin-approve-button,
    .admin-reject-button,
    .admin-save-button,
    .admin-delete-button {
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0 10px;
    }
}

.process-workspace {
    margin-top: 20px;
    width: 100%;
}

.process-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.95fr);
    gap: 22px;
    align-items: start;
}

.process-card {
    border-radius: 28px;
    background: rgba(13, 21, 38, 0.88);
    border: 1px solid rgba(117, 144, 214, 0.16);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
    color: #eff5ff;
}

.process-card-form {
    padding: 28px;
}

.process-card-side {
    padding: 24px;
    display: grid;
    gap: 18px;
}

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

.process-card-head h2,
.process-card-head h3 {
    margin: 6px 0 0;
    color: #f8fbff;
}

.process-card-head-compact {
    margin-bottom: 0;
}

.process-card-tag {
    margin: 0;
    color: #8ea6d5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.process-status-badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(91, 108, 255, 0.18);
    border: 1px solid rgba(117, 144, 214, 0.22);
    color: #dfe8ff;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

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

.process-field {
    display: grid;
    gap: 8px;
}

.process-field span {
    color: #c9d7f3;
    font-size: 0.92rem;
    font-weight: 700;
}

.process-field input,
.process-field textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(117, 144, 214, 0.2);
    background: rgba(8, 13, 24, 0.82);
    color: #f6f9ff;
    font-size: 0.98rem;
    outline: none;
}

.process-field input {
    height: 52px;
    padding: 0 16px;
}

.process-field textarea {
    min-height: 170px;
    padding: 16px;
    resize: vertical;
}

.process-field input:focus,
.process-field textarea:focus {
    border-color: rgba(120, 156, 246, 0.6);
    box-shadow: 0 0 0 4px rgba(72, 104, 210, 0.18);
}

.process-field-full {
    grid-column: 1 / -1;
}

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

.process-button {
    min-width: 132px;
    height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(117, 144, 214, 0.24);
    background: rgba(20, 31, 54, 0.92);
    color: #e9f1ff;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
}

.process-button-primary {
    background: linear-gradient(180deg, #506ef0 0%, #3f59c9 100%);
    border-color: transparent;
    box-shadow: 0 16px 30px rgba(63, 89, 201, 0.28);
}

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

.process-image-slot {
    min-height: 150px;
    border-radius: 22px;
    border: 1px dashed rgba(135, 162, 230, 0.3);
    background:
        linear-gradient(180deg, rgba(16, 26, 46, 0.92), rgba(10, 16, 28, 0.92));
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 14px;
}

.process-image-slot strong {
    color: #f6f9ff;
    font-size: 1rem;
}

.process-image-slot span {
    color: #9eb2da;
    font-size: 0.88rem;
}

.process-note-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(117, 144, 214, 0.14);
}

.process-note-card strong {
    display: block;
    margin-bottom: 10px;
    color: #f6f9ff;
}

.process-note-card p {
    margin: 0;
    color: #c2d0ec;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .process-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .process-card-form,
    .process-card-side {
        padding: 18px;
    }

    .process-card-head {
        flex-direction: column;
    }

    .process-form-grid,
    .process-image-grid {
        grid-template-columns: 1fr;
    }

    .process-button {
        width: 100%;
    }
}

.process-tracker-card,
.process-detail-card {
    border-radius: 26px;
    background: rgba(9, 14, 26, 0.92);
    border: 1px solid rgba(117, 144, 214, 0.16);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
    color: #eff5ff;
}

.process-tracker-card {
    padding: 18px 18px 12px;
    width: 100%;
}

.process-detail-card {
    margin-top: 18px;
    padding: 22px;
}

.process-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.process-detail-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 6, 16, 0.72);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.process-detail-modal .process-detail-card {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    max-height: min(86vh, 820px);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.process-detail-scroll {
    display: grid;
    gap: 18px;
    overflow: auto;
    padding-right: 6px;
    -webkit-overflow-scrolling: touch;
}

.process-detail-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.process-detail-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(117, 144, 214, 0.22);
    border-radius: 14px;
    background: rgba(18, 28, 48, 0.78);
    color: #f7f9ff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.process-tracker-topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
}

.process-tracker-title-wrap h2 {
    margin: 0;
    color: #f8fbff;
}

.process-counter-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.process-counter-pill {
    min-width: 116px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(117, 144, 214, 0.18);
    background: rgba(27, 38, 63, 0.92);
    color: #dce8ff;
    display: grid;
    gap: 4px;
    text-align: center;
    cursor: pointer;
}

.process-counter-pill span {
    font-size: 0.82rem;
    color: #e5efff;
}

.process-counter-pill strong {
    font-size: 0.92rem;
}

.process-counter-pill.is-active {
    box-shadow: 0 0 0 2px rgba(129, 161, 255, 0.34) inset;
}

.process-counter-pill-wait {
    background: linear-gradient(180deg, #b27726 0%, #8d5a13 100%);
}

.process-counter-pill-reject {
    background: linear-gradient(180deg, #c24343 0%, #9a2929 100%);
}

.process-counter-pill-solved {
    background: linear-gradient(180deg, #2b9e62 0%, #1c7d4b 100%);
}

.process-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.process-search-input {
    flex: 1;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(117, 144, 214, 0.18);
    background: rgba(11, 18, 33, 0.92);
    color: #f3f7ff;
    padding: 0 16px;
}

.process-refresh-button {
    height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(117, 144, 214, 0.18);
    background: rgba(26, 39, 66, 0.92);
    color: #eff5ff;
    font-weight: 700;
    cursor: pointer;
}

.process-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 620px;
    border-radius: 18px;
    border: 1px solid rgba(117, 144, 214, 0.14);
}

.process-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
    table-layout: fixed;
}

.process-table thead {
    background: #d7dee9;
}

.process-table th {
    padding: 11px 8px;
    text-align: left;
    color: #10203a;
    font-size: 0.86rem;
}

.process-table td {
    padding: 11px 8px;
    border-top: 1px solid rgba(117, 144, 214, 0.12);
    color: #f1f5ff;
    font-size: 0.88rem;
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
}

.process-table tbody tr {
    background: rgba(9, 14, 26, 0.92);
    cursor: pointer;
}

.process-table tbody tr:nth-child(even) {
    background: rgba(15, 22, 38, 0.96);
}

.process-table tbody tr:hover,
.process-row-selected {
    background: rgba(27, 42, 74, 0.96) !important;
}

.process-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.84rem;
}

.process-badge-waiting {
    background: rgba(242, 181, 58, 0.15);
    color: #ffd56b;
}

.process-badge-rejected {
    background: rgba(240, 92, 92, 0.14);
    color: #ff8f8f;
}

.process-badge-solved {
    background: rgba(58, 196, 118, 0.14);
    color: #77f0ab;
}

.process-badge-default {
    background: rgba(117, 144, 214, 0.14);
    color: #d6e4ff;
}

.process-notification {
    color: #d8e2f7;
    font-weight: 500;
}

.process-notification.is-new {
    color: #7cf1a8;
    font-weight: 700;
}

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

.process-detail-head h3 {
    margin: 6px 0 0;
    color: #f8fbff;
}

.process-status-waiting {
    background: rgba(242, 181, 58, 0.18);
}

.process-status-rejected {
    background: rgba(240, 92, 92, 0.18);
}

.process-status-solved {
    background: rgba(58, 196, 118, 0.18);
}

.process-detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.process-detail-meta div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(117, 144, 214, 0.12);
}

.process-detail-meta span {
    display: block;
    font-size: 0.82rem;
    color: #9fb0d4;
    margin-bottom: 6px;
}

.process-detail-meta strong {
    color: #f7fbff;
}

.process-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.process-button-danger {
    border-color: rgba(233, 120, 120, 0.36);
    color: #ffe0e0;
    background: rgba(98, 29, 29, 0.72);
}

.process-thread-list {
    display: grid;
    gap: 14px;
}

.process-thread-item {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(117, 144, 214, 0.12);
}

.process-thread-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.process-thread-head strong {
    display: block;
    color: #f7fbff;
    margin-bottom: 4px;
}

.process-thread-head span {
    color: #a9b8d7;
    font-size: 0.88rem;
}

.process-thread-badges {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.process-thread-text {
    margin: 0;
    color: #dce6f7;
    line-height: 1.65;
}

.process-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.process-image-preview-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(117, 144, 214, 0.16);
    background: rgba(7, 12, 22, 0.95);
}

.process-reply-box {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(117, 144, 214, 0.12);
}

@media (max-width: 980px) {
    .process-tracker-topbar,
    .process-toolbar,
    .process-detail-head {
        flex-direction: column;
        align-items: stretch;
    }

    .process-detail-meta {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 720px) {
    .process-tracker-card,
    .process-detail-card {
        padding: 14px;
    }

    .process-counter-strip,
    .process-detail-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .process-detail-meta,
    .process-image-preview-grid {
        grid-template-columns: 1fr;
    }
}

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

    .sidebar {
        padding: 16px 14px;
        gap: 12px;
        box-shadow: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        position: sticky;
        top: 0;
        z-index: 25;
        backdrop-filter: blur(20px);
    }

    .sidebar-brand {
        padding-bottom: 14px;
        margin-bottom: 6px;
    }

    .sidebar-logo {
        width: 110px;
    }

    .sidebar-title {
        font-size: 1rem;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .menu-item,
    .submenu-item {
        min-height: 44px;
        padding: 12px 14px;
        font-size: 0.94rem;
        line-height: 1.25;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .submenu-item {
        line-height: 1.25;
        display: flex;
        align-items: center;
    }

    .dashboard-main {
        padding: 12px;
    }

    .dashboard-content,
    .dashboard-content-wide {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: auto;
    }

    .welcome-panel {
        padding: 16px;
    }

    .welcome-tag {
        font-size: 0.78rem;
        letter-spacing: 0.12em;
    }

    .welcome-panel h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .logo-panel {
        display: none !important;
    }

    .report-filters,
    .live-filters,
    .live-grid-layout {
        grid-template-columns: 1fr !important;
    }

    .report-table-wrapper,
    .process-table-wrapper {
        margin-inline: -2px;
    }

    .process-counter-strip {
        grid-template-columns: 1fr 1fr;
    }

    .process-table th,
    .process-table td {
        font-size: 0.82rem;
        padding: 10px 7px;
    }
}

@media (max-width: 640px) {
    .page,
    .login-page .page {
        padding: 12px;
    }

    .login-card,
    .login-page .login-card {
        width: 100%;
        max-width: 100%;
        padding: 22px 16px 18px;
        border-radius: 24px;
    }

    .login-form,
    .login-page .login-card .login-form {
        gap: 12px;
    }

    .submit-button,
    .secondary-button,
    .logout-button {
        min-height: 50px;
    }

    .remembered-card {
        padding: 16px;
        border-radius: 20px;
    }

    .dashboard-main {
        padding: 10px;
    }

    .welcome-panel,
    .process-tracker-card,
    .process-detail-card {
        padding: 14px;
        border-radius: 20px;
    }

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

    .summary-card {
        padding: 14px;
        min-height: 96px;
    }

    .process-counter-strip,
    .process-detail-actions {
        grid-template-columns: 1fr;
    }

    .process-toolbar {
        gap: 10px;
    }

    .process-search-input,
    .process-refresh-button,
    .process-button,
    .menu-item,
    .submenu-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-body {
        overflow-x: hidden;
    }

    .dashboard-layout,
    .dashboard-content,
    .dashboard-content-wide,
    body.home-mode .dashboard-content,
    body.home-mode .dashboard-content-wide {
        min-height: auto;
    }

    .sidebar {
        position: static;
        top: auto;
        padding: 14px 12px;
        gap: 10px;
        border-radius: 0 0 18px 18px;
        backdrop-filter: none;
    }

    .sidebar-brand {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        text-align: left;
        padding: 0 0 12px;
        margin: 0 0 8px;
    }

    .sidebar-logo {
        width: 92px;
        margin: 0;
    }

    .sidebar-menu {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        overflow: visible;
        padding-bottom: 0;
    }

    .menu-group {
        grid-column: 1 / -1;
    }

    .submenu-list {
        display: grid;
        grid-template-columns: 1fr;
        padding-left: 0;
    }

    .menu-group:not(.open) .submenu-list {
        display: none;
    }

    .menu-item,
    .submenu-item,
    .logout-button {
        min-height: 46px;
        border-radius: 14px;
        font-size: 0.9rem;
        width: 100%;
    }

    .menu-item {
        padding: 12px 14px;
    }

    .submenu-item {
        padding: 12px;
        line-height: 1.2;
        min-height: 44px;
        white-space: normal;
    }

    .sidebar-logout {
        margin-top: 4px;
    }

    .dashboard-main {
        padding: 10px;
    }

    .welcome-panel,
    .logo-panel,
    .report-table-wrapper,
    .process-tracker-card,
    .process-detail-card,
    .live-total-card,
    .live-section-head {
        border-radius: 18px;
    }

    .welcome-panel {
        padding: 14px;
    }

    .report-header,
    .live-header {
        display: grid;
        gap: 12px;
    }

    .report-filters,
    .live-filters {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .report-summary {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .summary-card {
        padding: 14px;
    }

    .report-table-wrapper,
    .process-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .report-table {
        min-width: 680px;
    }

    .process-table {
        min-width: 520px;
    }

    .hr-table {
        min-width: 420px;
    }

    .hr-card,
    .hr-detail-card {
        padding: 16px;
        border-radius: 18px;
    }

    .live-grid-layout {
        grid-template-columns: 1fr;
    }

    .live-status-strip {
        grid-template-columns: 1fr;
    }

    .live-status-item-wide {
        grid-column: auto;
    }

    .live-section-head {
        min-height: auto;
        padding: 14px;
    }

    .live-mini-summary,
    .live-mini-summary-3 {
        grid-template-columns: 1fr 1fr;
    }

    .home-hero,
    #welcomePanel:has(.home-hero:not(.hidden)),
    .dashboard-content:has(#homeHero:not(.hidden)),
    .dashboard-content-wide:has(#homeHero:not(.hidden)),
    .dashboard-main:has(#homeHero:not(.hidden)) {
        min-height: auto;
        height: auto;
        margin-top: 0;
    }

    .home-hero {
        min-height: 52vh;
        padding: 64px 16px 40px;
    }

    .home-hero-spotlight {
        width: min(94vw, 360px);
        height: 34vh;
        top: 4%;
    }

    .home-hero-logo {
        width: min(88vw, 360px);
    }
}

@media (max-width: 520px) {
    .report-summary,
    .live-mini-summary,
    .live-mini-summary-3,
    .live-status-strip,
    .process-counter-strip,
    .process-detail-actions,
    .hr-detail-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-menu,
    .submenu-list,
    .report-summary,
    .live-mini-summary,
    .live-mini-summary-3,
    .live-status-strip,
    .process-counter-strip,
    .process-detail-actions {
        grid-template-columns: 1fr;
    }

    .sidebar-title {
        font-size: 0.94rem;
        letter-spacing: 0.04em;
    }

    .welcome-panel h1,
    .report-header h2,
    .live-header h2 {
        font-size: 1.3rem;
        line-height: 1.2;
    }

    .welcome-tag {
        font-size: 0.72rem;
    }

    .report-table {
        min-width: 620px;
    }

    .process-table {
        min-width: 460px;
    }

    .hr-table {
        min-width: 360px;
    }

    .live-total-card strong {
        font-size: 1.6rem;
    }

    .admin-panel-shell {
        padding: 12px 8px 20px;
    }

    .admin-panel-card {
        padding: 14px 10px;
        border-radius: 16px;
    }

    .admin-panel-head h1 {
        font-size: 1.5rem;
        line-height: 1.15;
    }

    .admin-panel-copy {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .admin-tab-bar {
        padding: 12px 10px 0;
    }

    .admin-panel-page .report-table {
        min-width: 680px;
    }

    .admin-actions-cell {
        grid-template-columns: 1fr;
        min-width: 180px;
    }
}

/* Modern Snowy Web Refresh - Final Overrides */
body.dashboard-body,
body.login-page,
body.admin-panel-page {
    color: var(--modern-text);
    background:
        radial-gradient(circle at 18% 0%, rgba(101, 228, 255, 0.14), transparent 34%),
        radial-gradient(circle at 84% 12%, rgba(239, 64, 53, 0.12), transparent 30%),
        linear-gradient(145deg, #050713 0%, #0b1023 48%, #071225 100%) !important;
}

.sidebar {
    background: linear-gradient(180deg, rgba(15, 25, 52, 0.98), rgba(7, 11, 24, 0.96)) !important;
    border-right: 1px solid var(--modern-line) !important;
    box-shadow: 18px 0 60px rgba(0, 0, 0, 0.32) !important;
}

.sidebar-brand,
.menu-item,
.submenu-item,
.report-filters,
.live-filters,
.hr-filters,
.process-toolbar,
.remember-field {
    background: rgba(255, 255, 255, 0.065) !important;
    border: 1px solid rgba(101, 228, 255, 0.14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 24px rgba(0, 0, 0, 0.16) !important;
}

.menu-item:hover,
.menu-item.active,
.submenu-item:hover,
.submenu-item.active {
    background: rgba(101, 228, 255, 0.13) !important;
    border-color: rgba(101, 228, 255, 0.36) !important;
    transform: translateY(-2px);
}

.welcome-panel,
.logo-panel,
.report-workspace,
.live-workspace,
.process-tracker-card,
.process-detail-card,
.hr-card,
.hr-detail-card,
.admin-panel-card,
.login-card,
.modal-card,
.live-section,
.live-total-card,
.summary-card {
    background:
        linear-gradient(145deg, rgba(17, 28, 58, 0.96), rgba(9, 15, 34, 0.92)) !important;
    border: 1px solid var(--modern-line) !important;
    box-shadow: var(--modern-shadow) !important;
    color: var(--modern-text) !important;
}

.welcome-panel,
.logo-panel,
.admin-panel-card,
.login-card,
.modal-card {
    border-radius: 34px !important;
}

.welcome-tag,
.eyebrow,
.process-card-tag {
    color: var(--modern-cyan) !important;
    letter-spacing: 0.22em !important;
    font-weight: 900 !important;
}

.welcome-panel h1,
.report-header h2,
.live-header h2,
.process-tracker-title-wrap h2,
.hr-header h2,
.admin-panel-head h1,
.login-card h1,
.section-card-title {
    color: #ffffff !important;
}

.filter-field input,
.filter-field select,
.field input,
.login-card select,
.login-card input,
.process-search-input,
.process-field textarea {
    color: #ffffff !important;
    background: rgba(6, 11, 26, 0.78) !important;
    border: 1px solid rgba(101, 228, 255, 0.18) !important;
    border-radius: 18px !important;
}

.run-report-button,
.submit-button,
.logout-button,
.process-button-primary,
.process-refresh-button {
    background: linear-gradient(135deg, #ef4035, #ff6b57) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 34px rgba(239, 64, 53, 0.26) !important;
}

.secondary-button,
.process-button,
.admin-tab-button {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    border: 1px solid rgba(101, 228, 255, 0.16) !important;
    border-radius: 18px !important;
}

.report-table-wrapper,
.process-table-wrapper,
.hr-table-wrapper {
    background: rgba(4, 8, 19, 0.74) !important;
    border: 1px solid rgba(101, 228, 255, 0.14) !important;
    border-radius: 26px !important;
}

.report-table,
.process-table,
.hr-table {
    color: #eff5ff !important;
}

.report-table thead,
.process-table thead,
.hr-table thead,
.admin-panel-page .report-table thead {
    background: rgba(101, 228, 255, 0.1) !important;
}

.report-table th,
.report-table td,
.process-table th,
.process-table td,
.hr-table th,
.hr-table td {
    border-color: rgba(255, 255, 255, 0.07) !important;
}

.home-hero {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(160deg, rgba(17, 28, 58, 0.72), rgba(7, 11, 24, 0.86)) !important;
    border: 1px solid rgba(101, 228, 255, 0.12) !important;
    border-radius: 34px !important;
}

.live-total-card {
    border-color: rgba(34, 211, 166, 0.28) !important;
}

.process-counter-pill.is-active,
.process-counter-pill:hover,
.admin-tab-button.active {
    background: rgba(101, 228, 255, 0.14) !important;
    border-color: rgba(101, 228, 255, 0.38) !important;
}

@media (max-width: 900px) {
    .sidebar-menu,
    .submenu-list {
        grid-template-columns: 1fr !important;
    }

    .menu-item,
    .submenu-item {
        width: 100% !important;
    }
}

/* Site ve şirket girişindeki eski spot/parlama efekti kapalı. */
body.login-page,
.login-page .page {
    background: linear-gradient(180deg, #151b31 0%, #0b1020 58%, #070b17 100%) !important;
}

.login-page .page::before,
.login-page .page::after {
    display: none !important;
}

/* Şirket girişi: mobildeki modern panel hissinin web uyarlaması. */
.company-login-page .page {
    display: grid;
    place-items: center;
    padding: 32px;
}

.company-login-page .login-card {
    position: relative;
    width: min(100%, 1040px);
    min-height: auto;
    grid-template-columns: minmax(320px, 1fr) minmax(340px, 420px);
    align-items: stretch;
    gap: 28px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(101, 228, 255, 0.16);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(18, 29, 62, 0.96), rgba(8, 13, 30, 0.98)),
        rgba(12, 18, 36, 0.96) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.company-login-page .login-card > .logo {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: min(86%, 390px);
    margin: auto;
    align-self: center;
    justify-self: center;
    transform: none;
    filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.34));
}

.company-login-page .login-card > .eyebrow,
.company-login-page .login-card > h1,
.company-login-page .login-subtitle {
    display: block;
    grid-column: 2;
    margin: 0;
}

.company-login-page .login-card > .eyebrow {
    align-self: end;
    color: #65e4ff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.24em;
}

.company-login-page .login-card > h1 {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 0.95;
    text-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.company-login-page .login-subtitle {
    max-width: 360px;
    color: #b8c4df;
    font-size: 1rem;
    line-height: 1.55;
}

.company-login-page .login-card .login-form {
    grid-column: 2;
    width: 100%;
    margin: 0;
    padding: 22px;
    gap: 16px;
    align-self: start;
    border: 1px solid rgba(101, 228, 255, 0.18);
    border-radius: 28px;
    background: rgba(4, 8, 19, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.company-form-head {
    display: grid;
    gap: 4px;
    margin-bottom: 2px;
}

.company-form-head span {
    color: #65e4ff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.company-form-head strong {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.company-login-page .login-card select,
.company-login-page .login-card input {
    height: 60px;
    border-radius: 18px;
    border-color: rgba(101, 228, 255, 0.18);
    background: rgba(5, 10, 24, 0.86) !important;
}

.company-login-page .login-card .submit-button {
    height: 62px;
    margin-top: 4px;
    border-radius: 20px !important;
}

@media (max-width: 860px) {
    .company-login-page .page {
        padding: 18px;
    }

    .company-login-page .login-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
        text-align: left;
    }

    .company-login-page .login-card > .logo,
    .company-login-page .login-card > .eyebrow,
    .company-login-page .login-card > h1,
    .company-login-page .login-subtitle,
    .company-login-page .login-card .login-form {
        grid-column: 1;
    }

    .company-login-page .login-card > .logo {
        grid-row: auto;
        width: min(78vw, 330px);
        margin: 8px auto 4px;
    }
}

/* Sade-modern giriş ekranı: site ve şirket girişi ortak görünüm. */
.site-login-page .page,
.company-login-page .page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 30px;
    overflow: auto;
}

.site-login-page .login-card,
.company-login-page .login-card {
    width: min(100%, 980px);
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(330px, 410px);
    gap: 26px;
    align-items: center;
    padding: 26px;
    border: 1px solid rgba(101, 228, 255, 0.14);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(17, 28, 58, 0.96), rgba(7, 11, 24, 0.98)) !important;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
    text-align: left;
}

.site-login-page .login-card > .logo,
.company-login-page .login-card > .logo {
    grid-column: 1;
    grid-row: 1 / span 5;
    width: min(82%, 360px);
    margin: 0 auto;
    align-self: center;
    justify-self: center;
    transform: none;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.3));
}

.site-login-page .login-card > .eyebrow,
.site-login-page .login-card > h1,
.site-login-page .login-subtitle,
.company-login-page .login-card > .eyebrow,
.company-login-page .login-card > h1,
.company-login-page .login-subtitle {
    display: block;
    grid-column: 2;
    margin: 0;
}

.site-login-page .login-card > .eyebrow,
.company-login-page .login-card > .eyebrow {
    color: #65e4ff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.site-login-page .login-card > h1,
.company-login-page .login-card > h1 {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 3.7vw, 3.55rem);
    line-height: 0.98;
}

.site-login-page .login-subtitle,
.company-login-page .login-subtitle {
    color: #b8c4df;
    font-size: 0.98rem;
    line-height: 1.5;
}

.site-login-page .login-card .login-form,
.company-login-page .login-card .login-form,
.site-login-page .login-card > .remembered-card {
    grid-column: 2;
    width: 100%;
    margin: 0;
    padding: 20px;
    gap: 14px;
    border: 1px solid rgba(101, 228, 255, 0.16);
    border-radius: 24px;
    background: rgba(4, 8, 19, 0.58);
}

.site-login-page .login-card select,
.site-login-page .login-card input,
.company-login-page .login-card select,
.company-login-page .login-card input {
    height: 56px;
    border-radius: 16px;
    background: rgba(5, 10, 24, 0.84) !important;
    border-color: rgba(101, 228, 255, 0.17);
}

.site-login-page .login-card .submit-button,
.company-login-page .login-card .submit-button {
    height: 58px;
    border-radius: 18px !important;
}

.site-login-page .login-card.remember-mode {
    grid-template-columns: minmax(280px, 0.9fr) minmax(330px, 410px);
}

.site-login-page .login-card.remember-mode > .logo {
    grid-column: 1;
    grid-row: 1 / span 5;
    margin: 0 auto;
}

.site-login-page .login-card.remember-mode > .remembered-card {
    grid-column: 2;
    grid-row: auto;
    align-self: center;
}

@media (max-width: 820px) {
    .site-login-page .page,
    .company-login-page .page {
        padding: 18px;
    }

    .site-login-page .login-card,
    .company-login-page .login-card,
    .site-login-page .login-card.remember-mode {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .site-login-page .login-card > .logo,
    .site-login-page .login-card > .eyebrow,
    .site-login-page .login-card > h1,
    .site-login-page .login-subtitle,
    .site-login-page .login-card .login-form,
    .site-login-page .login-card > .remembered-card,
    .company-login-page .login-card > .logo,
    .company-login-page .login-card > .eyebrow,
    .company-login-page .login-card > h1,
    .company-login-page .login-subtitle,
    .company-login-page .login-card .login-form {
        grid-column: 1;
    }

    .site-login-page .login-card > .logo,
    .company-login-page .login-card > .logo,
    .site-login-page .login-card.remember-mode > .logo {
        grid-row: auto;
        width: min(78vw, 300px);
        margin: 4px auto;
    }
}

/* Responsive güvenlik katmanı: küçük ekranlarda yatay kayma ve iç içe geçmeleri engeller. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

.page,
.dashboard-page,
.dashboard-content,
.dashboard-content-wide,
.report-workspace,
.live-workspace,
.process-tracker-card,
.process-detail-card,
.hr-workspace,
.hr-shell,
.hr-card,
.hr-detail-card,
.home-hero,
.welcome-panel,
.login-card {
    min-width: 0;
    max-width: 100%;
}

.report-filters,
.live-filters,
.hr-filters,
.process-toolbar,
.report-summary,
.live-mini-summary,
.live-mini-summary-3,
.process-counter-strip,
.hr-detail-grid,
.live-grid-layout {
    min-width: 0;
}

.report-table-wrapper,
.process-table-wrapper,
.hr-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.report-table,
.process-table,
.hr-table {
    width: 100%;
}

.sidebar-menu,
.submenu-list {
    width: 100%;
}

.menu-item,
.submenu-item,
.sidebar-logout,
.run-report-button,
.submit-button,
.process-button,
.process-button-primary,
.process-refresh-button,
.filter-field,
.process-field {
    min-width: 0;
}

.filter-field input,
.filter-field select,
.login-card input,
.login-card select,
.process-search-input,
.process-field textarea {
    width: 100%;
    max-width: 100%;
}

.process-card-tag,
.process-status-badge,
.list-toolbar-badge,
.hr-detail-item strong,
.hr-detail-item span,
.report-table th,
.report-table td,
.process-table th,
.process-table td,
.hr-table th,
.hr-table td {
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    body:not(.login-page) .page,
    .dashboard-page {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .dashboard-content,
    .dashboard-content-wide,
    .hr-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .hr-detail-card {
        order: 2;
    }
}

@media (max-width: 900px) {
    body:not(.login-page) .page,
    .dashboard-page {
        display: block;
    }

    .sidebar {
        position: relative;
        width: auto;
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .dashboard-content,
    .dashboard-content-wide {
        padding: 14px;
    }

    .sidebar-brand {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .sidebar-logo {
        width: min(130px, 44vw);
    }

    .sidebar-title {
        font-size: clamp(1rem, 5vw, 1.35rem);
        margin: 0;
    }

    .sidebar-menu,
    .submenu-list,
    .report-filters,
    .live-filters,
    .hr-filters,
    .process-toolbar,
    .live-grid-layout {
        grid-template-columns: 1fr !important;
    }

    .report-workspace,
    .live-workspace,
    .process-tracker-card,
    .process-detail-card,
    .hr-card,
    .hr-detail-card,
    .home-hero,
    .welcome-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .report-header h2,
    .live-header h2,
    .process-tracker-title-wrap h2,
    .hr-header h2 {
        font-size: clamp(1.9rem, 9vw, 2.8rem);
    }

    .content-logo {
        width: min(72vw, 360px);
    }
}

@media (max-width: 560px) {
    .dashboard-content,
    .dashboard-content-wide {
        padding: 10px;
        gap: 12px;
    }

    .sidebar {
        padding: 10px;
    }

    .sidebar-brand {
        padding: 10px;
    }

    .sidebar-menu,
    .submenu-list {
        gap: 8px;
    }

    .menu-item,
    .submenu-item,
    .sidebar-logout {
        min-height: 48px;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .report-workspace,
    .live-workspace,
    .process-tracker-card,
    .process-detail-card,
    .hr-card,
    .hr-detail-card,
    .home-hero,
    .welcome-panel,
    .login-card {
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .report-summary,
    .live-mini-summary,
    .live-mini-summary-3,
    .process-counter-strip,
    .hr-detail-grid,
    .process-detail-actions {
        grid-template-columns: 1fr !important;
    }

    .run-report-button,
    .submit-button,
    .process-button,
    .process-button-primary,
    .process-refresh-button {
        width: 100%;
    }

    .report-table,
    .process-table,
    .hr-table {
        min-width: 620px;
    }

    .process-table {
        min-width: 520px;
    }

    .hr-table {
        min-width: 460px;
    }
}








