﻿* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f4f6f8; color: #172033; }
button, input, select { font: inherit; }
.app { min-height: 100vh; display: grid; grid-template-columns: 286px minmax(0, 1fr); }
.sidebar { background: #fff; border-right: 1px solid #e3e8ef; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.sidebar::-webkit-scrollbar { width: 0; height: 0; display: none; }
.brand-wrap { margin: 0 8px 18px; padding: 4px 0 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { font-size: 26px; font-weight: 850; margin: 0 0 8px; color: #111827; }
.brand-caption { color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.35; }
.nav { display: grid; gap: 14px; }
.nav-group { display: grid; gap: 5px; }
.nav-title { padding: 0 10px 3px; color: rgba(255,255,255,.42); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav button { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: #46556b; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.78); font-size: 13px; font-weight: 900; }
.nav-text { min-width: 0; display: grid; gap: 2px; }
.nav-text strong { overflow: hidden; color: inherit; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.nav-text small { overflow: hidden; color: rgba(255,255,255,.45); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.nav button.active, .nav button:hover { background: #eaf1ff; color: #1d4ed8; }
.nav button.active .nav-icon, .nav button:hover .nav-icon { background: #fff; color: #1d4ed8; }
.nav button.active .nav-text small, .nav button:hover .nav-text small { color: rgba(255,255,255,.74); }
.main { min-width: 0; }
.topbar { height: 68px; background: #fff; border-bottom: 1px solid #e3e8ef; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 16px; }
.topbar-title { min-width: 0; display: grid; gap: 2px; }
.topbar-title span { color: #172033; font-size: 18px; font-weight: 900; }
.topbar-title strong { overflow: hidden; color: #64748b; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.top-icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #172033; cursor: pointer; font-size: 12px; font-weight: 900; text-decoration: none; }
.top-icon-btn:hover, .top-icon-btn.active { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.notification-btn { position: relative; }
.notification-symbol { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 999px; border: 2px solid currentColor; font-size: 12px; line-height: 1; }
.notification-badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #ef4444; color: #fff; border: 2px solid #fff; font-size: 10px; font-weight: 900; }
.notifications-modal { width: min(760px, 96vw); }
.notification-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 8px; background: #f8fafc; border: 1px solid #e2e8f0; }
.notification-list { display: grid; gap: 10px; max-height: min(62vh, 620px); overflow: auto; padding-right: 4px; }
.notification-card { display: grid; gap: 8px; padding: 13px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; }
.notification-card.unread { border-color: #93c5fd; background: #eff6ff; box-shadow: inset 4px 0 0 #2563eb; }
.notification-card.warn.unread { border-color: #fdba74; background: #fff7ed; box-shadow: inset 4px 0 0 #f97316; }
.notification-card.danger.unread { border-color: #fca5a5; background: #fff1f2; box-shadow: inset 4px 0 0 #ef4444; }
.notification-card.ok.unread { border-color: #86efac; background: #f0fdf4; box-shadow: inset 4px 0 0 #22c55e; }
.notification-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #64748b; font-size: 12px; font-weight: 800; }
.notification-card p { margin: 0; color: #475569; line-height: 1.45; }
.settings-menu { position: relative; }
.settings-dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; display: none; width: 320px; padding: 8px; border: 1px solid #dbe3ee; border-radius: 12px; background: #fff; box-shadow: 0 18px 60px rgba(15, 23, 42, .18); }
.settings-dropdown.open { display: grid; gap: 4px; }
.settings-title { padding: 8px 10px 6px; color: #64748b; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.settings-dropdown button { display: grid; gap: 3px; width: 100%; border: 0; border-radius: 9px; background: transparent; padding: 10px; color: #172033; text-align: left; cursor: pointer; }
.settings-dropdown button:hover, .settings-dropdown button.active { background: #eff6ff; color: #1d4ed8; }
.settings-dropdown button strong { font-size: 14px; }
.settings-dropdown button small { color: #64748b; font-size: 12px; line-height: 1.3; }
.user-switch { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.user-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #eaf1ff; color: #1d4ed8; font-size: 13px; font-weight: 900; }
.user-switch .input { padding: 7px 10px; }
.admin-preview { min-width: 220px; display: grid; gap: 3px; }
.admin-preview span { color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.admin-preview .input { min-height: 36px; padding: 7px 10px; border-radius: 10px; font-size: 13px; font-weight: 800; background: #f8fbff; }
.content { padding: 22px; }
h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.15; }
h2 { margin: 0; font-size: 18px; }
.muted { color: #64748b; }
.compact-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.stack { display: grid; gap: 14px; }
.title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: 1.2fr .8fr; }
.card { background: #fff; border: 1px solid #e3e8ef; border-radius: 8px; padding: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.drive-explorer { display: grid; gap: 14px; }
.drive-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.drive-folder-card { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 14px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; color: #172033; text-align: left; cursor: pointer; }
.drive-folder-card:hover, .drive-folder-card.active { border-color: #93c5fd; background: #f8fbff; box-shadow: 0 8px 24px rgba(37, 99, 235, .08); }
.drive-folder-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 42px; border-radius: 8px; background: #eaf1ff; color: #1d4ed8; font-size: 12px; font-weight: 900; }
.drive-folder-card.active .drive-folder-icon { background: #1d4ed8; color: #fff; }
.drive-folder-body { min-width: 0; display: grid; gap: 3px; }
.drive-folder-body strong { overflow: hidden; color: #071a2f; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.drive-folder-body small { color: #64748b; font-size: 12px; font-weight: 800; }
.drive-folder-body em { overflow: hidden; color: #94a3b8; font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.drive-folder-content { display: grid; gap: 12px; }
.drive-browser-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drive-browser-head p { margin: 4px 0 0; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-grid { width: min(940px, 100%); display: grid; grid-template-columns: minmax(320px, 1fr) 360px; gap: 16px; align-items: stretch; }
.login-grid.single { width: min(460px, 100%); grid-template-columns: 1fr; }
.login-qr-card { display: grid; align-content: start; gap: 12px; }
.login-qr-box { min-height: 292px; display: grid; place-items: center; border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; }
.login-qr-img { width: 280px; height: 280px; border-radius: 10px; background: #fff; padding: 8px; box-shadow: 0 8px 26px rgba(15, 23, 42, .08); }
.login-qr-status { min-height: 34px; display: flex; align-items: center; gap: 8px; }
.qr-placeholder { color: #64748b; font-weight: 800; }
.qr-approve-card { gap: 14px; }
.qr-user-card { display: grid; gap: 4px; padding: 14px; border: 1px solid #dbe3ee; border-radius: 10px; background: #f8fafc; }
.qr-user-card strong { color: #071a2f; font-size: 18px; }
.qr-user-card span { color: #64748b; font-size: 13px; }
.stat-label { color: #64748b; font-size: 13px; }
.stat-value { margin-top: 6px; font-size: 28px; font-weight: 800; }
.toolbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.input { width: 100%; border: 1px solid #cbd5e1; border-radius: 6px; padding: 10px 12px; background: #fff; }
.input.input-error { border-color: #ef4444; background: #fff7f7; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cbd5e1; background: #fff; color: #172033; border-radius: 6px; padding: 9px 12px; cursor: pointer; text-decoration: none; }
.btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn.danger { border-color: #fecaca; color: #be123c; background: #fff1f2; }
.btn:hover { filter: brightness(.98); }
.link-btn { border: 0; background: transparent; color: var(--sk-navy, #1d4ed8); padding: 0; font-weight: 800; text-align: left; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.operator-panel { display: grid; gap: 14px; padding: 16px; border: 1px solid #cfe0f4; border-radius: 8px; background: linear-gradient(135deg, #f8fbff, #fff); box-shadow: 0 10px 30px rgba(15, 23, 42, .05); }
.operator-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.operator-panel-head h2 { margin: 2px 0 0; color: #071a2f; font-size: 22px; }
.operator-kicker { color: #1d4ed8; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.operator-status-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, .55fr)) minmax(220px, 1.35fr); gap: 10px; }
.operator-status, .operator-next-task { min-width: 0; padding: 12px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; }
.operator-status span, .operator-next-task span { display: block; color: #64748b; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.operator-status strong { display: block; margin-top: 4px; color: #071a2f; font-size: 28px; line-height: 1; }
.operator-status.ok { border-color: #bbf7d0; background: #f0fdf4; }
.operator-status.danger { border-color: #fecaca; background: #fff7f7; }
.operator-status.danger strong { color: #be123c; }
.operator-next-task { display: grid; gap: 3px; width: 100%; border-color: #bfdbfe; color: #172033; text-align: left; cursor: pointer; }
.operator-next-task:hover { border-color: #29B6F2; box-shadow: 0 8px 24px rgba(41, 182, 242, .14); }
.operator-next-task.empty { cursor: default; border-color: #bbf7d0; background: #f0fdf4; }
.operator-next-task strong { overflow: hidden; color: #071a2f; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.operator-next-task small { overflow: hidden; color: #64748b; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.operator-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.operator-action-card { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; color: #172033; text-align: left; cursor: pointer; }
.operator-action-card:hover { border-color: #29B6F2; background: #f8fbff; box-shadow: 0 8px 24px rgba(41, 182, 242, .12); }
.operator-action-card.primary { border-color: #bfdbfe; }
.operator-action-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: #071a2f; color: #fff; font-size: 14px; font-weight: 900; }
.operator-action-card.primary .operator-action-icon { background: #1d4ed8; }
.operator-action-card strong { display: block; overflow: hidden; color: #071a2f; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.operator-action-card small { display: block; overflow: hidden; margin-top: 2px; color: #64748b; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.pto-workspace { display: grid; gap: 14px; }
.pto-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid #cfe0f4; border-radius: 8px; background: #f8fbff; }
.pto-hero h2 { margin: 3px 0 6px; font-size: 22px; }
.pto-hero p { max-width: 760px; margin: 0; color: #475569; line-height: 1.45; }
.pto-kicker { color: #1d4ed8; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pto-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pto-metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pto-metric { min-width: 0; padding: 13px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.pto-metric span, .pto-metric small { display: block; color: #64748b; font-size: 12px; }
.pto-metric strong { display: block; margin: 5px 0 2px; color: #071a2f; font-size: 26px; line-height: 1; }
.pto-metric.ok { border-color: #bbf7d0; background: #f0fdf4; }
.pto-metric.warn { border-color: #fed7aa; background: #fff7ed; }
.pto-step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pto-step-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; min-width: 0; padding: 14px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; }
.pto-step-card.ok { border-color: #bbf7d0; }
.pto-step-card.warn { border-color: #fed7aa; }
.pto-step-number { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #071a2f; color: #fff; font-weight: 900; }
.pto-step-body { min-width: 0; display: grid; gap: 8px; }
.pto-step-body h3 { margin: 0; color: #071a2f; font-size: 15px; }
.pto-step-body p { margin: 0; color: #475569; font-size: 13px; line-height: 1.35; }
.pto-alert { display: grid; gap: 4px; }
.pto-alert p { margin: 0; }
.pto-more-actions { padding: 12px 14px; border: 1px solid #dbe3ee; border-radius: 8px; background: #f8fafc; }
.pto-more-actions summary { color: #334155; font-weight: 900; cursor: pointer; }
.pto-more-actions .row-actions { margin-top: 10px; }
.pto-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 4px; }
.pto-section-head h3 { margin: 0 0 3px; color: #071a2f; font-size: 16px; }
.pto-section-head p { margin: 0; }
.task-board { display: grid; gap: 14px; }
.task-filters { display: grid; grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, .7fr)); gap: 10px; align-items: center; }
.task-board .table-scroll table { min-width: 980px; }
.launch-card { display: grid; grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr); gap: 18px; align-items: start; }
.launch-card h2 { margin-bottom: 6px; }
.launch-card p { margin: 0; }
.launch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.launch-step { display: grid; gap: 4px; min-width: 0; padding: 12px; border: 1px solid #dbeafe; border-radius: 8px; background: #f8fbff; }
.launch-step strong { color: #071a2f; }
.launch-step span { color: #475569; font-size: 13px; line-height: 1.35; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.faq-card { min-width: 0; padding: 16px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.faq-card h3 { margin: 0 0 10px; color: #071a2f; font-size: 16px; }
.faq-card ol { margin: 0; padding-left: 20px; color: #334155; }
.faq-card li { margin: 6px 0; line-height: 1.38; }
.org-chart-board { min-height: 520px; overflow: auto; padding: 28px 24px 36px; border: 1px solid #dbe3ee; border-radius: 8px; background: linear-gradient(180deg, #f8fbff 0%, #f1f6fb 100%); }
.org-tree { display: flex; align-items: flex-start; justify-content: center; gap: 32px; min-width: max-content; padding: 2px 24px 24px; }
.org-node { position: relative; display: grid; justify-items: center; gap: 22px; }
.org-children { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: 24px; padding-top: 28px; }
.org-children::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 28px; background: #38bdf8; }
.org-children > .org-node::before { content: ""; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: #38bdf8; }
.org-children > .org-node::after { content: ""; position: absolute; top: -28px; left: 0; right: 0; height: 1px; background: #cbd5e1; }
.org-children > .org-node:first-child::after { left: 50%; }
.org-children > .org-node:last-child::after { right: 50%; }
.org-children > .org-node:only-child::after { display: none; }
.org-card { width: 292px; min-height: 168px; display: grid; gap: 10px; padding: 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #172033; text-align: left; cursor: pointer; box-shadow: 0 8px 22px rgba(15, 23, 42, .08); }
.org-card:hover { border-color: #38bdf8; box-shadow: 0 14px 34px rgba(14, 165, 233, .18); }
.org-card-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.org-card-top strong { overflow: hidden; color: #071a2f; font-size: 15px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.org-drag-dots { color: #94a3b8; font-size: 15px; letter-spacing: -4px; transform: rotate(90deg); }
.org-card-action { color: #94a3b8; font-weight: 900; letter-spacing: 1px; }
.org-person { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; }
.org-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: #eaf1ff; color: #1d4ed8; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.org-person b, .org-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-person b { color: #172033; font-size: 14px; }
.org-person small { margin-top: 2px; color: #64748b; font-size: 12px; }
.org-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.org-meta span { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border: 1px solid #dbe3ee; border-radius: 999px; background: #f8fafc; color: #475569; font-size: 12px; font-weight: 800; }
.org-card-footer { margin: 2px -14px -14px; padding: 10px 14px; border-top: 1px solid #edf1f5; border-radius: 0 0 8px 8px; background: #eefaff; color: #0284c7; font-size: 12px; font-weight: 900; text-align: center; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #edf1f5; vertical-align: top; }
th { color: #64748b; font-size: 13px; font-weight: 700; }
.configurable-table-shell { display: grid; gap: 8px; min-width: 0; }
.configurable-table { table-layout: fixed; min-width: 100%; }
.configurable-table th { position: relative; user-select: none; }
.configurable-table th, .configurable-table td { overflow: hidden; text-overflow: ellipsis; }
.configurable-table td { max-width: 520px; }
.configurable-table .table-column-hidden { display: none; }
.table-sort-button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; width: 100%; min-height: 24px; padding: 0 12px 0 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; text-align: left; cursor: pointer; }
.table-sort-button:hover .table-th-label { color: #0f4c81; }
.table-sort-indicator { flex: 0 0 auto; color: #94a3b8; font-size: 11px; line-height: 1; }
.configurable-table th.table-sorted .table-sort-indicator { color: #2563eb; font-weight: 900; }
.configurable-table th.table-sorted .table-th-label { color: #172033; }
.table-config { position: relative; display: flex; justify-content: flex-end; gap: 6px; min-width: 0; }
.table-columns-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 12; display: grid; gap: 6px; width: min(320px, calc(100vw - 40px)); max-height: 360px; overflow: auto; padding: 10px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; box-shadow: 0 16px 42px rgba(15, 23, 42, .16); }
.table-columns-menu[hidden] { display: none; }
.table-columns-menu strong { color: #172033; font-size: 13px; }
.table-columns-menu label { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 4px; color: #334155; font-size: 13px; cursor: pointer; }
.table-columns-menu input { flex: 0 0 auto; }
.admin-preview-control { display: inline-grid; grid-template-columns: auto minmax(150px, 220px); align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--sk-border); border-radius: 8px; background: #fff; }
.admin-preview-control span { color: var(--sk-muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.admin-preview-control select { min-width: 0; border: 0; background: transparent; color: var(--sk-text); font-weight: 800; outline: none; }
.table-column-resizer { position: absolute; top: 0; right: -3px; z-index: 2; width: 8px; height: 100%; cursor: col-resize; touch-action: none; }
.table-column-resizer::after { content: ""; position: absolute; top: 18%; right: 3px; width: 1px; height: 64%; background: transparent; }
.configurable-table th:hover .table-column-resizer::after { background: #93c5fd; }
.table-resizing, .table-resizing * { cursor: col-resize !important; user-select: none !important; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: #f8fbff; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 12px; background: #eaf1ff; color: #1d4ed8; white-space: nowrap; }
.tag.warn { background: #fff7ed; color: #c2410c; }
.tag.ok { background: #ecfdf5; color: #047857; }
.tag.danger { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.tag.ready { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.tag.additional { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.tag.urgent { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.progress { height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: #2563eb; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid #e3e8ef; margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 12px 10px; color: #64748b; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: #1d4ed8; border-bottom: 2px solid #2563eb; }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kv div { min-width: 0; }
.kv span { display: block; color: #64748b; font-size: 12px; margin-bottom: 4px; }
.alert { border: 1px solid #fed7aa; background: #fff7ed; color: #9a3412; border-radius: 8px; padding: 14px; }
.estimate-code-alert { display: grid; gap: 8px; }
.estimate-code-alert p { margin: 0; }
.estimate-code-alert ul { margin: 0; padding-left: 18px; }
.estimate-code-alert li { margin: 4px 0; }
.estimate-code-alert li span { margin-left: 6px; color: #9a3412; font-size: 12px; }
.boot-loading { min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow: hidden; background: #071a2f; color: #071a2f; }
.boot-card { width: min(540px, 100%); display: grid; gap: 18px; padding: 22px; border: 1px solid rgba(148, 163, 184, .32); border-radius: 8px; background: #fff; box-shadow: 0 26px 90px rgba(2, 8, 23, .36); }
.boot-brand-row { display: flex; align-items: center; gap: 14px; }
.boot-brand-row img { width: 42px; height: 42px; object-fit: contain; }
.boot-brand-row div { min-width: 0; display: grid; gap: 3px; }
.boot-brand-row strong { color: #071a2f; font-size: 24px; line-height: 1; }
.boot-brand-row span { color: #64748b; font-size: 14px; }
.boot-scene { position: relative; height: 220px; overflow: hidden; border: 1px solid #dbe3ee; border-radius: 8px; background: #eef6fb; }
.boot-scene::before { content: ""; position: absolute; left: 24px; right: 24px; bottom: 34px; height: 2px; background: #9fb3c8; }
.boot-building { position: absolute; bottom: 36px; width: 84px; border: 2px solid #071a2f; border-bottom: 0; background-color: #e8f1f7; background-image: repeating-linear-gradient(90deg, transparent 0 13px, rgba(7, 26, 47, .14) 13px 17px), repeating-linear-gradient(0deg, transparent 0 16px, rgba(7, 26, 47, .12) 16px 19px); box-shadow: inset 0 -18px 0 rgba(37, 99, 235, .10); animation: bootWindowPulse 2.4s ease-in-out infinite; }
.boot-building-left { left: 72px; height: 96px; }
.boot-building-center { left: 176px; width: 116px; height: 132px; animation-delay: .25s; }
.boot-building-right { right: 76px; height: 112px; animation-delay: .5s; }
.boot-crane { position: absolute; left: 74px; top: 24px; width: 250px; height: 112px; color: #0f766e; }
.boot-crane-mast { position: absolute; left: 18px; top: 30px; width: 7px; height: 106px; background: currentColor; }
.boot-crane-arm { position: absolute; left: 0; top: 26px; width: 232px; height: 7px; background: currentColor; }
.boot-crane-arm::after { content: ""; position: absolute; right: -24px; top: -7px; border-left: 24px solid currentColor; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.boot-crane-cable { position: absolute; left: 166px; top: 32px; width: 2px; height: 50px; background: #334155; animation: bootCableMove 2.8s ease-in-out infinite; }
.boot-crane-hook { position: absolute; left: 158px; top: 78px; width: 18px; height: 14px; border: 3px solid #334155; border-top: 0; border-radius: 0 0 8px 8px; animation: bootHookMove 2.8s ease-in-out infinite; }
.boot-door { position: absolute; bottom: 38px; width: 25px; height: 54px; border: 2px solid #071a2f; border-radius: 3px 3px 0 0; background: #2563eb; box-shadow: inset 0 0 0 4px rgba(255,255,255,.18); animation: bootDoorMove 3.6s linear infinite; }
.boot-door::after { content: ""; position: absolute; right: 4px; top: 26px; width: 4px; height: 4px; border-radius: 50%; background: #fbbf24; }
.boot-door-a { left: -32px; }
.boot-door-b { left: -32px; animation-delay: 1.8s; background: #0f766e; }
.boot-truck { position: absolute; right: 46px; bottom: 26px; width: 92px; height: 38px; animation: bootTruckSettle 1.8s ease-in-out infinite; }
.boot-truck span { position: absolute; left: 0; bottom: 10px; width: 66px; height: 28px; border: 2px solid #071a2f; border-radius: 5px 2px 2px 5px; background: #fbbf24; }
.boot-truck span::after { content: ""; position: absolute; right: -24px; bottom: -2px; width: 24px; height: 22px; border: 2px solid #071a2f; border-left: 0; border-radius: 0 5px 3px 0; background: #fff; }
.boot-truck i, .boot-truck b { position: absolute; bottom: 0; width: 16px; height: 16px; border: 3px solid #071a2f; border-radius: 50%; background: #fff; }
.boot-truck i { left: 12px; }
.boot-truck b { right: 12px; }
.boot-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #dbe3ee; }
.boot-progress span { display: block; width: 42%; height: 100%; border-radius: inherit; background: #2563eb; animation: bootProgressMove 1.6s ease-in-out infinite; }
@keyframes bootWindowPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.08); } }
@keyframes bootCableMove { 0%, 100% { transform: translateX(0); height: 50px; } 50% { transform: translateX(42px); height: 62px; } }
@keyframes bootHookMove { 0%, 100% { transform: translateX(0) translateY(0); } 50% { transform: translateX(42px) translateY(12px); } }
@keyframes bootDoorMove { 0% { transform: translateX(0); opacity: 0; } 10%, 82% { opacity: 1; } 100% { transform: translateX(420px); opacity: 0; } }
@keyframes bootTruckSettle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes bootProgressMove { 0% { transform: translateX(-110%); } 100% { transform: translateX(250%); } }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #eef2f7; }
.login .card { width: min(420px, 100%); }
.login-download { margin-top: 14px; display: grid; gap: 6px; }
.login-download .btn { width: 100%; }
.mobile-shell { min-height: 100vh; padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); background: #eef2f7; display: grid; align-items: start; }
.mobile-card { width: min(520px, 100%); margin: 0 auto; background: #fff; border: 1px solid #dbe3ee; border-radius: 8px; padding: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.mobile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mobile-brand { margin: 0 0 12px; }
.scanner-card h1 { font-size: 24px; }
.scanner-frame { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 8px; background: #0f172a; border: 1px solid #111827; }
.scanner-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-corners { position: absolute; inset: 16%; border: 2px solid rgba(255,255,255,.92); border-radius: 8px; box-shadow: 0 0 0 999px rgba(15,23,42,.36); pointer-events: none; }
.scanner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.scanner-fallback { line-height: 1.45; }
.manual-scan { padding: 0; margin-top: 14px; }
.tracking-card { width: min(520px, 100%); }
.public-door-page { min-height: 100vh; padding: 22px; background: #eef4f7; }
.public-door-card { width: min(980px, 100%); margin: 0 auto; display: grid; gap: 14px; }
.public-door-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px; border-radius: 10px; background: #071a2f; color: #fff; box-shadow: 0 16px 44px rgba(7, 26, 47, .18); }
.public-door-hero .brand { margin-bottom: 10px; color: #fff; }
.public-door-kicker { margin: 0 0 5px; color: rgba(255,255,255,.68); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.public-door-hero h1 { margin: 0; color: #fff; font-size: clamp(34px, 7vw, 58px); line-height: .98; letter-spacing: 0; overflow-wrap: anywhere; }
.public-door-subnumber { margin-top: 9px; color: rgba(255,255,255,.76); font-size: 15px; font-weight: 900; }
.public-door-status { flex: 0 0 auto; padding-top: 2px; }
.public-door-location { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(170px, .65fr); gap: 12px; }
.public-door-location > div, .public-door-section { border: 1px solid #d6e2ed; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.public-door-location > div { padding: 15px 16px; }
.public-door-location span, .public-door-detail span { display: block; color: #64748b; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.public-door-location strong { display: block; margin-top: 5px; color: #071a2f; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.public-door-section { padding: 16px; }
.public-door-section h2 { margin: 0 0 12px; color: #071a2f; font-size: 18px; }
.public-door-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.public-door-detail { min-width: 0; padding: 11px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.public-door-detail strong { display: block; margin-top: 5px; color: #0f172a; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.public-door-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.public-door-timeline li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 0 0 14px; }
.public-door-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: #dbe3ee; }
.public-door-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 2px; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; }
.public-door-timeline li.active .public-door-dot { border-color: #2563eb; background: #2563eb; }
.public-door-timeline strong { display: block; color: #0f172a; font-size: 14px; }
.public-door-timeline p { margin: 5px 0 0; color: #475569; font-size: 13px; line-height: 1.35; }
.public-door-timeline small { color: #64748b; font-size: 12px; font-weight: 700; }
.public-door-actions { justify-content: flex-start; padding-bottom: 10px; }
.customer-portal-page { min-height: 100vh; padding: 22px; background: #eef4f7; }
.customer-portal-hero { width: min(1180px, 100%); margin: 0 auto 14px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 16px; padding: 22px; border-radius: 10px; background: #071a2f; color: #fff; box-shadow: 0 16px 44px rgba(7, 26, 47, .18); }
.customer-portal-hero .brand, .customer-portal-hero h1 { color: #fff; }
.customer-portal-hero h1 { margin: 0; font-size: clamp(28px, 5vw, 46px); line-height: 1.05; }
.customer-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.customer-summary .public-door-detail { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.customer-summary .public-door-detail span, .customer-summary .public-door-detail strong { color: #fff; }
.customer-project-list { width: min(1180px, 100%); margin: 0 auto; display: grid; gap: 14px; }
.customer-project-card { display: grid; gap: 14px; padding: 16px; border: 1px solid #d6e2ed; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.customer-project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.customer-project-head h2 { margin: 0; color: #071a2f; font-size: 24px; line-height: 1.12; }
.customer-project-card .public-door-kicker { color: #64748b; }
.customer-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.customer-progress > div { height: 10px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.customer-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0ea5e9, #22c55e); }
.customer-progress strong { color: #071a2f; font-size: 14px; }
.customer-stage-widget { overflow: hidden; border: 1px solid #d9e7ef; border-radius: 10px; background: #f8fbff; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.customer-stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 0; }
.customer-stage-head span { display: block; color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.customer-stage-head strong { display: block; margin-top: 4px; color: #071a2f; font-size: 18px; line-height: 1.15; }
.customer-stage-head small { display: block; margin-top: 3px; color: #475569; font-size: 13px; font-weight: 700; }
.customer-stage-head b { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 38px; padding: 0 12px; border-radius: 999px; background: #e0f2fe; color: #0369a1; font-size: 16px; }
.customer-stage-canvas { display: block; width: 100%; height: 178px; margin-top: 4px; }
.customer-door-status-widget { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(190px, 260px) minmax(240px, 1fr); align-items: center; gap: 16px; padding: 16px; border: 1px solid #d9e7ef; border-radius: 10px; background: linear-gradient(135deg, #ffffff, #f4faf8); }
.customer-flow-status-widget { background: linear-gradient(135deg, #ffffff, #f8fbff); }
.customer-door-status-copy span { display: block; color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.customer-door-status-copy strong { display: block; margin-top: 6px; color: #071a2f; font-size: 28px; line-height: 1; }
.customer-door-status-copy small { display: block; margin-top: 8px; color: #475569; font-weight: 700; }
.customer-door-donut-wrap { position: relative; display: grid; place-items: center; min-width: 0; }
.customer-door-status-canvas, .customer-flow-status-canvas { display: block; width: min(240px, 100%); height: 220px; }
.customer-door-donut-center { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 92px; height: 92px; border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(15,23,42,.10); pointer-events: none; }
.customer-door-donut-center strong { color: #071a2f; font-size: 30px; line-height: 1; }
.customer-door-donut-center span { margin-top: -4px; color: #64748b; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.customer-door-status-legend { display: grid; gap: 9px; }
.customer-door-status-legend div { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: rgba(255,255,255,.72); }
.customer-door-status-legend i { width: 14px; height: 14px; border-radius: 999px; box-shadow: 0 0 0 3px rgba(15,23,42,.04); }
.customer-door-status-legend span { min-width: 0; color: #334155; font-size: 13px; font-weight: 800; line-height: 1.22; }
.customer-door-status-legend strong { color: #071a2f; font-size: 18px; }
.customer-lock-status-panel { display: grid; gap: 12px; padding: 16px; border: 1px solid #d9e7ef; border-radius: 10px; background: linear-gradient(135deg, #ffffff, #f7fbff); }
.customer-lock-status-panel span { display: block; color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.customer-lock-status-panel strong { display: block; margin-top: 5px; color: #071a2f; font-size: 22px; line-height: 1.15; }
.customer-lock-bars { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.customer-lock-bars div { overflow: hidden; height: 12px; border-radius: 999px; background: #e8eef5; }
.customer-lock-bars i { display: block; height: 100%; min-width: 0; border-radius: inherit; }
.customer-lock-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.customer-lock-legend span { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 6px 9px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #334155; font-size: 12px; letter-spacing: 0; text-transform: none; }
.customer-lock-legend i { width: 10px; height: 10px; border-radius: 999px; }
.customer-kpis .public-door-detail { background: #fbfdff; }
.customer-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; }
.customer-step { min-width: 0; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.customer-step span { display: block; color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.customer-step strong { display: block; margin-top: 5px; color: #0f172a; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.customer-step small { display: block; margin-top: 4px; color: #64748b; font-size: 11px; }
.customer-step.ok { border-color: #bbf7d0; background: #f0fdf4; }
.customer-step.ready { border-color: #bae6fd; background: #f0f9ff; }
.customer-step.warn { border-color: #fde68a; background: #fffbeb; }
.customer-step.danger { border-color: #fecaca; background: #fef2f2; }
.customer-details { border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.customer-details summary { cursor: pointer; padding: 12px 14px; color: #071a2f; font-weight: 900; }
.customer-details > .table-scroll, .customer-details > .muted { margin: 0 12px 12px; }
.customer-qr-modal { width: min(900px, 96vw); }
.customer-qr-panel { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
.customer-qr-panel h3 { margin: 0 0 8px; color: #071a2f; font-size: 22px; }
.customer-qr-box { display: grid; place-items: center; gap: 8px; padding: 14px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; color: #64748b; font-size: 13px; font-weight: 800; }
.customer-qr-box img { width: 320px; height: 320px; padding: 8px; border-radius: 8px; background: #fff; box-shadow: 0 8px 26px rgba(15, 23, 42, .08); }
.customer-qr-loading { padding: 18px; color: #64748b; font-weight: 800; }
@media (max-width: 760px) {
  .public-door-page, .customer-portal-page { padding: 12px; }
  .public-door-hero { display: grid; padding: 16px; }
  .public-door-location, .public-door-grid { grid-template-columns: 1fr; }
  .public-door-location strong { font-size: 18px; }
  .customer-portal-hero, .customer-qr-panel { grid-template-columns: 1fr; }
  .customer-summary, .customer-steps { grid-template-columns: 1fr; }
  .customer-project-head { display: grid; }
  .customer-stage-head { display: grid; }
  .customer-stage-head b { justify-self: start; }
  .customer-stage-canvas { height: 260px; }
  .customer-door-status-widget { grid-template-columns: 1fr; justify-items: stretch; }
  .customer-door-status-copy strong { font-size: 24px; }
  .customer-door-status-canvas, .customer-flow-status-canvas { width: min(230px, 100%); height: 220px; justify-self: center; }
  .customer-door-donut-center { width: 84px; height: 84px; }
  .customer-door-donut-center strong { font-size: 26px; }
  .customer-qr-box img { width: 240px; height: 240px; }
}
.form { display: grid; gap: 12px; margin-top: 18px; }
.field-app { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: #eef4f7; }
.field-topbar { position: sticky; top: 0; z-index: 20; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 14px 12px; background: #071a2f; color: #fff; box-shadow: 0 8px 26px rgba(7, 26, 47, .18); }
.field-topbar div { min-width: 0; display: grid; gap: 2px; }
.field-topbar strong { font-size: 18px; font-weight: 900; }
.field-topbar span { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 800; }
.field-topbar .btn { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; }
.field-content { width: min(620px, 100%); margin: 0 auto; padding: 14px; }
.field-home, .field-door-page, .field-scan-page { display: grid; gap: 14px; }
.field-card { display: grid; gap: 14px; padding: 16px; border: 1px solid #d6e2ed; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.field-user-card span, .field-door-head span, .field-door-summary span { color: #64748b; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.field-user-card h1, .field-door-head h1, .field-scanner-card h1 { margin: 0; color: #071a2f; font-size: 24px; line-height: 1.15; }
.field-object { padding: 12px; border: 1px solid #dbeafe; border-radius: 8px; background: #f0f9ff; color: #075985; font-size: 15px; font-weight: 800; line-height: 1.3; }
.field-shift-state { width: fit-content; border: 1px solid #fed7aa; border-radius: 999px; padding: 7px 11px; background: #fff7ed; color: #c2410c; font-size: 13px; font-weight: 900; }
.field-shift-state.active { border-color: #86efac; background: #ecfdf5; color: #047857; }
.field-action-grid { display: grid; gap: 12px; }
.field-action-grid.compact { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.field-big-button { width: 100%; min-height: 120px; display: flex; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 10px; padding: 18px; background: #fff; color: #071a2f; cursor: pointer; text-align: center; box-shadow: 0 8px 22px rgba(15, 23, 42, .08); }
.field-big-button span { font-size: clamp(24px, 7vw, 34px); font-weight: 950; line-height: 1.05; }
.field-big-button.primary { border-color: #0f766e; background: #0f766e; color: #fff; }
.field-big-button.camera { border-color: #0369a1; background: #0369a1; color: #fff; }
.field-big-button:disabled { opacity: .58; cursor: wait; }
.field-sync-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff7ed; }
.field-sync-card div { display: grid; gap: 2px; }
.field-sync-card strong { color: #9a3412; }
.field-sync-card span { color: #c2410c; font-size: 12px; font-weight: 800; }
.field-back-row { display: flex; gap: 10px; }
.field-back-row .btn { flex: 1; min-height: 48px; }
.field-scanner-card .scanner-frame { margin-bottom: 12px; max-height: min(52dvh, 520px); }
.field-scanner-card > .btn { width: 100%; min-height: 48px; margin-top: 10px; }
.field-manual-code { border-top: 1px solid #e2e8f0; padding-top: 10px; }
.field-manual-code summary { color: #475569; font-weight: 800; cursor: pointer; }
.field-door-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.field-door-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field-door-summary div { min-width: 0; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.field-door-summary strong { display: block; margin-top: 4px; color: #0f172a; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.field-status-row { display: flex; flex-wrap: wrap; gap: 8px; }
.field-work-form { display: grid; gap: 14px; }
.field-photo-picker { display: grid; gap: 8px; margin: 0; }
.field-photo-picker > span { color: #334155; font-size: 15px; font-weight: 900; }
.field-photo-picker input { width: 100%; min-height: 58px; border: 2px dashed #93c5fd; border-radius: 8px; padding: 16px; background: #f8fbff; font-size: 16px; }
@media (max-width: 980px) { .app { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; max-height: none; } .brand-wrap { margin-bottom: 12px; } .nav { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; } .nav-group { flex: 0 0 230px; } .grid.cols-4, .grid.cols-2, .kv, .operator-status-grid, .operator-action-grid, .pto-metric-row, .pto-step-grid, .task-filters, .launch-card, .launch-grid, .faq-grid { grid-template-columns: 1fr; } .operator-panel-head, .pto-hero { align-items: flex-start; flex-direction: column; } .operator-panel-head .btn, .pto-hero-actions { width: 100%; justify-content: flex-start; } .title-row, .toolbar, .topbar { align-items: flex-start; flex-direction: column; height: auto; padding-top: 14px; padding-bottom: 14px; } .topbar-actions { width: 100%; justify-content: space-between; margin-left: 0; } .settings-dropdown { left: 0; right: auto; width: min(320px, calc(100vw - 32px)); } .user-switch { max-width: 100%; } .topbar-title strong { white-space: normal; } .content { padding: 16px; } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.metric-row .card { box-shadow: none; }
.compact { max-width: 240px; }
.stat-value.warn { color: #c2410c; }
.stat-value.danger { color: #dc2626; }
.finance-kv { margin-bottom: 18px; }
.china-project-card { border-color: #bae6fd; background: #f8fcff; }
.china-project-card .toolbar { margin-bottom: 14px; }
.china-project-card .grid { margin-bottom: 14px; }
.china-project-card .stat-value.ok { color: #047857; }
.china-project-card .china-kv { margin: 14px 0; }
.modal-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(15, 23, 42, .42); }
.modal { width: min(780px, 100%); max-height: min(88vh, 820px); overflow: auto; background: #fff; border-radius: 8px; border: 1px solid #dbe3ee; box-shadow: 0 24px 80px rgba(15, 23, 42, .24); }
.modal.wide-modal { width: min(1180px, 96vw); }
.modal.file-viewer-modal { width: min(1480px, 96vw); max-height: 94vh; }
.modal.document-preview-modal { width: min(1180px, 96vw); }
.modal.spec-builder-modal { width: min(1380px, 100%); }
.spec-builder-page-shell { min-height: 100vh; padding: 16px; background: #eef3f8; }
.spec-builder-page-host { width: 100%; }
.spec-builder-workspace { min-height: calc(100vh - 32px); background: #fff; border: 1px solid #dbe3ee; border-radius: 8px; box-shadow: 0 10px 32px rgba(15, 23, 42, .08); overflow: hidden; }
.spec-builder-workspace .form { padding: 14px; }
.spec-builder-workspace .modal-head { position: sticky; top: 0; z-index: 4; }
.spec-builder-workspace .spec-builder-scroll { max-height: calc(100vh - 245px); }
.modal-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; background: #fff; border-bottom: 1px solid #edf1f5; }
.spec-builder-head h2 { margin: 0; }
.spec-builder-head p { margin: 4px 0 0; }
.icon-btn { width: 32px; height: 32px; border: 0; border-radius: 6px; background: #f1f5f9; cursor: pointer; font-size: 22px; line-height: 1; }
.form { padding: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form label span { display: block; color: #64748b; font-size: 12px; margin-bottom: 6px; }
.form-section { display: grid; gap: 12px; padding: 12px; border: 1px solid #e3e8ef; border-radius: 8px; background: #f8fafc; }
.form-section h3 { margin: 0; color: #334155; font-size: 14px; }
.compact-input { min-width: 92px; padding: 7px 8px; font-size: 13px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; color: #475569; font-size: 13px; white-space: nowrap; }
.attached-files { display: flex; flex-wrap: wrap; gap: 6px; }
.attached-files span { display: inline-flex; max-width: 100%; padding: 5px 8px; border-radius: 999px; background: #eaf1ff; color: #1d4ed8; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.textarea { min-height: 160px; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.compact-actions { justify-content: flex-start; }
.drawing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.drawing-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
.drawing-card .row-actions { grid-column: 1 / -1; }
.drawing-icon { display: grid; place-items: center; min-height: 54px; border-radius: 8px; background: #08213f; color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.drawing-body { min-width: 0; }
.drawing-body h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.drawing-body p { margin: 0 0 8px; overflow-wrap: anywhere; }
.drawing-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.drawing-meta span { padding: 4px 7px; border-radius: 999px; background: #eef6ff; color: #164e63; border: 1px solid #cce7f6; font-size: 12px; font-weight: 800; }
.empty-state { display: grid; gap: 8px; justify-items: start; padding: 24px; border: 1px dashed #b7c7dc; border-radius: 8px; background: #f8fbff; }
.empty-state h3 { margin: 0; }
.file-preview, .cad-preview { min-height: min(68vh, 720px); border: 1px solid #dbe3ee; border-radius: 8px; background: #071225; overflow: hidden; }
.file-preview iframe, .cad-preview-frame { display: block; width: 100%; height: min(68vh, 720px); border: 0; background: #fff; }
.file-preview-image { display: grid; place-items: center; padding: 12px; }
.file-preview-image img { max-width: 100%; max-height: min(66vh, 700px); object-fit: contain; border-radius: 6px; }
.cad-preview { display: grid; }
.cad-preview-note { align-self: center; justify-self: center; width: min(620px, calc(100% - 32px)); padding: 22px; border-radius: 8px; background: #fff; box-shadow: 0 20px 80px rgba(2, 6, 23, .28); }
.cad-preview-note h3 { margin: 0 0 8px; }
.compact-cad-note { align-self: start; justify-self: stretch; width: auto; margin: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid #dbe3ee; }
.compact-cad-note + .cad-preview-frame { height: min(60vh, 640px); }
.hidden { display: none !important; }
.spec-builder-settings { margin-bottom: 12px; }
.spec-builder-structure { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.4fr); gap: 12px 16px; align-items: start; margin-bottom: 12px; padding: 12px; border: 1px solid #dbeafe; border-radius: 8px; background: #f8fbff; }
.spec-builder-structure h3 { margin: 0; font-size: 15px; color: #0f172a; }
.spec-builder-structure p { margin: 4px 0 0; }
.spec-structure-grid { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 10px; }
.compact-check-grid { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.spec-builder-structure .row-actions { grid-column: 1 / -1; }
.spec-builder-actions { margin-bottom: 10px; }
.spec-builder-history { margin-bottom: 12px; }
.spec-builder-history-list { display: grid; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--sk-border); background: #f8fafc; }
.spec-builder-history-entry { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; }
.spec-builder-history-entry strong { color: #0f172a; font-size: 12px; }
.spec-builder-history-entry span { color: #0f172a; font-weight: 800; }
.spec-builder-history-entry small { color: #64748b; line-height: 1.35; }
.spec-builder-scroll { max-height: 56vh; overflow: auto; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; }
.spec-builder-table { min-width: 2200px; margin: 0; }
.spec-builder-table th { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: #334155; font-size: 11px; white-space: nowrap; }
.spec-builder-table th, .spec-builder-table td { padding: 6px; vertical-align: top; }
.spec-builder-table .compact-input { width: 100%; min-width: 82px; }
.spec-builder-table [data-field="purpose"] { min-width: 180px; }
.spec-builder-table [data-field="comment"] { min-width: 150px; }
.spec-name-preview { min-width: 260px; max-width: 320px; color: #0f172a; font-size: 12px; line-height: 1.3; white-space: normal; }
.spec-row-number { min-width: 36px; text-align: center; color: #64748b; font-weight: 800; }
@media (max-width: 760px) { .metric-row, .form-grid { grid-template-columns: 1fr; } .actions { justify-content: flex-start; margin-top: 12px; } }
@media (max-width: 980px) { .spec-builder-structure, .spec-structure-grid { grid-template-columns: 1fr; } }
.small { padding: 6px 9px; font-size: 13px; }
.users-summary .card { min-height: 92px; }
.access-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; margin-top: 18px; }
.access-layout h3, .permission-group h3 { margin: 0 0 10px; font-size: 14px; color: #334155; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid #e3e8ef; border-radius: 6px; margin-bottom: 8px; background: #fff; cursor: pointer; }
.check-row input { margin-top: 3px; }
.check-row small { display: block; margin-top: 3px; color: #64748b; line-height: 1.35; }
.compact-check-row { margin-bottom: 0; padding: 8px; }
.drive-picker { min-width: 0; }
.drive-picker-list { display: grid; gap: 6px; max-height: 260px; overflow: auto; padding-right: 4px; }
.drive-picker .check-row strong { font-size: 12px; line-height: 1.25; word-break: break-word; }
.drive-picker .check-row small { font-size: 11px; }
.drive-picker-item { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 8px; align-items: stretch; }
.drive-picker-item .check-row { margin-bottom: 0; }
.drive-preview-btn { width: 36px; height: auto; min-height: 42px; font-size: 16px; border: 1px solid #d7e1ee; color: #0f2744; }
.drive-preview-btn:hover { background: #e0f2fe; border-color: #7dd3fc; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.permission-group { padding: 12px; border: 1px solid #e3e8ef; border-radius: 8px; background: #f8fafc; }
.permission-group .check-row { background: #fff; }
@media (max-width: 980px) { .access-layout, .permission-grid { grid-template-columns: 1fr; } }
.project-toolbar { align-items: stretch; margin-bottom: 10px; }
.project-toolbar-simple { display: grid; grid-template-columns: auto minmax(240px, 1fr) auto; gap: 10px; align-items: center; }
.project-filter-details { margin: 6px 0 12px; }
.project-filter-details .project-role-badge { align-self: end; min-height: 38px; }
.project-role-badge { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 10px; border: 1px solid #dbeafe; border-radius: 7px; background: #eff6ff; color: #1e3a8a; font-size: 12px; font-weight: 800; white-space: nowrap; }
.project-table-note { margin-bottom: 10px; padding: 8px 10px; border: 1px solid var(--sk-border, #e3e8ef); border-radius: 8px; background: #f8fafc; color: #475569; font-size: 12px; font-weight: 800; }
.segmented { display: inline-flex; flex: 0 0 auto; padding: 3px; border: 1px solid #cbd5e1; border-radius: 7px; background: #f8fafc; }
.segmented button { border: 0; border-radius: 5px; padding: 7px 11px; background: transparent; color: #475569; cursor: pointer; }
.segmented button.active { background: #2563eb; color: #fff; }
#projectsBoard { min-width: 0; }
.kanban-board { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 280px); gap: 10px; max-height: calc(100vh - 230px); min-height: 360px; overflow: auto; padding: 2px 2px 10px; overscroll-behavior: contain; }
.kanban-column { min-height: 0; max-height: calc(100vh - 244px); border: 1px solid #e3e8ef; border-radius: 8px; background: #f8fafc; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.kanban-column header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-bottom: 1px solid #e3e8ef; background: #f8fafc; border-radius: 8px 8px 0 0; }
.kanban-column header span { display: block; margin-top: 3px; color: #64748b; font-size: 12px; }
.kanban-column header small { display: block; max-width: 190px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #94a3b8; font-size: 10px; line-height: 1.2; }
.kanban-column header b { white-space: nowrap; color: #334155; font-size: 12px; }
.kanban-items { display: grid; align-content: start; gap: 8px; padding: 9px; overflow-y: auto; min-height: 0; }
.kanban-card { position: relative; display: grid; gap: 6px; padding: 10px; border: 1px solid #dbe3ee; border-radius: 7px; background: #fff; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.kanban-card:hover { border-color: #93c5fd; box-shadow: 0 8px 24px rgba(37, 99, 235, .12); }
.kanban-card.ready-card { border-color: #86efac; background: #f0fdf4; box-shadow: 0 1px 2px rgba(22, 101, 52, .08); }
.kanban-card.ready-card:hover { border-color: #22c55e; box-shadow: 0 8px 24px rgba(22, 163, 74, .16); }
.kanban-card.ready-card .kanban-card-title { color: #166534; }
.kanban-card-title { color: #0f172a; font-weight: 800; line-height: 1.2; padding-right: 28px; font-size: 14px; }
.kanban-delete { position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; border: 1px solid #fecaca; border-radius: 6px; background: #fff1f2; color: #be123c; cursor: pointer; font-size: 18px; line-height: 1; }
.kanban-delete:hover { background: #ffe4e6; border-color: #fda4af; }
.kanban-meta { display: grid; gap: 2px; }
.kanban-meta span { color: #64748b; font-size: 11px; }
.kanban-meta strong { font-size: 12px; color: #334155; }
.kanban-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.kanban-progress div { height: 5px; overflow: hidden; border-radius: 999px; background: #e5e7eb; }
.kanban-progress span { display: block; height: 100%; background: #2563eb; }
.kanban-progress b { color: #475569; font-size: 11px; }
.kanban-card-footer { display: flex; justify-content: space-between; gap: 8px; color: #475569; font-size: 11px; }
.warn-text { color: #c2410c; }
.compact-select { min-width: 150px; padding: 7px 9px; }
.public-claim-page { align-items: flex-start; padding: 28px 12px; }
.public-claim-card { width: min(760px, calc(100vw - 24px)); }
.alert.success { border-color: rgba(22, 163, 74, .28); background: #ecfdf3; color: #166534; }
.claim-description { max-width: 320px; white-space: normal; }
.ok-text { color: #047857; }
.kanban-empty { padding: 14px 10px; border: 1px dashed #cbd5e1; border-radius: 7px; color: #64748b; text-align: center; font-size: 12px; }
@media (max-width: 760px) { .segmented { width: 100%; } .segmented button { flex: 1; } .project-kanban-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kanban-board { grid-auto-columns: minmax(240px, 86vw); max-height: calc(100vh - 270px); } .kanban-column { max-height: calc(100vh - 284px); } .project-card-money { grid-template-columns: 1fr; } }
.kanban-hint { margin-bottom: 8px; padding: 8px 10px; border: 1px solid #bfdbfe; border-radius: 7px; background: #eff6ff; color: #1d4ed8; font-size: 12px; }
.kanban-column.drag-over { border-color: #2563eb; background: #eff6ff; box-shadow: inset 0 0 0 1px #2563eb; }
.kanban-card.dragging { opacity: .48; transform: rotate(1deg); }
.kanban-card[draggable="true"] { user-select: none; }
.kanban-status-picker { display: grid; gap: 4px; }
.kanban-status-picker span { color: #64748b; font-size: 11px; }
.kanban-status-picker select { width: 100%; border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 7px; background: #fff; color: #334155; font-size: 12px; }
.kanban-status-picker select:focus { outline: 2px solid #bfdbfe; border-color: #2563eb; }
.project-kanban-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.project-kanban-summary div { min-width: 0; padding: 10px 12px; border: 1px solid var(--sk-border, #e3e8ef); border-radius: 8px; background: #f8fafc; }
.project-kanban-summary span { display: block; margin-bottom: 3px; color: #64748b; font-size: 11px; }
.project-kanban-summary strong { color: #0f172a; font-size: 18px; line-height: 1.1; }
.project-kanban-board { grid-auto-columns: clamp(240px, 22vw, 290px); gap: 10px; max-height: calc(100vh - 250px); padding: 2px 4px 12px; }
.project-kanban-column { background: #f7f9fc; border-color: #d9e4ef; }
.project-kanban-column header { min-height: 58px; padding: 9px 10px; background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%); }
.project-kanban-column header strong { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #172033; font-size: 13px; }
.project-kanban-column header b { align-self: flex-start; padding-top: 1px; color: #60728a; font-weight: 800; }
.project-card { gap: 8px; padding: 10px; border-color: #d8e3ef; border-left: 4px solid var(--sk-sky, #29B6F2); cursor: grab; }
.project-card:active { cursor: grabbing; }
.project-card.overdue-card { border-color: #fca5a5; border-left-color: #dc2626; background: #fffafa; }
.project-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-right: 22px; }
.project-card-head .tag { flex: 0 0 auto; padding: 3px 7px; font-size: 11px; }
.project-card .kanban-card-title { padding-right: 0; font-size: 14px; line-height: 1.25; }
.project-card-object { margin-top: 3px; color: #60728a; font-size: 12px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-card-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 20px; }
.project-card-chip { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 7px; border-radius: 999px; border: 1px solid #dbeafe; background: #eff6ff; color: #1e3a8a; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card-chip.ok { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.project-card-chip.warn { border-color: #fed7aa; background: #fff7ed; color: #9a3412; }
.project-card-chip.danger { border-color: #fecaca; background: #fff1f2; color: #be123c; }
.project-status-picker { grid-template-columns: auto 1fr; align-items: center; gap: 7px; padding: 7px; border: 1px solid #e3e8ef; border-radius: 8px; background: #fbfdff; }
.project-status-picker span { margin: 0; }
.project-status-picker select { padding: 6px 8px; border-radius: 6px; font-size: 12px; }
.project-card-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.project-card-row span, .project-card-money span, .project-card-footer { color: #64748b; font-size: 11px; }
.project-card-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; font-size: 12px; }
.project-card-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.project-card-progress > span { color: #64748b; font-size: 11px; font-weight: 800; }
.project-card .kanban-progress { gap: 6px; }
.project-card .kanban-progress div { height: 6px; }
.project-card-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.project-card-money div { min-width: 0; padding: 7px; border-radius: 7px; background: #f8fafc; border: 1px solid #edf2f7; }
.project-card-money strong { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #172033; font-size: 12px; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
.project-card-footer span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-kanban-board { grid-auto-columns: clamp(240px, 24vw, 300px); }
.document-card .tag { padding: 3px 7px; font-size: 11px; }
.document-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.compact-card-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.compact-document-card { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--sk-border); border-radius: 8px; background: #fff; }
.compact-document-card strong { display: block; color: var(--sk-text); line-height: 1.25; overflow-wrap: anywhere; }
.compact-document-card small { display: block; margin-top: 2px; color: var(--sk-muted); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.factory-kanban-board { grid-auto-columns: clamp(240px, 23vw, 300px); }
.factory-card .kanban-card-title { padding-right: 0; }
.factory-card.urgent-card { border-color: #fca5a5; background: #fff7f7; }
.factory-project-card { gap: 10px; border-left: 4px solid var(--sk-sky, #29B6F2); }
.factory-card-subtitle { color: #64748b; font-size: 12px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.factory-card-stats, .factory-group-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.factory-card-stats div, .factory-group-summary div { min-width: 0; padding: 7px; border: 1px solid #e3e8ef; border-radius: 7px; background: #f8fafc; }
.factory-card-stats span, .factory-group-summary span { display: block; color: #64748b; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.factory-card-stats strong, .factory-group-summary strong { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #0f172a; font-size: 13px; }
.factory-items-preview { display: grid; gap: 5px; margin: 0; padding: 8px; list-style: none; border: 1px solid #e8eef6; border-radius: 8px; background: #fbfdff; }
.factory-items-preview li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
.factory-items-preview strong, .factory-items-preview span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.factory-items-preview strong { color: #172033; }
.factory-items-preview span { color: #64748b; }
.shipment-compose { display: grid; gap: 14px; }
.shipment-form-grid { margin-bottom: 2px; }
.shipment-compose-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.small-input { max-width: 110px; padding: 7px 9px; }
.table-scroll { overflow: auto; }
.truck-load-panel { display: grid; gap: 8px; padding: 12px; border: 1px solid #dbe3ee; border-radius: 8px; background: #f8fafc; }
.truck-load-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.truck-load-bar { height: 10px; overflow: hidden; border-radius: 999px; background: #e5e7eb; }
.truck-load-bar span { display: block; height: 100%; max-width: 100%; background: #2563eb; }
.load-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; padding: 4px 9px; border-radius: 999px; background: #eaf1ff; color: #1d4ed8; font-weight: 800; font-size: 12px; }
.load-badge.warn { background: #fff7ed; color: #c2410c; }
.load-badge.ok { background: #ecfdf5; color: #047857; }
.door-registry-card { display: grid; gap: 12px; }
.door-registry-card .toolbar h2 { margin-bottom: 2px; }
.door-registry-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.door-registry-summary div { min-width: 0; padding: 10px 12px; border: 1px solid #dbe3ee; border-radius: 8px; background: #f8fafc; }
.door-registry-summary span { display: block; margin-bottom: 3px; color: #64748b; font-size: 11px; }
.door-registry-summary strong { color: #172033; font-size: 18px; line-height: 1.1; }
.door-registry-content { margin-top: 2px; }
.door-registry-content[hidden] { display: none; }
.notice-modal { width: min(560px, calc(100vw - 28px)); }
.notice-body { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; padding: 4px 0 14px; }
.notice-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #fff7ed; color: #c2410c; font-weight: 900; font-size: 20px; }
.notice-title { margin: 0 0 4px; color: #172033; font-size: 16px; line-height: 1.35; font-weight: 800; }
.notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 16px; }
.notice-grid div { min-width: 0; padding: 10px 12px; border: 1px solid #dbe3ee; border-radius: 8px; background: #f8fafc; }
.notice-grid span { display: block; margin-bottom: 4px; color: #64748b; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.notice-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #172033; font-size: 13px; }
.duplicate-notice .notice-icon { background: #eff6ff; color: #1d4ed8; }
@media (max-width: 620px) { .notice-grid { grid-template-columns: 1fr; } }


:root {
  --sk-navy: #071739;
  --sk-sky: #29B6F2;
  --sk-white: #FFFFFF;
  --sk-bg: #F4F8FB;
  --sk-surface: #FFFFFF;
  --sk-soft: #EAF8FE;
  --sk-soft-strong: #D8F1FD;
  --sk-border: #DCE8F2;
  --sk-border-strong: #B7DFF2;
  --sk-text: #071739;
  --sk-muted: #60728A;
}
body { font-family: Manrope, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--sk-bg); color: var(--sk-text); }
.sidebar { background: linear-gradient(180deg, var(--sk-navy) 0%, #09214f 55%, #061229 100%); border-right: 0; color: var(--sk-white); box-shadow: 10px 0 28px rgba(7, 23, 57, .08); }
.brand { display: flex; align-items: center; width: 168px; height: 48px; margin: 0 0 8px; overflow: hidden; color: transparent; font-size: 0; background: url("/brand/sk-group-logo-dark.svg") left center / contain no-repeat; }
.sidebar .brand { background-image: url("/brand/sk-group-logo-white.svg"); }
.mobile-brand { margin: 0 0 12px; }
.nav button { color: rgba(255,255,255,.76); }
.nav button.active, .nav button:hover { background: rgba(41, 182, 242, .16); color: var(--sk-white); box-shadow: inset 3px 0 0 var(--sk-sky); }
.nav button.active .nav-icon, .nav button:hover .nav-icon { color: var(--sk-navy); }
.nav button.active .nav-text small, .nav button:hover .nav-text small { color: rgba(255,255,255,.68); }
.topbar { background: rgba(255,255,255,.92); border-color: var(--sk-border); backdrop-filter: blur(10px); }
.card { background: var(--sk-surface); border-color: var(--sk-border); }
.top-icon-btn { border-color: var(--sk-border); color: var(--sk-navy); }
.top-icon-btn:hover, .top-icon-btn.active { border-color: var(--sk-sky); background: var(--sk-soft); color: var(--sk-navy); }
.settings-dropdown { border-color: var(--sk-border); }
.settings-dropdown button:hover, .settings-dropdown button.active { background: var(--sk-soft); color: var(--sk-navy); }
.user-avatar { background: var(--sk-soft); color: var(--sk-navy); border: 1px solid var(--sk-soft-strong); }
.muted, .stat-label, th, .kv span { color: var(--sk-muted); }
.input:focus, .kanban-status-picker select:focus { outline: 2px solid var(--sk-soft-strong); border-color: var(--sk-sky); }
.btn { color: var(--sk-text); }
.btn.primary, .segmented button.active { background: var(--sk-navy); border-color: var(--sk-navy); color: #fff; }
.btn.primary:hover { background: #0A2457; border-color: #0A2457; }
tr.clickable:hover, .kanban-column.drag-over, .kanban-hint { background: var(--sk-soft); }
.tag, .attached-files span, .load-badge { background: var(--sk-soft); color: var(--sk-navy); border: 1px solid var(--sk-soft-strong); }
.progress > span, .kanban-progress span, .truck-load-bar span { background: var(--sk-sky); }
.tabs { border-bottom-color: var(--sk-border); }
.tabs button { color: var(--sk-muted); }
.tabs button.active { color: var(--sk-navy); border-bottom-color: var(--sk-sky); }
.login { background: linear-gradient(135deg, var(--sk-navy) 0%, #0B2D66 48%, var(--sk-soft) 48%, var(--sk-bg) 100%); }
.mobile-shell { background: var(--sk-bg); }
.scanner-frame { background: var(--sk-navy); border-color: var(--sk-navy); }
.form-section, .check-row, .permission-group, .kanban-column, .kanban-column header, .history-list { border-color: var(--sk-border); }
.project-form-intro { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--sk-border); border-radius: 8px; background: var(--sk-soft); color: var(--sk-navy); }
.project-form-intro strong { font-size: 14px; }
.project-form-intro span { color: var(--sk-muted); font-size: 13px; line-height: 1.4; }
.project-core-section { background: #fff; }
.form-details { border: 1px solid var(--sk-border); border-radius: 8px; background: #fff; overflow: hidden; }
.form-details summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; cursor: pointer; list-style: none; }
.form-details summary::-webkit-details-marker { display: none; }
.form-details summary::after { content: '+'; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; background: var(--sk-soft); color: var(--sk-navy); font-weight: 900; flex: 0 0 auto; }
.form-details[open] summary::after { content: '−'; }
.form-details summary strong { color: var(--sk-navy); }
.form-details summary span { color: var(--sk-muted); font-size: 12px; text-align: right; }
.form-details > .form-grid { padding: 0 14px 14px; }
.form-details > .card-subsection { display: grid; gap: 14px; padding: 14px; border-top: 1px solid var(--sk-border); }
.shipment-tax-details summary { background: #f8fafc; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.kanban-card:hover { border-color: var(--sk-sky); box-shadow: 0 8px 24px rgba(41, 182, 242, .16); }
.kanban-card-title, .kanban-hint, .load-badge { color: var(--sk-navy); }
.kanban-column.drag-over { border-color: var(--sk-sky); box-shadow: inset 0 0 0 1px var(--sk-sky); }
.form-grid.compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.segmented.sub-tabs { margin-bottom: 12px; }
.compact-toolbar { margin-top: 12px; }
.shipment-collapse { margin-top: 12px; border: 1px solid var(--sk-border); border-radius: 8px; background: #fff; overflow: hidden; }
.shipment-collapse summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; cursor: pointer; list-style: none; }
.shipment-collapse summary::-webkit-details-marker { display: none; }
.shipment-collapse summary::after { content: '+'; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; background: var(--sk-soft); color: var(--sk-navy); font-weight: 900; flex: 0 0 auto; }
.shipment-collapse[open] > summary::after { content: '−'; }
.shipment-collapse summary strong { color: var(--sk-navy); }
.shipment-collapse summary small { margin-left: auto; color: var(--sk-muted); font-size: 12px; font-weight: 800; }
.shipment-year-section { background: #f8fafc; }
.shipment-year-section > summary { background: #eef6ff; }
.shipment-status-section { margin: 10px 12px 12px; box-shadow: none; }
.shipment-status-section > summary { background: #fff; }
.shipment-status-section > .table-scroll, .shipment-internal-section > .table-scroll { margin: 0 12px 12px; }
.shipment-internal-section { border-color: #fde68a; background: #fffdf5; }
.shipment-internal-section > summary { background: #fffbeb; }
.shipment-trip-modal { width: min(1120px, 96vw); }
.shipment-trip-card h3 { margin: 18px 0 8px; }
.shipment-trip-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.shipment-trip-summary > div, .shipment-trip-documents-note { padding: 12px; border: 1px solid var(--sk-border); border-radius: 8px; background: #f8fbff; }
.shipment-trip-summary span { display: block; margin-bottom: 4px; color: var(--sk-muted); font-size: 12px; font-weight: 800; }
.shipment-trip-summary strong { color: var(--sk-navy); }
.shipment-trip-documents-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; background: #eef8ff; }
.shipment-trip-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.document-preview { max-height: min(68vh, 760px); overflow: auto; border: 1px solid var(--sk-border); border-radius: 8px; background: #fff; }
.document-preview-word { padding: 26px 32px; color: var(--sk-navy); line-height: 1.55; }
.document-preview-word p { margin: 0 0 10px; white-space: pre-wrap; }
.document-preview-word table { width: max-content; min-width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 13px; table-layout: auto; }
.document-preview-word th, .document-preview-word td { min-width: 160px; padding: 8px 10px; border: 1px solid #cbd5e1; vertical-align: top; white-space: pre-wrap; overflow-wrap: normal; word-break: normal; }
.document-preview-word th { background: #eef6ff; font-weight: 900; }
.document-preview-text { padding: 18px; white-space: pre-wrap; font-family: Consolas, 'Courier New', monospace; font-size: 13px; }
.document-preview-note { margin-bottom: 12px; }
.document-preview-pdf { min-height: min(72vh, 820px); }
.upd-missing-list { display: grid; gap: 4px; min-width: 180px; }
.upd-missing-item { position: relative; padding-left: 14px; color: #9f1239; font-size: 12px; font-weight: 800; line-height: 1.25; }
.upd-missing-item::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 999px; background: #ef4444; }
.china-project-card { border-color: #bae6fd; background: #f8fcff; }
.china-project-card .toolbar { margin-bottom: 14px; }
.china-project-card .grid { margin-bottom: 14px; }
.china-project-card .stat-value.ok { color: #047857; }
.china-project-card .china-kv { margin: 14px 0; }
.china-items-section { display: grid; gap: 12px; }
.china-item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.china-item-card { display: grid; gap: 12px; border: 1px solid #dbe3ee; border-radius: 8px; padding: 14px; background: #fff; }
.china-item-card.lock { border-color: #fde68a; background: #fffdf5; }
.china-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.china-item-head h3 { margin: 2px 0; font-size: 16px; }
.china-item-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.china-item-stats .card { padding: 10px; box-shadow: none; }
.china-item-stats .stat-value { font-size: 18px; }
.china-item-params { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ai-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.ai-chat-card { display: grid; gap: 14px; min-height: calc(100vh - 170px); }
.ai-chat { display: grid; align-content: start; gap: 12px; max-height: calc(100vh - 300px); overflow: auto; padding-right: 4px; }
.ai-empty { display: grid; gap: 6px; padding: 18px; border: 1px dashed var(--sk-border); border-radius: 8px; background: #f8fafc; color: var(--sk-muted); }
.ai-empty strong { color: var(--sk-navy); }
.ai-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding-top: 12px; border-top: 1px solid var(--sk-border); }
.ai-input { min-height: 86px; }
.ai-message { width: min(760px, 100%); display: grid; gap: 6px; padding: 12px; border: 1px solid var(--sk-border); border-radius: 8px; background: #fff; }
.ai-message.user { justify-self: end; background: var(--sk-soft); border-color: var(--sk-soft-strong); }
.ai-message.pending { opacity: .72; }
.ai-message.error { border-color: #fecaca; background: #fff1f2; }
.ai-message-head { display: flex; justify-content: space-between; gap: 10px; color: var(--sk-muted); font-size: 12px; font-weight: 800; }
.ai-message-head span { font-weight: 700; }
.ai-message-body { color: var(--sk-text); white-space: pre-wrap; line-height: 1.5; }
.ai-side { display: grid; gap: 12px; }
.ai-prompts { display: grid; gap: 8px; }
.ai-prompts .btn { text-align: left; }
.installation-kanban-board { grid-auto-columns: clamp(250px, 24vw, 310px); }
.installation-card .kanban-card-title { padding-right: 0; }
.installation-card.overdue-card { border-color: #fca5a5; background: #fff7f7; }
.installer-checkin-page { max-width: 960px; margin: 0 auto; display: grid; gap: 16px; }
.installer-checkin-card { padding: clamp(16px, 3vw, 28px); }
.installer-checkin-card .form { gap: 18px; }
.checkin-note { padding: 12px; border: 1px solid #bae6fd; border-radius: 8px; background: #f0f9ff; color: #075985; font-weight: 700; }
.checkin-submit { min-height: 48px; font-size: 16px; }
.checkin-status { min-height: 22px; color: var(--sk-muted); font-weight: 700; }
.checkin-status.ok { color: #047857; }
.checkin-status.error { color: #b91c1c; }
.checkin-status.loading { color: #0369a1; }
.offline-card { display: grid; gap: 12px; border-color: #bfdbfe; background: #f8fbff; }
.offline-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.offline-head h2 { margin: 0 0 4px; color: var(--sk-navy); }
.offline-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.offline-stats div { min-width: 0; padding: 10px; border: 1px solid #dbeafe; border-radius: 8px; background: #fff; }
.offline-stats span { display: block; margin-bottom: 4px; color: var(--sk-muted); font-size: 12px; font-weight: 800; }
.offline-stats strong { display: block; overflow-wrap: anywhere; color: var(--sk-navy); font-size: 17px; line-height: 1.2; }
.offline-list { display: grid; gap: 8px; }
.offline-item { display: grid; gap: 2px; padding: 9px 10px; border: 1px solid var(--sk-border); border-radius: 8px; background: #fff; }
.offline-item strong { color: var(--sk-text); }
.offline-item span, .offline-item small { color: var(--sk-muted); font-size: 12px; }
.offline-item small { color: #b91c1c; }
.offline-actions { justify-content: flex-start; }
.checkin-photo-modal { max-width: min(920px, 94vw); }
.photo-viewer { position: relative; display: grid; place-items: center; padding: 0; background: #0f172a; border-radius: 8px; overflow: hidden; }
.checkin-photo { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; background: #0f172a; }
.photo-stamp-label { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 8px 12px; border-radius: 6px; background: rgba(8, 16, 32, .78); color: #fff; font-size: 15px; font-weight: 900; line-height: 1.15; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.door-install-card { display: grid; gap: 16px; }
.door-install-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.door-install-head h2 { margin: 2px 0 0; font-size: clamp(22px, 5vw, 34px); color: var(--sk-navy); overflow-wrap: anywhere; }
.readiness-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.readiness-option { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--sk-border); border-radius: 8px; background: #fff; font-weight: 700; color: var(--sk-navy); }
.readiness-option input { width: 18px; height: 18px; accent-color: var(--sk-accent); }
.readiness-option:has(input:checked) { border-color: #f97316; background: #fff7ed; color: #9a3412; }
.readiness-scan-frame { margin-top: 8px; max-height: 420px; }
.tracking-status-card { display: grid; gap: 4px; padding: 14px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff7ed; color: #9a3412; }
.tracking-status-card.active { border-color: #86efac; background: #f0fdf4; color: #166534; }
.tracking-status-card strong { font-size: 18px; }
.tracking-status-card span { color: inherit; line-height: 1.4; }
.installer-map { position: relative; z-index: 0; height: clamp(420px, 58vh, 620px); min-height: 440px; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--sk-border); border-radius: 8px; background: #e0f2fe; }
.installer-map.leaflet-container { min-height: 440px; font-family: inherit; }
.installer-map .kanban-empty { height: 100%; min-height: 420px; display: grid; place-items: center; }
.map-provider-badge { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--sk-navy); font-size: 12px; font-weight: 900; box-shadow: 0 8px 22px rgba(15,23,42,.16); }
.installer-map-hint { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: grid; gap: 2px; max-width: min(320px, calc(100% - 24px)); padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.96); color: var(--sk-text); box-shadow: 0 10px 28px rgba(15,23,42,.18); }
.installer-map-hint strong, .installer-map-hint span, .installer-map-hint small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.installer-map-hint small { color: var(--sk-muted); }
.installer-map-fallback { position: relative; min-height: 440px; background: linear-gradient(90deg, rgba(14,165,233,.16) 1px, transparent 1px), linear-gradient(rgba(14,165,233,.16) 1px, transparent 1px), #eff6ff; background-size: 42px 42px; }
.installer-map-pin { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; color: var(--sk-navy); text-decoration: none; }
.installer-map-pin strong { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 3px solid #fff; border-radius: 999px; background: #64748b; color: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.22); }
.installer-map-pin.active strong { background: #16a34a; }
.installer-map-pin.stale strong { background: #f97316; }
.installer-map-pin.outside strong { background: #dc2626; }
.installer-map-pin.object strong { background: #1d4ed8; }
.installer-map-pin.object span { border: 1px solid #bfdbfe; color: #1e3a8a; }
.installer-map-pin span { max-width: 140px; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 11px; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 12px rgba(15,23,42,.16); }
.movement-filters { display: grid; grid-template-columns: minmax(150px, 180px) minmax(190px, 1fr) minmax(190px, 1.2fr) auto; align-items: end; }
.movement-map { height: clamp(380px, 52vh, 560px); }
.tracking-details summary { cursor: pointer; color: var(--sk-navy); font-weight: 800; }
.tracking-point { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid var(--sk-border); }
.tracking-point:first-of-type { margin-top: 8px; }
.tracking-point span { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.calendar-note { padding: 12px; border: 1px solid #bae6fd; border-radius: 8px; background: #f0f9ff; color: #075985; font-weight: 700; }
.schedule-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.schedule-day { min-width: 0; display: grid; align-content: start; gap: 10px; padding: 12px; border: 1px solid var(--sk-border); border-radius: 8px; background: #fff; }
.schedule-day.ready { border-color: #7dd3fc; background: #f0f9ff; }
.schedule-day.ok { border-color: #bbf7d0; background: #f7fef9; }
.schedule-day.danger { border-color: #fecaca; background: #fff7f7; }
.schedule-day header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--sk-border); }
.schedule-day header div { display: grid; gap: 2px; }
.schedule-day header strong { color: var(--sk-navy); }
.schedule-day header span { color: var(--sk-muted); font-size: 12px; font-weight: 800; }
.schedule-items { display: grid; gap: 8px; }
.schedule-card { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--sk-border); border-radius: 8px; background: rgba(255,255,255,.86); }
.schedule-card > div:first-child { display: grid; gap: 3px; }
.schedule-card strong { color: var(--sk-text); overflow-wrap: anywhere; }
.schedule-card span { color: var(--sk-muted); font-size: 12px; font-weight: 800; }
.schedule-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.approval-modal { width: min(1480px, 98vw); max-width: 98vw; height: min(94dvh, 980px); max-height: 94dvh; overflow: hidden; display: flex; flex-direction: column; }
.approval-layout { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); gap: 0; padding: 0; }
.approval-photos { min-height: 0; display: grid; gap: 14px; align-content: start; max-height: none; overflow: auto; padding: 18px; background: #0f172a; }
.approval-photos img { width: 100%; max-height: calc(94dvh - 118px); object-fit: contain; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: #020617; }
.approval-photos .photo-viewer { border: 1px solid rgba(255,255,255,.18); background: #020617; }
.approval-photos .photo-viewer img { border: 0; }
.approval-side { min-height: 0; display: grid; align-content: start; gap: 14px; overflow: auto; padding: 18px; background: #fff; border-left: 1px solid var(--sk-border); }
.approval-side .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.approval-side .kv strong { overflow-wrap: anywhere; line-height: 1.18; }
.approval-checks { gap: 8px; }
.approval-check { margin-bottom: 0; align-items: center; }
.approval-check strong { color: var(--sk-text); font-size: 13px; }
.approval-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.history-list { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--sk-border); border-radius: 8px; background: #f8fafc; }
.history-list div { display: grid; gap: 2px; }
.history-list strong { color: #334155; font-size: 12px; }
.history-list span { color: #64748b; font-size: 13px; }
.shipment-review-modal { width: min(1180px, 96vw); }
.shipment-review-shell { display: grid; gap: 14px; }
.shipment-review-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid #dbeafe; border-radius: 8px; background: #f8fbff; }
.shipment-review-hero strong { display: block; color: var(--sk-navy); font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.shipment-review-hero span { display: block; margin-top: 3px; color: var(--sk-muted); font-weight: 700; overflow-wrap: anywhere; }
.review-step-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.review-step-card { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--sk-border); border-radius: 8px; background: #fff; }
.review-step-card b, .review-section-head b, .review-doc-head b { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--sk-navy); color: #fff; font-size: 14px; font-weight: 900; }
.review-step-card strong { display: block; color: var(--sk-text); line-height: 1.2; overflow-wrap: anywhere; }
.review-step-card span { display: block; margin-top: 2px; color: var(--sk-muted); font-size: 12px; font-weight: 800; }
.review-doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.review-doc-block { min-width: 0; display: grid; align-content: start; gap: 10px; padding: 12px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff7ed; }
.review-doc-block.ready { border-color: #bbf7d0; background: #f0fdf4; }
.review-doc-head { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.review-doc-head h3 { margin: 0; color: var(--sk-navy); font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.review-doc-head p { margin: 4px 0 0; color: var(--sk-muted); font-size: 12px; font-weight: 700; line-height: 1.35; }
.review-file-list { display: grid; gap: 8px; }
.review-file-card { min-width: 0; display: grid; gap: 8px; padding: 9px; border: 1px solid #dbe3ee; border-radius: 7px; background: #fff; }
.review-file-card.ok { border-color: #bbf7d0; }
.review-file-card strong { display: block; color: var(--sk-text); font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.review-file-card small { display: block; margin-top: 3px; color: var(--sk-muted); font-size: 11px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.review-file-card .row-actions { gap: 6px; justify-content: flex-start; }
.review-file-empty { padding: 10px; border: 1px dashed #cbd5e1; border-radius: 7px; background: #fff; color: var(--sk-muted); font-size: 12px; font-weight: 800; line-height: 1.35; }
.review-section { display: grid; gap: 12px; padding: 14px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; }
.review-section-head { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.review-section-head h3 { margin: 0; color: var(--sk-navy); font-size: 17px; line-height: 1.2; }
.review-section-head p { margin: 4px 0 0; color: var(--sk-muted); line-height: 1.4; }
.review-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wide-field { grid-column: 1 / -1; }
.compact-textarea { min-height: 86px; }
@media (max-width: 1180px) {
  .review-doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shipment-review-hero { flex-direction: column; }
  .review-doc-grid, .review-step-list, .review-check-grid { grid-template-columns: 1fr; }
  .shipment-review-modal { width: 100%; }
  .project-toolbar-simple { grid-template-columns: 1fr; }
}
.shipment-review-modal { width: min(1360px, 96vw); }
.shipment-review-shell .review-doc-grid {
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 2px;
}
.shipment-review-shell .review-doc-block { min-width: 145px; }
.shipment-review-shell .review-doc-head { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 7px; }
.shipment-review-shell .review-doc-head h3 { font-size: 13px; }
.shipment-review-shell .review-doc-head p { font-size: 11px; line-height: 1.3; }
@media (max-width: 1040px) {
  .shipment-review-shell .review-doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: visible; }
  .shipment-review-shell .review-doc-block { min-width: 0; }
}
@media (max-width: 760px) {
  .shipment-review-shell .review-doc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .form-grid.compact-grid, .china-item-params, .china-item-stats, .ai-layout, .ai-form, .check-grid, .door-registry-summary { grid-template-columns: 1fr; } .brand { width: 154px; height: 44px; } .ai-chat-card { min-height: auto; } .ai-chat { max-height: 58vh; } .form-details summary { align-items: flex-start; flex-direction: column; } .form-details summary span { text-align: left; } }
html.android-app, html.android-app body { min-height: 100%; overflow-y: auto; overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
html.android-app .input, html.android-app .compact-input { font-size: 16px; }
html.android-app .installer-map, html.android-app .installer-map *, html.android-app .leaflet-container { touch-action: pan-y !important; }
html.installer-only .settings-menu,
html.installer-only .topbar-actions .top-icon-btn[download],
html.installer-only [data-installation-tab="locations"],
html.installer-only [data-installation-tab="readiness"],
html.installer-only [data-installation-tab="teams"],
html.installer-only [data-nav="installation-readiness"] { display: none !important; }
@media (max-width: 520px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body { font-size: 15px; }
  .app { width: 100%; min-height: 100dvh; grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
  .main, .content { width: 100%; min-width: 0; }
  .content { padding: 10px 10px 16px; }
  .sidebar { position: relative; height: auto; max-height: none; overflow: hidden; padding: 10px; box-shadow: none; }
  .brand-wrap { margin: 0 4px 8px; padding: 0 0 8px; }
  .brand-caption { display: none; }
  .nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-group { flex: 0 0 172px; gap: 4px; }
  .nav-title { padding: 0 8px 2px; font-size: 10px; letter-spacing: .04em; }
  .nav button { min-height: 38px; grid-template-columns: 26px minmax(0, 1fr); gap: 7px; padding: 6px 8px; border-radius: 9px; }
  .nav-icon { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
  .nav-text strong { font-size: 12px; }
  .nav-text small { display: none; }
  .topbar { position: sticky; top: 0; z-index: 30; flex-direction: row; align-items: center; gap: 8px; min-height: 56px; height: auto; padding: 9px 10px; }
  .topbar-title { flex: 1 1 auto; min-width: 0; }
  .topbar-title span { display: block; overflow: hidden; font-size: 15px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-title strong { display: none; }
  .topbar-actions { width: auto; flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; margin-left: 0; }
  .top-icon-btn { width: 38px; height: 38px; border-radius: 10px; }
  .login { padding: 12px; place-items: start center; }
  .login-grid { grid-template-columns: 1fr; gap: 12px; }
  .login-qr-box { min-height: 244px; }
  .login-qr-img { width: 232px; height: 232px; }
  .user-switch { width: auto; min-width: 0; gap: 6px; }
  .user-switch .muted { display: none; }
  .user-switch .btn { min-height: 38px; padding: 7px 9px; font-size: 12px; }
  .settings-dropdown { position: fixed; top: 58px; left: 10px; right: 10px; width: auto; max-height: 70dvh; overflow: auto; }
  h1 { font-size: 22px; }
  h2 { font-size: 17px; }
  .grid, .grid.cols-3, .grid.cols-4, .metric-row, .kv { gap: 10px; }
  .card { min-width: 0; padding: 12px; }
  .title-row, .toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .actions, .row-actions, .scanner-actions, .modal-actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 10px; justify-content: stretch; }
  .actions .btn, .row-actions .btn, .scanner-actions .btn, .modal-actions .btn, .toolbar > .btn, .toolbar > .input, .toolbar > select, .project-toolbar .input { width: 100%; max-width: none; }
  .segmented { width: 100%; overflow-x: auto; }
  .segmented button { flex: 1; min-height: 42px; white-space: nowrap; }
  .installer-checkin-page { max-width: 100%; gap: 10px; }
  .installer-checkin-card { padding: 12px; }
  .form { gap: 14px; margin-top: 12px; padding: 0; }
  .modal .form { padding: 14px; }
  .form-grid, .form-grid.compact-grid, .shipment-form-grid, .permission-grid, .access-layout { grid-template-columns: 1fr; gap: 12px; }
  .form label span { margin-bottom: 7px; font-size: 13px; font-weight: 800; color: #475569; }
  .input, .compact-input, select.input, textarea.input { min-height: 50px; border-radius: 10px; padding: 12px 13px; font-size: 16px; line-height: 1.35; }
  textarea.input { min-height: 108px; }
  input[type="file"].input { height: auto; min-height: 56px; padding-top: 14px; }
  .btn, .checkin-submit { min-height: 48px; border-radius: 10px; padding: 11px 13px; font-size: 15px; }
  .small { min-height: 38px; padding: 8px 10px; font-size: 13px; }
  .modal-overlay { align-items: end; place-items: end center; padding: 0; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 14px 14px 0 0; }
  .modal-head { padding: 14px; gap: 10px; }
  .modal-head h2 { font-size: 18px; line-height: 1.25; }
  .modal .modal-actions { position: sticky; bottom: 0; z-index: 3; margin: 8px -14px -14px; padding: 10px 14px 14px; background: linear-gradient(to top, #fff 86%, rgba(255,255,255,0)); }
  .form-section { padding: 10px; gap: 10px; }
  .readiness-checklist { grid-template-columns: 1fr; }
  .readiness-option { min-height: 52px; padding: 12px; }
  .tracking-status-card, .checkin-note { padding: 12px; font-size: 14px; }
  .tracking-status-card strong { font-size: 16px; }
  .offline-head { flex-direction: column; }
  .offline-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .offline-stats div { padding: 9px; }
  .offline-stats strong { font-size: 14px; }
  .movement-filters, .schedule-board { grid-template-columns: 1fr; }
  .movement-map { height: 340px; min-height: 320px; }
  .approval-modal { height: 96dvh; max-height: 96dvh; overflow: auto; }
  .approval-layout, .approval-actions { grid-template-columns: 1fr; }
  .approval-layout { height: auto; }
  .approval-photos { max-height: none; padding: 12px; }
  .approval-photos img { max-height: 58dvh; }
  .approval-side { overflow: visible; padding: 14px; border-left: 0; }
  .mobile-shell { min-height: 100dvh; padding: 12px 10px; }
  .mobile-card { padding: 12px; }
  .scanner-frame { min-height: auto; max-height: calc(100dvh - 260px); aspect-ratio: 3 / 4; }
  .field-scanner-card .scanner-frame { max-height: 46dvh; }
  .field-content { padding: 12px; }
  .field-card { padding: 14px; }
  .field-big-button { min-height: 118px; padding: 16px; }
  .field-action-grid.compact, .field-door-summary { grid-template-columns: 1fr; }
  .field-door-head { flex-direction: column; }
  .field-sync-card { align-items: stretch; flex-direction: column; }
  .installer-map, .installer-map-fallback, .installer-map .kanban-empty { height: 360px; min-height: 340px; }
  .table-scroll { width: 100%; max-width: 100%; margin: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll table { min-width: 640px; }
  th, td { padding: 9px 8px; font-size: 13px; }
  .door-install-head, .china-item-head { flex-direction: column; }
}

@media (max-width: 520px) {
  .boot-loading { padding: 14px; }
  .boot-card { gap: 14px; padding: 16px; }
  .boot-brand-row img { width: 36px; height: 36px; }
  .boot-brand-row strong { font-size: 22px; }
  .boot-brand-row span { font-size: 13px; }
  .boot-scene { height: 188px; }
  .boot-building-left { left: 46px; }
  .boot-building-center { left: 136px; width: 96px; }
  .boot-building-right { right: 42px; }
  .boot-crane { left: 46px; transform: scale(.84); transform-origin: top left; }
  .boot-truck { right: 28px; transform: scale(.9); transform-origin: bottom right; }
  @keyframes bootDoorMove { 0% { transform: translateX(0); opacity: 0; } 10%, 82% { opacity: 1; } 100% { transform: translateX(330px); opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .boot-building, .boot-crane-cable, .boot-crane-hook, .boot-door, .boot-truck, .boot-progress span { animation: none; }
  .boot-door-a { left: 92px; opacity: 1; }
  .boot-door-b { left: 128px; opacity: 1; }
  .boot-progress span { width: 68%; transform: none; }
}
