@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    --bg: #f5f7fa;
    --bg-soft: #fbfcfe;
    --panel: rgba(255, 255, 255, 0.94);
    --line: #d9e2ee;
    --line-soft: #e8eef5;
    --text: #1f2937;
    --text-main: #1f2937;
    --text-muted: #7a8699;
    --blue: #1594e8;
    --blue-strong: #0f84d3;
    --blue-soft: #edf7fe;
    --green: #27b36a;
    --green-soft: #e7f8ef;
    --danger: #d84b5a;
    --shadow: 0 18px 40px rgba(31, 41, 55, 0.08);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --sidebar-width: 252px;
    --content-max: 1580px;
    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-md: 16px;
    --fs-lg: 24px;
    --fs-xl: 32px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    font: 14px/1.5 "Inter", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top center, rgba(21, 148, 232, 0.08), transparent 34%),
        linear-gradient(180deg, #fcfdff 0%, var(--bg) 100%);
}

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

form {
    margin: 0;
}

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

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    color: var(--text-main);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(21, 148, 232, 0.4);
    box-shadow: 0 0 0 4px rgba(21, 148, 232, 0.08);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text-main);
    font-size: var(--fs-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

th,
td {
    padding: 10px 10px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line-soft);
}

th {
    color: var(--text);
    font-size: var(--fs-xs);
    font-weight: 500;
    white-space: nowrap;
}

td {
    font-size: var(--fs-sm);
    line-height: 1.25;
}

input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    vertical-align: middle;
    accent-color: var(--blue);
    box-shadow: none;
}

input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(21, 148, 232, 0.12);
}

.checkbox-label,
label > span:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
    color: var(--text-main);
}

.shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns 0.2s ease;
}

.sidebar {
    display: flex;
    flex-direction: column;
    padding: 24px 16px 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 249, 252, 0.98) 100%);
    border-right: 1px solid rgba(217, 226, 238, 0.95);
    box-shadow: 8px 0 28px rgba(31, 41, 55, 0.05);
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: auto -36px -52px auto;
    width: 180px;
    height: 180px;
    background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.52' stroke='%23e7eef7' stroke-width='2'%3E%3Cpath d='M12 150h44l12-12h34l10 10h32l12-12h12'/%3E%3Cpath d='M20 122h54l10-10h32l12 12h40'/%3E%3Cpath d='M40 96h46l14-14h26l12 12h30'/%3E%3Cpath d='M70 66h40l12-12h26l12 12h8'/%3E%3Ccircle cx='96' cy='82' r='4' fill='%23f2f7fc'/%3E%3Ccircle cx='128' cy='122' r='4' fill='%23f2f7fc'/%3E%3Ccircle cx='150' cy='54' r='4' fill='%23f2f7fc'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    opacity: 0.9;
}

.brand {
    padding: 4px 14px 18px;
    position: relative;
    z-index: 1;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 148px;
    max-width: 100%;
}

.brand-logo {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
}

.brand-logo-small {
    display: none;
}

.brand-name {
    display: none;
}

.menu {
    display: grid;
    gap: 4px;
    padding: 10px 0 0;
    position: relative;
    z-index: 1;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    color: #4d5b70;
    border: 1px solid transparent;
    border-radius: 14px;
    position: relative;
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.menu-link:hover {
    color: var(--text-main);
    background: rgba(250, 252, 254, 0.96);
    border-color: rgba(221, 229, 238, 0.9);
}

.menu-link.is-active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(221, 229, 238, 0.96);
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
}

.menu-link.is-active::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: var(--blue);
}

.menu-icon,
.button-icon,
.panel-title-icon,
.metric-card-icon,
.panel-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-link .menu-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #7e8ea5;
    background: transparent;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.menu-link:hover .menu-icon {
    color: var(--text-main);
    background: #f4f7fa;
    border-color: #e5ebf2;
}

.menu-link.is-active .menu-icon {
    color: var(--blue);
    background: linear-gradient(180deg, #f5fbff 0%, #eaf6fe 100%);
    border-color: rgba(21, 148, 232, 0.12);
}

.menu-icon svg,
.button-icon svg,
.panel-title-icon svg,
.metric-card-icon svg,
.panel-empty-icon svg,
.menu-collapse svg {
    width: 18px;
    height: 18px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px 0 4px;
    display: grid;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.sidebar-footer::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 12px 2px;
    background: linear-gradient(90deg, rgba(217, 226, 238, 0), rgba(217, 226, 238, 0.95) 18%, rgba(217, 226, 238, 0.95) 82%, rgba(217, 226, 238, 0));
}

.menu-link-bottom {
    margin-top: 0;
}

.menu-collapse {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #6d7c92;
    cursor: pointer;
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.menu-collapse:hover {
    color: var(--text-main);
    background: rgba(250, 252, 254, 0.96);
    border-color: rgba(221, 229, 238, 0.9);
}

.menu-collapse .menu-icon,
.menu-collapse svg {
    color: inherit;
}

.main {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62) 44%, transparent 74%),
        linear-gradient(180deg, #fbfcfe 0%, #f5f7fa 100%);
}

.shell.is-collapsed {
    grid-template-columns: 92px minmax(0, 1fr);
}

.shell.is-collapsed .brand {
    padding-left: 8px;
    padding-right: 8px;
}

.shell.is-collapsed .brand-link {
    justify-content: center;
}

.shell.is-collapsed .brand-logo-wrap {
    width: 44px;
    justify-content: center;
}

.shell.is-collapsed .brand-logo-full {
    display: none;
}

.shell.is-collapsed .brand-logo-small {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.shell.is-collapsed .menu-link span:last-child,
.shell.is-collapsed .menu-collapse-text {
    display: none;
}

.shell.is-collapsed .menu-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    min-height: 48px;
}

.shell.is-collapsed .menu-link.is-active::before {
    left: 6px;
}

.shell.is-collapsed .sidebar-footer {
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.shell.is-collapsed .sidebar-footer::before {
    margin-left: 8px;
    margin-right: 8px;
}

.shell.is-collapsed .menu-collapse {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.shell.is-collapsed .menu-collapse svg {
    transform: rotate(180deg);
}

.main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='900' height='260' viewBox='0 0 900 260' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.5' stroke='%23e6edf6' stroke-width='2'%3E%3Cpath d='M330 36h240l18 18h150'/%3E%3Cpath d='M370 64h126l14 14h186'/%3E%3Cpath d='M410 94h142l16 16h212'/%3E%3Cpath d='M452 126h118l14 14h180'/%3E%3Cpath d='M492 160h146l16 16h168'/%3E%3Cpath d='M354 196h160l18 18h150'/%3E%3Ccircle cx='710' cy='54' r='5' fill='%23f1f6fb'/%3E%3Ccircle cx='666' cy='78' r='5' fill='%23f1f6fb'/%3E%3Ccircle cx='782' cy='106' r='5' fill='%23f1f6fb'/%3E%3Ccircle cx='758' cy='144' r='5' fill='%23f1f6fb'/%3E%3Ccircle cx='820' cy='176' r='5' fill='%23f1f6fb'/%3E%3Ccircle cx='646' cy='212' r='5' fill='%23f1f6fb'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: top right;
    pointer-events: none;
    opacity: 1;
}

.main::after {
    content: "";
    position: absolute;
    left: -20px;
    bottom: 22px;
    width: 260px;
    height: 180px;
    background-image: url("data:image/svg+xml,%3Csvg width='260' height='180' viewBox='0 0 260 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.42' stroke='%23ecf1f7' stroke-width='2'%3E%3Cpath d='M12 156h72l14-14h62l12 12h54'/%3E%3Cpath d='M20 126h82l10-10h52l14 14h58'/%3E%3Cpath d='M34 96h78l12-12h48l12 12h46'/%3E%3Cpath d='M58 64h72l10-10h52l10 10h22'/%3E%3Ccircle cx='116' cy='116' r='4' fill='%23f5f8fc'/%3E%3Ccircle cx='174' cy='96' r='4' fill='%23f5f8fc'/%3E%3Ccircle cx='146' cy='54' r='4' fill='%23f5f8fc'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.main-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: min(100%, var(--content-max));
    margin: 0 auto;
    padding: 24px 32px 14px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 10px;
}

.title-block h1 {
    margin: 0;
    color: var(--text-main);
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-xl);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.title-block p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.topbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #28a0ec 0%, #1594e8 100%);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(21, 148, 232, 0.22);
}

.button-light {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

.table-wrap {
    overflow: auto;
}

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

.table-wrap td > .button,
.table-wrap td > .button-light,
.table-wrap td .actions-inline .button {
    min-height: 32px;
    padding: 0 12px;
    font-size: var(--fs-xs);
    white-space: nowrap;
}

.alert {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: var(--fs-sm);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, margin 0.22s ease;
}

.alert.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.alert-success {
    color: #1e824d;
    background: #e9f8ef;
}

.alert-error {
    color: #b33f4d;
    background: #ffedf0;
}

.alert-info {
    color: var(--blue-strong);
    background: var(--blue-soft);
}

.toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 90;
    display: grid;
    gap: 8px;
    width: min(360px, calc(100vw - 24px));
    pointer-events: none;
}

.toast {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid #d7e0ea;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.12);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: auto;
}

.toast.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.toast-body {
    min-width: 0;
}

.toast-title {
    color: var(--text-main);
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.3;
}

.toast-text {
    margin-top: 4px;
    color: #5d6b7e;
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.toast-info .toast-icon {
    color: #0f84d3;
}

.toast-danger .toast-icon {
    color: #c04a5b;
}

.toast-neutral .toast-icon {
    color: #6a7b90;
}

.page-content {
    flex: 1;
    padding-top: 14px;
    min-height: 0;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.05);
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--text);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.admin-tab:hover {
    background: #f5f9ff;
}

.admin-tab.is-active {
    color: var(--blue);
    background: #edf7fe;
    box-shadow: inset 0 0 0 1px rgba(21, 148, 232, 0.08);
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.compact-metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 0 0 18px;
}

.metric-card {
    min-height: 126px;
    padding: 16px 16px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.metric-card-label {
    min-height: 30px;
    color: var(--text);
    font-size: var(--fs-xs);
    line-height: 1.28;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-card-body {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.metric-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--blue);
    background: linear-gradient(180deg, #f7fbff 0%, #eaf5fe 100%);
}

.metric-card-body strong {
    color: var(--blue);
    font-size: var(--fs-lg);
    font-weight: 600;
    line-height: 1;
}

.metric-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.metric-card-line {
    display: block;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: var(--blue);
}

.metric-card-meta {
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.metric-card-meta.is-online {
    position: relative;
    padding-left: 16px;
    color: var(--green);
    font-weight: 600;
}

.metric-card-meta.is-online::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--green);
}

.metric-card-meta.is-offline {
    position: relative;
    padding-left: 16px;
    color: var(--danger);
    font-weight: 600;
}

.metric-card-meta.is-offline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--danger);
}

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

.panel,
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.panel {
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 0 14px 14px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 4px 10px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title h2 {
    margin: 0;
    color: var(--text-main);
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-md);
    font-weight: 800;
}

.panel-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--blue);
    background: linear-gradient(180deg, #f7fbff 0%, #ecf7fe 100%);
}

.panel-meta {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    text-transform: uppercase;
}

.panel-table table {
    font-size: var(--fs-xs);
}

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

.panel-table th,
.panel-table td {
    padding-top: 9px;
    padding-bottom: 9px;
}

.panel-empty {
    display: grid;
    justify-items: center;
    align-content: center;
    flex: 1;
    text-align: center;
    padding: 24px 16px 8px;
}

.panel-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    color: var(--text-muted);
    background: linear-gradient(180deg, #f6fafc 0%, #ecf4fa 100%);
}

.panel-empty-icon svg {
    width: 30px;
    height: 30px;
}

.panel-empty h3 {
    margin: 12px 0 6px;
    color: var(--text-main);
    font-size: var(--fs-md);
    font-weight: 500;
}

.panel-empty p {
    max-width: 280px;
    margin: 0;
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 600;
}

.status-badge-ok {
    color: #1e8a52;
    background: var(--green-soft);
}

.status-badge-idle {
    color: var(--text-muted);
    background: #eef7fd;
}

.status-badge-info {
    color: #0f84d3;
    background: #eef5fb;
}

.status-badge-danger {
    color: #c0392b;
    background: #fdf0ee;
}

.status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 2px 0;
    margin-top: 12px;
    border-top: 1px solid rgba(217, 226, 238, 0.7);
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.site-footer-meta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
}

.footer-status.is-offline .footer-status-dot {
    background: var(--danger);
}

.footer-status.is-warn .footer-status-dot {
    background: #f2a21a;
}

.footer-status.is-idle .footer-status-dot {
    background: #98a9c8;
}

.card {
    padding: 16px;
}

.card h2,
.card h3 {
    margin-top: 0;
    color: var(--text-main);
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-lg);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-bottom: 14px;
    align-items: end;
}

.filters > label {
    flex: 1 1 150px;
    min-width: 150px;
    max-width: 220px;
}

.filters > label:has(.checkbox-label) {
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
}

.filters > button,
.filters > .button,
.filters > a.button {
    flex: 0 0 auto;
    align-self: end;
}

.filters-card {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

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

.filters-grid > label {
    grid-column: span 2;
    min-width: 0;
    max-width: none;
}

.filters-grid > .filter-span-2 {
    grid-column: span 4;
}

.filters-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.filters-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
}

.filters-flags > .filter-check {
    display: flex;
    gap: 0;
}

.filters-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.report-page {
    display: grid;
    gap: 16px;
}

.report-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
    gap: 18px;
    padding: 20px 22px;
    border-left: 3px solid var(--blue);
    background:
        linear-gradient(135deg, rgba(21, 148, 232, 0.05) 0%, rgba(21, 148, 232, 0) 55%),
        #ffffff;
}

.report-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--blue-strong);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-hero h2,
.report-filter-card h2,
.report-summary-card h2 {
    margin: 0;
    color: var(--text-main);
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-lg);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.report-hero p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: var(--fs-md);
    line-height: 1.5;
}

.report-hero-meta {
    display: grid;
    gap: 10px;
    align-content: center;
}

.report-meta-card,
.report-overview-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    background: var(--bg-soft);
}

.report-meta-card span,
.report-overview-item span,
.report-form-note {
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.report-meta-card strong,
.report-overview-item strong {
    color: var(--text-main);
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-md);
    font-weight: 800;
    line-height: 1.2;
}

.report-tool-grid {
    align-items: stretch;
}

.report-filter-card,
.report-summary-card {
    padding: 18px;
}

.report-section-head {
    margin-bottom: 14px;
}

.report-filters-card {
    gap: 14px;
    margin-bottom: 0;
}

.report-filters-grid > label {
    grid-column: span 4;
}

.report-filters-grid > .filter-span-2 {
    grid-column: span 8;
}

.report-filters-footer {
    padding-top: 14px;
}

.report-metrics {
    margin-bottom: 0;
}

.report-metrics .metric-card {
    min-height: 108px;
    padding: 14px 16px;
}

.report-metrics .metric-card-body {
    margin-top: 10px;
}

.report-metrics .metric-card-body strong {
    font-size: var(--fs-lg);
}

.report-panel {
    min-height: 0;
    padding: 0 14px 14px;
}

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

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

.report-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #ffffff;
}

.report-table tbody tr:hover td {
    background: rgba(238, 245, 251, 0.55);
}

.report-cell-stack {
    display: grid;
    gap: 4px;
}

.report-cell-stack strong {
    color: var(--text-main);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.25;
}

.report-cell-stack span {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.35;
}

.report-cell-stack-compact {
    gap: 2px;
}

.report-cell-stack-compact strong {
    font-size: var(--fs-xs);
}

.report-table-number {
    white-space: nowrap;
    font-weight: 600;
}

.report-table-number.is-positive {
    color: #1e8a52;
}

.report-table-number.is-negative {
    color: #b33f4d;
}

.report-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.absence-tool-grid-single {
    grid-template-columns: 1fr;
}

.absence-entry-grid > label {
    grid-column: span 4;
}

.absence-entry-grid > .filter-span-2 {
    grid-column: span 6;
}

.absence-entry-grid > .absence-span-full {
    grid-column: 1 / -1;
}

.absence-metrics .metric-card {
    min-height: 104px;
}

.absence-table {
    min-width: 1140px;
}

.monthly-summary-table {
    min-width: 1450px;
}

.monthly-summary-group-row td {
    background: #f7fafc;
    color: var(--text-main);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.monthly-summary-subtotal-row td,
.monthly-summary-total-row td {
    background: #eef5fb;
    font-weight: 700;
}

.monthly-summary-total-row td {
    border-top: 1px solid #c8d8e8;
}

.client-body {
    margin: 0;
    background:
        radial-gradient(circle at top center, rgba(21, 148, 232, 0.14), transparent 38%),
        linear-gradient(180deg, #fcfdff 0%, #f3f6fa 100%);
}

.client-shell {
    min-height: 100vh;
    padding: max(18px, env(safe-area-inset-top)) 18px calc(94px + env(safe-area-inset-bottom));
}

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

.client-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 800;
    font-size: var(--fs-md);
}

.client-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.client-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #d8e1eb;
    background: rgba(255, 255, 255, 0.92);
    color: #516376;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.client-menu-trigger svg {
    width: 20px;
    height: 20px;
}

.client-menu-trigger:hover {
    border-color: rgba(21, 148, 232, 0.35);
    color: var(--blue-strong);
    background: #ffffff;
}

.client-menu-badge {
    position: absolute;
    top: -4px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--blue-strong);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

.client-main,
.client-page,
.client-report-list {
    display: grid;
    gap: 16px;
}

.client-dashboard-page {
    gap: 18px;
}

.client-card,
.client-kpi-card,
.client-report-day,
.client-request-card {
    border: 1px solid #d8e1eb;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(31, 41, 55, 0.05);
}

.client-card,
.client-report-day {
    padding: 18px;
}

.client-summary-card,
.client-period-card,
.client-events-card {
    display: grid;
    gap: 16px;
}

.client-mobile-hero,
.client-mobile-profile,
.client-summary-grid,
.client-period-grid,
.client-event-list,
.client-request-list,
.client-events-group-list {
    display: grid;
}

.client-mobile-hero,
.client-event-list,
.client-request-list,
.client-events-group-list {
    gap: 10px;
}

.client-mobile-profile {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.client-mobile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0f84d3 0%, #1594e8 100%);
    color: #ffffff;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-md);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.client-mobile-profile-copy {
    min-width: 0;
}

.client-mobile-profile-copy h1 {
    margin: 0;
    color: #10233b;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 28px;
    line-height: 1.05;
}

.client-mobile-profile-copy p,
.client-section-head p,
.client-report-note {
    margin: 6px 0 0;
    color: #75859a;
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.client-status-card {
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid #d8e1eb;
    color: #10233b;
}

.client-status-card.is-on-work {
    border-color: rgba(39, 179, 106, 0.18);
    background: linear-gradient(180deg, #34be74 0%, #21a05b 100%);
    color: #ffffff;
}

.client-status-card.is-closed,
.client-status-card.is-opened {
    background: linear-gradient(180deg, #f7fbff 0%, #edf5fc 100%);
}

.client-status-card-head,
.client-title-row,
.client-event-title-row,
.client-section-head,
.client-menu-sheet-head,
.client-request-head,
.client-report-day-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.client-status-label,
.client-summary-grid span,
.client-period-grid span,
.client-status-meta,
.client-event-time span,
.client-report-day-grid span,
.client-request-meta,
.client-events-group-title {
    color: #73849a;
    font-size: var(--fs-xs);
    line-height: 1.3;
}

.client-status-card.is-on-work .client-status-label,
.client-status-card.is-on-work .client-status-meta,
.client-status-card.is-on-work .client-status-note {
    color: rgba(255, 255, 255, 0.84);
}

.client-status-pill,
.client-period-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(15, 132, 211, 0.16);
    background: rgba(255, 255, 255, 0.8);
    color: #0f84d3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.client-status-card.is-on-work .client-status-pill {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.client-status-title {
    color: inherit;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-lg);
    line-height: 1.1;
}

.client-status-value {
    color: inherit;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.client-status-note,
.client-day-summary {
    margin: 0;
    color: #5f6f82;
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.client-section-head {
    align-items: center;
}

.client-section-head h2 {
    margin: 0;
    color: #10233b;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-lg);
    line-height: 1.1;
}

.client-section-link {
    color: var(--blue-strong);
    font-size: var(--fs-sm);
    font-weight: 700;
    white-space: nowrap;
}

.client-summary-grid,
.client-period-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.client-summary-grid > div,
.client-period-grid > div,
.client-report-day-grid > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #e3eaf2;
    background: #f8fbfd;
}

.client-summary-grid strong,
.client-period-grid strong,
.client-report-day-grid strong,
.client-request-head strong,
.client-report-day-head strong {
    color: #10233b;
    font-size: var(--fs-sm);
    line-height: 1.3;
}

.client-dashboard-button {
    width: 100%;
    justify-content: center;
}

.client-event-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid #e7edf4;
}

.client-event-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.client-event-time strong,
.client-event-device,
.client-report-day-head span:not(.status-badge) {
    display: block;
    color: #10233b;
    font-size: var(--fs-sm);
    line-height: 1.3;
}

.client-event-body {
    min-width: 0;
}

.client-event-title-row {
    align-items: center;
}

.client-event-card {
    margin-top: 8px;
}

.client-events-group + .client-events-group {
    margin-top: 18px;
}

.client-panel-empty-compact {
    padding-top: 6px;
}

.client-events-group-title {
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.client-kpi-card {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid #e0e8f1;
    background: #f8fbfd;
}

.client-kpi-card span,
.client-kpi-card small {
    color: #73849a;
}

.client-kpi-card strong {
    color: #10233b;
    font-size: var(--fs-md);
    line-height: 1.25;
}

.client-kpi-card.is-positive strong {
    color: #148752;
}

.client-kpi-card.is-negative strong {
    color: #c0392b;
}

.client-report-day-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.client-report-day-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.client-report-day-grid-wide {
    grid-column: 1 / -1;
}

.client-month-switcher {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.client-month-switcher strong {
    color: #10233b;
    font-size: var(--fs-md);
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
}

.client-month-switcher .button:last-child,
.client-month-switcher-spacer {
    justify-self: end;
}

.client-month-switcher-spacer {
    display: block;
    width: 100%;
    min-height: 1px;
}

.client-filters-grid > label {
    grid-column: 1 / -1;
}

.client-filters-grid > [hidden] {
    display: none !important;
}

.client-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(206, 217, 229, 0.92);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 32px rgba(31, 41, 55, 0.08);
    z-index: 40;
}

.client-nav-link {
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 8px 4px;
    color: #66778d;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    min-width: 0;
}

.client-nav-icon {
    position: relative;
    display: inline-flex;
    width: 19px;
    height: 19px;
}

.client-nav-link.is-active {
    color: var(--blue-strong);
}

.client-nav-link.is-active .client-nav-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 18px;
    height: 2px;
    background: var(--blue-strong);
    transform: translateX(-50%);
}

.client-request-list {
    gap: 10px;
}

.client-request-card {
    padding: 14px;
    border: 1px solid #d8e3ed;
    background: #f8fbfe;
}

.client-request-meta {
    margin-top: 6px;
    line-height: 1.4;
}

.client-request-text {
    margin-top: 8px;
    color: #10233b;
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.client-request-text-muted {
    color: #5d6b7e;
}

.client-request-actions {
    margin-top: 10px;
}

.client-hero-card {
    display: grid;
    gap: 14px;
}

.client-kpi-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.client-menu-modal .client-modal-backdrop {
    background: rgba(15, 28, 45, 0.3);
}

.client-menu-sheet {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100% - 28px));
    margin: max(20px, env(safe-area-inset-top)) auto 0;
    padding: 18px;
    border: 1px solid #d8e1eb;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.12);
}

.client-menu-sheet-head {
    align-items: center;
    margin-bottom: 14px;
}

.client-menu-sheet-head strong {
    color: #10233b;
    font-size: var(--fs-md);
    font-weight: 800;
}

.client-menu-sheet-list {
    display: grid;
    gap: 8px;
}

.client-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #dbe4ee;
    background: #f8fbfd;
    color: #10233b;
    font-size: var(--fs-sm);
    font-weight: 700;
}

.client-menu-link-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: #5e7388;
}

.client-menu-link-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--blue-strong);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.client-menu-logout-form {
    margin: 0;
}

.client-menu-link-danger {
    width: 100%;
    cursor: pointer;
}

.client-menu-link-danger .client-menu-link-icon,
.client-menu-link-danger {
    color: #a84343;
}

.client-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
}

body.is-modal-open {
    overflow: hidden;
}

.client-modal[hidden] {
    display: none;
}

.client-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 31, 53, 0.42);
    backdrop-filter: blur(4px);
}

.client-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(560px, 100%);
    height: 100dvh;
    margin: 0 auto;
    padding: 0 0 calc(20px + env(safe-area-inset-bottom));
    background:
        linear-gradient(180deg, rgba(246, 250, 255, 0.96) 0%, #ffffff 160px);
    overflow: auto;
}

.client-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: calc(18px + env(safe-area-inset-top)) 18px 14px;
    background: rgba(248, 251, 255, 0.92);
    border-bottom: 1px solid rgba(223, 231, 240, 0.94);
    backdrop-filter: blur(18px);
}

.client-modal-head h2 {
    margin: 0;
    color: #10233b;
    font-size: var(--fs-lg);
    line-height: 1.15;
}

.client-modal-head p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    line-height: 1.4;
}

.client-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7d91;
    cursor: pointer;
}

.client-modal-close svg {
    width: 16px;
    height: 16px;
}

.client-modal-close:hover {
    color: var(--text-main);
}

.client-modal-form {
    display: grid;
    min-height: calc(100dvh - 96px);
}

.client-modal-form-flow {
    display: grid;
    gap: 14px;
    padding: 16px 16px 120px;
}

.client-form-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e9f1;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(22, 37, 61, 0.045);
}

.client-form-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.client-form-section-head strong {
    color: #10233b;
    font-size: var(--fs-md);
    font-weight: 800;
    line-height: 1.2;
}

.client-form-section-head span {
    color: #7b8798;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.client-app-form-grid {
    gap: 12px;
}

.client-app-form-grid > label {
    padding: 12px;
    border: 1px solid #e3e9f1;
    background: #f9fbfd;
    border-radius: 16px;
}

.client-app-form-grid > .client-form-field-hero {
    grid-column: 1 / -1;
}

.client-app-form-grid > label > span {
    color: #62748a;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.client-app-form-grid input,
.client-app-form-grid select,
.client-app-form-grid textarea {
    padding: 14px 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.client-app-form-grid input:focus,
.client-app-form-grid select:focus,
.client-app-form-grid textarea:focus {
    box-shadow: none;
}

.client-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid;
    gap: 12px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(223, 231, 240, 0.98);
    backdrop-filter: blur(18px);
}

.client-form-note-box {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #dce7f4;
    background: #f7fbff;
    border-radius: 16px;
    color: #5e7188;
}

.client-modal-actions-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.client-body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 240px;
    background:
        linear-gradient(90deg, rgba(21, 148, 232, 0.06) 0, rgba(21, 148, 232, 0.06) 1px, transparent 1px, transparent 22px),
        linear-gradient(rgba(21, 148, 232, 0.05) 0, rgba(21, 148, 232, 0.05) 1px, transparent 1px, transparent 22px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 100%);
    opacity: 0.35;
    pointer-events: none;
}

.client-shell {
    position: relative;
    max-width: 402px;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.client-topbar {
    margin-bottom: 20px;
}

.client-brand img {
    width: 36px;
    height: 36px;
}

.client-brand span {
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
}

.client-menu-trigger {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #2b73f6;
}

.client-menu-trigger svg {
    width: 24px;
    height: 24px;
}

.client-mobile-profile {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.client-mobile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: linear-gradient(180deg, #edf4ff 0%, #e7f0ff 100%);
    color: #2b73f6;
    box-shadow: inset 0 0 0 1px rgba(43, 115, 246, 0.05);
}

.client-mobile-avatar svg {
    width: 32px;
    height: 32px;
}

.client-mobile-profile-copy h1 {
    font-size: 20px;
    font-weight: 800;
}

.client-mobile-profile-copy p {
    margin-top: 4px;
    font-size: 14px;
    color: #6f7b8f;
}

.client-mobile-section {
    display: grid;
    gap: 10px;
}

.client-mobile-section-title,
.client-mobile-section-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.client-mobile-section-title h2,
.client-mobile-section-headline h2 {
    margin: 0;
    color: #0f1726;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.client-mobile-section-title {
    justify-content: flex-start;
}

.client-mobile-section-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    color: #2b73f6;
}

.client-mobile-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2b73f6;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.client-mobile-link svg {
    width: 14px;
    height: 14px;
}

.client-mobile-link-muted {
    color: #7d889a;
}

.client-mobile-link-static {
    color: #2b73f6;
}

.client-status-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid #dbe5f0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.05);
}

.client-status-card-top,
.client-status-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.client-status-card-body {
    justify-content: flex-start;
}

.client-status-card-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}

.client-status-card-label-enter,
.client-status-pill-enter,
.client-status-icon-wrap-enter {
    color: #18ad58;
}

.client-status-card-label-leave,
.client-status-pill-leave,
.client-status-icon-wrap-leave {
    color: #ef5f5f;
}

.client-status-card-label-idle,
.client-status-pill-idle,
.client-status-icon-wrap-idle {
    color: #7a8799;
}

.client-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.85;
}

.client-status-pill {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    border: 0;
    background: rgba(24, 173, 88, 0.1);
    font-size: 14px;
    font-weight: 800;
}

.client-status-pill-leave {
    background: rgba(239, 95, 95, 0.1);
}

.client-status-pill-idle {
    background: rgba(122, 135, 153, 0.1);
}

.client-status-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: rgba(24, 173, 88, 0.12);
    flex: 0 0 auto;
}

.client-status-icon-wrap svg {
    width: 32px;
    height: 32px;
}

.client-status-icon-wrap-leave {
    background: rgba(239, 95, 95, 0.1);
}

.client-status-icon-wrap-idle {
    background: rgba(122, 135, 153, 0.1);
}

.client-status-card-copy {
    min-width: 0;
}

.client-status-title {
    color: #596579;
    font-size: 14px;
    line-height: 1.35;
}

.client-status-value {
    margin-top: 6px;
    color: #0f1726;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.05;
}

.client-status-caption {
    margin-top: 8px;
    color: #606d81;
    font-size: 14px;
    line-height: 1.35;
}

.client-mobile-stat-card,
.client-mobile-events-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe5f0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.05);
}

.client-mobile-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-mobile-stat-note {
    padding: 0 12px 12px;
    color: #7a8799;
    font-size: 11px;
    line-height: 1.35;
    text-align: right;
}

.client-mobile-stat-item {
    min-width: 0;
    padding: 16px 12px;
    display: grid;
    gap: 5px;
    position: relative;
}

.client-mobile-stat-item + .client-mobile-stat-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: #dbe5f0;
}

.client-mobile-stat-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    color: #2b73f6;
}

.client-mobile-stat-label {
    color: #6f7b8f;
    font-size: 13px;
    line-height: 1.35;
}

.client-mobile-stat-item strong {
    color: #0f1726;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}

.client-mobile-event-list {
    display: grid;
}

.client-mobile-event-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.client-mobile-event-row + .client-mobile-event-row {
    border-top: 1px solid #e6edf5;
}

.client-mobile-event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.client-mobile-event-badge.is-enter {
    color: #18ad58;
    background: rgba(24, 173, 88, 0.12);
}

.client-mobile-event-badge.is-leave {
    color: #ef5f5f;
    background: rgba(239, 95, 95, 0.12);
}

.client-mobile-event-copy {
    min-width: 0;
}

.client-mobile-event-copy strong {
    display: block;
    color: #0f1726;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.client-mobile-event-copy span,
.client-mobile-event-meta span:first-child {
    display: block;
    margin-top: 3px;
    color: #707c90;
    font-size: 12px;
    line-height: 1.35;
}

.client-mobile-event-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6f7b8f;
    white-space: nowrap;
}

.client-mobile-event-arrow {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: #7d889a;
}

.client-mobile-action {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
}

.client-nav {
    left: 0;
    right: 0;
    bottom: 0;
    gap: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid #dbe5f0;
    border-radius: 0;
    box-shadow: 0 -8px 24px rgba(31, 41, 55, 0.04);
    background: rgba(255, 255, 255, 0.98);
}

.client-nav-link {
    padding: 8px 4px 4px;
    color: #7b8597;
    font-size: 11px;
}

.client-nav-icon {
    width: 24px;
    height: 24px;
}

.client-nav-link.is-active .client-nav-icon::after {
    display: none;
}

.client-nav-link.is-active .client-nav-icon,
.client-nav-link.is-active {
    color: #2b73f6;
}

.client-menu-sheet {
    width: min(332px, calc(100% - 24px));
    margin-right: 12px;
    margin-left: auto;
    border-radius: 18px;
}

@media (max-width: 560px) {
    .client-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .client-mobile-avatar {
        width: 64px;
        height: 64px;
    }

    .client-mobile-avatar svg {
        width: 28px;
        height: 28px;
    }

    .client-mobile-profile-copy h1 {
        font-size: 18px;
    }

    .client-status-icon-wrap {
        width: 72px;
        height: 72px;
    }

    .client-status-icon-wrap svg {
        width: 30px;
        height: 30px;
    }

    .client-status-value {
        font-size: 22px;
    }

    .client-mobile-section-headline {
        align-items: flex-end;
    }

    .client-report-day-head .status-badge {
        align-self: flex-start;
    }

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

@media (max-width: 420px) {
    .client-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .client-month-switcher {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-month-switcher strong {
        grid-column: 1 / -1;
        order: -1;
    }

    .client-month-switcher .button,
    .client-month-switcher-spacer {
        width: 100%;
        justify-self: stretch;
    }

    .client-month-switcher .button:last-child,
    .client-month-switcher-spacer {
        justify-self: stretch;
    }

    .client-nav-link {
        font-size: 10px;
    }

    .client-mobile-event-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 13px 14px;
    }

    .client-mobile-event-badge {
        min-width: 48px;
        height: 32px;
        padding: 0 8px;
        font-size: 11px;
    }

    .client-mobile-event-copy strong {
        font-size: 14px;
    }
}

@media (min-width: 961px) {
    .client-shell {
        width: min(402px, 100%);
        margin: 0 auto;
        padding-left: 16px;
        padding-right: 16px;
    }
}

.absence-table tbody tr:hover td:first-child {
    box-shadow: inset 2px 0 0 var(--blue);
}

.absence-employee-link {
    color: inherit;
    text-decoration: none;
}

.absence-employee-link:hover strong {
    color: var(--blue-strong);
    text-decoration: underline;
}

.absence-request-decision-cell {
    min-width: 280px;
}

.absence-request-decision-form {
    display: grid;
    gap: 8px;
}

.absence-request-decision-form input[type="text"] {
    min-width: 0;
}

.filters-card-timesheet .filters-grid > label:nth-child(1),
.filters-card-timesheet .filters-grid > label:nth-child(2),
.filters-card-timesheet .filters-grid > label:nth-child(3),
.filters-card-timesheet .filters-grid > label:nth-child(4) {
    grid-column: span 2;
}

@media (max-width: 1360px) {
    .filters-grid > label {
        grid-column: span 3;
    }

    .filters-grid > .filter-span-2 {
        grid-column: span 6;
    }

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

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

@media (max-width: 980px) {
    .filters-grid > label,
    .filters-grid > .filter-span-2 {
        grid-column: span 6;
    }

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

@media (max-width: 720px) {
    .filters-footer,
    .filters-actions {
        width: 100%;
    }

    .filters-actions {
        margin-left: 0;
        justify-content: stretch;
    }

    .filters-actions .button,
    .filters-actions a.button {
        flex: 1 1 0;
    }

    .filters-grid > label,
    .filters-grid > .filter-span-2 {
        grid-column: 1 / -1;
    }

    .report-hero,
    .report-filter-card,
    .report-summary-card {
        padding: 16px;
    }

    .report-hero-meta,
    .report-overview-grid {
        grid-template-columns: 1fr;
    }
}

.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.grid {
    display: grid;
    gap: 14px;
}

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

.grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.table-wrap {
    overflow: auto;
}

.actions-inline {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.actions-inline > * {
    flex: 0 0 auto;
}

.guest-body {
    display: grid;
}

.auth-wrap {
    width: min(1080px, 100%);
}

.auth-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(70, 105, 170, 0.16);
}

.brand-panel {
    padding: 34px;
    color: #fff;
    background: linear-gradient(135deg, #0f84d3 0%, #1594e8 58%, #52b8ef 100%);
}

.auth-brand-lockup {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-logo {
    width: 72px;
    height: 72px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.18);
}

.auth-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-kicker {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.brand-panel h1 {
    margin: 8px 0 0;
    font-size: var(--fs-xl);
    line-height: 1;
}

.brand-panel p {
    margin: 16px 0 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--fs-md);
}

.brand-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.brand-pills span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: var(--fs-xs);
}

.auth-form-wrap {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: 32px;
    background: linear-gradient(180deg, #fdfefe 0%, #f5f9ff 100%);
}

.auth-form-intro h2 {
    margin: 8px 0 8px;
    color: var(--text-main);
    font-size: var(--fs-lg);
    line-height: 1;
}

.auth-form-intro p {
    margin: 0;
    color: var(--text-muted);
}

.metric-label {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

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

.auth-note {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.empty-state {
    max-width: 520px;
    padding: 42px;
    text-align: center;
}

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

@media (max-width: 1440px) {
    .dashboard-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

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

    .sidebar {
        gap: 14px;
        padding-bottom: 18px;
    }

    .sidebar-footer {
        display: none;
    }

    .menu {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .dashboard-grid,
    .grid.cols-2,
    .grid.cols-4,
    .auth-panel {
        grid-template-columns: 1fr;
    }

    .main-inner {
        padding: 18px;
    }
}

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

    .topbar,
    .page-actions,
    .site-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .title-block h1 {
        font-size: var(--fs-xl);
    }

    .topbar-actions,
    .site-footer-meta {
        flex-wrap: wrap;
    }

    .guest-body,
    .main-inner {
        padding: 18px;
    }

    .brand-panel,
    .auth-form-wrap {
        padding: 24px;
    }
}

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

    .brand-logo-wrap {
        width: 150px;
    }

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

/* Auth Page */
.guest-body {
    display: block;
    padding: 0;
}

.guest-alerts {
    position: fixed;
    left: 24px;
    right: 24px;
    top: 18px;
    z-index: 20;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top center, rgba(21, 148, 232, 0.08), transparent 34%),
        linear-gradient(180deg, #fcfdff 0%, #f5f7fa 100%);
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px clamp(36px, 4vw, 72px) 14px;
    border-bottom: 1px solid rgba(217, 226, 238, 0.72);
}

.auth-header-brand img {
    display: block;
    width: 160px;
    height: auto;
}

.auth-header-help {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.auth-header-help-icon,
.auth-input-icon,
.auth-password-toggle,
.auth-login-security-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-header-help-icon svg,
.auth-input-icon svg,
.auth-password-toggle svg,
.auth-login-security-icon svg {
    width: 20px;
    height: 20px;
}

.auth-layout {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(500px, 0.96fr);
    gap: 44px;
    align-items: center;
    width: min(100%, var(--content-max));
    margin: 0 auto;
    padding: 26px clamp(36px, 4vw, 72px) 22px;
}

.auth-showcase {
    position: relative;
    min-height: 560px;
    padding: 34px 12px 20px 6px;
}

.auth-showcase-pattern {
    position: absolute;
    inset: 0 3% 16% 0;
    background-image: url("data:image/svg+xml,%3Csvg width='940' height='560' viewBox='0 0 940 560' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.58' stroke='%23e7eef7' stroke-width='2'%3E%3Cpath d='M0 94h86l24-24h120l22 22h120l24-24h106l22 22h160'/%3E%3Cpath d='M0 142h148l18-18h132l18 18h116l28-28h120l18 18h170'/%3E%3Cpath d='M0 196h98l24-24h110l24 24h160l22-22h132l22 22h146'/%3E%3Cpath d='M0 250h158l18-18h126l18 18h112l24-24h138l18 18h178'/%3E%3Cpath d='M0 304h90l28-28h102l20 20h148l22-22h128l18 18h188'/%3E%3Cpath d='M0 362h172l18-18h108l22 22h144l24-24h110l20 20h184'/%3E%3Cpath d='M0 420h124l24-24h136l18 18h132l24-24h158l18 18h192'/%3E%3Ccircle cx='198' cy='124' r='6' fill='%23f2f7fc'/%3E%3Ccircle cx='300' cy='94' r='6' fill='%23f2f7fc'/%3E%3Ccircle cx='520' cy='142' r='6' fill='%23f2f7fc'/%3E%3Ccircle cx='680' cy='112' r='6' fill='%23f2f7fc'/%3E%3Ccircle cx='808' cy='198' r='6' fill='%23f2f7fc'/%3E%3Ccircle cx='590' cy='272' r='6' fill='%23f2f7fc'/%3E%3Ccircle cx='380' cy='338' r='6' fill='%23f2f7fc'/%3E%3Ccircle cx='252' cy='404' r='6' fill='%23f2f7fc'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: contain;
    pointer-events: none;
}

.auth-showcase-copy {
    position: relative;
    z-index: 1;
    max-width: 470px;
    margin-top: 66px;
}

.auth-showcase-copy h1 {
    margin: 0;
    color: var(--text-main);
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-xl);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-showcase-copy h1 span {
    color: var(--blue);
}

.auth-showcase-copy p {
    margin: 22px 0 0;
    max-width: 420px;
    color: var(--text-muted);
    font-size: var(--fs-lg);
    line-height: 1.38;
}

.auth-benefits {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
    margin-top: 42px;
    max-width: 640px;
}

.auth-benefit-card {
    flex: 1 1 0;
    min-width: 0;
    padding: 20px 16px 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(220, 229, 240, 0.96);
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(12px);
}

.auth-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--blue);
    border-radius: 14px;
    background: linear-gradient(180deg, #f7fbff 0%, #eaf5fe 100%);
}

.auth-benefit-icon svg {
    width: 22px;
    height: 22px;
}

.auth-benefit-card h3 {
    margin: 14px 0 8px;
    color: var(--text-main);
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-sm);
    line-height: 1.4;
    font-weight: 800;
}

.auth-benefit-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
}

.auth-factory {
    position: absolute;
    left: 0;
    right: 10%;
    bottom: 0;
    height: 112px;
    display: flex;
    align-items: end;
    gap: 10px;
    opacity: 0.36;
    pointer-events: none;
}

.auth-factory-spool {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 9px solid #d9e4f2;
    box-shadow: inset 0 0 0 8px rgba(223, 232, 242, 0.88);
    position: relative;
}

.auth-factory-spool::before,
.auth-factory-spool::after {
    content: "";
    position: absolute;
    top: 50%;
    margin-top: -2px;
    height: 4px;
    background: #d9e4f2;
}

.auth-factory-spool::before {
    left: -14px;
    width: 14px;
}

.auth-factory-spool::after {
    right: -14px;
    width: 14px;
}

.auth-factory-unit {
    width: 62px;
    height: 46px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, rgba(216, 225, 236, 0.96), rgba(232, 238, 246, 0.8));
}

.auth-factory-unit-lg {
    width: 108px;
    height: 72px;
}

.auth-factory-unit-sm {
    width: 50px;
    height: 38px;
}

.auth-factory-unit-xs {
    width: 36px;
    height: 30px;
}

.auth-login-card {
    width: min(560px, 100%);
    justify-self: end;
    padding: 46px 52px 40px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(225, 232, 241, 0.98);
    border-radius: 28px;
    box-shadow: 0 26px 64px rgba(31, 41, 55, 0.1);
    backdrop-filter: blur(14px);
}

.auth-login-head h2 {
    margin: 0;
    color: var(--text-main);
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-xl);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-login-head p {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: var(--fs-md);
    line-height: 1.45;
}

.auth-login-form {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.auth-login-field {
    display: grid;
    gap: 10px;
    color: var(--text-main);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.auth-input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #d7e0eb;
    border-radius: 12px;
}

.auth-input-shell:focus-within {
    border-color: rgba(21, 148, 232, 0.36);
    box-shadow: 0 0 0 4px rgba(21, 148, 232, 0.08);
}

.auth-input-shell input {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    height: 100%;
    font-size: var(--fs-sm);
}

.auth-input-shell input::placeholder {
    color: #aeb7c4;
}

.auth-input-shell input:focus {
    box-shadow: none;
}

.auth-password-toggle {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.auth-input-icon {
    color: #94a3b8;
}

.auth-password-toggle.is-active {
    color: var(--blue);
}

.auth-login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 2px;
}

.auth-login-checkbox {
    color: var(--text-main);
    font-weight: 400;
    font-size: var(--fs-xs);
}

.auth-login-checkbox input[type="checkbox"] {
    appearance: none;
    width: 18px;
    min-width: 18px;
    height: 18px;
    border: 1.5px solid #c3cfdd;
    border-radius: 4px;
    background: #ffffff;
    position: relative;
    box-shadow: none;
}

.auth-login-checkbox input[type="checkbox"]:checked {
    border-color: var(--blue);
    background: var(--blue);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6.2L4.5 8.7L10 3.2' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.auth-login-link {
    color: var(--blue);
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.2;
}

.auth-login-submit {
    width: 100%;
    min-height: 58px;
    margin-top: 4px;
    border-radius: 12px;
    font-size: var(--fs-sm);
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(21, 148, 232, 0.2);
}

.auth-login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #8e9bb0;
    font-size: var(--fs-xs);
    margin-top: 14px;
}

.auth-login-divider span {
    flex: 1;
    height: 1px;
    background: #dbe4ee;
}

.auth-login-divider em {
    font-style: normal;
    letter-spacing: 0.02em;
}

.auth-login-security {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.35;
    padding-top: 4px;
    text-align: center;
}

.auth-support-note {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.55;
}

.auth-support-note-muted {
    padding: 14px 16px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #f8fafc;
}

.profile-push {
    display: grid;
    gap: 14px;
}

.profile-settings-page {
    display: grid;
    gap: 18px;
    align-content: start;
}

.profile-settings-hero {
    padding: 22px 24px;
    border: 1px solid rgba(18, 58, 112, 0.08);
    background:
        linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(13, 110, 253, 0.02) 42%, rgba(255, 255, 255, 0.96) 100%),
        #ffffff;
}

.profile-settings-hero-copy {
    display: grid;
    gap: 8px;
    max-width: 720px;
}

.profile-settings-hero-copy h1 {
    margin: 0;
}

.profile-settings-hero-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

.profile-settings-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    align-items: stretch;
}

.profile-settings-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #f8fbff;
    color: #24384f;
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 700;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.profile-settings-nav-link:hover,
.profile-settings-nav-link:focus-visible {
    border-color: rgba(13, 110, 253, 0.24);
    background: #eef5ff;
    color: #0a56c3;
    transform: translateY(-1px);
}

.profile-settings-nav-link.is-active {
    border-color: rgba(13, 110, 253, 0.28);
    background: linear-gradient(180deg, #eef5ff 0%, #e6f0ff 100%);
    color: #0a56c3;
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.04);
}

.profile-settings-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--blue);
    flex: 0 0 auto;
}

.profile-settings-nav-icon svg {
    width: 16px;
    height: 16px;
}

.profile-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    align-items: start;
}

.profile-settings-section {
    display: grid;
    gap: 16px;
    scroll-margin-top: 110px;
}

.profile-settings-section > h2,
.profile-settings-section .client-section-head h2 {
    margin: 0;
}

.profile-settings-section form.grid {
    gap: 14px;
}

.profile-settings-section .auth-support-note,
.profile-settings-section .auth-support-note-muted {
    margin-top: 0;
}

.profile-settings-stack {
    display: grid;
    gap: 14px;
}

.profile-settings-subsection {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.profile-settings-subsection-head {
    display: grid;
    gap: 6px;
}

.profile-settings-subsection-head h3 {
    margin: 0;
    color: #10233b;
    font-size: var(--fs-md);
    line-height: 1.35;
}

.profile-settings-subsection-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
}

.profile-device-list {
    display: grid;
    gap: 12px;
}

.profile-device-card {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #ffffff;
}

.profile-device-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.profile-device-main {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-width: 0;
}

.profile-device-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--blue);
}

.profile-device-icon svg {
    width: 20px;
    height: 20px;
}

.profile-device-meta {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.profile-device-meta strong {
    color: #10233b;
    font-size: var(--fs-sm);
    line-height: 1.35;
}

.profile-device-meta span {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.45;
    word-break: break-word;
}

.profile-device-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 700;
    white-space: nowrap;
}

.profile-device-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.profile-device-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.1);
    color: #0a56c3;
    font-size: var(--fs-xs);
    font-weight: 700;
    white-space: nowrap;
}

.profile-device-latest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: #0f9f6e;
    font-size: var(--fs-xs);
    font-weight: 700;
    white-space: nowrap;
}

.profile-device-card.is-current {
    border-color: rgba(13, 110, 253, 0.22);
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.05);
}

.profile-device-status.is-active {
    background: rgba(16, 185, 129, 0.12);
    color: #0f9f6e;
}

.profile-device-status.is-problem {
    background: rgba(239, 68, 68, 0.12);
    color: #d14343;
}

.profile-device-status.is-neutral {
    background: rgba(100, 116, 139, 0.12);
    color: #516074;
}

.profile-device-details {
    display: grid;
    gap: 4px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.profile-device-actions {
    display: flex;
    justify-content: flex-start;
}

.profile-device-empty {
    display: grid;
    gap: 6px;
    padding: 18px 16px;
    border: 1px dashed #cfdae5;
    border-radius: 14px;
    background: #fbfdff;
}

.profile-device-empty strong,
.profile-device-empty p {
    margin: 0;
}

.profile-device-empty p {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
}

@media (max-width: 560px) {
    .profile-device-head {
        flex-direction: column;
    }

    .profile-device-badges {
        justify-content: flex-start;
    }
}

.profile-meta-list {
    display: grid;
    gap: 10px;
}

.profile-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #f8fbff;
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.profile-meta-row strong {
    color: var(--text-main);
    font-size: var(--fs-sm);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-support-list {
    display: grid;
    gap: 12px;
}

.auth-support-list-wide {
    margin-top: 2px;
}

.auth-support-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.06);
}

.auth-support-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f4fbff 0%, #eaf5fe 100%);
    color: var(--blue);
}

.auth-support-item-icon svg {
    width: 22px;
    height: 22px;
}

.auth-support-item-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.auth-support-item-label {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-support-item-value {
    color: var(--text-main);
    font-size: var(--fs-sm);
    font-weight: 700;
    word-break: break-word;
}

.auth-support-item-meta {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.4;
}

.auth-support-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.auth-support-button {
    width: 100%;
    min-height: 50px;
}

.auth-support-actions .auth-login-link {
    text-align: center;
}

.auth-page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px clamp(36px, 4vw, 72px) 18px;
    border-top: 1px solid rgba(217, 226, 238, 0.72);
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.auth-page-footer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 1180px) {
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 22px 40px 16px;
    }

    .auth-login-card {
        justify-self: stretch;
        width: 100%;
    }

    .auth-showcase {
        min-height: auto;
        padding: 18px 6px 0;
    }

    .auth-showcase-copy {
        margin-top: 32px;
    }

    .auth-factory {
        position: relative;
        inset: auto;
        margin-top: 26px;
        right: auto;
    }
}

@media (max-width: 760px) {
    .auth-header,
    .auth-page-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .auth-showcase-copy h1 {
        font-size: var(--fs-xl);
    }

    .auth-benefits,
    .auth-login-row,
    .auth-page-footer,
    .auth-page-footer-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-login-card {
        padding: 30px 28px 26px;
    }

    .auth-login-head h2 {
        font-size: var(--fs-xl);
    }
}

@media (max-width: 560px) {
    .auth-header {
        padding-top: 16px;
        padding-bottom: 12px;
    }

    .auth-header-brand img {
        width: 152px;
    }

    .auth-layout {
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 14px;
    }

    .auth-showcase-copy h1 {
        font-size: var(--fs-xl);
    }

    .auth-showcase-copy p {
        font-size: var(--fs-md);
    }
}

@media (max-width: 760px) {
    .profile-settings-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 8px;
        gap: 8px;
        scrollbar-width: none;
    }

    .profile-settings-nav::-webkit-scrollbar {
        display: none;
    }

    .profile-settings-nav-link {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 12px;
    }

    .profile-settings-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .profile-settings-hero {
        padding: 18px 18px 20px;
    }
}

/* Industrial UI Overrides */
:root {
    --panel: #ffffff;
    --shadow: 0 4px 14px rgba(31, 41, 55, 0.06);
    --radius-xl: 10px;
    --radius-lg: 8px;
    --radius-md: 6px;
}

body,
.main,
.auth-page {
    background: #f5f7fa;
}

.main::before,
.main::after,
.sidebar::before,
.auth-showcase-pattern {
    opacity: 0.28;
}

.sidebar {
    padding: 22px 14px 16px;
    background: #f7f9fc;
    border-right: 1px solid #d7e0ea;
    box-shadow: none;
}

.brand {
    padding-bottom: 16px;
}

.menu {
    gap: 0;
    padding-top: 8px;
}

.menu-link,
.menu-collapse {
    min-height: 42px;
    border-radius: 0;
}

.menu-link {
    padding: 0 12px 0 16px;
    color: #526172;
    border: 0;
    background: transparent;
}

.menu-link:hover,
.menu-collapse:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.menu-link.is-active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.menu-link.is-active::before {
    left: -2px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0;
}

.menu-link .menu-icon {
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.menu-link:hover .menu-icon,
.menu-link.is-active .menu-icon {
    border-color: transparent;
    background: transparent;
}

.sidebar-footer {
    padding-top: 14px;
}

.sidebar-footer::before {
    margin: 0 12px 6px;
    background: #dde5ee;
}

.shell.is-collapsed .menu-link {
    min-height: 42px;
}

.shell.is-collapsed .menu-link.is-active::before {
    left: 4px;
}

.menu-link:hover {
    color: var(--text-main);
}

.menu-link.is-active,
.menu-link.is-active .menu-icon {
    color: var(--text-main);
}

.menu-collapse {
    padding: 0 12px 0 16px;
    border: 0;
    background: transparent;
}

input,
select,
textarea,
.auth-input-shell {
    border-radius: 6px;
    background: #ffffff;
}

.button,
.button-light {
    min-height: 38px;
    border-radius: 6px;
    box-shadow: none;
}

.button {
    background: #1594e8;
}

.button-light {
    background: #ffffff;
}

.alert,
.admin-tabs,
.admin-tab,
.metric-card,
.panel,
.card,
.status-badge,
.auth-benefit-card,
.auth-login-card,
.auth-support-item,
.auth-support-item-icon,
.profile-meta-row,
.auth-support-note-muted {
    border-radius: 8px;
}

.admin-tabs,
.metric-card,
.panel,
.card,
.auth-benefit-card,
.auth-login-card,
.auth-support-item,
.profile-meta-row {
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    border-color: #d7e0ea;
}

.admin-tabs {
    padding: 4px;
}

.admin-tab {
    min-height: 36px;
    border-radius: 6px;
}

.admin-tab:hover {
    background: #f2f6fa;
}

.admin-tab.is-active {
    background: #eef5fb;
    box-shadow: none;
}

.metric-card,
.panel,
.card {
    border-width: 1px;
}

.metric-card {
    min-height: 118px;
}

.metric-card-icon,
.panel-title-icon,
.panel-empty-icon,
.auth-benefit-icon,
.auth-support-item-icon {
    border-radius: 6px;
    background: #eef5fb;
}

.metric-card-icon,
.panel-title-icon,
.auth-benefit-icon,
.auth-support-item-icon {
    width: 36px;
    height: 36px;
}

.panel-empty-icon {
    width: 56px;
    height: 56px;
}

.metric-card-line {
    height: 2px;
    border-radius: 0;
}

.metric-card-meta.is-online::before,
.metric-card-meta.is-offline::before,
.footer-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
}

th {
    color: #556476;
    font-weight: 600;
}

th,
td {
    padding-top: 11px;
    padding-bottom: 11px;
}

.table-wrap table,
.panel-table table {
    border-collapse: separate;
    border-spacing: 0;
}

.panel {
    padding-bottom: 12px;
}

.panel-header {
    padding-bottom: 12px;
    border-bottom: 1px solid #e6edf4;
}

.panel-empty h3 {
    font-weight: 700;
}

.site-footer {
    border-top-color: #d7e0ea;
}

.auth-header,
.auth-page-footer {
    border-color: #d7e0ea;
}

.auth-showcase {
    min-height: 520px;
}

.auth-benefit-card,
.auth-login-card {
    backdrop-filter: none;
}

.auth-login-card {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}

.auth-benefits {
    gap: 10px;
}

.auth-factory {
    display: none;
}

.auth-login-submit {
    min-height: 50px;
    box-shadow: none;
}

.auth-support-item {
    background: #ffffff;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-clock,
.topbar-trigger {
    display: inline-flex;
    align-items: center;
    height: 52px;
    background: #ffffff;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    box-sizing: border-box;
}

.topbar-clock {
    min-width: 280px;
    padding: 0 14px;
    display: grid;
    align-content: center;
    align-items: flex-start;
    row-gap: 2px;
}

.topbar-clock-time {
    color: var(--text-main);
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-md);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.topbar-clock-date {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.1;
    text-transform: capitalize;
}

.topbar-dropdown {
    position: relative;
}

.topbar-trigger {
    gap: 10px;
    padding: 0 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
    justify-content: center;
}

.topbar-trigger:hover,
.topbar-dropdown.is-open .topbar-trigger {
    background: #ffffff;
    border-color: #c9d5e2;
}

.topbar-trigger-icon,
.topbar-menu-link-icon,
.topbar-notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #65758a;
    flex: 0 0 auto;
}

.topbar-notifications-trigger {
    position: relative;
    width: 52px;
    min-width: 52px;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.topbar-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1594e8;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
}

.topbar-profile-trigger {
    min-width: 220px;
    justify-content: flex-start;
    padding-right: 16px;
}

.topbar-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #eef5fb;
    color: #0f84d3;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.04em;
    flex: 0 0 auto;
    border-radius: 999px;
}

.topbar-avatar-lg {
    width: 40px;
    height: 40px;
    font-size: var(--fs-sm);
}

.topbar-profile-copy {
    display: grid;
    gap: 2px;
    align-content: center;
    text-align: left;
}

.topbar-profile-copy strong,
.topbar-menu-link > span:last-child {
    color: var(--text-main);
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.2;
}

.topbar-profile-copy small,
.topbar-notification-meta {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.2;
}

.topbar-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: #ffffff;
    border: 1px solid #d7e0ea;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
    z-index: 30;
}

.topbar-menu-profile {
    width: 270px;
}

.topbar-menu-head,
.topbar-menu-footer,
.topbar-menu-link,
.topbar-menu-empty {
    padding-left: 14px;
    padding-right: 14px;
}

.topbar-menu-head {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e6edf4;
    color: var(--text-main);
    font-size: var(--fs-sm);
}

.topbar-notification-list {
    max-height: 360px;
    overflow: auto;
}

.topbar-notification-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
}

.topbar-notification-item:last-child {
    border-bottom: 0;
}

.topbar-notification-item.is-unread {
    background: #f8fbfe;
}

.topbar-notification-body {
    min-width: 0;
}

.topbar-notification-title {
    color: var(--text-main);
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.3;
}

.topbar-notification-text {
    margin-top: 4px;
    color: #5d6b7e;
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.topbar-notification-meta {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.35;
}

.topbar-notification-icon-info,
.portal-message-icon-info {
    color: #0f84d3;
}

.topbar-notification-icon-danger,
.portal-message-icon-danger {
    color: #c04a5b;
}

.topbar-notification-icon-neutral,
.portal-message-icon-neutral {
    color: #6a7b90;
}

.topbar-menu-empty {
    min-height: 88px;
    display: grid;
    place-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    text-align: center;
}

.topbar-menu-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.topbar-menu-footer,
.topbar-menu-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: var(--fs-sm);
    border-top: 1px solid #e6edf4;
}

.topbar-menu-footer {
    color: #0f84d3;
    font-weight: 600;
}

.topbar-menu-link {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.topbar-menu-link-danger {
    color: #c04a5b;
}

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

.section-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.panel-empty-inline {
    min-height: 260px;
}

.portal-messages {
    display: grid;
}

.portal-message-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid #e6edf4;
}

.portal-message-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.portal-message-item.is-unread .portal-message-title {
    color: #0f84d3;
}

.portal-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6a7b90;
}

.portal-message-title {
    color: var(--text-main);
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: 1.3;
}

.portal-message-text {
    margin-top: 4px;
    color: #5d6b7e;
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.portal-message-meta {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    height: 100%;
}

.dashboard-page .dashboard-metrics {
    margin-bottom: 0;
}

.dashboard-page .metric-card {
    min-height: 98px;
    padding: 12px 14px;
}

.dashboard-page .metric-card-label {
    min-height: 22px;
}

.dashboard-page .metric-card-body {
    margin-top: 8px;
}

.dashboard-page .metric-card-footer {
    margin-top: 10px;
}

.dashboard-page .dashboard-grid {
    flex: 1 1 auto;
    display: grid;
    min-height: 0;
}

.dashboard-page .panel {
    height: 100%;
    min-height: 0;
    max-height: none;
    padding: 0 12px 10px;
}

.dashboard-page .panel-header {
    padding: 12px 2px 8px;
}

.dashboard-page .panel-title h2 {
    font-size: var(--fs-sm);
}

.dashboard-page .panel-meta {
    font-size: 11px;
}

.dashboard-page .panel-table {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.dashboard-page .panel-table th,
.dashboard-page .panel-table td {
    padding-top: 7px;
    padding-bottom: 7px;
}

.dashboard-page .dashboard-events-table tbody tr:hover td {
    background: rgba(238, 245, 251, 0.72);
}

.dashboard-page .dashboard-events-table tbody tr {
    cursor: default;
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.dashboard-page .dashboard-events-table tbody tr:hover td:first-child {
    box-shadow: inset 2px 0 0 #1594e8;
}

.dashboard-page .dashboard-events-table tbody tr:hover .dashboard-event-person-link strong {
    color: var(--blue-strong);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dashboard-event-time,
.dashboard-event-person {
    display: grid;
    gap: 2px;
}

.dashboard-event-time strong,
.dashboard-event-person strong {
    color: var(--text-main);
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.25;
}

.dashboard-event-person-link {
    display: inline-flex;
    align-items: center;
}

.dashboard-event-person-link:hover strong {
    color: var(--blue-strong);
}

.dashboard-event-time span {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.2;
}

.dashboard-event-device {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--text-main);
    font-size: var(--fs-sm);
    line-height: 1.25;
}

.event-pill {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.25;
}

.event-pill-enter {
    color: #1e8a52;
}

.event-pill-leave {
    color: #0f84d3;
}

.event-pill-manual {
    color: #6a5f2f;
}

.event-pill-alert {
    color: #b33f4d;
}

.event-pill-neutral {
    color: #556476;
}

.card-mask-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #dce5ef;
    background: #f8fbfd;
    white-space: nowrap;
}

.card-mask-chip-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-mask-chip-code {
    color: var(--text-main);
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.08em;
    filter: blur(3.8px);
    opacity: 0.72;
    text-shadow: 0 0 10px rgba(31, 41, 55, 0.18);
    user-select: none;
    pointer-events: none;
}

.card-mask-chip-tail {
    color: var(--text-main);
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.12em;
    user-select: none;
}

.dashboard-page .panel-empty {
    padding: 16px 12px 4px;
}

.dashboard-page .panel-empty-icon {
    width: 48px;
    height: 48px;
}

.dashboard-page .panel-empty h3 {
    margin-top: 10px;
    font-size: var(--fs-sm);
}

.dashboard-page .panel-empty p {
    max-width: 240px;
}

@media (max-width: 980px) {
    .topbar-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .topbar-clock {
        min-width: 220px;
    }
}

@media (max-width: 760px) {
    .topbar-clock,
    .topbar-trigger {
        width: 100%;
    }

    .topbar-menu,
    .topbar-menu-profile {
        width: min(100vw - 36px, 360px);
        right: 0;
    }
}

.client-body {
    background:
        radial-gradient(circle at 50% -25%, #ffffff 0, #f7f9fc 36%, #eef2f7 100%);
    overflow-x: hidden;
}

.client-shell.employee-mobile-viewport {
    width: 100%;
    max-width: none;
    min-height: 100svh;
    margin: 0 auto;
    padding: 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top center, rgba(69, 133, 235, 0.12), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #eff3f8 100%);
    box-shadow: 0 0 70px rgba(22, 35, 56, 0.16);
}

.employee-mobile-topbar {
    min-height: 82px;
    padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(214, 223, 234, 0.88);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(22px);
}

.employee-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #0f2b5e;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(18px, 5.4vw, 23px);
    letter-spacing: -0.03em;
    text-decoration: none;
}

.employee-mobile-brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.employee-mobile-brand-copy strong,
.employee-mobile-brand-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-mobile-brand-copy strong {
    font: inherit;
}

.employee-mobile-brand-copy small {
    color: #6b7a8c;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.employee-mobile-brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    object-fit: contain;
}

.employee-mobile-notification {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(214, 223, 234, 0.9);
    color: #344054;
    position: relative;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(19, 37, 63, 0.06);
}

.employee-mobile-notification svg {
    width: 28px;
    height: 28px;
}

.employee-mobile-notification.has-unread::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f22d35;
    border: 2px solid #fff;
}

.employee-mobile-notification-count {
    position: absolute;
    right: -1px;
    bottom: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #1265df;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.employee-mobile-system-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 18px 0;
}

.employee-mobile-system-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(196, 210, 228, 0.92);
    background: rgba(255, 255, 255, 0.72);
    color: #4d6280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.employee-mobile-system-text {
    color: #74839a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.employee-mobile-alerts {
    display: grid;
    gap: 8px;
    padding: 10px 14px 0;
}

.employee-mobile-main {
    padding: 14px 14px calc(92px + 26px + env(safe-area-inset-bottom));
    display: grid;
    gap: 12px;
    min-width: 0;
}

.employee-home-page {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.employee-mobile-card,
.employee-mobile-hero,
.employee-mobile-status-card,
.employee-mobile-shift-card,
.employee-mobile-updates-card,
.employee-mobile-events-card,
.employee-mobile-summary-card {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(29, 54, 93, 0.055);
}

.employee-mobile-hero {
    min-height: 116px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 48%;
    position: relative;
    min-width: 0;
}

.employee-mobile-hero-copy {
    padding: 20px 0 19px 18px;
    position: relative;
    z-index: 2;
    min-width: 0;
}

.employee-mobile-hero-copy h1 {
    margin: 0 0 7px;
    color: #111827;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.employee-mobile-hero-copy p {
    margin: 0;
    color: #667085;
    font-size: 17px;
    line-height: 1.35;
}

.employee-mobile-hero-art {
    position: relative;
    align-self: stretch;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(239, 246, 255, 0.66) 42%, rgba(229, 240, 255, 0.95) 100%);
}

.employee-mobile-hero-art svg {
    position: absolute;
    right: -12px;
    bottom: -4px;
    width: 205px;
    height: 125px;
}

.employee-mobile-status-card {
    min-height: 76px;
    padding: 15px 17px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
}

.employee-mobile-status-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 760;
    line-height: 1.15;
    margin-bottom: 5px;
}

.employee-mobile-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2dd36f, #19a84e);
    box-shadow: 0 4px 10px rgba(35, 179, 87, 0.22);
    flex: 0 0 auto;
}

.employee-mobile-status-card.is-red .employee-mobile-dot {
    background: linear-gradient(145deg, #ff7b74, #f04438);
    box-shadow: 0 4px 10px rgba(240, 68, 56, 0.18);
}

.employee-mobile-status-card.is-idle .employee-mobile-dot {
    background: linear-gradient(145deg, #bac5d5, #98a2b3);
    box-shadow: none;
}

.employee-mobile-status-sub {
    color: #667085;
    font-size: 16px;
    line-height: 1.25;
}

.employee-mobile-status-time {
    text-align: right;
    color: #27ae60;
    font-size: 23px;
    font-weight: 760;
    letter-spacing: -0.02em;
}

.employee-mobile-status-card.is-red .employee-mobile-status-time {
    color: #f04438;
}

.employee-mobile-status-card.is-idle .employee-mobile-status-time {
    color: #667085;
}

.employee-mobile-status-time span {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
}

.employee-mobile-shift-card {
    padding: 16px 14px 12px;
    border-color: #bbd7ff;
    background:
        radial-gradient(circle at 100% 0%, rgba(105, 165, 255, 0.12), transparent 35%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.employee-mobile-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 2px 15px;
}

.employee-mobile-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f2b5e;
    font-weight: 760;
    font-size: 20px;
    line-height: 1.2;
}

.employee-mobile-day-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.employee-mobile-day-item {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px 12px 11px;
    border: 1px solid #dce7f4;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
}

.employee-mobile-day-label {
    color: #60748f;
    font-size: 12px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.employee-mobile-day-value {
    color: #0c244e;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.employee-mobile-day-meta {
    color: #667085;
    font-size: 13px;
    line-height: 1.35;
}

.employee-mobile-day-foot {
    display: grid;
    gap: 5px;
    margin: 14px 2px 16px;
}

.employee-mobile-action-stack {
    display: grid;
    gap: 10px;
}

.employee-mobile-action-stack-inline {
    width: 100%;
}

.employee-mobile-day-note {
    margin: 0;
    color: #102956;
    font-size: 14px;
    line-height: 1.35;
}

.employee-mobile-day-note-muted {
    color: #667085;
}

.employee-mobile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.employee-mobile-badge-blue {
    background: #eff5ff;
    color: #1265df;
    border: 1px solid #cde0ff;
}

.employee-mobile-updates-card {
    padding: 16px 14px 12px;
}

.employee-mobile-update-list {
    display: grid;
    gap: 10px;
}

.employee-mobile-update-item {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #dce7f4;
    background: rgba(248, 251, 254, 0.92);
}

.employee-mobile-update-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.employee-mobile-update-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.employee-mobile-update-main strong {
    color: #0c244e;
    font-size: var(--fs-md);
    line-height: 1.25;
    font-weight: 700;
}

.employee-mobile-update-kind {
    color: #6a7c93;
    font-size: var(--fs-xs);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.employee-mobile-update-meta {
    color: #52657d;
    font-size: var(--fs-sm);
    line-height: 1.35;
}

.employee-mobile-update-note {
    color: #102956;
    font-size: var(--fs-sm);
    line-height: 1.4;
}

.employee-mobile-update-actions {
    margin-top: 2px;
}

.badge-green {
    background: #e7f7ec;
    color: #179447;
    border: 1px solid #c9edda;
}

.badge-red {
    background: #ffeded;
    color: #f04438;
    border: 1px solid #ffd3d0;
}

.employee-mobile-shift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    margin-bottom: 15px;
    min-width: 0;
}

.employee-mobile-shift-metric {
    min-width: 0;
    padding: 2px 8px 0;
    text-align: center;
    position: relative;
}

.employee-mobile-shift-metric + .employee-mobile-shift-metric::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 1px;
    height: 74px;
    background: #dfe8f4;
}

.employee-mobile-metric-label {
    min-height: 34px;
    color: #425b82;
    font-size: 15px;
    line-height: 1.2;
    display: grid;
    place-items: center;
}

.employee-mobile-metric-value {
    margin-top: 4px;
    color: #092454;
    font-size: 31px;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 500;
    white-space: nowrap;
}

.employee-mobile-metric-value small {
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 600;
    color: #526b8e;
}

.employee-mobile-metric-sub {
    margin-top: 6px;
    color: #5e7392;
    font-size: 14px;
    line-height: 1.24;
    min-height: 35px;
}

.employee-mobile-report-btn {
    width: 100%;
    min-height: 50px;
    border-radius: 11px;
    border: 1px solid #c2d9ff;
    background: linear-gradient(180deg, #eef5ff, #e6f0ff);
    color: #0e5ed4;
    font-weight: 650;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
}

.employee-mobile-report-btn-secondary {
    border-color: #d9e2ee;
    background: #ffffff;
    color: #344054;
}

.employee-mobile-report-btn svg {
    width: 23px;
    height: 23px;
}

.employee-mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    min-width: 0;
}

.employee-mobile-quick-action {
    min-height: 112px;
    padding: 16px 6px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e4e9f0;
    color: #102956;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 5px 13px rgba(29, 54, 93, 0.025);
}

.employee-mobile-quick-action svg {
    width: 39px;
    height: 39px;
    color: #0a62d6;
}

.employee-mobile-quick-action span {
    text-align: center;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 560;
}

.employee-mobile-events-card {
    overflow: hidden;
}

.employee-mobile-events-head {
    height: 51px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4e9f0;
}

.employee-mobile-events-head strong {
    font-size: 18px;
    letter-spacing: -0.01em;
}

.employee-mobile-link {
    color: #1265df;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.employee-mobile-event-row {
    min-height: 65px;
    padding: 9px 14px;
    display: grid;
    grid-template-columns: 44px 1fr auto 18px;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.employee-mobile-event-row + .employee-mobile-event-row {
    border-top: 1px solid #e4e9f0;
}

.employee-mobile-event-icon {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    display: grid;
    place-items: center;
}

.employee-mobile-event-icon svg {
    width: 24px;
    height: 24px;
}

.employee-mobile-event-icon.is-enter {
    color: #18a64c;
    background: #eaf8ef;
}

.employee-mobile-event-icon.is-break {
    color: #ff7a1a;
    background: #fff1e6;
}

.employee-mobile-event-icon.is-leave {
    color: #f03b3f;
    background: #ffeded;
}

.employee-mobile-event-main {
    min-width: 0;
}

.employee-mobile-event-main strong {
    display: block;
    color: #172033;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-mobile-event-main span {
    display: block;
    margin-top: 2px;
    color: #667085;
    font-size: 14px;
    line-height: 1.15;
}

.employee-mobile-terminal {
    text-align: right;
    color: #667085;
    font-size: 14px;
    white-space: nowrap;
}

.employee-mobile-chevron {
    color: #4772a6;
    width: 18px;
    height: 18px;
}

.employee-mobile-chevron svg {
    width: 18px;
    height: 18px;
}

.employee-mobile-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
}

.employee-mobile-summary-card {
    min-height: 158px;
    padding: 16px 14px 13px;
}

.employee-mobile-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.employee-mobile-summary-head strong {
    font-size: 17px;
    line-height: 1.15;
}

.employee-mobile-summary-copy {
    margin-top: 12px;
    color: #667085;
    font-size: 13px;
    line-height: 1.35;
}

.employee-mobile-summary-copy-grid {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.employee-mobile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
}

.employee-mobile-stat {
    text-align: center;
    min-width: 0;
    position: relative;
    padding: 0 4px;
}

.employee-mobile-stat + .employee-mobile-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 1px;
    height: 67px;
    background: #e4e8ef;
}

.employee-mobile-stat-icon {
    display: inline-flex;
    width: 27px;
    height: 27px;
    margin: 0 auto 8px;
    color: #667085;
}

.employee-mobile-stat.is-warning .employee-mobile-stat-icon {
    color: #f04438;
}

.employee-mobile-stat strong {
    display: block;
    font-size: 23px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.employee-mobile-stat > span:last-child {
    display: block;
    margin-top: 7px;
    color: #667085;
    font-size: 13px;
    line-height: 1.15;
}

.employee-mobile-access-card .employee-mobile-summary-head {
    margin-bottom: 12px;
}

.employee-mobile-access-body {
    display: grid;
    grid-template-columns: 1fr 60px;
    gap: 8px;
    align-items: center;
}

.employee-mobile-uid-label {
    color: #667085;
    font-size: 14px;
    margin-bottom: 6px;
}

.employee-mobile-uid-value {
    color: #111827;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    word-break: break-all;
}

.employee-mobile-device-state {
    margin-top: 12px;
    color: #667085;
    font-size: 14px;
    line-height: 1.35;
}

.employee-mobile-green {
    color: #27ae60;
    font-weight: 650;
}

.employee-mobile-tiny-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2bbf62;
    margin-right: 6px;
}

.employee-mobile-nfc {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #edf5ff;
    display: grid;
    place-items: center;
    color: #0866dd;
}

.employee-mobile-nfc svg {
    width: 30px;
    height: 30px;
}

.employee-mobile-empty {
    padding: 18px 14px;
}

.employee-mobile-profile-card {
    display: grid;
    gap: 14px;
}

.employee-mobile-profile-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.employee-mobile-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(180deg, #1678e5 0%, #0a62d6 100%);
    color: #fff;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.employee-mobile-profile-meta {
    min-width: 0;
}

.employee-mobile-profile-meta h1 {
    margin: 0;
    color: #10233b;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 24px;
    line-height: 1.1;
}

.employee-mobile-profile-meta p {
    margin: 6px 0 0;
    color: #75859a;
    font-size: 14px;
    line-height: 1.35;
}

.employee-mobile-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.employee-mobile-profile-stat {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #e3eaf2;
    background: #f8fbfd;
    border-radius: 12px;
}

.employee-mobile-profile-stat span {
    color: #73849a;
    font-size: 12px;
    line-height: 1.3;
}

.employee-mobile-profile-stat strong {
    color: #10233b;
    font-size: 14px;
    line-height: 1.35;
}

.employee-mobile-profile-actions {
    display: grid;
    gap: 10px;
}

.employee-mobile-profile-actions form {
    margin: 0;
}

.employee-mobile-profile-actions .button,
.employee-mobile-profile-actions .button-light {
    width: 100%;
}

.employee-mobile-support-card {
    display: grid;
    gap: 14px;
}

.employee-mobile-support-list {
    display: grid;
    gap: 10px;
}

.employee-mobile-support-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e4e9f0;
}

.employee-mobile-support-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.employee-mobile-support-row span {
    color: #73849a;
    font-size: 13px;
}

.employee-mobile-support-row strong {
    color: #10233b;
    font-size: 14px;
    line-height: 1.3;
    text-align: right;
}

.client-page.profile-settings-page {
    gap: 14px;
}

.employee-mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: none;
    width: auto;
    max-width: none;
    min-height: 68px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(219, 226, 236, 0.98);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 14px 30px rgba(15, 31, 53, 0.1);
    z-index: 30;
}

.employee-mobile-nav-item {
    color: #5f6c80;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 520;
    min-width: 0;
    min-height: 52px;
    border-radius: 18px;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.employee-mobile-nav-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
}

.employee-mobile-nav-item.is-active {
    color: #1265df;
    font-weight: 650;
    background: linear-gradient(180deg, rgba(238, 245, 255, 0.98) 0%, rgba(228, 239, 255, 0.92) 100%);
    box-shadow: inset 0 0 0 1px rgba(195, 216, 248, 0.95);
}

.employee-mobile-nav-item.is-active .employee-mobile-nav-icon {
    transform: translateY(-1px);
}

@media (max-width: 370px) {
    .employee-mobile-main {
        padding-left: 10px;
        padding-right: 10px;
    }

    .employee-mobile-hero-copy h1 {
        font-size: 25px;
    }

    .employee-mobile-hero-copy p {
        font-size: 15px;
    }

    .employee-mobile-section-title {
        font-size: 18px;
    }

    .employee-mobile-day-value {
        font-size: 21px;
    }

    .employee-mobile-metric-label {
        font-size: 13px;
    }

    .employee-mobile-metric-value {
        font-size: 27px;
    }

    .employee-mobile-quick-action span {
        font-size: 13px;
    }

    .employee-mobile-summary-card {
        padding-left: 10px;
        padding-right: 10px;
    }

    .employee-mobile-terminal {
        display: none;
    }

    .employee-mobile-event-row {
        grid-template-columns: 42px 1fr 18px;
    }

    .employee-mobile-profile-grid,
    .client-kpi-grid-compact,
    .employee-mobile-day-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .employee-mobile-topbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .employee-mobile-system-bar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .employee-mobile-alerts {
        padding-left: 12px;
        padding-right: 12px;
    }

    .employee-mobile-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .employee-mobile-hero {
        grid-template-columns: 1fr 44%;
    }

    .employee-mobile-hero-copy {
        padding-left: 16px;
        padding-right: 8px;
    }

    .employee-mobile-hero-copy h1 {
        font-size: 24px;
    }

    .employee-mobile-hero-copy p {
        font-size: 15px;
    }

    .employee-mobile-status-card {
        padding: 14px 15px;
        column-gap: 10px;
    }

    .employee-mobile-status-title {
        font-size: 19px;
    }

    .employee-mobile-status-sub,
    .employee-mobile-status-time span {
        font-size: 14px;
    }

    .employee-mobile-status-time {
        font-size: 20px;
    }

    .employee-mobile-section-title {
        font-size: 18px;
    }

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

    .employee-mobile-bottom-nav {
        left: 10px;
        right: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .employee-mobile-day-grid,
    .employee-mobile-profile-grid {
        grid-template-columns: 1fr;
    }

    .client-modal-head {
        padding-left: 14px;
        padding-right: 14px;
    }

    .client-modal-form-flow {
        padding-left: 10px;
        padding-right: 10px;
    }

    .client-modal-actions {
        padding-left: 10px;
        padding-right: 10px;
    }

    .client-modal-actions-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 900px) {
    .client-shell.employee-mobile-viewport {
        width: min(100vw, 520px);
        margin: 0 auto;
    }

    .employee-mobile-bottom-nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(calc(100vw - 24px), 496px);
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .employee-mobile-topbar {
        height: 62px;
        padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
    }

    .employee-mobile-brand {
        font-size: 19px;
    }

    .employee-mobile-brand-mark {
        width: 32px;
        height: 32px;
    }

    .employee-mobile-notification {
        width: 38px;
        height: 38px;
    }

    .employee-mobile-system-bar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .employee-mobile-alerts {
        padding-left: 10px;
        padding-right: 10px;
    }

    .employee-mobile-main {
        padding: 10px 12px calc(88px + 18px + env(safe-area-inset-bottom));
    }

    .employee-home-page {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 8px;
        align-items: start;
    }

    .employee-mobile-hero {
        min-height: 100px;
    }

    .employee-mobile-hero-copy {
        padding: 16px 0 14px 16px;
    }

    .employee-mobile-hero-copy h1 {
        font-size: 22px;
    }

    .employee-mobile-hero-copy p {
        font-size: 14px;
    }

    .employee-mobile-hero-art svg {
        width: 180px;
        height: 110px;
        right: -10px;
    }

    .employee-mobile-status-card {
        min-height: 100px;
        padding: 12px 14px;
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .employee-mobile-status-title {
        font-size: 17px;
        margin-bottom: 4px;
    }

    .employee-mobile-status-sub {
        font-size: 13px;
    }

    .employee-mobile-status-time {
        text-align: left;
        font-size: 18px;
    }

    .employee-mobile-status-time span {
        font-size: 13px;
        margin-top: 2px;
    }

    .employee-mobile-shift-card,
    .employee-mobile-updates-card,
    .employee-mobile-events-card,
    .employee-mobile-summary-grid {
        grid-column: 1 / -1;
    }

    .employee-mobile-shift-card,
    .employee-mobile-updates-card {
        padding: 14px 12px 10px;
    }

    .employee-mobile-section-title-row {
        margin-bottom: 12px;
    }

    .employee-mobile-section-title {
        font-size: 17px;
    }

    .employee-mobile-day-grid {
        gap: 8px;
    }

    .employee-mobile-day-item {
        padding: 10px;
    }

    .employee-mobile-day-value {
        font-size: 20px;
    }

    .employee-mobile-day-meta,
    .employee-mobile-day-note,
    .employee-mobile-summary-copy {
        font-size: 12px;
    }

    .employee-mobile-badge {
        min-height: 24px;
        padding: 0 9px;
        font-size: 13px;
    }

    .employee-mobile-report-btn {
        min-height: 42px;
        font-size: 14px;
    }

    .employee-mobile-events-head {
        height: 44px;
        padding: 0 14px;
    }

    .employee-mobile-events-head strong,
    .employee-mobile-link {
        font-size: 14px;
    }

    .employee-mobile-event-row {
        min-height: 56px;
        padding: 8px 12px;
        grid-template-columns: 40px 1fr auto 16px;
        gap: 8px;
    }

    .employee-mobile-event-icon {
        width: 34px;
        height: 34px;
    }

    .employee-mobile-event-icon svg {
        width: 20px;
        height: 20px;
    }

    .employee-mobile-event-main strong {
        font-size: 14px;
    }

    .employee-mobile-event-main span,
    .employee-mobile-terminal {
        font-size: 12px;
    }

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

    .employee-mobile-summary-card {
        min-height: 138px;
        padding: 14px 12px 12px;
    }

    .employee-mobile-summary-head {
        margin-bottom: 10px;
    }

    .employee-mobile-summary-head strong {
        font-size: 15px;
    }

    .employee-mobile-stat strong {
        font-size: 17px;
    }

    .employee-mobile-stat > span:last-child {
        font-size: 12px;
    }

    .employee-mobile-profile-meta h1 {
        font-size: 20px;
    }

    .employee-mobile-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-mobile-bottom-nav {
        min-height: calc(64px + env(safe-area-inset-bottom));
        padding-top: 6px;
        padding-bottom: max(6px, env(safe-area-inset-bottom));
    }

    .employee-mobile-nav-item {
        gap: 2px;
        font-size: 11px;
    }

    .employee-mobile-nav-icon {
        width: 24px;
        height: 24px;
    }
}
