:root { --ink: #14161B; --ink2: #1E2128; --ink3: #2A2E37; --gold: #D9B26B; --gold2: #C9973F; --sand: #F6F3EE; --line: #E6E1D8; --muted: #6B6760; --ok: #15803D; --okt: #DCFCE7; --bad: #B91C1C; --badt: #FEE2E2; --info: #1D4ED8; --infot: #DBEAFE; }
* { box-sizing: border-box; } body { margin: 0; font-family: Inter, sans-serif; color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Inter Display', Inter, sans-serif; letter-spacing: -0.02em; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: 'Inter Display'; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: inherit; text-decoration: none; }
.logo img { width: 38px; height: 38px; } .logo b { color: var(--gold); font-weight: 700; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.btn.gold { white-space: nowrap; background: linear-gradient(135deg, #F3D9A4, #C9973F); border: 0; color: #1A1408; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.22); color: #fff; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.p-ok { background: var(--okt); color: var(--ok); } .p-info { background: var(--infot); color: var(--info); } .p-bad { background: var(--badt); color: var(--bad); } .p-grey { background: #EEEAE3; color: var(--muted); } .p-gold { background: #F8EBD2; color: #8A6216; }

.shell { display: grid; grid-template-columns: 240px minmax(0,1fr); min-height: 100vh; }
.side { background: var(--ink); color: #D7D2C8; padding: 22px 14px; display: flex; flex-direction: column; gap: 3px; }
.side .logo { color: #fff; font-size: 21px; padding: 0 8px 22px; } .side .logo img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: #C9C4BA; }
.nav.on { background: rgba(217,178,107,.14); color: #F3D9A4; } .nav .n { margin-left: auto; background: var(--gold); color: #1A1408; border-radius: 99px; font-size: 11px; padding: 1px 7px; font-weight: 800; }
.sec { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7F796E; padding: 16px 12px 6px; font-weight: 700; }
.appl { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: #C9C4BA; } .appl img { width: 22px; height: 22px; border-radius: 6px; } .appl em { margin-left: auto; font-style: normal; color: #7F796E; font-size: 12px; }
main { padding: 28px 34px; } .head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; } .head h1 { font-size: 30px; margin-right: auto; } .head small { display: block; color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: 0; font-family: Inter; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; } .kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; } .kpi span { color: var(--muted); font-size: 13px; font-weight: 600; } .kpi b { display: block; font-family: 'Inter Display'; font-size: 28px; margin: 4px 0 2px; } .kpi small { color: var(--ok); font-weight: 700; font-size: 13px; } .kpi.dark { background: var(--ink); color: #fff; border-color: var(--ink); } .kpi.dark span { color: #A39D92; } .kpi.dark b { color: #F3D9A4; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.app { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; } .app .t { display: flex; align-items: center; gap: 12px; } .app img { width: 44px; height: 44px; border-radius: 12px; } .app h3 { font-size: 19px; } .app .t small { color: var(--ok); font-weight: 700; font-size: 12px; display: block; }
.app .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; } .app .nums div { background: var(--sand); border-radius: 10px; padding: 10px; } .app .nums b { display: block; font-size: 20px; font-family: 'Inter Display'; } .app .nums span { font-size: 12px; color: var(--muted); }
.app .row { display: flex; gap: 8px; } .app .row .btn { flex: 1; justify-content: center; }
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; } .card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; } .card h3 { font-size: 17px; margin-bottom: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; } td { padding: 10px 6px; border-bottom: 1px solid #F0ECE5; } tr:last-child td { border: 0; } td.r { text-align: right; font-weight: 700; } td img { width: 20px; height: 20px; border-radius: 5px; vertical-align: middle; margin-right: 6px; } .m { color: var(--muted); font-size: 13px; }
.todo div { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #F0ECE5; font-size: 14px; } .todo div:last-child { border: 0; } .todo .btn { margin-left: auto; }

.shell { display: grid; grid-template-columns: 240px minmax(0,1fr); min-height: 100vh; }
.side { background: var(--ink); color: #D7D2C8; padding: 22px 14px; display: flex; flex-direction: column; gap: 3px; }
.side .logo { color: #fff; font-size: 21px; padding: 0 8px 22px; } .side .logo img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: #C9C4BA; } .nav.on { background: rgba(217,178,107,.14); color: #F3D9A4; } .nav .n { margin-left: auto; background: var(--gold); color: #1A1408; border-radius: 99px; font-size: 11px; padding: 1px 7px; font-weight: 800; }
.sec { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7F796E; padding: 16px 12px 6px; font-weight: 700; } .appl { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; font-weight: 600; font-size: 14px; color: #C9C4BA; } .appl img { width: 22px; height: 22px; border-radius: 6px; }
main { padding: 28px 34px; } .head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; } .head h1 { font-size: 30px; margin-right: auto; }
.run { background: var(--ink); color: #fff; border-radius: 18px; padding: 20px 22px; display: flex; align-items: center; gap: 24px; margin-bottom: 18px; }
.run h3 { font-size: 20px; } .run p { margin: 4px 0 0; color: #A39D92; font-size: 14px; } .run .n { margin-left: auto; text-align: right; } .run .n b { font-family: 'Inter Display'; font-size: 28px; color: #F3D9A4; display: block; } .run .n span { color: #A39D92; font-size: 13px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; } .tabs span { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; color: var(--muted); } .tabs span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tw { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; } table { width: 100%; border-collapse: collapse; font-size: 14px; } th { text-align: left; font-size: 12px; color: var(--muted); background: #FAF8F4; padding: 11px 12px; font-weight: 700; } td { padding: 12px; border-top: 1px solid #F0ECE5; vertical-align: middle; } td.r, th.r { text-align: right; } td b { font-weight: 700; } td .m { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; }
.tw .app, td .app { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; } .tw .app img, td .app img { width: 20px; height: 20px; border-radius: 5px; }
.chk { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--gold2); background: var(--gold2); display: inline-block; position: relative; } .chk.off { background: #fff; border-color: #CFC9BE; }
.foot { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #FAF8F4; border-top: 1px solid var(--line); font-size: 14px; } .foot b { font-size: 16px; } .foot .sp { flex: 1; }
.zzpreview { position: fixed; right: 34px; bottom: 30px; width: 360px; background: #fff; border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(20,22,27,.45); overflow: hidden; border: 1px solid var(--line); }
.zzpreview .ph { background: var(--ink); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; } .zzpreview .ph img { width: 26px; height: 26px; } .zzpreview .ph b { color: #F3D9A4; font-family: 'Inter Display'; font-size: 20px; }
.zzpreview .pb { padding: 16px 18px; font-size: 13px; } .zzpreview .ln { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); } .zzpreview .tot { display: flex; justify-content: space-between; font-weight: 800; font-size: 16px; padding-top: 10px; } .zzpreview .iban { background: #F8EBD2; border-radius: 10px; padding: 10px 12px; margin-top: 12px; color: #6B4E12; }

button { font: inherit; cursor: pointer; } .btn { cursor: pointer; } .btn:disabled { opacity: .5; cursor: default; }
.btn.danger { color: var(--bad); } .btn.ghost2 { background: transparent; border-color: transparent; color: var(--muted); }
.side a, .side button.nav, .side button.appl { background: none; border: 0; width: 100%; text-align: left; text-decoration: none; }
.side .foot { background: none; align-items: start; margin-top: auto; padding: 14px 12px 0; border-top: 1px solid #2E323B; font-size: 13px; color: #8E887D; display: grid; gap: 6px; } .side .foot button { background: none; border: 0; color: #D7D2C8; text-align: left; padding: 0; font-weight: 600; }
.mnav { display: none; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .side { display: none; } .mnav { display: flex; gap: 6px; overflow-x: auto; background: var(--ink); padding: 10px; position: sticky; top: 0; z-index: 5; } .mnav .nav { flex: none; } .kpis, .apps { grid-template-columns: 1fr 1fr !important; } .grid2 { grid-template-columns: 1fr !important; } main { padding: 18px 14px !important; } }
.empty { text-align: center; color: var(--muted); padding: 30px; border: 1.5px dashed #D9D2C6; border-radius: 14px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 50; opacity: 0; transition: .2s; pointer-events: none; } .toast.show { opacity: 1; } .toast.err { background: var(--bad); }
dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 70px -20px rgba(20,22,27,.45); } dialog.wide { width: min(820px, calc(100vw - 24px)); } dialog::backdrop { background: rgba(20,22,27,.5); }
dialog form, dialog .in { padding: 22px; display: grid; gap: 12px; } .dh { display: flex; justify-content: space-between; align-items: center; } .dh h2 { font-size: 21px; } .x { width: 38px; height: 38px; border-radius: 19px; border: 1px solid var(--line); background: #fff; font-size: 18px; }
label.f { display: grid; gap: 5px; font-weight: 600; font-size: 14px; } label.f small { color: var(--muted); font-weight: 500; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid #D9D2C6; border-radius: 10px; background: #fff; min-width: 0; } textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold2); box-shadow: 0 0 0 3px #F8EBD2; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .f3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; } .acts { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; } .acts .sp { flex: 1; }
.err { color: var(--bad); font-weight: 600; margin: 0; } .err:empty { display: none; }
.lines td input { width: 100%; } .lines td.q input { width: 70px; } .lines td.p input { width: 110px; text-align: right; } .lines td.a { text-align: right; font-weight: 700; white-space: nowrap; }
.lnk { background: none; border: 0; padding: 0; color: #8A6216; font-weight: 700; text-decoration: underline; }
tr.click { cursor: pointer; } tr.click:hover td { background: #FBF8F3; }
.card + .card { margin-top: 16px; } .sub { color: var(--muted); font-size: 13px; } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.apperr { background: var(--badt); color: var(--bad); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 600; margin: 10px 0 0; }
.kpi.dark small, .kpi small.ok { color: #7EE2A1; }
.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(700px 400px at 85% 10%, rgba(217,178,107,.2), transparent 60%), var(--ink); padding: 20px; }
.login form { background: #fff; border-radius: 20px; padding: 28px; width: min(420px, 100%); display: grid; gap: 12px; } .login .logo { margin-bottom: 8px; } .login h1 { font-size: 24px; }
.tw table td.r, .tw table th.r { text-align: right; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .price-grid .card h3 { display: flex; gap: 8px; align-items: center; } .price-grid .card h3 img { width: 26px; height: 26px; border-radius: 7px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } .f2, .f3 { grid-template-columns: 1fr; } }
.hidden { display: none !important; } .tabs input { min-width: 280px; } .tabs span { cursor: pointer; }
.late-t, .bad-t { color: var(--bad) !important; font-weight: 700; font-size: 13px; } .bad-t { display: block; }
.sec-h { margin: 24px 0 10px; font-size: 18px; } .tot-row { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; } .sp { flex: 1; }
.lines { width: 100%; border-collapse: collapse; } .lines th { text-align: left; font-size: 12px; color: var(--muted); padding: 6px; } .lines td { padding: 4px; border-top: 1px solid #F0ECE5; }
.card table td.m, td .m, span.m { color: var(--muted); font-size: 12px; } td span.m { display: block; margin-top: 2px; }
.run { flex-wrap: wrap; }

.side .foot a { color: #D7D2C8; font-weight: 600; text-decoration: none; }
main { min-width: 0; } .kpis > *, .apps > *, .grid2 > * { min-width: 0; }
@media (max-width: 1250px) { .apps { grid-template-columns: 1fr 1fr; } }
.grid2 > .card + .card { margin-top: 0; }
td .app { background: none; border: 0; padding: 0; border-radius: 0; }
td.r, .nw { white-space: nowrap; }
label.f + label.f, label.f + .f2, .f2 + label.f, .f2 + .f2, .f3 + label.f, label.f + .f3, .f2 + .f3, .f3 + .f2 { margin-top: 12px; }
.price-grid > .card + .card { margin-top: 0; } .price-grid { align-items: start; }
.card { min-width: 0; overflow-x: auto; }
.f2 > label.f, .f3 > label.f { margin-top: 0 !important; } .f2, .f3 { align-items: start; }
.pill { white-space: nowrap; } td input { width: 100%; min-width: 120px; }
@media (max-width: 900px) { .shell { grid-template-columns: minmax(0,1fr) !important; } .kpis { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } .apps { grid-template-columns: minmax(0,1fr) !important; } .head { flex-wrap: wrap; } .kpi b { font-size: 22px; } }
