:root {
    --ink: #12233f;
    --muted: #70809b;
    --soft: #f4f7fb;
    --line: #e2e9f2;
    --panel: #ffffff;
    --navy: #0c1d38;
    --blue: #2864f0;
    --blue-soft: #edf3ff;
    --mint: #18a77b;
    --amber: #e49a37;
    --red: #d95e68;
    --shadow: 0 18px 48px rgba(32, 62, 106, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f7f9fc; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 246px; flex: 0 0 246px; background: var(--navy); color: #fff; padding: 30px 18px 22px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 45px; }
.brand-mark { width: 37px; height: 37px; border-radius: 12px; background: linear-gradient(145deg, #4d8aff, #1b49c8); display: grid; place-items: center; font-weight: 800; font-size: 20px; box-shadow: 0 8px 20px rgba(39, 103, 255, .28); }
.brand strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.brand span { display: block; color: #92a4c3; font-size: 10px; margin-top: 4px; letter-spacing: .06em; text-transform: uppercase; }
.side-nav { display: grid; gap: 7px; }
.nav-item { color: #9eafcc; text-decoration: none; border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-size: 13px; transition: all .18s ease; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(111, 151, 232, .15); }
.nav-item.active { box-shadow: inset 3px 0 var(--blue); }
.nav-icon { width: 18px; text-align: center; color: #7fa7ff; font-weight: 700; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding: 17px 12px 0; color: #8295b5; font-size: 11px; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); display: inline-block; box-shadow: 0 0 0 3px rgba(24,167,123,.12); }
.main-content { width: 100%; max-width: 1520px; margin: 0 auto; padding: 48px 54px 35px; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.eyebrow { color: #8090aa; font-size: 10px; letter-spacing: .15em; font-weight: 800; margin: 0 0 8px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; margin-bottom: 8px; line-height: 1.1; }
h2 { font-size: 20px; letter-spacing: -.03em; margin-bottom: 0; }
h3 { font-size: 15px; letter-spacing: -.02em; margin-bottom: 8px; }
.subtitle { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.topbar-meta { display: flex; align-items: center; gap: 17px; padding-top: 8px; }
.live-indicator { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.icon-button, .close-button { border: 1px solid var(--line); background: #fff; color: var(--ink); width: 37px; height: 37px; border-radius: 10px; font-size: 21px; line-height: 1; box-shadow: 0 3px 9px rgba(26, 54, 95, .05); }
.icon-button:hover, .close-button:hover { color: var(--blue); border-color: #b7c9ef; }
.notice-bar { background: var(--blue-soft); border: 1px solid #dbe6ff; color: #35568e; border-radius: 12px; padding: 13px 17px; display: flex; gap: 12px; align-items: center; font-size: 12px; margin-bottom: 18px; }
.notice-bar strong { color: var(--ink); margin-right: 8px; }
.notice-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: #d8e4ff; color: var(--blue); font-size: 16px; }
.filter-card, .content-card { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.filter-card { padding: 20px; margin-bottom: 18px; }
.technician-card { background: linear-gradient(135deg, #fff 0%, #f7faff 100%); border: 1px solid #dbe6f5; border-radius: 15px; box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.technician-intro { color: var(--muted); font-size: 12px; line-height: 1.55; max-width: 760px; }
.technician-search { display: flex; gap: 10px; align-items: end; max-width: 620px; margin-bottom: 18px; }
.technician-search label { flex: 1; }
.technician-empty { border: 1px dashed #cddbf0; border-radius: 12px; min-height: 140px; display: grid; place-items: center; align-content: center; text-align: center; padding: 24px; color: var(--muted); }
.technician-empty h3 { color: var(--ink); margin: 10px 0 5px; }.technician-empty p { font-size: 11px; margin: 0; }
.technician-summary { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 16px; }.technician-summary h3 { margin-bottom: 4px; }.technician-summary p { color: var(--muted); font-size: 11px; margin: 0; }
.workflow-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.workflow-step { border: 1px solid var(--line); border-radius: 11px; padding: 13px 11px; background: #fff; min-height: 106px; }.workflow-step.done { border-color: #a9dfcf; background: #f0fbf7; }.workflow-step.current { border-color: #9bb8f6; background: var(--blue-soft); }.workflow-step.locked { opacity: .62; }
.workflow-number { display: block; color: var(--blue); font-size: 10px; font-weight: 800; margin-bottom: 14px; }.workflow-step.done .workflow-number { color: var(--mint); }.workflow-step h4 { margin: 0 0 5px; font-size: 11px; }.workflow-step p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.workflow-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }.secondary-button { min-height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 13px; color: var(--ink); background: #fff; font-weight: 700; font-size: 11px; }.secondary-button:hover { border-color: #9bb8f6; color: var(--blue); }
.workflow-note { color: var(--muted); font-size: 10px; margin: 12px 0 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 23px 25px; border-bottom: 1px solid var(--line); }
.section-heading.compact { padding: 0 0 18px; border-bottom: 0; }
.filter-hint, .result-meta { color: var(--muted); font-size: 11px; }
.filters { display: grid; grid-template-columns: 1.1fr 1.1fr 1.2fr 1.2fr 1.2fr 1.1fr auto; gap: 10px; align-items: end; }
label { display: grid; gap: 7px; color: #566886; font-weight: 650; font-size: 10px; letter-spacing: .02em; }
.field-hint { color: #9aa7ba; font-size: 9px; font-weight: 500; line-height: 1.35; letter-spacing: 0; }
input, select { border: 1px solid var(--line); border-radius: 9px; min-height: 40px; color: var(--ink); background: #fbfcfe; padding: 0 11px; outline: none; font-size: 12px; min-width: 0; }
input:focus, select:focus { border-color: #8eaefc; box-shadow: 0 0 0 3px rgba(40,100,240,.1); }
.primary-button { min-height: 40px; border: 0; border-radius: 9px; padding: 0 15px; color: #fff; background: var(--blue); font-weight: 750; font-size: 12px; display: flex; align-items: center; gap: 13px; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 9px 18px rgba(40,100,240,.2); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 23px rgba(40,100,240,.28); }
.button-arrow { font-size: 17px; font-weight: 400; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric-card { min-height: 129px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 19px 20px; position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 84px; height: 84px; right: -32px; bottom: -42px; border-radius: 50%; border: 16px solid #f3f6fb; }
.metric-card.accent { background: var(--navy); color: #fff; border-color: var(--navy); }
.metric-card.accent::after { border-color: rgba(255,255,255,.08); }
.metric-label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 14px; }
.accent .metric-label { color: #9caecd; }
.metric-card strong { display: block; font-size: 29px; letter-spacing: -.05em; margin-bottom: 7px; }
.metric-caption { display: block; color: #9aa8bc; font-size: 10px; }
.accent .metric-caption { color: #a6b5d0; }
.content-card { overflow: hidden; }
.table-wrap { overflow-x: auto; min-height: 205px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { color: #8391a6; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; padding: 13px 25px; white-space: nowrap; background: #fbfcfe; }
td { padding: 14px 25px; border-top: 1px solid #edf1f6; white-space: nowrap; vertical-align: middle; }
tr.data-row { transition: background .15s ease; }
tr.data-row:hover { background: #f8faff; }
.protocol-link { color: var(--blue); font-weight: 800; border: 0; background: none; padding: 0; }
.protocol-link:hover { text-decoration: underline; }
.subcell { display: block; color: #9aa6b7; font-size: 10px; margin-top: 3px; }
.pill { display: inline-flex; align-items: center; border-radius: 99px; padding: 5px 9px; font-size: 10px; font-weight: 750; }
.pill.green { color: #168062; background: #e9f8f2; }.pill.blue { color: #3267cd; background: #ecf2ff; }.pill.orange { color: #a8691b; background: #fff4df; }.pill.gray { color: #78859b; background: #f0f3f7; }.pill.red { color: #b34955; background: #ffedef; }
.empty-state, .loading-state, .error-state { min-height: 205px; display: grid; place-items: center; align-content: center; text-align: center; padding: 35px; color: var(--muted); }
.empty-state h3, .error-state h3 { color: var(--ink); margin: 12px 0 6px; }.empty-state p, .error-state p { font-size: 12px; margin-bottom: 0; }.empty-orb { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 17px; background: var(--blue-soft); color: var(--blue); font-size: 27px; margin: 0 auto; }
.spinner { display: inline-block; width: 21px; height: 21px; border: 2px solid #d7e3fa; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; margin-right: 10px; vertical-align: middle; }@keyframes spin { to { transform: rotate(360deg); } }
.form-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.worklog-form { display: grid; gap: 12px; background: #f8faff; border: 1px solid #e2eafa; border-radius: 12px; padding: 14px; }
.worklog-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px; resize: vertical; color: var(--ink); background: #fff; outline: none; font: inherit; font-size: 12px; }
.worklog-form textarea:focus { border-color: #8eaefc; box-shadow: 0 0 0 3px rgba(40,100,240,.1); }
.worklog-form input[type=file] { padding: 9px; background: #fff; }
.worklog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.danger-button { min-height: 40px; border: 0; border-radius: 9px; padding: 0 13px; color: #fff; background: var(--red); font-weight: 750; font-size: 11px; }
.danger-button:hover { filter: brightness(.94); }
.form-feedback { min-height: 16px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.form-feedback.success { color: #168062; }.form-feedback.error { color: #b34955; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }.info-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }.info-number { display: block; font-size: 11px; color: var(--blue); font-weight: 800; letter-spacing: .12em; margin-bottom: 27px; }.info-card p { color: var(--muted); font-size: 11px; line-height: 1.65; margin-bottom: 0; }.info-card code { color: var(--blue); background: var(--blue-soft); border-radius: 4px; padding: 2px 4px; }
.footer { display: flex; justify-content: space-between; color: #9aa7ba; font-size: 10px; padding: 25px 3px 0; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(12,29,56,.24); z-index: 5; backdrop-filter: blur(3px); }.detail-drawer { position: fixed; z-index: 6; right: 0; top: 0; bottom: 0; width: min(560px, 100vw); background: #fff; box-shadow: -20px 0 60px rgba(12,29,56,.18); transform: translateX(100%); transition: transform .25s ease; }.detail-drawer.open { transform: translateX(0); }.drawer-header { padding: 27px 28px 21px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }.drawer-content { padding: 25px 28px 40px; overflow-y: auto; height: calc(100% - 92px); }.detail-section { margin-bottom: 25px; }.detail-section h3 { color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--line); }.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }.detail-field label { color: #8a98ac; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }.detail-field div { color: var(--ink); font-size: 12px; font-weight: 650; word-break: break-word; }.timeline { display: grid; gap: 14px; }.timeline-item { border-left: 2px solid #dce7fc; padding-left: 14px; }.timeline-item .timeline-meta { color: var(--blue); font-size: 10px; font-weight: 750; margin-bottom: 4px; }.timeline-item p { color: #5b6b83; line-height: 1.55; font-size: 12px; white-space: pre-line; margin-bottom: 0; }.timeline-item small { color: #98a5b6; font-size: 10px; display: block; margin-top: 6px; }.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
@media (max-width: 1200px) { .filters { grid-template-columns: repeat(4, 1fr); }.filters .primary-button { justify-content: center; }.workflow-steps { grid-template-columns: repeat(3, 1fr); }.main-content { padding: 38px 30px; } }
@media (max-width: 840px) { .sidebar { width: 70px; flex-basis: 70px; padding: 22px 10px; }.brand { padding: 0 6px 35px; }.brand > div:last-child, .nav-item:not(.active)::after, .nav-item { font-size: 0; }.nav-item { justify-content: center; padding: 13px 7px; }.nav-icon { font-size: 16px; }.sidebar-footer { padding: 15px 5px 0; font-size: 0; }.main-content { padding: 27px 18px; }.topbar { display: block; }.topbar-meta { margin-top: 18px; justify-content: space-between; }.metrics { grid-template-columns: repeat(2, 1fr); }.info-grid { grid-template-columns: 1fr; }.filters { grid-template-columns: repeat(2, 1fr); }.filters .primary-button { grid-column: span 2; } }
@media (max-width: 520px) { .notice-bar { align-items: flex-start; }.notice-bar strong { display: block; margin-bottom: 3px; }.filter-card, .technician-card { padding: 16px; }.section-heading { padding: 18px; display: block; }.result-meta { margin-top: 7px; }.filters, .technician-search { grid-template-columns: 1fr; display: grid; }.filters .primary-button { grid-column: auto; }.technician-search .primary-button { justify-content: center; }.workflow-steps { grid-template-columns: repeat(2, 1fr); }.metrics { gap: 9px; }.metric-card { padding: 15px; min-height: 112px; }.metric-card strong { font-size: 24px; }.footer { display: block; line-height: 1.8; } }
