/* Wedomy CRM — изгледот е од SmartFlow админот, во боите на Wedomy (морнарска, сина, небесна). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Nunito:wght@700;800;900&display=swap');

:root {
  --navy: #0b1a33;
  --navy-2: #132e50;
  --orange: #1974da;
  --orange-dark: #0f5cb3;
  --blue: #1974da;
  --sky: #b2ddf9;
  --bg: #F3F6FA;
  --card: #FFFFFF;
  --line: #E1E8F0;
  --text: #1B2B44;
  --muted: #6B7C93;
  --ok: #1E9E5A;
  --err: #D64545;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}
a { color: inherit; }
h1, h2 { margin: 0; line-height: 1.2; }

/* ---------- Копчиња ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-light { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-light:hover { border-color: var(--muted); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.danger { color: var(--err) !important; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 220px; flex-shrink: 0; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; padding: 18px 12px;
  position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 8px 22px; }
.side-brand img { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.side-brand span { font-weight: 700; font-size: 16px; letter-spacing: .3px; }
.side-brand small { display: block; font-weight: 500; font-size: 12px; color: var(--orange); letter-spacing: 1px; text-transform: uppercase; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side a:not(.side-brand) {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  text-decoration: none; color: rgba(255,255,255,.78); font-weight: 500;
}
.side a i { width: 18px; text-align: center; }
.side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side nav a.active { background: var(--orange); color: #fff; }
.side .badge { margin-left: auto; background: var(--orange); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.side nav a.active .badge { background: #fff; color: var(--orange); }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.side-bottom a:hover { color: #fff; }
.side-bottom .logout { color: #ffb0b0 !important; }

.content { flex: 1; min-width: 0; padding: 32px 40px; max-width: 1100px; }
.content-wide { max-width: none; padding: 0; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.flash.ok { background: #E6F6EE; color: var(--ok); }
.flash.err { background: #FDECEC; color: var(--err); }
.content-wide > .flash { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50; box-shadow: 0 8px 24px rgba(14,42,94,.18); animation: flashOut 4s forwards; }
@keyframes flashOut { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 28px; color: var(--navy); }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.empty { color: var(--muted); text-align: center; padding: 24px; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: #E6F6EE; color: var(--ok); }
.pill-off { background: #EEF1F5; color: var(--muted); }
.pill-new { background: #E8F2FD; color: var(--orange); }

/* ---------- Dashboard ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 20px; text-decoration: none;
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.stat-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.stat-card i { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #E8F2FD; color: var(--orange); font-size: 20px; }
.stat-card strong { font-size: 26px; color: var(--navy); }
.stat-card span { color: var(--muted); font-size: 14px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2 { font-size: 18px; color: var(--navy); margin-bottom: 14px; }
.quick-links { display: grid; gap: 8px; }
.quick-links a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--bg); text-decoration: none; font-weight: 500; }
.quick-links a:hover { background: #E8F2FD; color: var(--orange-dark); }
.quick-links i { color: var(--orange); width: 18px; text-align: center; }
.mini-message { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-message small { color: var(--muted); }
.mini-message p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.more { display: inline-block; margin-top: 12px; color: var(--orange); font-weight: 600; text-decoration: none; }

/* ---------- Едитор: форма лево, преглед десно ---------- */
.editor { display: grid; grid-template-columns: minmax(380px, 460px) 1fr; height: 100vh; }
.editor-form { overflow-y: auto; background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.editor-form > form { display: flex; flex-direction: column; flex: 1; }
.editor-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; justify-items: start; }
.editor-head h1 { font-size: 24px; color: var(--navy); }
.editor-head .flash { margin: 0; width: 100%; }
.back { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.back:hover { color: var(--orange); }
.note { margin: 0; color: var(--muted); font-size: 14px; background: var(--bg); padding: 10px 12px; border-radius: 10px; width: 100%; }
.note i { color: var(--blue); }
.editor-fields { padding: 18px 24px; display: grid; gap: 14px; flex: 1; align-content: start; }
.editor-actions {
  position: sticky; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-top: 1px solid var(--line); padding: 14px 24px; display: flex; gap: 10px;
}

/* Полиња */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.field input[type=text], .field input[type=number], .field input[type=password], .field textarea, .field select,
.item-text input[type=text] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; line-height: 1.4; color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field textarea:focus, .field select:focus, .item-text input:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(25,116,218,.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.list-field { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; margin: 4px 0 0; display: grid; gap: 10px; }
.list-field legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.list-item { background: var(--bg); border-radius: 10px; padding: 12px; }
.list-item-head { font-size: 13px; font-weight: 700; color: var(--orange); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }
.list-item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.list-item-grid .field-full { grid-column: 1 / -1; }
.list-item-grid > .field:only-child { grid-column: 1 / -1; }

.icon-pick { display: flex; align-items: center; gap: 8px; }
.icon-pick i { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: #E8F2FD; color: var(--orange); display: grid; place-items: center; }
.icon-pick select { flex: 1; min-width: 0; }

.image-field { display: grid; gap: 8px; justify-items: start; }
.image-field img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.image-field small { color: var(--muted); font-size: 12px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; user-select: none; }
.switch input { display: none; }
.switch-ui { width: 42px; height: 24px; border-radius: 999px; background: #CBD3DE; position: relative; transition: background .2s; flex-shrink: 0; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .switch-ui { background: var(--ok); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }

/* Листи (тури, галерија) */
.item-list { padding: 14px 24px; display: grid; gap: 8px; align-content: start; }
.item-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.item-row.is-off > img, .item-row.is-off .item-text { opacity: .5; }
.item-row > img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.gallery-row > img { width: 84px; height: 64px; }
.item-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.item-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
.item-text small { color: var(--muted); }
.item-text input[type=text] { padding: 7px 10px; font-size: 14px; }
.check { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.item-actions { display: flex; gap: 4px; flex-shrink: 0; margin: 0; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  color: var(--muted); display: grid; place-items: center; cursor: pointer; text-decoration: none; font-size: 13px;
}
.icon-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.on { background: #E8F2FD; border-color: var(--orange); color: var(--orange); }
.upload-box { margin: 6px 24px 24px; padding: 16px; border: 2px dashed var(--line); border-radius: var(--radius); display: grid; gap: 10px; justify-items: start; }
.upload-box strong { color: var(--navy); }
.upload-box small { color: var(--muted); }

/* Десен панел — преглед */
.preview-pane { display: flex; flex-direction: column; min-width: 0; background: #E4E9F1; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.preview-title { font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(30,158,90,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(30,158,90,0); } 100% { box-shadow: 0 0 0 0 rgba(30,158,90,0); } }
.device-toggle { display: flex; background: var(--bg); border-radius: 999px; padding: 3px; }
.device-toggle button { border: 0; background: transparent; width: 36px; height: 30px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.device-toggle button.active { background: #fff; color: var(--orange); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.preview-stage { flex: 1; display: flex; justify-content: center; padding: 16px; min-height: 0; }
.preview-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(14,42,94,.12); transition: width .3s ease; }
.preview-stage.is-mobile iframe { width: 390px; border-radius: 28px; border: 10px solid var(--navy); }

/* ---------- Најава ---------- */
.login-page { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(circle at 12% 110%, #1974da 0, transparent 40%), radial-gradient(circle at 90% 0, #b2ddf9 0, transparent 38%), #0b1a33; padding: 16px; }
.login-box { width: 100%; max-width: 380px; background: #fff; border-radius: 18px; padding: 32px; display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.login-logo { width: 84px; height: 84px; object-fit: contain; justify-self: center; }
.login-box h1 { text-align: center; color: var(--navy); font-size: 24px; }
.login-box .flash { margin: 0; }
.login-back { text-align: center; color: var(--muted); font-size: 14px; text-decoration: none; }

/* ---------- Мобилен админ ---------- */
@media (max-width: 1100px) {
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .editor { grid-template-columns: 1fr; height: auto; }
  .editor-form { border-right: 0; overflow: visible; }
  .preview-pane { height: 80vh; }
}
@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; }
  .side-brand { padding: 0 8px 0 0; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .side a:not(.side-brand) { padding: 8px 10px; font-size: 14px; }
  .side-bottom { margin: 0; border: 0; padding: 0; flex-direction: row; }
  .content { padding: 20px 16px; }
  .content-wide { padding: 0; }
  .stat-cards, .dash-grid, .field-row, .list-item-grid { grid-template-columns: 1fr; }
}

/* ---------- SmartFlow: дополнително за продавницата ---------- */
.icon-pick i img { width: 22px; height: 22px; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table th { background: var(--bg); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.table tr:last-child td { border-bottom: 0; }
.table a { color: var(--navy); font-weight: 600; text-decoration: none; }
.table a:hover { color: var(--orange); }
.table img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.status-pending { background: #E8F2FD; color: var(--orange); }
.status-processing { background: #E3F5FD; color: #0787b8; }
.status-shipped { background: #EEE8FD; color: #6b46c1; }
.status-delivered { background: #E6F6EE; color: var(--ok); }
.status-cancelled { background: #EEF1F5; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar .chip-f { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.toolbar .chip-f.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.low { color: var(--err); font-weight: 700; }
.variants-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.variants-table th { font-size: 11px; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 4px; letter-spacing: .4px; }
.variants-table td { padding: 0 4px; }
.variants-table input[type=text], .variants-table input[type=number] { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; }
.variants-table input:focus { outline: none; border-color: var(--orange); }
.variants-table .num { width: 92px; }
.img-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.img-tile { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: var(--bg); }
.img-tile img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.img-tile .tile-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 12px; gap: 4px; }
.img-tile .tile-actions button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 2px 4px; }
.img-tile .tile-actions button:hover { color: var(--orange); }
.img-tile.is-del { opacity: .35; }
.img-tile.is-new { border-style: dashed; border-color: var(--orange); }
.img-tile .main-tag { position: absolute; top: 4px; left: 4px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.totals-row td { font-weight: 700; }
.page-group { margin-bottom: 22px; }
.page-group h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 10px; }
@media (max-width: 1100px) { .order-grid { grid-template-columns: 1fr; } }

/* CRM модул — истите бои и форми. */
:root { --inc: #1974da; --exp: #F29B6B; }

.side nav { overflow-y: auto; }
.side-label { margin: 14px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: rgba(255,255,255,.4); text-transform: uppercase; }
.side-label.dark { color: var(--muted); margin: 12px 10px 4px; }
.side nav a { padding-top: 9px !important; padding-bottom: 9px !important; }

.muted { color: var(--muted); }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.section-title { font-size: 18px; color: var(--navy); margin: 26px 0 12px; }
.money-strong { font-size: 20px !important; }
.stat-card em.delta { font-style: normal; font-weight: 700; font-size: 12px; margin-left: 4px; }
.delta.up { color: var(--ok); } .delta.up::before { content: '▲ '; }
.delta.down { color: var(--err); } .delta.down::before { content: '▼ '; }
.stat-bad i { background: #FDECEC !important; color: var(--err) !important; }
.toolbar .chip-f small { opacity: .6; margin-left: 3px; }
.toolbar button.chip-f { cursor: pointer; font-family: inherit; color: var(--text); }
.toolbar .search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; }
.toolbar .search i { color: var(--muted); font-size: 13px; }
.toolbar .search input { border: 0; outline: 0; font-family: inherit; font-size: 14px; padding: 8px 0; width: 210px; background: transparent; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--bg); color: var(--muted); margin: 3px 4px 0 0; white-space: nowrap; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions > * { display: inline-grid !important; vertical-align: middle; margin-left: 4px; }
.row-actions .btn { display: inline-flex !important; }

/* Статуси */
.crm-status, .inv-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.crm-lead { background: #FFF3DC; color: #a86400; }
.crm-client { background: #E6F6EE; color: var(--ok); }
.crm-lost { background: #EEF1F5; color: var(--muted); }
.inv-unpaid { background: #FFF3DC; color: #a86400; }
.inv-overdue { background: #FDECEC; color: var(--err); }
.inv-paid { background: #E6F6EE; color: var(--ok); }
.status-select { font-family: inherit; font-weight: 700; font-size: 14px; border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer; }

/* Клиенти */
.crm-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.crm-grid .card h2 i { color: var(--orange); margin-right: 6px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.card-head h2 { margin: 0 !important; }
.task { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.task > span:nth-child(2) { flex: 1; min-width: 0; }
.task-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.task:hover .task-actions, .task:focus-within .task-actions { opacity: 1; }
.task-actions .icon-btn { width: 28px; height: 28px; font-size: 12px; }
@media (hover: none) { .task-actions { opacity: 1; } }
.task.is-new, .card.is-new { animation: invFlash 1.4s ease; }
.task:last-child { border-bottom: 0; }
.task input { margin-top: 3px; accent-color: var(--ok); width: 16px; height: 16px; }
.task strong { display: block; font-size: 14px; color: var(--navy); font-weight: 600; }
.task small { color: var(--muted); font-size: 12px; }
.task small a { color: var(--blue); text-decoration: none; }
.task.today small { color: var(--orange); font-weight: 600; }
.task.late small { color: var(--err); font-weight: 600; }
.task.done strong { text-decoration: line-through; color: var(--muted); }

.client-grid { display: grid; grid-template-columns: 290px 1fr 300px; gap: 16px; align-items: start; }
.client-side { display: grid; gap: 16px; }
.client-grid .kv { grid-template-columns: 80px 1fr; }
.client-grid .kv a { color: var(--blue); text-decoration: none; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.mini-stats div { background: var(--bg); border-radius: 10px; padding: 12px; }
.mini-stats strong { display: block; font-size: 16px; color: var(--navy); }
.mini-stats span { font-size: 12px; color: var(--muted); }
.next-action { display: flex; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 10px; background: #E3F5FD; }
.next-action.today { background: #E8F2FD; }
.next-action i { color: var(--orange); margin-top: 3px; }
.next-action strong { display: block; font-size: 14px; color: var(--navy); }
.next-action small { color: var(--muted); }
.note-form { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; margin-bottom: 16px; }
.note-form input[type=text] { grid-column: 1 / -1; grid-row: 1; }
.note-form select, .note-form input { font-family: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.note-form input:focus { outline: none; border-color: var(--orange); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: flex; gap: 12px; padding: 0 0 16px; position: relative; }
.timeline li > i { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--orange); display: grid; place-items: center; font-size: 12px; z-index: 1; }
.timeline strong { color: var(--navy); font-size: 14px; }
.timeline time { color: var(--muted); font-size: 12px; margin-left: 6px; }
.timeline p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; }
.timeline li.is-new > i { border-color: var(--orange); background: #E8F2FD; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.mini-row:last-of-type { border-bottom: 0; }
.mini-row > span { display: grid; gap: 2px; justify-items: start; }
.mini-row > span:last-child { justify-items: end; }
.mini-row small { color: var(--muted); font-size: 12px; }
a.mini-row:hover strong { color: var(--orange); }
.mini-row > span.doc-name { display: flex; align-items: center; gap: 8px; word-break: break-word; }
.field input[type=date] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 15px; color: var(--text); background: #fff; }
.field input[type=date]:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(25,116,218,.15); }
.file-ic { color: var(--muted); width: 16px; text-align: center; }
.fa-file-pdf.file-ic { color: #d64545; } .fa-file-word.file-ic { color: #2b6cd4; } .fa-file-excel.file-ic { color: #1e9e5a; } .fa-file-image.file-ic { color: #a35bd8; }
.modal-actions [hidden] { display: none !important; }

/* Фактура — жив преглед (A4) */
.variants-table .num-s { width: 64px; }
.invoice-stage { overflow: auto; align-items: flex-start; }
.invoice-paper {
  width: 640px; min-height: 905px; flex-shrink: 0; background: #fff; border-radius: 4px; padding: 44px 46px;
  box-shadow: 0 10px 30px rgba(14,42,94,.14); font-size: 12.5px; color: #1c2b44; display: flex; flex-direction: column;
}
.inv-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 3px solid var(--orange); }
.inv-brand { display: flex; gap: 12px; }
.inv-brand img { width: 52px; height: 52px; object-fit: contain; }
.inv-brand strong { font-size: 15px; color: var(--navy); }
.inv-brand small { display: block; color: var(--muted); line-height: 1.5; margin-top: 3px; font-size: 11px; }
.inv-title { text-align: right; }
.inv-title h2 { font-size: 26px; letter-spacing: 3px; color: var(--navy); }
.inv-title span { color: var(--muted); }
.inv-title b { color: var(--text); }
.inv-meta { display: flex; justify-content: space-between; gap: 20px; margin: 22px 0; }
.inv-meta > div { display: grid; gap: 2px; }
.inv-meta small { text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-size: 10px; font-weight: 700; }
.inv-meta strong { font-size: 15px; color: var(--navy); }
.inv-meta dl { display: grid; grid-template-columns: auto auto; gap: 3px 12px; margin: 0; text-align: right; }
.inv-meta dt { color: var(--muted); }
.inv-meta dd { margin: 0; font-weight: 600; }
.inv-items { width: 100%; border-collapse: collapse; }
.inv-items th { background: var(--navy); color: #fff; font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; padding: 8px 10px; text-align: left; }
.inv-items th:nth-child(n+3), .inv-items td:nth-child(n+3) { text-align: right; }
.inv-items td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.inv-items td:first-child { color: var(--muted); width: 26px; }
.inv-totals { display: flex; justify-content: flex-end; margin-top: 14px; }
.inv-totals dl { display: grid; grid-template-columns: auto 130px; gap: 6px 18px; margin: 0; text-align: right; }
.inv-totals dt { color: var(--muted); }
.inv-totals dd { margin: 0; font-weight: 600; }
.inv-totals .grand { font-size: 15px; font-weight: 800; color: var(--navy); padding-top: 8px; border-top: 2px solid var(--navy); }
.inv-totals dd.grand { color: var(--orange); }
.inv-note { margin: 26px 0 0; color: var(--muted); line-height: 1.5; white-space: pre-line; }
.inv-foot { margin-top: auto; padding-top: 40px; display: flex; justify-content: space-between; gap: 60px; }
.inv-foot div { flex: 1; display: grid; gap: 34px; color: var(--muted); font-size: 11px; }
.inv-foot i { border-top: 1px solid #9aa6b8; }
.invoice-paper .cms-flash, .invoice-paper .flash-v { animation: invFlash 1s ease; }
@keyframes invFlash { 0% { background: rgba(25,116,218,.14); } 100% { background: transparent; } }

/* Приходи / расходи */
.fin-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw-inc { background: var(--inc); } .sw-exp { background: var(--exp); }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 230px; padding-top: 14px; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #eef1f5 calc(25% - 1px), #eef1f5 25%); }
.bar-group { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline: none; cursor: default; }
.bar-pair { display: flex; align-items: flex-end; gap: 2px; height: 100%; width: 100%; justify-content: center; }
.bar { width: min(26px, 40%); border-radius: 4px 4px 0 0; transition: opacity .15s; }
.bar-inc { background: var(--inc); } .bar-exp { background: var(--exp); }
.bar-label { position: absolute; bottom: -24px; font-size: 12px; color: var(--muted); }
.bar-group.current .bar-label { color: var(--navy); font-weight: 700; }
.bars:hover .bar-group:not(:hover) .bar { opacity: .45; }
.bar-tip { position: absolute; bottom: calc(100% - 40px); left: 50%; transform: translate(-50%, -8px); background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 12px; white-space: nowrap; display: none; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.bar-tip span { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.bar-tip b { margin-left: auto; padding-left: 12px; }
.bar-group:hover .bar-tip, .bar-group:focus .bar-tip { display: block; }
.fin-grid .card:first-child { padding-bottom: 38px; }
.cat-bars { display: grid; gap: 12px; }
.cat-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.cat-row b { color: var(--navy); }
.cat-track { grid-column: 1 / -1; height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.cat-track i { display: block; height: 100%; background: var(--exp); border-radius: 999px; }
.receipt-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--blue); cursor: pointer; white-space: nowrap; }
.receipt-btn:hover { border-color: var(--blue); }
.receipt-btn.add { color: var(--muted); border-style: dashed; }
.receipt-btn.add:hover { color: var(--orange); border-color: var(--orange); }
.row-actions > .auto-lock { display: inline-flex !important; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.auto-lock i { font-size: 11px; margin-right: 3px; }
.receipt-current { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 10px; padding: 10px; }
.receipt-current[hidden] { display: none; }
.receipt-current img { width: 56px; height: 72px; object-fit: cover; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.receipt-current strong { display: block; font-size: 14px; color: var(--navy); word-break: break-all; }
.receipt-current small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.receipt-view { max-width: 560px; }
.receipt-frame { background: var(--bg); border-radius: 10px; display: grid; place-items: center; padding: 12px; max-height: 65vh; overflow: auto; }
.receipt-frame img { max-width: 100%; max-height: 60vh; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.receipt-frame iframe { width: 100%; height: 60vh; border: 0; background: #fff; }
.amt-in { color: var(--ok); font-weight: 700; white-space: nowrap; }
.amt-out { color: var(--text); font-weight: 700; white-space: nowrap; }
tr.is-new td { animation: invFlash 1.4s ease; }

/* Документи */
.docs-grid { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.folders { display: grid; gap: 2px; padding: 12px; }
.folders .folder { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; border: 0; background: none; font-family: inherit; color: inherit; text-align: left; width: 100%; position: relative; }
.folders .folder > i { color: #e3a008; width: 16px; text-align: center; flex-shrink: 0; }
.folders .folder[data-kind="client"] > i { color: #8aa0bf; }
.folders .folder > span[data-folder-name], .folders .folder > span:not(.folder-actions) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folders .folder small { color: var(--muted); }
.folders .folder:hover, .folders .folder.over { background: var(--bg); }
.folders .folder.over { outline: 2px dashed var(--orange); }
.folders .folder.active { background: #E8F2FD; color: var(--orange-dark); }
.folder-actions { display: none; gap: 3px; position: absolute; right: 6px; background: inherit; }
.folders .folder:hover .folder-actions, .folders .folder:focus-within .folder-actions { display: flex; }
.folders .folder:hover small { visibility: hidden; }
.folder-actions .icon-btn { width: 26px; height: 26px; font-size: 11px; }
.folders .folder.is-new { animation: invFlash 1.4s ease; }
@media (hover: none) { .folder-actions { display: flex; } .folders .folder small { visibility: hidden; } }
.file-link { border: 0; background: none; padding: 0; font: inherit; color: var(--navy); cursor: pointer; text-align: left; display: inline-flex; gap: 6px; align-items: center; }
.file-link:hover b { color: var(--orange); text-decoration: underline; }
.doc-placeholder { display: grid; justify-items: center; gap: 6px; padding: 30px 16px; text-align: center; }
.doc-placeholder i { font-size: 56px; width: auto !important; }
.doc-placeholder strong { color: var(--navy); word-break: break-all; }
.doc-placeholder small { color: var(--muted); }
.doc-placeholder p { color: var(--muted); font-size: 13px; max-width: 320px; margin: 8px 0 0; }
.drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; color: var(--muted); background: #fff; transition: border-color .15s, background .15s; }
.drop i { font-size: 22px; color: var(--orange); }
.drop:hover, .drop.over { border-color: var(--orange); background: #F3F8FE; }
.drop-big { padding: 26px; justify-content: center; text-align: left; }
.drop-big i { font-size: 32px; }
.drop span small { display: block; font-size: 12px; margin-top: 2px; }
.drop strong { color: var(--navy); }
.drop.has-file { border-style: solid; border-color: var(--ok); color: var(--ok); }

/* Модал */
.modal { position: fixed; inset: 0; background: rgba(11,16,24,.55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 460px; display: grid; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal-box h2 { font-size: 20px; color: var(--navy); }
.modal-actions { display: flex; gap: 8px; margin-top: 4px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 500; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: flashOut 3.5s forwards; }
.toast i { color: #5ee09a; margin-right: 6px; }

@media (max-width: 1250px) {
  .client-grid { grid-template-columns: 1fr 1fr; }
  .client-grid > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 1100px) {
  .crm-grid, .fin-grid, .docs-grid { grid-template-columns: 1fr; }
  .invoice-paper { transform-origin: top left; }
  .toolbar .search { margin-left: 0; }
}
@media (max-width: 760px) {
  .client-grid { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; }
  .invoice-paper { width: 100%; min-height: 0; padding: 22px; }
  .inv-head, .inv-meta { flex-direction: column; }
  .inv-title, .inv-meta dl { text-align: left; }
}

/* Печатење: само фактурата */
@media print {
  @page { size: A4; margin: 0; }
  body * { visibility: hidden; }
  .invoice-paper, .invoice-paper * { visibility: visible; }
  .invoice-paper { position: absolute; left: 0; top: 0; width: 210mm; min-height: 297mm; box-shadow: none; padding: 18mm; }
}

/* Форми во редови (вистински POST) */
.inline-form { display: inline; margin: 0; }
.row-actions .inline-form { display: inline-grid; vertical-align: middle; margin-left: 4px; }
.task .inline-form { display: flex; }
.link-btn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 4px; font-size: 12px; }
.link-btn:hover { color: var(--err); }
.timeline .note-del { float: right; }
.month-nav { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px; }
.month-nav strong { font-size: 14px; color: var(--navy); min-width: 120px; text-align: center; }
.month-nav .icon-btn { border: 0; width: 28px; height: 28px; }
a.bar-group { text-decoration: none; color: inherit; }
.check.danger { color: var(--err); margin-top: 4px; }
.folders a.folder { text-decoration: none; }
button:disabled { opacity: .6; cursor: progress; }

/* Grid колоните смеат да се смалат под ширината на содржината (мобилен без хоризонтално лизгање) */
.crm-grid > *, .docs-grid > *, .fin-grid > *, .client-grid > *, .client-side > * { min-width: 0; }
@media (max-width: 760px) { .toolbar .search { width: 100%; } .toolbar .search input { width: 100%; } }

/* ================= Wedomy CRM — додатоци ================= */
h1, h2, .side-brand, .stat-card strong, .pcard strong, .login-box h1 { font-family: 'Nunito', 'Inter', system-ui, sans-serif; letter-spacing: -.01em; }
.page-head h1 { font-weight: 900; }
.card h2 { font-weight: 800; }
.content { max-width: 1240px; }
.content-wide { max-width: none; }
.link, .small-link { color: var(--blue); text-decoration: none; font-weight: 600; }
.small-link { font-size: 12px; }
.ok-text { color: var(--ok); }

/* Мени */
.side { background: linear-gradient(180deg, #0b1a33 0%, #10264a 100%); width: 232px; }
.side-brand { flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 10px 22px; }
.side-brand img { width: 158px; height: auto; background: none; padding: 0; border-radius: 0; }
.side-brand small { font: 800 10px/1 'Inter', sans-serif; letter-spacing: 3px; color: var(--sky); background: rgba(178, 221, 249, .12); padding: 5px 8px; border-radius: 6px; }
.side nav a.active { background: var(--blue); box-shadow: 0 8px 20px -10px rgba(25, 116, 218, .9); }
.side .badge { background: #F29B6B; }
.side nav a.active .badge { color: var(--blue); }
.side-user { gap: 10px !important; }
.side-user b { width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: var(--navy); display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.side-user span { display: grid; line-height: 1.2; color: #fff; font-weight: 600; font-size: 14px; }
.side-user small { color: rgba(255, 255, 255, .55); font-weight: 500; font-size: 11px; }
.side-toggle { display: none; }

/* Статуси */
.crm-prospect { background: #FFF3DC; color: #a86400; }
.crm-inactive { background: #EEF1F5; color: var(--muted); }
.lead-new { background: #E8F2FD; color: var(--blue); }
.lead-contacted { background: #FFF3DC; color: #a86400; }
.lead-qualified { background: #EEE8FD; color: #6b46c1; }
.lead-won { background: #E6F6EE; color: var(--ok); }
.lead-lost { background: #EEF1F5; color: var(--muted); }
.q-draft { background: #EEF1F5; color: var(--muted); }
.q-sent { background: #E8F2FD; color: var(--blue); }
.q-accepted { background: #E6F6EE; color: var(--ok); }
.q-declined { background: #FDECEC; color: var(--err); }
.stage-lead { background: #EEF1F5; color: #4a5a72; }
.stage-proposal { background: #FFF3DC; color: #a86400; }
.stage-active { background: #E8F2FD; color: var(--blue); }
.stage-done { background: #E6F6EE; color: var(--ok); }
.stage-lost { background: #FDECEC; color: var(--err); }
.mini-select { font: 700 12px 'Inter', sans-serif; border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; background: var(--bg); color: var(--text); }
.stat-hot { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25, 116, 218, .12); }
.ic-inc { background: #E8F2FD !important; color: var(--blue) !important; }
.ic-exp { background: #FDEFE6 !important; color: #d4753d !important; }
.ic-ok { background: #E6F6EE !important; color: var(--ok) !important; }
.row-new td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.row-off td { opacity: .55; }
.msg-cell { max-width: 260px; font-size: 13px; }
.msg-cell summary { cursor: pointer; color: var(--text); list-style: none; }
.msg-cell summary::-webkit-details-marker { display: none; }
.msg-cell summary::after { content: "\25BE"; color: var(--muted); margin-left: 4px; }
.msg-cell p { margin: 8px 0 0; color: var(--muted); white-space: normal; }
.seg { display: flex; background: var(--bg); border-radius: 999px; padding: 3px; margin-bottom: 6px; }
.seg a { flex: 1; text-align: center; padding: 6px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.seg a.on { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

/* Табла (dashboard) */
.dash-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dash-3 > * { min-width: 0; }
.stage-row-lead .cat-track i { background: #8aa0bf; }
.stage-row-proposal .cat-track i { background: #e3a008; }
.stage-row-active .cat-track i { background: var(--blue); }
.form-card { display: grid; gap: 14px; align-content: start; }
.code-box { display: block; background: var(--navy); color: var(--sky); padding: 12px 14px; border-radius: 10px; font-size: 13px; word-break: break-all; margin: 10px 0; }

/* Kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 10px; }
.board-single { grid-template-columns: minmax(260px, 420px); }
.board-col { background: #EAF0F7; border-radius: 16px; padding: 12px; min-height: 280px; transition: background .2s, box-shadow .2s; }
.board-col.drag-over { background: #DCE9F8; box-shadow: inset 0 0 0 2px var(--blue); }
.board-col header { display: flex; align-items: center; gap: 8px; padding: 2px 4px 12px; }
.board-col header b { color: var(--navy); font-size: 15px; }
.board-col header small { background: #fff; color: var(--muted); font-weight: 700; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.board-col header em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 13px; color: var(--navy); }
.col-dot { width: 10px; height: 10px; border-radius: 50%; background: #8aa0bf; }
.col-proposal .col-dot { background: #e3a008; } .col-active .col-dot { background: var(--blue); } .col-done .col-dot { background: var(--ok); } .col-lost .col-dot { background: var(--err); }
.board-cards { display: grid; gap: 10px; min-height: 40px; }
.pcard { display: grid; gap: 6px; background: #fff; border-radius: 12px; padding: 14px; text-decoration: none; border: 1px solid transparent; box-shadow: 0 2px 6px rgba(11, 26, 51, .06); cursor: grab; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pcard:hover { border-color: var(--sky); box-shadow: 0 10px 24px -12px rgba(11, 26, 51, .35); transform: translateY(-2px); }
.pcard.dragging { opacity: .45; transform: rotate(2deg); }
.pcard strong { color: var(--navy); font-size: 15px; line-height: 1.25; }
.pcard-client { color: var(--muted); font-size: 13px; }
.pcard-meta .tag { margin-top: 0; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.pcard-foot b { color: var(--navy); }
.pcard-foot small { color: var(--muted); font-size: 12px; }
.board-empty { text-align: center; color: var(--muted); font-size: 13px; border: 2px dashed #cfdbea; border-radius: 12px; padding: 18px; margin: 0; }
.col-done .pcard { opacity: .85; }

/* Проект */
.stage-track { display: flex; gap: 6px; margin: -6px 0 20px; flex-wrap: wrap; }
.stage-track span { flex: 1; min-width: 90px; text-align: center; font-size: 12px; font-weight: 700; padding: 8px; border-radius: 8px; background: #EAF0F7; color: var(--muted); }
.stage-track span.on { background: var(--blue); color: #fff; }
.stage-track span.lost { background: #FDECEC; color: var(--err); }
.desc { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); padding: 12px; border-radius: 10px; }
.progress { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; margin: 14px 0 4px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #4aa6ef); border-radius: 999px; }
.timeline li.tl-lead > i, .timeline li.tl-project > i { color: var(--blue); }
.timeline li.tl-invoice > i, .timeline li.tl-quote > i { color: var(--ok); }
.modal-wide { max-width: 560px; }

/* Фактура / понуда */
fieldset.editor-fields { border: 0; margin: 0; min-width: 0; }
fieldset.editor-fields:disabled { opacity: .7; }
.inv-head { border-bottom-color: var(--blue); }
.inv-brand img { width: 72px; height: auto; align-self: flex-start; }
.inv-title h2 { font-family: 'Nunito', sans-serif; font-weight: 900; }
.inv-items th { background: var(--navy-2); }
.inv-totals dd.grand { color: var(--blue); }
.inv-meta dd.due-amt { color: var(--blue); font-weight: 800; }
.inv-pay { margin-top: 18px; background: #F3F8FE; border-radius: 8px; padding: 10px 12px; }
.inv-pay small { text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-size: 10px; font-weight: 700; }
.inv-pay p { margin: 4px 0 0; line-height: 1.5; }
.inv-foot p { color: var(--muted); font-size: 11px; margin: 0; }
.note a { color: var(--blue); }

/* Најава */
.login-logo { width: 170px; height: auto; }
.login-box h1 { font-size: 22px; }

@media (max-width: 1250px) { .dash-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .dash-3 { grid-template-columns: 1fr; }
  .side { width: 100%; padding: 10px 14px; flex-wrap: nowrap; justify-content: space-between; }
  .side-brand { flex-direction: row; align-items: center; padding: 0; }
  .side-brand img { width: 112px; }
  .side-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; font-size: 18px; cursor: pointer; }
  .side nav, .side-bottom { display: none !important; }
  .side.open { flex-wrap: wrap; }
  .side.open nav, .side.open .side-bottom { display: flex !important; flex-direction: column; width: 100%; }
  .side.open nav { padding-top: 10px; }
  .board { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .board-col { scroll-snap-align: start; }
  .stage-track span { min-width: 70px; }
}
