:root { --brand-ink: #172e48; --brand-accent: #a84521; --brand-accent-hover: #873519; --brand-paper: #f7f5f0; --brand-soft: #e8edf2; --text: #243344; --muted: #617181; --line: #dce1e5; --status-ok: #276542; --status-danger: #a12c34; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--brand-paper); color: var(--text); font: 15px/1.65 "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif; }
a { color: var(--brand-ink); text-underline-offset: 4px; }
a:hover { color: var(--brand-accent); }
h1,h2,h3,p { margin: 0 0 16px; }
h1 { font-size: clamp(27px, 3vw, 38px); line-height: 1.3; letter-spacing: -.035em; color: var(--brand-ink); font-weight: 650; }
h2 { font-size: 21px; line-height: 1.45; }
h3 { font-size: 17px; }
small,.quiet { color: var(--muted); font-size: 12px; }
strong { font-weight: 620; }
button,input,select { font: inherit; }
.button, input[type=submit], button { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-accent); border: 1px solid transparent; border-radius: 5px; color: white; font-weight: 550; padding: 10px 17px; cursor: pointer; text-decoration: none; min-height: 42px; }
.button:hover,input[type=submit]:hover,button:hover { background: var(--brand-accent-hover); color: white; }
button.secondary { background: white; color: var(--brand-ink); border-color: var(--line); padding: 6px 12px; min-height: 36px; }
button.secondary:hover { border-color: var(--brand-ink); background: var(--brand-soft); }
.confirmation-dialog { width: 440px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); padding: 26px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--text); }
.confirmation-dialog::backdrop { background: color-mix(in srgb, var(--brand-ink) 38%, transparent); }
.confirmation-dialog p { white-space: pre-wrap; overflow-wrap: anywhere; }
.confirmation-actions { display: flex; gap: 12px; margin: 24px 0 0; }
.confirmation-actions button { flex: 1; }
.small { padding: 6px 12px; min-height: 36px; font-size: 13px; }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }
.topbar { height: 82px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: white; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; }
.brand strong { font-size: 23px; letter-spacing: .05em; }
.brand span { font-size: 11px; letter-spacing: .16em; color: var(--muted); margin-left: 4px; }
.top-actions { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.top-actions form { margin: 0; }
.skip-link { position: absolute; top: -100px; background: white; padding: 10px; z-index: 5; }
.skip-link:focus { top: 8px; left: 8px; }
.landing { max-width: 1250px; margin: auto; padding: 80px 36px 0; }
.landing-intro { display: grid; grid-template-columns: 1.12fr 1fr; gap: 65px; align-items: center; padding-bottom: 80px; }
.eyebrow { color: var(--brand-accent); font-size: 11px; letter-spacing: .16em; font-weight: 600; margin-bottom: 23px; }
.landing h1 { font-size: clamp(36px, 4.2vw, 57px); line-height: 1.28; margin-bottom: 26px; }
.lead { font-size: 17px; max-width: 510px; color: var(--muted); margin-bottom: 30px; }
.lead-small { color: var(--muted); margin-bottom: 28px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-bottom: 18px; }
.text-link { font-size: 13px; }
.ledger-preview { background: white; border: 1px solid var(--line); box-shadow: 12px 14px 0 var(--brand-soft); }
.ledger-title { display: flex; justify-content: space-between; padding: 20px 24px; background: var(--brand-ink); color: white; font-weight: 600; }
.ledger-title .badge { color: white; background: #ffffff20; }
.ledger-row { display: flex; align-items: center; gap: 18px; padding: 25px 22px; border-bottom: 1px solid var(--line); }
.ledger-row p { font-size: 12px; margin: 3px 0 0; color: var(--muted); }
.ledger-row > :last-child { margin-left: auto; font-size: 11px; white-space: nowrap; }
.number { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.planned { background: #f9fafb; }
.ledger-note { font-size: 11px; color: var(--muted); padding: 14px 24px; margin: 0; }
.status { color: var(--status-ok); font-weight: 550; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 35px; border-top: 1px solid var(--line); padding: 42px 0; }
.principles .eyebrow { display: block; margin-bottom: 15px; }
.principles h2 { font-size: 18px; }
.principles p { color: var(--muted); font-size: 13px; }
.landing-footer { border-top: 1px solid var(--line); padding: 24px 0; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.auth-card { max-width: 480px; margin: 60px auto; padding: 34px; background: white; border: 1px solid var(--line); }
.auth-card h1 { font-size: 27px; }
.auth-card p { color: var(--muted); }
form { margin: 22px 0; }
label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 6px; }
input:not([type=submit]):not([type=checkbox]),select { width: 100%; border: 1px solid #bbc6ce; border-radius: 4px; background: white; padding: 10px 12px; min-height: 43px; margin-bottom: 18px; color: var(--text); }
input[type=file] { max-width: 100%; font-size: 13px; }
fieldset { border: 1px solid var(--line); padding: 15px; margin-bottom: 20px; }
.permission-form input[type=radio] { width: auto; min-height: 0; margin: 0; padding: 0; }
.permission-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 24px; }
.permission-form details { margin-bottom: 14px; }
legend { font-size: 13px; padding: 0 6px; }
.checkbox { display: flex; align-items: center; gap: 9px; font-weight: 400; }
.flash { border-left: 3px solid var(--status-ok); background: #edf5ef; padding: 12px 16px; margin-bottom: 22px; font-size: 13px; }
.flash.alert,[role=alert] { color: var(--status-danger); }
.flash.alert { border-color: var(--status-danger); background: #faedef; }
.app-shell { display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: calc(100vh - 82px); }
.sidebar { background: white; border-right: 1px solid var(--line); padding: 28px 20px; display: flex; flex-direction: column; }
.company-label { padding: 0 9px 25px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.company-label small,.company-label strong { display: block; margin-bottom: 8px; overflow-wrap: anywhere; }
.badge { display: inline-block; border-radius: 3px; padding: 3px 7px; font-size: 11px; font-weight: 500; color: var(--muted); background: var(--brand-soft); }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar nav a { padding: 8px 12px; font-size: 14px; text-decoration: none; border-radius: 4px; }
.sidebar nav a[aria-current=page] { background: var(--brand-soft); font-weight: 600; }
.nav-module { padding-top: 14px; }
.nav-module h2 { margin: 0 0 6px; padding: 0 12px; font-size: 11px; font-weight: 600; color: var(--muted); }
.nav-module-links { display: flex; flex-direction: column; gap: 2px; }
.sidebar-note { margin-top: auto; padding: 28px 9px 0; color: var(--muted); font-size: 11px; }
.workspace-content { padding: 40px; max-width: 1250px; width: 100%; }
.workspace-content > form { padding: 24px; background: white; border: 1px solid var(--line); max-width: 630px; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 18px; margin-bottom: 28px; }
.overview-grid section { padding: 23px; border: 1px solid var(--line); background: white; display: flex; flex-direction: column; }
.overview-grid strong { font-size: 37px; font-variant-numeric: tabular-nums; line-height: 1.2; margin: 12px 0; color: var(--brand-ink); }
.overview-grid strong.text-value { font-size: 21px; margin: 18px 0; }
.overview-grid a,.overview-grid span { font-size: 12px; color: var(--muted); }
.panel { background: white; border: 1px solid var(--line); padding: 26px; margin-bottom: 25px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; }
.roadmap { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin: 17px 0; }
.roadmap article { border-top: 1px solid var(--line); padding-top: 15px; }
.roadmap span { font-size: 11px; color: var(--muted); }
.roadmap h3 { margin: 10px 0 6px; }
.roadmap p { color: var(--muted); font-size: 13px; }
.details { display: grid; grid-template-columns: 130px minmax(0,1fr); font-size: 13px; gap: 13px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.financial-return-evidence { overflow-wrap: anywhere; }
.table-wrap { border: 1px solid var(--line); overflow-x: auto; background: white; margin-top: 25px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { background: #f2f5f7; color: var(--muted); font-size: 12px; font-weight: 500; }
th,td { padding: 15px 18px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td small { display: block; font-size: 11px; margin-top: 3px; }
.invoice-register-table { min-width: 900px; }
[data-invoice-choices-target=more][hidden] { display: none; }
.vat-profile-history-table { min-width: 700px; }
.invoice-register-table td:nth-child(3), .invoice-register-table td:nth-child(5), .invoice-register-table td:last-child, .vat-profile-history-table td:nth-child(3) { white-space: nowrap; }
td form { display: inline-flex; margin: 3px 3px 3px 0; gap: 5px; align-items: center; }
td select { width: auto; min-height: 35px; padding: 5px; margin: 0; }
td input[type=submit] { min-height: 35px; padding: 5px 10px; font-size: 12px; }
.secret { padding: 22px; background: white; border: 1px solid var(--line); overflow-wrap: anywhere; white-space: pre-wrap; user-select: all; }
.platform-content { max-width: 1180px; padding: 45px 30px; margin: auto; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 20px; font-size: 13px; }
.trial-notice { border-left: 3px solid var(--brand-accent); padding: 12px 16px; background: #fff8ef; font-size: 13px; }
.order-total { text-align: right; padding: 18px 0; font-variant-numeric: tabular-nums; }
@media(max-width:900px) { .landing-intro { gap: 30px; } .landing { padding: 50px 26px 0; } .overview-grid { grid-template-columns: 1fr 1fr; } .overview-grid section:last-child { grid-column: span 2; } .workspace-content { padding: 28px; } .app-shell { grid-template-columns: 190px minmax(0,1fr); } }
@media(max-width:640px) { .topbar { height: auto; min-height: 74px; padding: 16px 18px; gap: 10px; } .brand span,.user-name { display: none; } .top-actions { gap: 12px; } .landing { padding: 40px 20px 0; } .landing-intro,.principles { grid-template-columns: 1fr; gap: 35px; padding-bottom: 40px; } .ledger-preview { box-shadow: 6px 7px 0 var(--brand-soft); } .auth-card { margin: 30px 18px; padding: 24px; } .app-shell { display: block; } .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 15px 18px; } .company-label { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 0 0 10px; margin-bottom: 10px; } .company-label small { display: none; } .company-label strong { margin: 0; font-size: 14px; } .sidebar nav { flex-direction: row; overflow-x: auto; gap: 0; } .sidebar nav a { white-space: nowrap; padding: 8px 9px; font-size: 12px; } .sidebar-note { display: none; } .workspace-content { padding: 26px 18px; } .overview-grid { gap: 10px; } .overview-grid section { padding: 17px; } .roadmap { grid-template-columns: 1fr; gap: 8px; } .panel { padding: 20px; } .landing-footer { flex-direction: column; gap: 8px; } .details { grid-template-columns: 90px minmax(0,1fr); } }
@media(max-width:640px) { .sidebar nav { align-items: flex-end; gap: 12px; } .sidebar nav > a { flex-shrink: 0; } .nav-module { flex-shrink: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); } .nav-module h2 { position: sticky; left: 0; width: max-content; } .nav-module-links { flex-direction: row; gap: 0; } }
.auth-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin: 24px 0; }
.auth-tabs a { padding-bottom: 10px; text-decoration: none; font-size: 14px; }
.auth-tabs a[aria-current=page] { border-bottom: 2px solid var(--brand-accent); font-weight: 600; }
.sms-code-row { display: flex; gap: 10px; align-items: flex-start; }
.sms-code-row input { min-width: 0; }
.sms-code-row button { white-space: nowrap; min-height: 43px; }
button:disabled { cursor: wait; opacity: .6; }
.crm-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; }
.crm-filters div { flex: 1; min-width: 150px; }
.crm-filters input:not([type=submit]),.crm-filters select { margin-bottom: 0; }
.crm-overdue { color: var(--status-danger); }
.crm-followup { border-top: 1px solid var(--line); padding: 16px 0 0; }
.crm-note { white-space: pre-wrap; overflow-wrap: anywhere; }
textarea { width: 100%; max-width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 18px; }
summary { cursor: pointer; font-weight: 550; }
.crm-table { min-width: 720px; }
.crm-table td:first-child { min-width: 160px; }
.crm-scroll-hint { display: none; }
@media(max-width:640px) { .crm-scroll-hint { display: block; } }

.order-progress-table { min-width: 720px; }
.bank-statement-table { min-width: 640px; }
.accounting-table { min-width: 720px; }
.business-advances-table td:last-child { white-space: nowrap; }
.stock-count-table { min-width: 640px; }
.payments-table { min-width: 1000px; }
.payments-table td:first-child { min-width: 130px; }
.payments-table td form { display: grid; grid-template-columns: auto minmax(130px, 1fr); min-width: 270px; }
.payments-table td form label { white-space: nowrap; margin: 0; }
.payments-table td form input, .payments-table td form select { margin: 0; }
.payments-table td form input[type=submit] { grid-column: 1 / -1; }
.performance-summary { border-top: 3px solid var(--brand-ink); padding: 18px 0; margin: 26px 0; }
.performance-summary h2 { font-size: 17px; margin: 0 0 16px; }
.performance-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; }
.performance-summary dt { color: var(--muted); font-size: 12px; }
.performance-summary dd { font-size: clamp(20px, 2.7vw, 32px); font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; margin: 8px 0 0; overflow-wrap: anywhere; }
.performance-summary .performance-note { font-size: 14px; font-weight: 400; }
.performance-table { min-width: 990px; }
.performance-table td { vertical-align: top; }
.performance-table td:first-child { min-width: 135px; }
.performance-table td:nth-child(4) { min-width: 160px; }
.performance-claims-table { min-width: 740px; }
.performance-claims-table td { vertical-align: top; }
.performance-claims-table form { min-width: 260px; margin: 0; }
@media(max-width:640px) { .performance-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .performance-summary dl > div:last-child { grid-column: 1 / -1; } }
