:root {
    --bg: #0b1626;
    --bg-elevated: #101f33;
    --sidebar: #070f1d;
    --surface: #17263b;
    --surface-alt: #1a2b43;
    --surface-soft: #223551;
    --border: #263a55;
    --border-strong: #304867;
    --text: #f8fafc;
    --muted: #8b9bb0;
    --blue: #3b82f6;
    --blue-soft: rgba(59, 130, 246, 0.18);
    --green: #10b981;
    --green-soft: rgba(16, 185, 129, 0.18);
    --red: #ef4444;
    --red-soft: rgba(239, 68, 68, 0.18);
    --yellow: #f59e0b;
    --yellow-soft: rgba(245, 158, 11, 0.2);
    --purple: #8b5cf6;
    --purple-soft: rgba(139, 92, 246, 0.18);
    --shadow-lg: 0 24px 44px rgba(0, 8, 20, 0.32);
    --shadow-sm: 0 8px 22px rgba(2, 8, 23, 0.14);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(180deg, #13243a 0%, #14253d 100%);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.has-modal,
body.sidebar-open {
    overflow: hidden;
}

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

button,
input,
textarea {
    font: inherit;
}

.icon-svg {
    width: 1em;
    height: 1em;
    display: block;
    flex: none;
}

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

.sidebar {
    width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 12px 8px 10px;
    background: #0a1323;
    border-right: 1px solid rgba(38, 58, 85, 0.72);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
    z-index: 30;
}

.sidebar-main {
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.sidebar-main::-webkit-scrollbar {
    width: 6px;
}

.sidebar-main::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(139, 155, 176, 0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0 16px;
    margin: 0 6px 6px;
}

.brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #4d89ff 0%, #2563eb 100%);
    color: #eff6ff;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.36);
}

.brand__mark svg {
    width: 18px;
    height: 18px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand__text strong {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
}

.brand__text small {
    color: rgba(139, 155, 176, 0.82);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    line-height: 1.15;
}

.sidebar-nav {
    display: grid;
    gap: 3px;
    padding-top: 4px;
}

.sidebar-group {
    margin: 0;
}

.sidebar-group[open] > .sidebar-group__summary .sidebar-group__chevron {
    transform: rotate(180deg);
}

.sidebar-group__summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 10px 11px;
    border-radius: 12px;
    color: rgba(248, 250, 252, 0.62);
    cursor: pointer;
    user-select: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    border: 1px solid transparent;
}

.sidebar-group__summary::-webkit-details-marker {
    display: none;
}

.sidebar-group__summary:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-group.is-active > .sidebar-group__summary {
    color: var(--text);
}

.sidebar-group__label {
    min-width: 0;
    flex: 1;
    line-height: 1.2;
    font-size: 0.92rem;
    font-weight: 600;
}

.sidebar-group__chevron {
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(139, 155, 176, 0.56);
    transition: transform var(--transition);
}

.sidebar-group__children {
    display: grid;
    gap: 3px;
    padding: 3px 0 6px;
}

.sidebar-group__indent {
    width: 16px;
    height: 16px;
    flex: none;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    padding: 6px 11px 6px 11px;
    color: rgba(139, 155, 176, 0.82);
    border-radius: 10px;
    line-height: 1.22;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: default;
}

.sidebar-sublink__indent {
    width: 16px;
    height: 1px;
    flex: none;
}

.sidebar-link--depth-1,
.sidebar-group--depth-1 > .sidebar-group__summary,
.sidebar-sublink--depth-1 {
    padding-left: 22px;
}

.sidebar-link--depth-2,
.sidebar-group--depth-2 > .sidebar-group__summary,
.sidebar-sublink--depth-2 {
    padding-left: 32px;
}

.sidebar-link--depth-1 span:last-child,
.sidebar-group--depth-1 > .sidebar-group__summary .sidebar-group__label {
    font-size: 0.81rem;
    font-weight: 500;
}

.sidebar-link--depth-2 span:last-child,
.sidebar-group--depth-2 > .sidebar-group__summary .sidebar-group__label,
.sidebar-sublink--depth-2 {
    font-size: 0.77rem;
    font-weight: 500;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 10px 11px;
    border-radius: 12px;
    color: rgba(248, 250, 252, 0.62);
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    border: 1px solid transparent;
}

.sidebar-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sidebar-link__icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.sidebar-link__icon svg {
    width: 16px;
    height: 16px;
}

.sidebar-link span:last-child {
    font-size: 0.92rem;
    font-weight: 600;
}

.sidebar-footer {
    padding: 14px 6px 0;
    border-top: 1px solid rgba(38, 58, 85, 0.72);
}

.sidebar-link--footer {
    margin-bottom: 14px;
}

.sidebar-footer__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: rgba(139, 155, 176, 0.28);
}

.sidebar-footer__hint svg {
    width: 10px;
    height: 10px;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 28px 30px 34px;
}

.page-section {
    max-width: 1084px;
    margin: 0;
}

.page-section--phone {
    max-width: 1084px;
}

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

.page-header--compact {
    margin-bottom: 16px;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(1.95rem, 2.2vw, 2.3rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.page-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.96rem;
}

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

.section-block {
    margin-top: 26px;
}

.section-title {
    margin: 0 0 14px;
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.card {
    background: #20324a;
    border: 1px solid rgba(38, 58, 85, 0.92);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.eyebrow {
    display: block;
    margin-bottom: 10px;
    color: rgba(139, 155, 176, 0.7);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

.stat-card {
    min-height: 84px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card strong {
    font-size: 2.05rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.stat-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
}

.stat-card__icon svg {
    width: 18px;
    height: 18px;
}

.stat-card__icon--blue {
    color: var(--blue);
    background: var(--blue-soft);
}

.stat-card__icon--success {
    color: var(--green);
    background: var(--green-soft);
}

.stat-card__icon--warning {
    color: var(--yellow);
    background: var(--yellow-soft);
}

.stat-card__icon--danger {
    color: var(--red);
    background: var(--red-soft);
}

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

.overview-card {
    position: relative;
    padding: 16px 16px 14px;
    transition: transform var(--transition), border-color var(--transition);
}

.overview-card:hover,
.work-card:hover,
.report-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.38);
}

.overview-card__arrow,
.work-card__arrow {
    position: absolute;
    top: 18px;
    right: 16px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(139, 155, 176, 0.48);
}

.overview-card h3,
.work-card h3,
.report-card h3 {
    margin: 0;
    font-size: 0.97rem;
    font-weight: 700;
    line-height: 1.3;
}

.overview-card__address,
.work-card__address {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.overview-card__address svg,
.work-card__address svg {
    width: 14px;
    height: 14px;
    flex: none;
}

.overview-card__progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.83rem;
}

.overview-card__progress-head strong {
    color: var(--text);
    font-size: 0.88rem;
}

.progress-bar {
    display: block;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(98, 124, 163, 0.25);
}

.progress-bar__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4482f7 0%, #3b82f6 100%);
}

.overview-card__meta {
    display: flex;
    gap: 14px;
    margin-top: 12px;
}

.meta-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.meta-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.meta-dot--success {
    color: var(--green);
}

.meta-dot--danger {
    color: #ff6b7b;
}

.search-field {
    position: relative;
    display: block;
    max-width: 448px;
    margin-bottom: 18px;
}

.search-field__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: rgba(139, 155, 176, 0.72);
}

.search-field input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    color: var(--text);
    background: rgba(23, 38, 59, 0.94);
    border: 1px solid rgba(48, 72, 103, 0.92);
    border-radius: 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-field input::placeholder {
    color: rgba(139, 155, 176, 0.75);
}

.search-field input:focus {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.btn,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition), opacity var(--transition);
}

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

.btn {
    min-height: 40px;
    padding: 0 15px;
    font-weight: 700;
    font-size: 0.92rem;
}

.btn svg,
.icon-button svg {
    width: 16px;
    height: 16px;
}

.btn--primary {
    color: white;
    background: linear-gradient(180deg, #4c82f7 0%, #3b82f6 100%);
    box-shadow: 0 18px 30px rgba(59, 130, 246, 0.24);
}

.btn--ghost {
    color: var(--text);
    background: rgba(17, 28, 44, 0.82);
    border-color: rgba(48, 72, 103, 0.82);
}

.btn--danger {
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.72);
    border-color: rgba(239, 68, 68, 0.38);
}

.btn--small {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 12px;
}

.btn--tiny {
    min-height: 30px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 0.78rem;
}

.btn--block {
    width: 100%;
}

.icon-button {
    width: 38px;
    height: 38px;
    color: var(--text);
    background: rgba(17, 28, 44, 0.78);
    border-color: rgba(48, 72, 103, 0.8);
}

.icon-button--muted {
    color: rgba(248, 250, 252, 0.72);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 500;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

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

.work-card {
    padding: 0;
    min-height: 140px;
    overflow: hidden;
}

.work-card__body {
    display: block;
    padding: 18px 18px 14px;
}

.work-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.work-card__head-side {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 22px;
}

.work-card__code {
    display: inline-block;
    margin-top: 7px;
    color: rgba(139, 155, 176, 0.68);
    font-size: 0.82rem;
    font-weight: 700;
}

.work-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.work-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 16px;
}

.inline-form {
    margin: 0;
}

.inline-form--block {
    width: 100%;
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
}

.alert--success {
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.32);
}

.alert--warning {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.32);
}

.alert--danger {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.32);
}

.work-card__qr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
}

.work-card__qr svg {
    width: 14px;
    height: 14px;
}

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

.data-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.data-table thead th {
    padding: 12px 16px;
    color: rgba(139, 155, 176, 0.62);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid rgba(48, 72, 103, 0.62);
}

.data-table tbody td {
    padding: 14px 16px;
    color: rgba(248, 250, 252, 0.76);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(48, 72, 103, 0.5);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr.is-hidden {
    display: none;
}

.cell-strong {
    color: var(--text) !important;
    font-weight: 700;
}

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

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

.employee-summary-card {
    min-height: 88px;
    padding: 14px 16px;
    display: grid;
    gap: 8px;
}

.employee-summary-card strong {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.employee-summary-card small {
    color: rgba(139, 155, 176, 0.78);
    font-size: 0.78rem;
    line-height: 1.35;
}

.cell-stack {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.cell-subtle {
    color: rgba(139, 155, 176, 0.82);
    font-size: 0.78rem;
    line-height: 1.35;
}

.work-badge-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.badge--primary-work {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge--blue {
    color: #7db7ff;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.34);
}

.badge--success {
    color: #34d399;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.28);
}

.badge--danger {
    color: #fb7185;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.3);
}

.badge--warning {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.36);
}

.badge--purple {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.28);
}

.badge--neutral {
    color: rgba(248, 250, 252, 0.78);
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.22);
}

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

.status-mark__icon {
    width: 18px;
    height: 18px;
}

.status-mark--success {
    color: #34d399;
}

.status-mark--danger {
    color: #fb7185;
}

.detail-grid {
    display: grid;
    grid-template-columns: 322px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.detail-card {
    padding: 14px;
}

.detail-card--map {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.card-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(248, 250, 252, 0.8);
    font-size: 0.9rem;
    font-weight: 700;
}

.card-title svg {
    width: 16px;
    height: 16px;
    color: var(--blue);
}

.qr-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 148px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.qr-panel__image {
    width: 188px;
    height: 188px;
    display: block;
    padding: 12px;
    border-radius: 20px;
    background: white;
    object-fit: contain;
}

.detail-card__footnote {
    margin: 0 0 14px;
    text-align: center;
    color: rgba(139, 155, 176, 0.7);
    font-size: 0.74rem;
}

.map-shell {
    position: relative;
    min-height: clamp(320px, 42vh, 430px);
    flex: 1 1 auto;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #d6dee9;
    isolation: isolate;
}

.map-fallback,
.map-canvas {
    position: absolute;
    inset: 0;
}

.map-fallback {
    background:
        linear-gradient(0deg, rgba(214, 222, 233, 0.85), rgba(214, 222, 233, 0.85)),
        repeating-linear-gradient(90deg, transparent 0 58px, rgba(148, 163, 184, 0.18) 58px 60px),
        repeating-linear-gradient(0deg, transparent 0 40px, rgba(148, 163, 184, 0.16) 40px 42px),
        linear-gradient(135deg, rgba(244, 226, 176, 0.54) 0 14%, transparent 14% 100%);
}

.map-fallback__roads {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(112deg, transparent 0 42%, rgba(255, 205, 86, 0.75) 42% 48%, transparent 48% 100%),
        linear-gradient(25deg, transparent 0 63%, rgba(240, 173, 78, 0.65) 63% 67%, transparent 67% 100%);
}

.map-fallback__marker {
    position: absolute;
    left: 57%;
    top: 42%;
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--blue);
    box-shadow: 0 0 0 16px rgba(59, 130, 246, 0.14);
}

.map-fallback__marker::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: white;
}

.map-canvas {
    opacity: 0;
    transition: opacity var(--transition);
}

.map-canvas.is-ready {
    opacity: 1;
}

.qr-actions {
    display: grid;
    gap: 10px;
}

.qr-meta {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    color: rgba(139, 155, 176, 0.82);
    font-size: 0.72rem;
    line-height: 1.35;
    word-break: break-all;
}

.map-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: rgba(139, 155, 176, 0.82);
    font-size: 0.74rem;
}

.mini-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 24px;
}

.mini-stat {
    min-height: 64px;
    padding: 12px 14px;
}

.mini-stat strong {
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.accent-success {
    color: var(--green);
}

.empty-card {
    padding: 22px;
}

.empty-state {
    min-height: 300px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
}

.empty-state h3 {
    margin: 12px 0 8px;
    color: var(--text);
    font-size: 1.25rem;
}

.empty-state p {
    max-width: 480px;
    margin: 0;
}

.empty-state__icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--blue);
    background: var(--blue-soft);
}

.empty-state__icon svg {
    width: 24px;
    height: 24px;
}

.report-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-card__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 15px;
    color: var(--blue);
    background: var(--blue-soft);
}

.report-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    z-index: 5000;
}

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

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 18, 0.78);
    backdrop-filter: blur(4px);
}

.modal__dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 44px);
    overflow: auto;
    background: rgba(12, 20, 35, 0.98);
    border: 1px solid rgba(48, 72, 103, 0.92);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.modal__dialog--medium {
    width: min(100%, 460px);
}

.modal__dialog--wide {
    width: min(100%, 468px);
}

.modal__dialog--compact {
    width: min(100%, 406px);
}

.modal__header,
.modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
}

.modal__header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(12, 20, 35, 0.98);
    border-bottom: 1px solid rgba(48, 72, 103, 0.5);
}

.modal__footer {
    justify-content: flex-end;
    border-top: 1px solid rgba(48, 72, 103, 0.5);
}

.modal__footer--split {
    justify-content: space-between;
    flex-wrap: wrap;
}

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

.modal__header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.modal__body {
    padding: 16px 20px 6px;
}

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

.form-grid {
    display: grid;
    gap: 12px;
}

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

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

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

.form-field label {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 11px 13px;
    color: var(--text);
    background: rgba(10, 18, 31, 0.82);
    border: 1px solid rgba(48, 72, 103, 0.82);
    border-radius: 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field textarea {
    resize: vertical;
    min-height: 92px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(139, 155, 176, 0.7);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.custom-select {
    position: relative;
}

.custom-select__trigger {
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    background: rgba(10, 18, 31, 0.82);
    border: 1px solid rgba(48, 72, 103, 0.82);
    border-radius: 14px;
}

.custom-select__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(139, 155, 176, 0.7);
    transition: transform var(--transition);
}

.custom-select.is-open .custom-select__trigger {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.custom-select.is-open .custom-select__chevron {
    transform: rotate(180deg);
}

.custom-select__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 8px;
    background: rgba(23, 38, 59, 0.98);
    border: 1px solid rgba(48, 72, 103, 0.92);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 4;
}

.custom-select.is-open .custom-select__menu {
    display: grid;
    gap: 4px;
}

.custom-select__option {
    min-height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 12px;
    color: var(--text);
    background: transparent;
}

.custom-select__option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.custom-select__option.is-selected {
    color: white;
    background: linear-gradient(180deg, #ffb11a 0%, #f59e0b 100%);
}

.custom-select__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
}

.custom-select__option.is-selected .custom-select__check {
    opacity: 1;
}

.checkbox-list {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(48, 72, 103, 0.72);
    border-radius: 14px;
    background: rgba(10, 18, 31, 0.62);
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    min-height: 40px;
    padding: 2px 0;
}

.checkbox-option.is-primary {
    color: #dbeafe;
}

.checkbox-option input {
    display: none;
}

.checkbox-option__mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.75);
    background: rgba(10, 18, 31, 0.82);
    position: relative;
    flex: none;
}

.checkbox-option__mark::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: transparent;
    transition: background var(--transition);
}

.checkbox-option input:checked + .checkbox-option__mark {
    background: rgba(59, 130, 246, 0.95);
}

.checkbox-option input:checked + .checkbox-option__mark::after {
    background: white;
}

.checkbox-option__content {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.checkbox-option__content strong {
    font-size: 0.9rem;
    line-height: 1.25;
}

.checkbox-option__content small {
    color: rgba(139, 155, 176, 0.8);
    font-size: 0.75rem;
    line-height: 1.3;
}

.checkbox-option__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.28);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.empty-inline-note {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed rgba(48, 72, 103, 0.82);
    background: rgba(10, 18, 31, 0.46);
    color: rgba(139, 155, 176, 0.86);
    font-size: 0.84rem;
    line-height: 1.45;
}

.form-helper {
    margin-top: -4px;
    margin-bottom: 6px;
    color: rgba(139, 155, 176, 0.82);
    font-size: 0.78rem;
    line-height: 1.4;
}

.phone-stage {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: 18px 0;
}

.phone-card {
    width: min(100%, 390px);
    padding: 20px;
    border-radius: 32px;
    border: 1px solid rgba(48, 72, 103, 0.82);
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.2), transparent 35%),
        linear-gradient(180deg, rgba(16, 31, 52, 0.98) 0%, rgba(10, 18, 31, 1) 100%);
    box-shadow: 0 40px 90px rgba(0, 8, 20, 0.42);
}

.phone-card__top,
.phone-card__work,
.phone-card__status,
.phone-card__history {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(48, 72, 103, 0.52);
}

.phone-card__top h2,
.phone-card__history h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.phone-card__top p,
.phone-card__status p {
    margin: 8px 0 0;
    color: var(--muted);
}

.phone-card__pill {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.16);
    font-size: 0.78rem;
    font-weight: 700;
}

.phone-card__work,
.phone-card__status,
.phone-card__actions,
.phone-card__history {
    margin-top: 14px;
}

.status-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
}

.status-inline__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-inline__dot--success {
    background: var(--green);
}

.status-inline__dot--warning {
    background: var(--yellow);
}

.phone-card__actions {
    display: grid;
    gap: 10px;
}

.phone-card__status strong {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
}

.phone-card__status small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.phone-history__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(48, 72, 103, 0.4);
}

.phone-history__item:last-child {
    border-bottom: none;
}

.mobile-header,
.sidebar-overlay {
    display: none;
}

.is-hidden {
    display: none !important;
}

.leaflet-container {
    width: 100%;
    height: 100%;
    font-family: "Inter", Arial, sans-serif;
    background: #d6dee9;
    z-index: 1;
}

.leaflet-control-zoom a {
    color: #0f172a !important;
}

.leaflet-pane,
.leaflet-top,
.leaflet-bottom,
.leaflet-control {
    z-index: 10 !important;
}

@media (max-width: 1180px) {
    .works-grid,
    .report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 980px) {
    .sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-100%);
        transition: transform var(--transition);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .mobile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px 0;
    }

    .mobile-header__brand {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-header__brand span {
        font-weight: 800;
        letter-spacing: 0.04em;
    }

    .mobile-header__brand small {
        color: var(--muted);
        font-size: 0.7rem;
        letter-spacing: 0.14em;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 8, 20, 0.48);
        z-index: 25;
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    .main-content {
        padding-top: 16px;
    }

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

    .page-section {
        max-width: none;
    }
}

@media (max-width: 820px) {
    .stats-grid,
    .overview-grid,
    .mini-stats-grid,
    .works-grid,
    .report-grid,
    .form-grid--2,
    .form-grid--3 {
        grid-template-columns: 1fr;
    }

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

    .header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .modal__dialog {
        max-height: calc(100vh - 24px);
    }
}

@media (max-width: 560px) {
    .main-content {
        padding: 18px 16px 28px;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .modal {
        padding: 12px;
    }

    .modal__header,
    .modal__footer,
    .modal__body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .btn,
    .icon-button,
    .custom-select__trigger {
        border-radius: 12px;
    }
}
