/* Arkonia Estate CRM — styles built on the Arkonia Estate identity tokens */
@font-face { font-family: Inter; src: url(/static/fonts/Inter-Regular.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/static/fonts/Inter-Medium.woff) format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(/static/fonts/Inter-SemiBold.woff) format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/static/fonts/Inter-Bold.woff) format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: Lora; src: url(/static/fonts/Lora-SemiBold.woff) format('woff'); font-weight: 600; font-display: swap; }

:root {
  --navy: #0E2A47; --navy-700: #1C3D5E; --copper: #B8683A; --copper-ink: #A35A2F; --copper-soft: #F1DFD1; --on-copper: #fff;
  --sand: #F5EFE6; --surface: #fff; --ink: #1B2430; --ink-muted: #5B6573; --line: #E4DDD2;
  --sea: #2F7F6E; --sea-soft: #DCEFE9; --amber: #9A6412; --amber-soft: #F7EBD3; --danger: #B3261E; --danger-soft: #F8DEDB;
  --radius-sm: 6px; --radius-md: 10px; --shadow: 0 1px 2px rgba(14,42,71,.06), 0 4px 16px rgba(14,42,71,.06);
  --font-display: Lora, Georgia, serif; --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/22px var(--font-sans); color: var(--ink); background: var(--sand); font-feature-settings: "tnum"; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--copper-ink); }
h1, h2 { font-family: var(--font-display); font-weight: 600; color: var(--navy); margin: 0; }
h1 { font-size: 28px; line-height: 36px; }
h2 { font-size: 18px; line-height: 26px; }
small, .small { font-size: 13px; line-height: 18px; }
.muted { color: var(--ink-muted); } .block { display: block; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.danger-text { color: var(--danger); font-weight: 600; } .sea-text { color: var(--sea); }
.ic { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

/* ---------- layout ---------- */
.side { position: fixed; top: 0; bottom: 0; left: 0; height: 100vh; width: var(--side); background: var(--navy); color: #fff; display: flex; flex-direction: column; z-index: 20; }
.brand { display: block; padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand img { width: 170px; height: auto; display: block; }
.side nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: rgba(255,255,255,.78); font-weight: 500; position: relative; }
.side nav a:hover { background: var(--navy-700); color: #fff; }
.side nav a.on { background: var(--navy-700); color: #fff; }
.side nav a.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--copper); }
.side nav a.on .ic { color: #D99A6C; }
.side-foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; gap: 10px; align-items: center; } .me b { display: block; font-size: 14px; } .me small { color: rgba(255,255,255,.6); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--copper); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; text-transform: uppercase; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; border-radius: 32px 32px 10px 10px; background: var(--navy); }
.linkbtn { background: none; border: 0; color: rgba(255,255,255,.7); display: flex; gap: 8px; align-items: center; font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0; }
.linkbtn:hover { color: #fff; }

.main { margin-left: var(--side); min-height: 100vh; }
.top { position: sticky; top: 0; z-index: 10; background: rgba(245,239,230,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 32px; }
.menu-btn { display: none; background: none; border: 0; padding: 6px; color: var(--navy); cursor: pointer; }
.gsearch { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 38px; width: min(380px, 100%); color: var(--ink-muted); }
.gsearch input { border: 0; outline: 0; background: none; font: inherit; flex: 1; min-width: 0; color: var(--ink); }
.company { margin-left: auto; color: var(--ink-muted); font-size: 13px; font-weight: 500; }
.lang { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--ink-muted); letter-spacing: .04em; }
.lang a.on { background: var(--navy); color: #fff; }
.content { padding: 28px 32px 48px; max-width: 1360px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: 13px; color: var(--ink-muted); margin-bottom: 4px; } .crumb a { color: var(--ink-muted); } .crumb a:hover { color: var(--copper-ink); }
.sub { margin: 4px 0 0; color: var(--ink-muted); }
.flash { display: flex; gap: 8px; align-items: center; background: var(--sea-soft); color: var(--sea); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 16px; font-weight: 500; }

/* ---------- components ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 20px; align-items: start; }
.grid-2 > *, .grid-side > * { min-width: 0; }
.row { display: flex; align-items: center; } .gap { gap: 8px; } .grow { flex: 1; min-width: 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); color: var(--navy); font: 500 14px var(--font-sans); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn-primary { background: var(--copper-ink); border-color: var(--copper-ink); color: var(--on-copper); }
.btn-primary:hover { background: #8E4D27; border-color: #8E4D27; color: #fff; }
.btn-primary[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; } .btn-sm .ic { width: 16px; height: 16px; }
.btn-text { border-color: transparent; background: none; } .btn-text:hover { border-color: transparent; color: var(--copper-ink); }
.btn-ghost-danger { color: var(--danger); } .btn-ghost-danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-block { width: 100%; justify-content: center; height: 44px; font-size: 15px; }
form.inline { display: inline; }

.badge { display: inline-block; font-size: 12px; font-weight: 600; line-height: 20px; padding: 0 9px; border-radius: 999px; white-space: nowrap; }
.b-navy { background: #E3E9F0; color: var(--navy); } .b-copper { background: var(--copper-soft); color: var(--copper-ink); }
.b-sea { background: var(--sea-soft); color: var(--sea); } .b-amber { background: var(--amber-soft); color: var(--amber); }
.b-danger { background: var(--danger-soft); color: var(--danger); } .b-muted { background: #EEEAE3; color: var(--ink-muted); }

.table-wrap { overflow-x: auto; margin: 0 -22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid #F0EBE3; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 22px; } th:last-child, td:last-child { padding-right: 22px; }
tbody tr:hover { background: #FBF8F3; }
tr.row-late td { background: #FDF6F5; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 28px 12px; text-align: center; color: var(--ink-muted); }
.stars { color: var(--copper); letter-spacing: 1px; font-size: 11px; } .stars .off { color: var(--line); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filters > input { height: 38px; min-width: 220px; flex: 1; max-width: 340px; }
.filters .field { min-width: 150px; } .filters .field label { font-size: 11px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 16px; }
.tabs a { padding: 8px 14px; color: var(--ink-muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--navy); border-color: var(--copper); }

/* forms */
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #D7CFC3; border-radius: var(--radius-sm); padding: 8px 10px; width: 100%; }
input, select { height: 40px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14,42,71,.12); }
.form h2 { margin: 6px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 17px; }
.form h2 ~ h2 { margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.two .form-actions, .form-grid.two p { grid-column: 1 / -1; margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.field small { color: var(--ink-muted); }
.field.wide { grid-column: span 2; } .field.full, .full { grid-column: 1 / -1; }
.req { color: var(--copper-ink); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--copper-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 6px 14px; border: 1px solid #D7CFC3; border-radius: 999px; font-size: 14px; cursor: pointer; background: var(--surface); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
.chips .check { padding: 6px 12px; border: 1px solid #D7CFC3; border-radius: 999px; }
.form-actions { display: flex; gap: 8px; margin-top: 22px; align-items: center; }
.form.narrow { max-width: 720px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.alert { background: var(--danger-soft); color: var(--danger); padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 500; margin-bottom: 14px; }

/* dashboard */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { min-height: 108px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -14px; bottom: -22px; width: 44px; height: 60px; border-radius: 22px 22px 0 0; background: var(--copper-soft); }
.kpi span { font-size: 13px; color: var(--ink-muted); font-weight: 500; position: relative; z-index: 1; }
.kpi b { font: 600 30px/36px var(--font-display); color: var(--navy); position: relative; z-index: 1; }
.kpi.small b { font-size: 18px; line-height: 28px; }
.kpi.alert b { color: var(--danger); } .kpi.alert::after { background: var(--danger-soft); }
.kpi:hover { border-color: var(--copper); color: inherit; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li a { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid #F0EBE3; color: var(--ink); }
.agenda li:last-child a { border-bottom: 0; }
.agenda .when { width: 92px; flex: none; display: flex; flex-direction: column; } .agenda .when b { font-size: 14px; color: var(--navy); } .agenda .when small { color: var(--copper-ink); font-weight: 600; }
.agenda .what { display: flex; flex-direction: column; min-width: 0; } .agenda .what small { color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.frow { display: grid; grid-template-columns: 140px 1fr 36px; gap: 12px; align-items: center; color: var(--ink); font-size: 14px; }
.frow b { text-align: right; } .bar { height: 10px; background: #F0EBE3; border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 99px; background: var(--navy); }
.bar .t-viewing { background: var(--amber); } .bar .t-negotiating { background: var(--copper); } .bar .t-won { background: var(--sea); } .bar .t-lost { background: #B9B2A8; } .bar .t-contacted { background: var(--navy-700); }

/* client */
.client-head { display: flex; gap: 18px; align-items: center; }
.contact-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; }
.contact-row a { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.head-stats { display: flex; gap: 28px; } .head-stats span { display: block; font-size: 12px; color: var(--ink-muted); } .head-stats b { font: 600 20px var(--font-display); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F0EBE3; font-size: 14px; }
.kv:last-child { border-bottom: 0; } .kv span { color: var(--ink-muted); } .kv b { font-weight: 500; text-align: right; }
.kv.col { flex-direction: column; } .kv.col p { margin: 0; white-space: pre-wrap; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 12px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 3px; width: 12px; height: 14px; border-radius: 6px 6px 1px 1px; background: var(--navy); box-shadow: 0 0 0 3px var(--surface); }
.timeline li.tl-done::before { background: var(--sea); } .timeline li.tl-cancelled::before, .timeline li.tl-no_show::before { background: #B9B2A8; } .timeline li.tl-planned::before { background: var(--copper); }
.tl-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tl-edit { margin-left: auto; color: var(--ink-muted); } .timeline p { margin: 6px 0 0; white-space: pre-wrap; }
.tl-meta { font-size: 13px; color: var(--ink-muted); margin-top: 4px; } .tl-meta .next { color: var(--copper-ink); font-weight: 500; }
.note-form { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; } .note-form textarea { flex: 1; }
.notes { list-style: none; padding: 0; margin: 0; } .notes li { padding: 10px 0; border-top: 1px solid #F0EBE3; } .notes p { margin: 4px 0 0; white-space: pre-wrap; }
.deal-line { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 12px; color: var(--ink); }
.deal-line:hover { border-color: var(--copper); }
.mini-prop { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #F0EBE3; color: var(--ink); font-size: 14px; }
.mini-prop small { display: block; color: var(--ink-muted); } .mini-prop .arch { width: 22px; height: 28px; border-radius: 11px 11px 2px 2px; background: var(--copper-soft); border: 2px solid var(--copper); }

/* properties */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.prop { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; color: var(--ink); background: var(--surface); transition: border-color .15s, transform .15s; }
.prop:hover { border-color: var(--copper); transform: translateY(-2px); color: var(--ink); }
.prop-img { height: 130px; position: relative; background: var(--navy); overflow: hidden; }
.prop-img.big { height: 220px; border-radius: var(--radius-md); }
.prop-img::before { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--copper); }
.prop-img .arch-door { position: absolute; left: 50%; bottom: 4px; width: 46px; height: 70px; margin-left: -23px; border-radius: 23px 23px 0 0; background: var(--copper); }
.prop-img.big .arch-door { width: 80px; height: 120px; margin-left: -40px; border-radius: 40px 40px 0 0; }
.prop-img .arch-door::after { content: ""; position: absolute; left: 50%; top: 52%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--sand); }
.prop-img.t-villa, .prop-img.t-townhouse { background: #1C3D5E; } .prop-img.t-land { background: #3D5A3A; } .prop-img.t-commercial { background: #2F3B4A; } .prop-img.t-penthouse { background: #13355A; }
.prop-img.t-bungalow { background: #275A66; }
.prop-img .ref { position: absolute; left: 12px; top: 10px; color: rgba(255,255,255,.8); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.prop-img .badge { position: absolute; right: 10px; top: 10px; }
.prop-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.prop-title { font-size: 15px; line-height: 20px; }
.prop-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .prop-facts span { font-size: 12px; background: var(--sand); padding: 1px 8px; border-radius: 99px; color: var(--ink-muted); }
.prop-price { font: 600 20px/28px var(--font-display); color: var(--navy); margin-top: 6px; } .prop-price small { font: 400 13px var(--font-sans); color: var(--ink-muted); margin-left: 3px; }
.hero-price { font: 600 30px/38px var(--font-display); color: var(--navy); margin-top: 16px; } .hero-price small { font: 500 13px var(--font-sans); color: var(--copper-ink); margin-left: 10px; text-transform: uppercase; letter-spacing: .08em; }
.desc { white-space: pre-wrap; margin: 10px 0 0; }

/* visits/calendar */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .cal-head h2 { text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dow { padding: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #FBF8F3; }
.day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.day.off { background: #FBF8F3; } .day.today { background: #FDF7F1; } .day.today .dnum { background: var(--copper-ink); color: #fff; }
.dnum { align-self: flex-start; font-size: 13px; font-weight: 600; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.dnum:hover { background: var(--copper-soft); }
.ev { display: block; font-size: 12px; line-height: 16px; padding: 3px 6px; border-radius: 4px; background: #E3E9F0; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-done { background: var(--sea-soft); color: var(--sea); } .ev-cancelled, .ev-no_show { background: #EEEAE3; color: var(--ink-muted); text-decoration: line-through; }
.ev-pay { background: var(--amber-soft); color: var(--amber); } .ev-pay.late { background: var(--danger-soft); color: var(--danger); }
.legend { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; } .legend .ev { display: inline-block; }

/* deals/payments */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow); }
.stat span { display: block; font-size: 13px; color: var(--ink-muted); } .stat b { font: 600 22px/30px var(--font-display); color: var(--navy); }
.stat.alert b { color: var(--danger); }
.progress { height: 8px; background: #F0EBE3; border-radius: 99px; overflow: hidden; min-width: 100px; } .progress i { display: block; height: 100%; background: var(--sea); border-radius: 99px; }
.progress.big { height: 14px; margin-bottom: 8px; }
.add-pay { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; } .add-pay summary { cursor: pointer; font-weight: 500; color: var(--copper-ink); display: flex; gap: 6px; align-items: center; list-style: none; }
.add-pay form { margin-top: 12px; }

/* login */
body.bare { background: var(--sand); }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--navy); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; position: relative; overflow: hidden; color: #D99A6C; }
.login-art::before { content: ""; position: absolute; bottom: 0; left: 50%; width: 440px; height: calc(50% + 240px); margin-left: -220px; border-radius: 220px 220px 0 0; background: var(--navy-700); }
.login-art::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 6px; background: var(--copper); }
.login-art img { width: 280px; position: relative; z-index: 1; } .login-art p { position: relative; z-index: 1; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.login-box { display: flex; flex-direction: column; justify-content: center; padding: 48px; max-width: 460px; width: 100%; margin: 0 auto; position: relative; }
.login-lang { position: absolute; top: 24px; right: 24px; }
.login-mark { width: 56px; margin-bottom: 18px; } .login-box h1 { margin-bottom: 22px; }
.demo-hint { margin-top: 22px; font-size: 13px; color: var(--ink-muted); background: var(--surface); border: 1px dashed var(--line); padding: 10px 12px; border-radius: var(--radius-sm); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .grid-side, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .card { padding: 16px; } .table-wrap { margin: 0 -16px; } th:first-child, td:first-child { padding-left: 16px; } th:last-child, td:last-child { padding-right: 16px; }
  .main { margin-left: 0; } .menu-btn { display: block; } .company { display: none; }
  .top { padding: 0 14px; gap: 10px; } .content { padding: 18px 14px 40px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { grid-template-columns: 1fr; } .login-art { min-height: 220px; } .login-art::before { width: 200px; height: 200px; margin-left: -100px; border-radius: 100px 100px 0 0; } .login-art img { width: 200px; }
  .client-head { flex-wrap: wrap; } .head-stats { width: 100%; }
  .cal { font-size: 12px; } .day { min-height: 70px; } .ev { font-size: 10px; padding: 1px 3px; }
  h1 { font-size: 24px; line-height: 30px; }
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .field.wide { grid-column: auto; } .filters > input { max-width: none; } }
@media print { .side, .top, .page-actions, .btn, form.inline { display: none !important; } .main { margin: 0; } .card { box-shadow: none; } }
