:root { color-scheme: light; --ink: #1e293b; --muted: #526478; --line: #e2e8f0; --paper: #f6f8fc; --accent: #2459d8; --accent-dark: #1d47af; --error: #9c302b; font-family: Inter, "Segoe UI", system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { border: 1px solid var(--accent); background: var(--accent); color: white; padding: .65rem 1rem; border-radius: 9px; font-weight: 600; cursor: pointer; }
button:hover { background: var(--accent-dark); }
button:disabled { cursor: wait; opacity: .55; }
button.quiet { color: var(--ink); background: white; border-color: var(--line); font-weight: 500; }
button.quiet:hover { background: #edf3ef; }
input, select, textarea { width: 100%; padding: .68rem .8rem; border: 1px solid #cdd9d1; border-radius: 8px; color: var(--ink); background: white; }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; overflow-wrap: anywhere; }
h1 { margin-bottom: .4rem; font-size: 2rem; line-height: 1.18; letter-spacing: -.06rem; }
h2 { font-size: 1.3rem; margin-bottom: 1rem; }
h3 { font-size: 1rem; margin-bottom: .7rem; }
.eyebrow { color: var(--accent); font-size: .69rem; font-weight: 750; letter-spacing: .16em; display: block; margin-bottom: .8rem; }
.hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
.error { color: var(--error); font-size: .9rem; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(ellipse at 75% 10%, #d5e6db 0, transparent 55%), var(--paper); }
.login-card { background: white; width: min(100%, 460px); padding: 3rem; border-radius: 18px; box-shadow: 0 20px 70px #21363212; border: 1px solid #e1e8df; }
.login-card h1 { font-size: 2.7rem; margin-bottom: 1.2rem; }
.login-card p { color: var(--muted); }
.login-card form { display: grid; gap: .8rem; margin: 1.8rem 0 1rem; }
.login-card form button { margin-top: .3rem; }
.login-card .error { color: var(--error); margin: 0; min-height: 1rem; }
.topbar { min-height: 83px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1rem max(2rem, calc((100vw - 1440px)/2)); }
.brand { color: var(--ink); text-decoration: none; font-size: 1.2rem; font-weight: 750; white-space: nowrap; }
.brand span { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.account { display: flex; align-items: center; gap: .8rem; }
.account select { max-width: 270px; }
#user-name { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.workspace { max-width: 1440px; margin: 0 auto; padding: 2rem; }
.page-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.page-heading .eyebrow { margin-bottom: .35rem; }
.section-heading h2 { margin-bottom: 0; }
.notice { color: var(--accent); margin-bottom: 1rem; font-size: .9rem; }
.notice:empty { display: none; }
.notice.error { color: var(--error); }
.panel { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 1.4rem; }
.columns { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, 1fr); align-items: start; gap: 1.3rem; }
.filters { display: grid; grid-template-columns: minmax(100px, 1fr) 155px auto; gap: .6rem; margin-bottom: 1.3rem; }
.filters input, .filters select, .filters button { font-size: .83rem; }
.list-heading { display: flex; justify-content: space-between; color: var(--muted); font-size: .73rem; padding: 0 0 .7rem; border-bottom: 1px solid var(--line); }
.order-list { display: grid; }
.order-row { display: flex; justify-content: space-between; gap: 1rem; text-align: left; color: var(--ink); background: white; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 1rem .3rem; width: 100%; font-weight: 400; }
.order-row:last-child { border-bottom: none; }
.order-row:hover, .order-row.selected { background: #edf3ff; }
.order-row > span:first-child { min-width: 0; }
.order-row strong { display: block; font-size: .94rem; overflow-wrap: anywhere; }
.order-row .secondary { display: block; font-size: .8rem; color: var(--muted); margin-top: .2rem; overflow-wrap: anywhere; }
.order-row .order-meta { flex-shrink: 0; text-align: right; }
.badge { display: inline-block; border-radius: 6px; background: #eaf0ec; padding: .2rem .45rem; font-size: .69rem; font-weight: 650; }
.badge.ready { background: #ddefdc; color: #315b38; }
.badge.issued { background: #edf0f5; color: #526478; }
.badge.in_progress { background: #e6eef9; color: #385680; }
.badge.diagnostics { background: #fff0da; color: #8e6126; }
.empty-state { text-align: center; padding: 3.5rem 1.2rem; color: var(--muted); }
.empty-state h2 { color: var(--ink); margin: .6rem 0; }
.empty-state p { font-size: .9rem; margin-bottom: 0; }
.empty-icon { font-size: 2rem; color: #92b2a1; }
#intake-panel { margin-bottom: 1.3rem; }
.intake-grid, .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wide { grid-column: 1 / -1; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.detail-top { display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.detail-top h2 { margin: .2rem 0 .35rem; }
.detail-top .secondary { color: var(--muted); font-size: .8rem; }
.facts { margin: 1.2rem 0; font-size: .88rem; }
.fact-label { color: var(--muted); font-size: .72rem; display: block; margin-bottom: .15rem; }
.fact-value { white-space: pre-wrap; overflow-wrap: anywhere; }
.actions, .history { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.1rem; }
.action-form { display: grid; gap: .65rem; margin-bottom: 1.1rem; }
.action-form .inline { display: flex; gap: .5rem; }
.action-form .inline button { flex-shrink: 0; }
.action-form:last-child { margin-bottom: 0; }
.issue-warning { color: var(--muted); font-size: .8rem; margin-bottom: .6rem; }
.checkbox-label { display: flex; align-items: center; gap: .55rem; font-weight: 500; min-height: 44px; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li { position: relative; padding: 0 0 1rem 1rem; margin-left: .2rem; border-left: 1px solid var(--line); font-size: .85rem; }
.history-list li::before { content: ""; width: 7px; height: 7px; position: absolute; left: -4px; top: .4rem; background: #a6c3b4; border-radius: 50%; }
.history-list .event-time { display: block; color: var(--muted); font-size: .7rem; margin: .12rem 0 .25rem; }
.history-list p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.daily-panel { position: relative; background: white; border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem; margin-bottom: .7rem; }
.daily-topline { display: flex; align-items: center; gap: .8rem; margin-bottom: .45rem; }
.daily-title { font-size: .8rem; font-weight: 650; margin-right: auto; }
.date-label { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .8rem; }
.date-label input { width: 150px; padding: .28rem .45rem; font-size: .78rem; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.summary-grid:has(.cash-summary:not([hidden])) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary-card { background: transparent; border: 0; padding: 0; min-width: 0; text-align: left; }
.summary-card > span { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.summary-card > strong { display: block; font-size: 1.08rem; letter-spacing: -.02em; margin: .08rem 0; overflow-wrap: anywhere; color: var(--ink); }
.cash-summary:hover { background: #edf3ef; border-radius: 6px; }
.cash-summary > strong { color: var(--accent); }
.daily-footline { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .35rem; }
.daily-footline small { color: var(--muted); font-size: .68rem; }
.goal-track { height: 5px; width: 90px; border-radius: 6px; background: #e6eee8; overflow: hidden; }
.goal-track span { display: block; height: 100%; background: var(--accent); }
#goal-indicator { display: flex; align-items: center; gap: .4rem; }
.goal-form { display: flex; align-items: end; gap: .6rem; margin-top: .8rem; }
.goal-form label { font-size: .76rem; width: 250px; }
.goal-form button { font-size: .8rem; }
summary { cursor: pointer; }
.account-menu { position: relative; flex-shrink: 0; }
.account-menu > summary { list-style: none; width: 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; font-size: 1.5rem; line-height: 1; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu-items { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 10; width: 180px; display: grid; gap: .3rem; padding: .5rem; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 36px #2136321c; }
.account-menu-items button { text-align: left; border: 0; }
.settings-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.settings-tabs button.active { color: var(--accent); background: #e9f1eb; border-color: #b6d3c3; }
.settings-panel + .settings-panel { margin-top: 1rem; }
.settings-panel #goal-form { margin-bottom: 1.5rem; }
.staff-create { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.staff-create > summary { font-weight: 600; color: var(--accent); }
.staff-create form { margin-top: 1rem; }
input[readonly], textarea[readonly] { background: #f5f7f4; }
#token-login > summary { font-size: .85rem; color: var(--muted); }
#token-login form { margin-top: .8rem; }
@media (max-width: 620px) { .settings-tabs { gap: .3rem; }.settings-tabs button { flex: 1; min-width: 0; font-size: .74rem; padding: .55rem .35rem; }.account-menu-items { width: 165px; } }
.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.tabs button { background: transparent; color: var(--muted); border: none; border-radius: 8px 8px 0 0; padding: .75rem 1.2rem; border-bottom: 3px solid transparent; }
.tabs button.active { color: var(--accent); background: #e9f1eb; border-bottom-color: var(--accent); }
.month-label { max-width: 220px; }
.statistics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.statistic-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; min-width: 0; }
.statistic-card > span { color: var(--muted); font-size: .8rem; }
.statistic-card > strong { display: block; font-size: 1.55rem; overflow-wrap: anywhere; margin: .3rem 0; }
.statistic-card .hint { margin: 0; }
.statistic-card.total { background: #e9f3eb; border-color: #b6d3c3; }
.balance-negative { color: var(--error); }
.balance-positive { color: var(--accent); }
.movement-form { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.close-operation { margin-top: 1.3rem; background: #f7f8f4; border: 1px solid var(--line); border-radius: 9px; padding: 1rem; }
.close-operation summary { font-size: .9rem; font-weight: 650; }
.close-operation .action-form { margin: 1rem 0 0; }
.cash-history { margin-top: 1rem; }
.cash-history > summary { font-weight: 650; }
.cash-history > .hint { margin: .8rem 0; }
.act-search { display: flex; align-items: end; gap: .5rem; max-width: 470px; margin-bottom: .6rem; }
.act-search label { font-size: .75rem; min-width: 0; flex: 1; }
.act-search input { font-size: .8rem; padding: .5rem .65rem; }
.act-search button { font-size: .8rem; padding: .5rem .65rem; }
#act-search-message:empty { display: none; }
.refund-panel { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 9px; background: #f9f8f4; }
.refund-parts-list { border-left: 3px solid #b6d3c3; padding-left: .7rem; }
.refund-history { margin-top: 1rem; }
.repair-card { padding: 0; min-width: 0; max-width: 100%; --repair-header-height: 185px; }
.repair-card-header { position: sticky; top: 0; z-index: 4; background: white; border-bottom: 1px solid var(--line); border-radius: 13px 13px 0 0; padding: 1rem 1.2rem .65rem; box-shadow: 0 4px 12px #21363208; }
.repair-identity > div { min-width: 0; flex: 1; }
.repair-identity .eyebrow { margin-bottom: .2rem; font-size: .64rem; }
.repair-identity h2 { font-size: 1.15rem; margin: 0 0 .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.repair-client { display: block; font-size: .79rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repair-identity .badge { flex-shrink: 0; margin-top: .2rem; }
.repair-quick-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin: .65rem 0; }
.repair-quick-actions button { padding: .42rem .7rem; font-size: .77rem; }
.repair-tabs { display: grid; grid-template-columns: .7fr 1fr .8fr 1.3fr; gap: .25rem; }
.repair-tabs button { min-width: 0; padding: .5rem .25rem; border: 0; border-bottom: 2px solid transparent; border-radius: 5px 5px 0 0; background: transparent; color: var(--muted); font-size: .75rem; }
.repair-tabs button.active { color: var(--accent); background: #eef4ef; border-bottom-color: var(--accent); }
.repair-panel { padding: 1.2rem; min-width: 0; }
.repair-panel, .repair-panel form, .repair-panel input, .repair-panel select, .repair-panel textarea, .repair-panel button { scroll-margin-top: calc(var(--repair-header-height) + 12px); }
.repair-panel > h3 { margin-top: 0; }
.repair-panel > .actions:first-child, .repair-panel .installed-parts { border-top: 0; padding-top: 0; margin-top: 0; }
.repair-notice { margin: .35rem 0 0; font-size: .75rem; }
.repair-next-step { border-top: 1px solid var(--line); padding-top: 1rem; margin-bottom: 0; }
@media (max-width: 620px) { .repair-card-header { padding: .75rem .85rem .55rem; }.repair-identity h2 { font-size: 1.04rem; }.repair-panel { padding: .85rem; }.repair-tabs { gap: .1rem; }.repair-tabs button { font-size: .7rem; line-height: 1.25; min-height: 44px; }.repair-quick-actions { gap: .3rem; margin: .5rem 0; }.repair-quick-actions button { min-height: 40px; padding: .4rem .55rem; font-size: .73rem; } }
.closed-result { padding: .8rem 1rem; border-radius: 8px; background: #edf3ef; font-size: .9rem; }
.part-filters { grid-template-columns: 1fr auto; }
#part-create-panel { margin-bottom: 1.3rem; }
.installed-parts { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.compact-row { display: flex; gap: .6rem; justify-content: space-between; align-items: start; margin-bottom: .45rem; font-size: .83rem; }
.compact-row .secondary, .batch-card .secondary { display: block; font-size: .8rem; color: var(--muted); }
.compact-row > span:first-child { display: grid; }
button.text-link { border: none; background: transparent; color: var(--accent); text-decoration: underline; padding: .3rem 0; text-align: left; font-size: .85rem; overflow-wrap: anywhere; min-height: 36px; }
.batch-card { border: 1px solid var(--line); border-radius: 8px; padding: .8rem; margin-bottom: .7rem; font-size: .85rem; overflow-wrap: anywhere; }
.batch-card p { margin: .3rem 0 0; white-space: pre-wrap; }
.batch-card.highlighted { border-color: var(--accent); background: #f0f6f2; }
.reference-links { display: grid; gap: .3rem; }
.more-button { width: 100%; margin-top: 1rem; }
@media (max-width: 900px) { .statistics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .daily-panel { padding: .6rem .65rem; }.daily-topline { gap: .4rem; }.daily-title { font-size: .73rem; }.date-label input { width: 130px; font-size: .73rem; }.work-settings { font-size: .7rem; }.summary-grid { gap: .5rem; }.summary-grid:has(.cash-summary:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }.summary-card > span { font-size: .65rem; }.summary-card > strong { font-size: .86rem; }.summary-card { min-height: 0; }.daily-footline { flex-wrap: wrap; gap: .15rem; }.goal-track { width: 65px; }.daily-footline small { font-size: .62rem; }.goal-form { flex-wrap: wrap; }.goal-form label { width: 100%; }.goal-form button { flex: 1; }.tabs { gap: .15rem; margin-bottom: .8rem; }.tabs button { flex: 1; min-width: 0; padding: .45rem .25rem; font-size: .73rem; line-height: 1.25; }.part-filters { grid-template-columns: 1fr; }.compact-row { flex-wrap: wrap; }.statistics-grid { gap: .6rem; }.statistic-card { padding: .8rem; }.statistic-card > strong { font-size: 1.15rem; }.statistic-card .hint { font-size: .7rem; }.month-label { width: 160px; font-size: .75rem; } button { min-height: 42px; } }
@media (max-width: 1050px) { .columns { grid-template-columns: 1fr; }.topbar { padding: 1rem 1.3rem; } .workspace { padding: 1.5rem 1.3rem; } .detail-panel { min-height: auto; } }
@media (max-width: 620px) { .topbar { align-items: start; flex-direction: column; gap: .35rem; padding: .6rem .75rem; } .brand { font-size: .94rem; }.brand span { display: none; }.account { width: 100%; gap: .5rem; }.account select { max-width: none; flex: 1; padding: .45rem .65rem; } #user-name { display: none; } .workspace { padding: .7rem .75rem; }.page-heading h1 { font-size: 1.45rem; }.page-heading .hint { margin-bottom: 0; font-size: .72rem; }.page-heading button { font-size: .8rem; }.panel { padding: .85rem; } .filters { grid-template-columns: 1fr 145px; }.filters button { grid-column: 1 / -1; }.part-filters { grid-template-columns: 1fr auto; }.intake-grid { grid-template-columns: 1fr; }.facts { gap: .8rem; }.form-footer { align-items: stretch; flex-direction: column; }.login-card { padding: 2rem; }.login-card h1 { font-size: 2.3rem; }.order-row { gap: .5rem; }.order-row .order-meta { max-width: 45%; }.action-form .inline { flex-direction: column; } }
.columns > .panel { min-width: 0; }
.orders-columns:not(:has(.repair-card)), .stock-columns:not(:has(#part-detail[data-part-id])) { grid-template-columns: minmax(0,1fr); }
.orders-columns #detail:not(.repair-card), .stock-columns #part-detail:not([data-part-id]) { display: none; }
.header-search { text-align: left; width: min(450px,40%); color: var(--muted); }
.header-search kbd { float: right; font-size: .7rem; padding: .1rem .35rem; border: 1px solid var(--line); border-radius: 4px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.filter-chips button { padding: .45rem .7rem; font-size: .78rem; min-height: 44px; }
.filter-chips button[aria-pressed="true"] { color: var(--accent); background: #edf3ff; border-color: #b6c9f8; }
.list-state { margin: .7rem 0; font-size: .82rem; color: var(--muted); }
.list-state:empty { display: none; }
.list-state.error { color: var(--error); }
.list-state button { margin-left: .5rem; font-size: .8rem; }
.data-list[aria-busy="true"] { opacity: .65; }
.data-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .84rem; }
.data-table th { text-align: left; font-size: .72rem; font-weight: 600; color: var(--muted); padding: .65rem .5rem; border-bottom: 1px solid var(--line); }
.data-table td { padding: .85rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.data-table tr.selected td { background: #edf3ff; }
.data-table tr:hover td { background: #f2f6ff; }
.data-table tr { cursor: pointer; }
.data-table .table-open { padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 650; font-size: .86rem; min-height: 44px; overflow-wrap: anywhere; }
.data-table .table-open:hover { color: var(--accent); }
.data-table .secondary { display: block; font-size: .75rem; color: var(--muted); }
.table-label { display: none; }
.stock-table th:first-child { width: 38%; }.stock-table th:nth-child(2) { width: 18%; }.stock-table th:nth-child(3) { width: 16%; }.stock-table th:last-child { width: 28%; }
.tech-table th:first-child { width: 34%; }.tech-table th:nth-child(2) { width: 26%; }.tech-table th:nth-child(3) { width: 22%; }.tech-table th:last-child { width: 18%; }
.badge::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; vertical-align: middle; margin-right: .35rem; }
.tabs button.active, .repair-tabs button.active, .settings-tabs button.active { background: #edf3ff; }
.sidebar-settings { display: none; }
@media (min-width: 1101px) {
  .brand { position: fixed; top: 1.55rem; left: 1.4rem; width: 190px; white-space: normal; z-index: 8; font-size: 1.05rem; }.brand span { font-size: .7rem; }
  .topbar { padding: 1rem 2rem 1rem 252px; min-height: 83px; }
  .workspace { max-width: none; margin-left: 220px; padding: 1.5rem 2rem; }
  .tabs { position: fixed; z-index: 6; top: 0; left: 0; bottom: 0; width: 220px; flex-direction: column; gap: .4rem; background: white; border-right: 1px solid var(--line); border-bottom: 0; margin: 0; padding: 112px .8rem 1.2rem; }
  .tabs::before { content: "РАБОЧЕЕ ПРОСТРАНСТВО"; color: var(--muted); font-size: .62rem; letter-spacing: .1em; margin: 0 .55rem .65rem; }
  .tabs button { text-align: left; min-height: 46px; border-radius: 8px; border-bottom: 0; padding: .7rem .9rem; font-size: .87rem; }.tabs button.active { border-left: 3px solid var(--accent); }
  .sidebar-settings:not([hidden]) { display: block; margin-top: auto; border-top: 1px solid var(--line); }
}
@media (max-width: 1100px) { .header-search { display: none; }.topbar { padding: .8rem 1.3rem; } }
@media (max-width: 620px) {
  button, summary, button.text-link, input, select { min-height: 44px; }.repair-quick-actions button { min-height: 44px; }
  .topbar { padding: .6rem .75rem; }.data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }.data-table thead { display: none; }.data-table tbody { display: grid; gap: .65rem; }.data-table tr { border: 1px solid var(--line); border-radius: 10px; padding: .7rem; }.data-table td { border: 0; padding: .18rem 0; }.data-table tr.selected { background: #edf3ff; border-color: #b6c9f8; }.data-table tr.selected td, .data-table tr:hover td { background: transparent; }.table-label { display: inline; color: var(--muted); font-size: .75rem; margin-right: .4rem; }.stock-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .7rem; }.stock-table td:first-child, .stock-table td:nth-child(2) { grid-column: 1/-1; }.data-table .table-open { width: 100%; }.tech-table td:nth-child(2) { margin-bottom: .3rem; }.tech-table td:last-child { margin-top: .3rem; }
}

/* C85 presentation */
:root { --ink:#20252e; --muted:#738096; --line:#e6ebf2; --paper:#f8fafc; --accent:#245df4; --accent-dark:#194cdb; font-family:Arial,"Segoe UI",sans-serif; font-size:14px; }
body { line-height:1.45; }
button { display:inline-flex; align-items:center; justify-content:center; gap:9px; border-radius:8px; min-height:40px; padding:10px 16px; font-size:14px; font-weight:600; }
button.quiet:hover { background:#f3f6fb; }
input,select,textarea { border-color:var(--line); min-height:42px; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
svg.ux-icon { width:20px; height:20px; display:block; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
h1 { font-size:36px; line-height:1.2; letter-spacing:-1.1px; margin:0 0 6px; font-weight:750; }
h2 { font-size:20px; letter-spacing:-.3px; }
h3 { font-size:15px; }
.hint { font-size:14px; color:var(--muted); }
.eyebrow { font-size:10px; letter-spacing:1.5px; }
.sidebar { position:fixed; inset:0 auto 0 0; width:251px; background:#fff; border-right:1px solid var(--line); display:flex; flex-direction:column; padding:33px 14px 26px; z-index:20; }
.brand { position:static; width:auto; display:flex; align-items:center; gap:11px; padding:0 13px; color:var(--ink); white-space:normal; font-size:18px; line-height:1.2; letter-spacing:-.5px; }
.brand .brand-icon { width:42px; height:42px; border-radius:14px; background:#edf3ff; color:var(--accent); display:grid; place-items:center; }
.brand .brand-text { font-size:18px; font-weight:750; color:var(--ink); }
.brand small { display:block; margin-top:4px; font-size:12px; font-weight:400; color:var(--muted); letter-spacing:0; }
.nav-caption { padding-left:16px; margin:49px 0 13px; color:#a2adbd; font-size:10px; font-weight:700; letter-spacing:1.35px; }
.tabs { position:static; flex:1; width:auto; display:flex; flex-direction:column; gap:7px; background:transparent; border:0; margin:0; padding:0; }
.tabs::before { content:none; }
.tabs button { text-align:left; justify-content:flex-start; gap:14px; flex:none; width:100%; min-height:46px; padding:11px 16px; border:0; border-radius:8px; background:transparent; color:var(--muted); font-size:14px; font-weight:500; }
.tabs button.active { color:var(--accent); background:#edf3ff; border:0; font-weight:600; }
.tabs button:hover { background:#f5f7fb; }
.tabs button.active:hover { background:#e8efff; }
.tabs button .ux-icon { width:18px; height:18px; }
.proposal-label { margin-left:auto; font-size:9px; font-weight:400; color:#8a96a9; border:1px solid var(--line); border-radius:4px; padding:1px 4px; }
.tabs .sidebar-settings:not([hidden]) { display:flex; margin: auto 10px 22px; width:calc(100% - 20px); border-top:1px solid var(--line); padding-top:24px; border-radius:0; min-height:72px; }
.account { display:block; padding:0 12px; width:auto; }
.account select { width:100%; max-width:none; min-height:32px; font-size:11px; color:var(--muted); border:0; background:#f8fafc; padding:5px 8px; margin-bottom:14px; }
.profile-line { display:flex; align-items:center; gap:10px; }
.avatar { width:35px; height:35px; display:grid; place-items:center; flex-shrink:0; background:#edf3ff; color:var(--accent); border-radius:50%; font-size:11px; font-weight:700; }
.profile-line > div { flex:1; min-width:0; }
#user-name { display:block; color:var(--ink); font-size:12px; line-height:1.3; white-space:normal; }
.profile-line small { display:block; font-size:10px; color:var(--muted); margin-top:3px; }
.account-menu summary { min-height:32px; width:22px; }
.account-menu-items { top:auto; bottom:36px; right:0; font-size:12px; }
.topbar { height:88px; min-height:88px; margin-left:251px; padding:20px 54px; display:flex; align-items:center; gap:24px; background:#fff; }
.global-search { display:flex; align-items:center; flex:0 1 700px; height:48px; width:700px; border:1px solid var(--line); border-radius:10px; background:#f8fafc; padding:0 17px; gap:14px; }
.global-search input { border:0; outline:0; min-height:0; height:42px; padding:0; width:100%; min-width:0; background:transparent; font-size:14px; }
.global-search input::placeholder { color:#a2adbd; opacity:1; }
.global-search:focus-within { border-color:#b6cafa; box-shadow:0 0 0 2px #edf3ff; }
.global-search input:focus-visible { outline:0; }
.global-search kbd { flex-shrink:0; font:11px Arial,sans-serif; border:1px solid var(--line); border-radius:5px; padding:3px 7px; color:var(--muted); white-space:nowrap; }
.icon-button { display:inline-flex; min-height:32px; width:32px; height:32px; padding:4px; border:0; color:var(--muted); background:transparent; border-radius:6px; }
.icon-button:hover { background:#edf3ff; color:var(--accent); }
.global-search .icon-button { width:20px; min-width:20px; padding:0; }
#menu-toggle { display:none; }
.daily-panel { margin:0 0 0 auto; padding:0; border:0; background:transparent; display:flex; align-items:center; gap:22px; box-shadow:none; min-width:0; }
.daily-topline { order:2; margin:0; display:block; }
.daily-title { display:none; }
.date-label input { width:128px; min-height:32px; border:0; padding:0; font-size:12px; color:var(--muted); background:transparent; }
.summary-grid,.summary-grid:has(.cash-summary:not([hidden])) { display:flex; align-items:center; gap:20px; }
.summary-card { padding:0; border:0; background:transparent; min-height:0; display:block; flex:none; }
.summary-card > span { display:block; font-size:10px; color:var(--muted); font-weight:400; }
.summary-card > strong { display:block; font-size:12px; font-weight:500; margin-top:3px; color:#536176; white-space:nowrap; }
.summary-card.cash-summary { text-align:left; }
.summary-card.cash-summary:hover { background:#f8fafc; }
.summary-card:nth-child(3),.daily-footline { display:none; }
.workspace { margin:0 0 0 251px; max-width:none; padding:42px 54px 50px; min-height:calc(100vh - 88px); }
.page-heading { min-height:67px; margin-bottom:29.5px; gap:20px; }
.page-heading .hint { margin:0; }
.page-heading .eyebrow { display:none; }
.page-heading > button { min-height:44px; }
.orders-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:20px; min-height:40px; }
.filter-chips { display:flex; flex-wrap:wrap; gap:8px; margin:0; }
.filter-chips button { min-height:40px; padding:10px 16px; color:var(--muted); border-color:var(--line); font-size:12px; }
.filter-chips button[aria-pressed="true"] { background:#edf3ff; color:var(--accent); border-color:#edf3ff; }
.chip-count { font-size:11px; opacity:.8; }
.orders-toolbar .filters { display:flex; align-items:center; margin:0; gap:12px; }
.orders-toolbar .filters select { min-height:36px; width:155px; padding:6px 8px; background:transparent; border:0; color:var(--muted); font-size:12px; }
.orders-columns,.orders-columns:has(.repair-card),.stock-columns,.stock-columns:has(#part-detail[data-part-id]) { display:block; }
.panel { border-radius:10px; border-color:var(--line); box-shadow:none; }
.orders-panel { padding:0; overflow:hidden; }
.list-heading { display:flex; align-items:center; justify-content:space-between; min-height:58px; padding:20px 25px 15px; border:0; font-size:11px; }
.list-heading strong { color:var(--ink); font-size:14px; font-weight:600; }
.data-table { font-size:14px; }
.data-table th { color:#a2adbd; font-size:11px; font-weight:600; padding:9px 10px 16px; height:41px; }
.data-table td { padding:12px 10px; height:65px; vertical-align:middle; color:var(--muted); }
.data-table th:first-child,.data-table td:first-child { padding-left:25px; }
.data-table th:last-child,.data-table td:last-child { padding-right:20px; }
.tech-table th:first-child { width:7.1%; }.tech-table th:nth-child(2) { width:16.4%; }.tech-table th:nth-child(3) { width:10.4%; }.tech-table th:nth-child(4) { width:41.6%; }.tech-table th:nth-child(5) { width:12%; }.tech-table th:nth-child(6) { width:10.4%; }.tech-table th:last-child { width:2.1%; }
.data-table .table-open { display:flex; align-items:center; gap:12px; font-size:14px; line-height:1.35; font-weight:600; min-height:32px; }
.device-icon { display:grid; place-items:center; width:30px; height:30px; flex-shrink:0; border-radius:8px; background:#f5f7f9; color:var(--muted); }
.device-icon .ux-icon { width:18px; height:18px; }
.tech-act { font-size:13px; font-weight:600; }
.tech-client .cell-value { color:var(--ink); }
.tech-fault .cell-value { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tech-date { font-size:12px; white-space:nowrap; }
.tech-arrow { color:#a2adbd; font-size:16px; }
.badge { padding:6px 10px; font-size:11px; line-height:16px; border-radius:20px; font-weight:600; background:#f5f7f9; color:#7c8799; white-space:nowrap; }
.badge::before { width:6px; height:6px; margin-right:7px; }
.badge.in_progress,.badge.ready { background:#f5f7f9; color:#22846d; }
.badge.diagnostics { background:#f5f7f9; color:#7663b8; }
.badge.accepted { background:#f5f7f9; color:#ac7726; }
.badge.issued { background:#f5f7f9; color:#7a8597; }
.table-footer { min-height:52px; padding:16px 25px; display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:11px; color:var(--muted); }
.table-footer span:last-child { color:var(--accent); }
.orders-panel .empty-state { padding:70px 20px; }
.orders-panel .list-state,.orders-panel #orders-limit { margin:14px 25px; }
.stock-columns > .panel:first-child { padding:0; overflow:hidden; }
.stock-columns .filters,.stock-columns > .panel > .hint { margin:20px 25px; }
.stock-columns .list-heading { padding-top:6px; min-height:44px; }
.stock-columns .data-table th,.stock-columns .data-table td { padding-right:25px; }
.columns { gap:24px; }
.columns:has(#operation-detail .empty-state),.columns:has(#finance-detail .empty-state),.columns:has(#staff-detail .empty-state) { grid-template-columns:1fr; }
#operation-detail:has(.empty-state),#finance-detail:has(.empty-state),#staff-detail:has(.empty-state) { display:none; }
#history-date-slot:empty { display:none; }
.action-form { margin:0 0 24px; padding-top:22px; border-top:1px solid var(--line); }
.repair-panel .action-form:first-child { border-top:0; }
.repair-quick-actions button { font-size:12px; border-radius:7px; }
.repair-card-header { background:#fff; top:0; padding:28px 28px 0; border-bottom:1px solid var(--line); z-index:2; }
.repair-panel { padding:24px 28px; }
.repair-tabs button { font-size:12px; padding:12px 8px; }
.repair-identity { padding-right:36px; }
.repair-identity h2 { font-size:22px; }
.repair-tabs { margin-bottom:0; }
.repair-card .facts { gap:20px; }
.repair-card .fact-label { font-size:11px; }
.repair-card .fact-value { font-size:14px; }
#detail,#part-detail { display:none !important; }
#detail.ux-open,#part-detail.ux-open { display:block !important; }
.ux-open { position:fixed; z-index:61; top:24px; right:24px; bottom:24px; width:min(760px,calc(100vw - 48px)); max-height:calc(100dvh - 48px); overflow:auto; overscroll-behavior:contain; border-radius:14px; background:#fff; box-shadow:0 24px 80px #18243c26; }
#detail.ux-open { padding:0; }
#part-detail.ux-open,#operation-detail.ux-open,#finance-detail.ux-open { padding:28px; }
.ux-close { position:sticky; top:12px; float:right; margin:12px 12px -44px 0; z-index:6; color:var(--muted); background:#f5f7f9; }
.ux-backdrop { position:fixed; inset:0; background:#17263e30; backdrop-filter:blur(2px); z-index:60; }
body.dialog-open { overflow:hidden; }
.sidebar-shade { position:fixed; inset:0; background:#17263e30; border:0; border-radius:0; z-index:19; }
.notice { border-radius:8px; background:#edf3ff; padding:12px 16px; }
.notice.error { background:#fff1ef; }
.notice:empty { display:none; }
.statistics-grid { gap:20px; }
.statistic-card { padding:25px; border-radius:10px; background:#fff; }
.statistic-card strong { font-size:25px; }
.settings-tabs { margin-bottom:25px; }
.login-screen { background:var(--paper); }
.login-card { box-shadow:none; border-color:var(--line); }
@media(max-width:1500px) { .daily-panel { gap:12px; }.summary-grid { gap:14px; }.topbar { gap:20px; }.global-search { flex:1; min-width:220px; }.tech-table th:nth-child(4) { width:31%; }.tech-table th:nth-child(2) { width:22%; }.tech-table th:nth-child(3) { width:12%; }.tech-table th:nth-child(5) { width:14%; }.tech-table th:nth-child(6) { width:12%; } }
@media(max-width:1150px) { .sidebar { width:220px; }.topbar { margin-left:220px; padding:20px 28px; }.workspace { margin-left:220px; padding:36px 28px; }.summary-grid { display:none; }.tech-table th:nth-child(4),.tech-table td:nth-child(4) { display:none; }.tech-table th:nth-child(2) { width:31%; }.tech-table th:nth-child(3) { width:21%; }.tech-table th:nth-child(5) { width:18%; }.tech-table th:nth-child(6) { width:21%; } }
@media(max-width:800px) { .sidebar { width:251px; transform:translateX(-100%); transition:transform .16s; }.sidebar.is-open { transform:translateX(0); }.topbar { margin:0; height:108px; min-height:108px; padding:14px 20px; gap:8px; flex-wrap:wrap; }.workspace { margin:0; padding:30px 20px; }.daily-panel { display:block; width:100%; margin:0; }.summary-grid,.summary-grid:has(.cash-summary:not([hidden])) { display:flex; padding-left:46px; gap:16px; }.summary-card { display:flex; gap:5px; align-items:baseline; }.summary-card > span,.summary-card > strong { display:inline; font-size:10px; margin:0; }.daily-panel .daily-topline { display:none; }#history-date-slot { display:flex; gap:10px; align-items:center; margin-bottom:18px; }#history-date-slot::before { content:'День истории'; font-size:12px; color:var(--muted); }#history-date-slot .daily-topline { margin:0; }#history-date-slot input { min-height:44px; padding:8px 12px; border:1px solid var(--line); background:#fff; width:155px; }#menu-toggle { display:inline-flex; flex-shrink:0; width:38px; min-height:44px; }.global-search { flex:1; min-width:0; width:auto; }.columns { grid-template-columns:1fr; }#operation-detail:not(.ux-open),#finance-detail:not(.ux-open) { display:none; }.page-heading { margin-bottom:26px; }.page-heading h1 { font-size:30px; } }
@media(max-width:620px) {
  html { scrollbar-width:none; }html::-webkit-scrollbar { width:0; }
  button,input,select,summary { min-height:44px; }
  .topbar { height:auto; min-height:108px; padding:14px 15px; flex-direction:row; align-items:center; gap:8px; }
  .summary-grid,.summary-grid:has(.cash-summary:not([hidden])) { display:grid; grid-template-columns:1fr 1fr; gap:4px 10px; padding-left:46px; }.summary-card { min-width:0; flex-wrap:wrap; }.summary-card.cash-summary { grid-column:1/-1; }
  .global-search { height:44px; padding:0 12px; gap:9px; border-radius:9px; }.global-search input { font-size:12px; height:40px; }.global-search kbd { display:none; }.global-search .ux-icon { width:17px; height:17px; }
  .workspace { padding:27px 16px 32px; }.page-heading { align-items:flex-start; gap:12px; margin-bottom:24px; min-height:63px; }.page-heading h1 { font-size:28px; letter-spacing:-.8px; margin-bottom:7px; }.page-heading .hint { font-size:12px; line-height:1.5; max-width:190px; }.page-heading > button { font-size:12px; padding:10px 12px; white-space:nowrap; }.page-heading > button .ux-icon { width:16px; height:16px; }
  #orders-screen .page-heading { flex-wrap:wrap; }#orders-screen .page-heading > div { width:100%; }#orders-screen .page-heading .hint { max-width:none; }#show-intake { margin-top:2px; }
  .orders-toolbar { align-items:start; flex-direction:column; margin-bottom:15px; gap:8px; }.filter-chips { gap:6px; flex-wrap:nowrap; width:100%; }.filter-chips button { padding:10px 11px; min-height:44px; font-size:11px; gap:5px; }.orders-toolbar .filters { width:100%; justify-content:space-between; }.orders-toolbar .filters select { width:170px; min-height:44px; }
  .orders-panel.panel { padding:0; background:transparent; border:0; overflow:visible; }.orders-panel .list-heading { padding:5px 0 14px; min-height:34px; }.orders-panel .list-heading strong { font-size:13px; }.table-footer { display:block; padding:17px 0 0; font-size:10px; }.table-footer span { display:block; margin-bottom:6px; }
  .data-table,.data-table tbody { display:block; }.data-table thead { display:none; }.tech-table tbody { display:grid; gap:10px; }.tech-table tr { display:grid; position:relative; grid-template-columns:1fr auto; gap:0; background:#fff; border:1px solid var(--line); border-radius:10px; padding:15px 16px; min-height:162px; }.tech-table td { display:block; height:auto; min-width:0; padding:0 !important; border:0; background:transparent; }.tech-table tr:hover td,.tech-table tr.selected td { background:transparent; }
  .tech-table td:nth-child(1) { grid-column:1; grid-row:1; margin-bottom:10px; font-size:11px; }.tech-table td:nth-child(2) { grid-column:1/-1; grid-row:2; margin-bottom:11px; }.tech-table td:nth-child(3) { grid-column:1; grid-row:3; margin:0 0 7px; font-size:12px; }.tech-table td:nth-child(4) { display:block; grid-column:1/-1; grid-row:4; font-size:12px; }.tech-table td:nth-child(5) { grid-column:2; grid-row:1; margin:-4px 0 0; }.tech-table td:nth-child(6) { grid-column:1/-1; grid-row:5; margin-top:10px; font-size:10px; }.tech-table td:nth-child(7) { display:none; }.tech-table .table-label { display:none; }.tech-table .table-open { min-height:32px; width:100%; font-size:14px; }.badge { padding:4px 8px; font-size:10px; line-height:16px; }
  .stock-columns > .panel:first-child { padding:14px; }.stock-columns .filters,.stock-columns > .panel > .hint { margin:0 0 16px; }.stock-columns .list-heading { padding:0 0 12px; }.stock-table tbody { display:grid; gap:10px; }.stock-table tr { background:#fff; padding:14px; }.stock-table td { height:auto; padding:5px 0 !important; }.stock-table .table-label { font-size:10px; }
  .ux-open { inset:0; width:100%; max-height:100dvh; border:0; border-radius:0; }.repair-card-header { padding:25px 16px 0; }.repair-panel { padding:20px 16px; }.repair-identity h2 { font-size:19px; }.repair-tabs button { font-size:10px; padding:10px 5px; }.repair-quick-actions { flex-wrap:wrap; }.repair-quick-actions button { min-height:44px; }.repair-card .facts { grid-template-columns:1fr 1fr; gap:16px; }.repair-card .fact-label { font-size:10px; }.repair-card .fact-value { font-size:13px; }.repair-identity { padding-right:28px; gap:8px; flex-wrap:wrap; }.ux-close { top:10px; width:34px; min-height:34px; }.intake-grid { grid-template-columns:1fr; }.panel { padding:18px; }.act-search { flex-wrap:wrap; }.act-search label { width:100%; }.statistics-grid { gap:12px; }.statistic-card { padding:17px; }.statistic-card strong { font-size:20px; }.month-label { width:140px; }.settings-tabs { flex-wrap:wrap; }.settings-tabs button { flex:1; font-size:11px; }
}
.sidebar { transition:none; }

/* P04: attachments remain within the existing Overview panel. */
.repair-attachments { border-top: 1px solid var(--line, #dce1eb); padding-top: 1rem; margin-top: 1.2rem; }
.attachment-list { list-style: none; padding: 0; margin: 0 0 .8rem; }
.attachment-list li { display: flex; gap: .7rem; align-items: center; justify-content: space-between; padding: .65rem 0; border-bottom: 1px solid var(--line, #dce1eb); }
.attachment-label { min-width: 0; display: grid; gap: .2rem; overflow-wrap: anywhere; }
.attachment-actions { display: flex; flex-wrap: wrap; gap: .4rem; flex-shrink: 0; }
.attachment-upload { margin-top: .8rem; }
.attachment-upload label { display: grid; gap: .5rem; }
.attachment-upload input { min-width: 0; width: 100%; }
.attachment-preview { display: grid; gap: .5rem; margin: .8rem 0; }
.attachment-preview img { width: 100%; max-height: 320px; object-fit: contain; }
.attachment-preview[hidden] { display: none; }
@media (max-width: 520px) { .attachment-list li { align-items: stretch; flex-direction: column; } .attachment-actions { flex-shrink: 1; } }
.task-row { display:flex; flex-direction:column; align-items:flex-start; gap:6px; text-align:left; overflow-wrap:anywhere; }
.task-row strong { font-size:15px; }
.task-result { white-space:pre-wrap; overflow-wrap:anywhere; }
.task-form,.task-action-form { margin-top:16px; }
.task-action-form { display:grid; gap:14px; }
.task-action-form button { justify-self:start; }

.proposal-block { padding-bottom:24px; margin-bottom:24px; border-bottom:1px solid var(--line); }
.proposal-block > h3 { margin-top:0; }
.proposal-form { display:grid; gap:14px; margin-top:16px; }
.proposal-form button { justify-self:start; }
.proposal-row { display:block; width:100%; text-align:left; color:var(--ink); background:white; }
.proposal-row p,.proposal-pending p { white-space:pre-wrap; overflow-wrap:anywhere; }
.proposal-facts { margin:16px 0; }
.proposal-facts .fact-value { white-space:pre-wrap; overflow-wrap:anywhere; }
.proposal-history,.proposal-cancel { margin:16px 0; }
.proposal-detail { margin-top:20px; }
.task-edit,.task-cancel,.task-history { margin-top:22px; }
.task-history-row { padding:14px 0; border-bottom:1px solid var(--line); }
.task-history-row small { display:block; margin-top:6px; }
#task-detail { min-width:0; }
.columns:has(#task-detail .empty-state) { grid-template-columns:1fr; }
@media(max-width:800px) { #task-detail:not(.ux-open) { display:none; } }
body[data-section="tasks"] #history-date-slot { display:none !important; }
.message-row { display:flex; flex-direction:column; align-items:flex-start; gap:6px; text-align:left; overflow-wrap:anywhere; }
.message-row strong { font-size:15px; }
.message-body { white-space:pre-wrap; overflow-wrap:anywhere; }
.message-form { margin-top:16px; }
.message-unread-filter { display:flex; align-items:center; gap:7px; font-size:13px; }
.message-unread-filter input { width:auto; min-height:18px; }
.message-history { margin-top:22px; }
.message-history-row { padding:14px 0; border-bottom:1px solid var(--line); }
.message-history-row small { display:block; margin-top:6px; }
#message-detail { min-width:0; }
.columns:has(#message-detail .empty-state) { grid-template-columns:1fr; }
@media(max-width:800px) { #message-detail:not(.ux-open) { display:none; } }
body[data-section="messages"] #history-date-slot { display:none !important; }
body[data-section="messages"] .date-label:has(#work-date) { display:none !important; }
