/* Mix Media web — ֆիրմային ոճ (navy / violet / blue, ինչպես PDF-երում) */
:root {
  --navy: #1D1B5E; --violet: #6A3DE8; --blue: #2E8CF0;
  --ink: #12152E; --muted: #6B7090;
  --soft: #F5F3FF; --tint: #EDE8FE; --line: #DDE0EE;
  --bg: #F4F5FB; --card: #FFFFFF; --card-2: #FBFBFE;
  --ok: #067647; --ok-bg: #DCFAE6; --warn: #B4530A; --warn-bg: #FFF3E6;
  --err: #B42318; --err-bg: #FDE2E2;
  --grad: linear-gradient(135deg, #2E8CF0 0%, #6A3DE8 100%);
  --grad-soft: linear-gradient(135deg, rgba(46,140,240,.12), rgba(106,61,232,.12));
  --shadow: 0 1px 2px rgba(18,21,46,.04), 0 8px 24px rgba(18,21,46,.06);
  --shadow-lg: 0 20px 50px rgba(18,21,46,.18);
  --r: 16px; --r-sm: 10px;
  --sidebar: 252px;
  color-scheme: light;
}
[data-theme="dark"] {
  --navy: #C9C2F2; --ink: #ECEDF7; --muted: #9A9FC0;
  --soft: #1B1E3C; --tint: #232653; --line: #2B2F57;
  --bg: #0B0D1F; --card: #14172F; --card-2: #181B37;
  --ok-bg: #0E2E22; --warn-bg: #33230F; --err-bg: #35161A;
  --ok: #4ADE80; --warn: #FBBF24; --err: #FB7185;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* ԿԱՐԵՎՈՐ՝ hidden-ը միշտ ուժեղ է display-ից, այլապես թաքնված շերտերը բռնում են սեղմումները */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", Sylfaen, "Noto Sans Armenian", system-ui, -apple-system, Arial, sans-serif;
  font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(106,61,232,.22); }
*:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* ---------------------------------------------------------- կարկաս */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar); position: sticky; top: 0; height: 100vh;
  background: linear-gradient(170deg, #1D1B5E 0%, #241F6B 55%, #2A2070 100%);
  color: #EDEAFF; display: flex; flex-direction: column; z-index: 40;
}
.sidebar .brand { padding: 20px 18px 14px; display: flex; align-items: center; gap: 10px; }
.sidebar .brand img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.sidebar .brand .bt { font-weight: 700; letter-spacing: .3px; font-size: 15px; }
.sidebar .brand .bs { font-size: 10.5px; color: #9F96DC; letter-spacing: 1.4px; text-transform: uppercase; }
.navlist { padding: 6px 10px 18px; overflow-y: auto; flex: 1; }
.navlist .group { font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase;
  color: #8A80CE; padding: 14px 10px 6px; }
.navitem {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 12px; margin: 2px 0; border: 0; border-radius: 11px; cursor: pointer;
  background: transparent; color: #DCD7FA; font-size: 13.6px; transition: background .15s, color .15s;
}
.navitem:hover { background: rgba(255,255,255,.08); color: #fff; }
.navitem.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(106,61,232,.4); }
.navitem .ic { width: 20px; text-align: center; font-size: 15px; }
.navitem .cnt { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.14);
  padding: 1px 7px; border-radius: 9px; }
.sidebar .sfoot { padding: 12px 16px 16px; font-size: 11px; color: #8A80CE; border-top: 1px solid rgba(255,255,255,.1); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 12px 22px; background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar .burger { display: none; }
.topbar h1 { margin: 0; font-size: 17px; color: var(--navy); font-weight: 700; }
.topbar .sub { font-size: 12px; color: var(--muted); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.content { padding: 22px; max-width: 1340px; width: 100%; }

/* ---------------------------------------------------------- տիպոգրաֆիա */
h2 { font-size: 16.5px; margin: 0 0 10px; color: var(--navy); }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--navy); }
.muted { color: var(--muted); }
.small { font-size: 12.2px; }
.tiny { font-size: 11px; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hr { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.gradline { height: 3px; width: 42px; border-radius: 2px; background: var(--grad); margin: 6px 0 14px; }

/* ---------------------------------------------------------- քարտեր */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.pad0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.tight { gap: 6px; }
.spacer { flex: 1; }

.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.tile .k { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.tile .v { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.2; margin-top: 4px; }
.tile .n { font-size: 11.5px; color: var(--muted); }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.tile.plain::before { display: none; }

.pick { display: flex; align-items: flex-start; gap: 12px; text-align: left; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
  cursor: pointer; transition: transform .12s, border-color .12s, box-shadow .12s; }
.pick:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: var(--shadow); }
.pick .pico { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 19px; flex: 0 0 40px; }
.pick .pt { font-weight: 700; color: var(--navy); }
.pick .pd { font-size: 12.3px; color: var(--muted); }
.pick.sel { border-color: var(--violet); background: var(--soft); }

/* ---------------------------------------------------------- կոճակներ */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 13.4px;
  font-weight: 600; transition: .14s; white-space: nowrap; }
.btn:hover { border-color: var(--violet); color: var(--violet); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(106,61,232,.28); }
.btn.primary:hover { filter: brightness(1.06); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--soft); color: var(--violet); }
.btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, var(--line)); }
.btn.danger:hover { background: var(--err-bg); }
.btn.sm { padding: 6px 11px; font-size: 12.3px; border-radius: 9px; }
.btn.icon { padding: 8px; width: 36px; justify-content: center; }
.btn.block { width: 100%; justify-content: center; }
.seg { display: inline-flex; background: var(--soft); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; cursor: pointer;
  font-size: 12.6px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--violet); box-shadow: var(--shadow); }

/* ---------------------------------------------------------- դաշտեր */
.field { margin-bottom: 13px; }
.field > label { display: block; font-size: 12.4px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.field .hint { font-size: 11.6px; color: var(--muted); margin-top: 4px; white-space: pre-line; }
.field .err { font-size: 11.8px; color: var(--err); margin-top: 4px; }
input[type=text], input[type=number], input[type=date], input[type=password], input[type=search],
select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card-2); transition: .14s;
}
input:hover, select:hover, textarea:hover { border-color: #C3C7E0; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(106,61,232,.14); background: var(--card); }
input.bad, textarea.bad, select.bad { border-color: var(--err); background: var(--err-bg); }
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input, .inline select { flex: 1; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
label.check input { width: auto; }
.search { position: relative; }
.search input { padding-left: 34px; }
.search::before { content: "🔍"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 13px; opacity: .6; }

/* ---------------------------------------------------------- քայլեր */
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.step { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 30px;
  background: var(--card); border: 1px solid var(--line); font-size: 12.4px; color: var(--muted); }
.step b { width: 19px; height: 19px; border-radius: 50%; background: var(--line); color: var(--muted);
  display: grid; place-items: center; font-size: 10.6px; }
.step.on { border-color: transparent; background: var(--grad); color: #fff; }
.step.on b { background: rgba(255,255,255,.26); color: #fff; }
.step.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.step.done b { background: var(--ok-bg); color: var(--ok); }
.step.clickable { cursor: pointer; }

/* ---------------------------------------------------------- աղյուսակ */
.tablewrap { overflow-x: auto; border-radius: var(--r-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.table th { background: var(--soft); color: var(--navy); font-size: 11.6px; text-transform: uppercase;
  letter-spacing: .4px; text-align: left; padding: 9px 11px; position: sticky; top: 0; }
table.table td { padding: 9px 11px; border-top: 1px solid var(--line); vertical-align: top; }
table.table tbody tr:hover { background: var(--card-2); }
table.table tr.total td { font-weight: 700; background: var(--soft); color: var(--navy); }
table.table td.num, table.table th.num { text-align: right; font-variant-numeric: tabular-nums; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px;
  font-size: 11.4px; font-weight: 600; background: var(--soft); color: var(--violet); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.plain { background: var(--tint); color: var(--navy); }

/* ---------------------------------------------------------- ցուցակներ/ընտրություն */
.list { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.list .li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line);
  background: var(--card); }
.list .li:first-child { border-top: 0; }
.list .li:hover { background: var(--card-2); }
.list .li.sel { background: var(--soft); }
.list .li .t { flex: 1; min-width: 0; }
.list .li .t b { font-weight: 600; }
.list .li .t .s { font-size: 11.6px; color: var(--muted); }
.scroll { max-height: 420px; overflow-y: auto; }
.scroll.sm { max-height: 260px; }
mark { background: #FFE9A8; color: inherit; border-radius: 3px; padding: 0 1px; }
[data-theme="dark"] mark { background: #6b5a14; color: #fff; }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .ei { font-size: 34px; opacity: .55; }

/* ---------------------------------------------------------- ֆայլեր */
.filecard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--card); }
.filecard .fi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--violet); font-weight: 700; font-size: 11px; }
.filecard .fn { font-weight: 600; word-break: break-all; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--r); padding: 26px; text-align: center;
  background: var(--card-2); cursor: pointer; transition: .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--violet); background: var(--soft); }
.dropzone .dzi { font-size: 28px; }

/* ---------------------------------------------------------- toast / modal / loader */
#toasts { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px;
  max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--violet);
  border-radius: 12px; padding: 11px 14px; box-shadow: var(--shadow-lg); font-size: 13.2px;
  animation: slidein .2s ease; white-space: pre-line; }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--err); }
.toast.warn { border-left-color: var(--warn); }
.toast b { display: block; margin-bottom: 2px; }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }

.overlay { position: fixed; inset: 0; background: rgba(13,15,36,.55); backdrop-filter: blur(3px);
  z-index: 150; display: grid; place-items: center; padding: 18px; }
.modal { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); width: min(760px, 100%);
  max-height: 90vh; display: flex; flex-direction: column; animation: pop .16s ease; }
.modal.wide { width: min(1050px, 100%); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal .mh h3 { margin: 0; font-size: 15.5px; }
.modal .mb { padding: 18px; overflow-y: auto; }
.modal .mf { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end;
  flex-wrap: wrap; }
#loader { position: fixed; inset: 0; background: rgba(13,15,36,.35); z-index: 180; display: grid; place-items: center; }
#loader .box { background: var(--card); padding: 20px 26px; border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; gap: 12px; align-items: center; font-weight: 600; }
.spin { width: 20px; height: 20px; border: 2.5px solid var(--tint); border-top-color: var(--violet);
  border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.bar { height: 6px; border-radius: 4px; background: var(--tint); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad); }

/* ---------------------------------------------------------- Ֆիքսիկ */
#fixik-btn { position: fixed; right: 20px; bottom: 20px; z-index: 120; width: 58px; height: 58px;
  border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #fff; font-size: 25px;
  box-shadow: 0 14px 30px rgba(106,61,232,.45); display: grid; place-items: center; transition: transform .15s; }
#fixik-btn:hover { transform: scale(1.07) rotate(-6deg); }
#fixik-btn .dot { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px;
  background: var(--err); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--card); padding: 0 4px; }
#fixik { position: fixed; right: 18px; bottom: 88px; z-index: 121; width: min(410px, calc(100vw - 32px));
  max-height: min(660px, calc(100vh - 120px)); background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
#fixik .fh { background: var(--grad); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
#fixik .fh .av { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.2);
  display: grid; place-items: center; font-size: 18px; }
#fixik .fh b { font-size: 14.5px; }
#fixik .fh .s { font-size: 11.4px; opacity: .88; }
#fixik .ftabs { display: flex; border-bottom: 1px solid var(--line); }
#fixik .ftabs button { flex: 1; border: 0; background: transparent; padding: 10px 6px; cursor: pointer;
  font-size: 12.4px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
#fixik .ftabs button.on { color: var(--violet); border-bottom-color: var(--violet); background: var(--soft); }
#fixik .fbody { padding: 14px; overflow-y: auto; flex: 1; }
#fixik .ffoot { padding: 10px 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.chk { display: flex; gap: 9px; padding: 9px 10px; border-radius: 10px; background: var(--card-2);
  border: 1px solid var(--line); margin-bottom: 7px; font-size: 12.6px; }
.chk .ci { font-size: 14px; }
.chk b { display: block; font-size: 12.8px; }
.chk .fix { color: var(--warn); margin-top: 3px; font-size: 11.8px; }
.bubble { background: var(--soft); border-radius: 12px; padding: 11px 13px; margin-bottom: 9px;
  font-size: 13px; white-space: pre-line; }
.bubble.me { background: var(--grad); color: #fff; margin-left: 28px; }
.qchip { display: inline-block; padding: 5px 10px; border-radius: 20px; background: var(--tint); color: var(--navy);
  font-size: 11.8px; margin: 0 5px 5px 0; cursor: pointer; border: 0; }
.qchip:hover { background: var(--violet); color: #fff; }
.logrow { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 7px;
  background: var(--card-2); font-size: 12.2px; }
.logrow .lt { font-size: 10.8px; color: var(--muted); }
.logrow.ERROR { border-left: 3px solid var(--err); }
.logrow.WARNING { border-left: 3px solid var(--warn); }
.logrow pre { margin: 6px 0 0; max-height: 130px; overflow: auto; font-size: 10.6px; white-space: pre-wrap; }

/* ---------------------------------------------------------- սլայդներ (հաշվետվություն) */
.slide-mini { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 11px 12px;
  display: flex; gap: 10px; align-items: center; cursor: grab; }
.slide-mini.active { border-color: var(--violet); background: var(--soft); }
.slide-mini .sn { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700; flex: 0 0 26px; }
.slide-mini .st { flex: 1; min-width: 0; }
.slide-mini .st b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-mini .st span { font-size: 11px; color: var(--muted); }
.slide-mini.drag { opacity: .45; }
.preview { aspect-ratio: 16/9; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  padding: 20px 24px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.preview.dark { background: linear-gradient(165deg, #1D1B5E, #2A2070); color: #fff; border: 0; }
.preview .pk { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); }
.preview h4 { margin: 4px 0 8px; font-size: clamp(15px, 2.2vw, 24px); color: var(--navy); }
.preview.dark h4, .preview.dark .pk { color: #fff; }
.preview .pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.preview .pm { background: var(--soft); border-radius: 10px; padding: 8px 10px; border-left: 3px solid var(--violet); }
.preview .pm .pv { font-size: clamp(14px, 2.4vw, 22px); font-weight: 700; color: var(--navy); }
.preview .pm .pl { font-size: 10.5px; color: var(--muted); }
.preview .pbars { display: flex; align-items: flex-end; gap: 4px; height: 58%; }
.preview .pbars i { flex: 1; background: var(--grad); border-radius: 3px 3px 0 0; min-height: 2px; }

/* ---------------------------------------------------------- պահոց / ֆայլեր ցանց */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.vitem { border: 1px solid var(--line); border-radius: 12px; padding: 13px 11px; background: var(--card);
  text-align: center; cursor: pointer; position: relative; transition: .13s; }
.vitem:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: var(--shadow); }
.vitem .vi { font-size: 30px; }
.vitem .vn { font-size: 12.3px; font-weight: 600; margin-top: 6px; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vitem .vs { font-size: 10.6px; color: var(--muted); margin-top: 2px; }
.vitem .vmenu { position: absolute; top: 4px; right: 4px; opacity: 0; }
.vitem:hover .vmenu { opacity: 1; }
.crumbs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-size: 12.8px; }
.crumbs button { border: 0; background: transparent; cursor: pointer; color: var(--violet); padding: 3px 6px;
  border-radius: 7px; font-weight: 600; }
.crumbs button:hover { background: var(--soft); }
.thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }

/* ---------------------------------------------------------- diff (իրավաբան) */
.diff { font-size: 12.8px; line-height: 1.6; word-break: break-word; }
.diff s { background: var(--err-bg); color: var(--err); text-decoration: line-through; border-radius: 3px; padding: 0 2px; }
.diff b u { background: var(--ok-bg); color: var(--ok); border-radius: 3px; padding: 0 2px; text-decoration: none; }
.chg { border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 10px;
  padding: 11px 13px; margin-bottom: 9px; background: var(--card); }
.chg.delete { border-left-color: var(--err); }
.chg.insert { border-left-color: var(--ok); }
.chg.format { border-left-color: var(--warn); }
.chg .ch { display: flex; gap: 8px; align-items: center; font-size: 12.3px; font-weight: 700; margin-bottom: 5px; }
.chg .cw { font-size: 11.2px; color: var(--muted); font-weight: 400; }
.chg ul { margin: 6px 0 0; padding-left: 18px; font-size: 11.8px; color: var(--muted); }

/* ---------------------------------------------------------- խանութներ / գովազդային տեղեր */
.slogo { border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center;
  overflow: hidden; padding: 6px; }
.slogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.slogo.ini { color: #fff; font-weight: 800; letter-spacing: .5px; border: 0; padding: 0; }
.storegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.storecard { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px;
  box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.storecard:hover { transform: translateY(-2px); border-color: var(--violet); }
.storecard .sc-body { flex: 1; min-width: 0; }
.storecard .sc-name { font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.storecard .slotbar { margin: 8px 0 6px; }
.storecard .sc-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.slotbar { height: 6px; border-radius: 4px; background: var(--tint); overflow: hidden; }
.slotbar > i { display: block; height: 100%; border-radius: 4px;
  background-image: linear-gradient(90deg, #22C55E 0%, #EAB308 50%, #EF4444 100%); background-repeat: no-repeat; }
.storehead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 20px;
  padding: 5px 12px; font-size: 12.4px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--violet); color: var(--violet); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.slotcard { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card-2); cursor: pointer; transition: border-color .12s, background .12s; }
.slotcard:hover { border-color: var(--violet); }
.slotcard.sel { border-color: var(--violet); background: var(--soft); }
.slotcard.full .sl-meta b { color: var(--err); }
.slotcard input[type=checkbox] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--violet); flex: 0 0 auto; }
.slotcard .sl-body { flex: 1; min-width: 0; }
.slotcard .sl-addr { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.slotcard .sl-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: 11.6px; }
.selbar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px -18px -18px; padding: 12px 90px 12px 18px; /* աջից՝ տեղ Ֆիքսիկի կոճակի համար */
  background: var(--solid, var(--card)); border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
@media (max-width: 560px) {
  .selbar { margin: 14px -14px -14px; padding: 10px 14px; }
  .slotgrid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- login */
.loginwrap { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(165deg, #1D1B5E, #2A2070); }
.loginbox { background: var(--card); border-radius: 20px; padding: 30px; width: min(380px, 100%);
  box-shadow: var(--shadow-lg); text-align: center; }
.loginbox img { height: 40px; margin-bottom: 14px; }

/* ---------------------------------------------------------- շարժական էկրաններ */
@media (max-width: 980px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(13,15,36,.5); z-index: 35; }
  .topbar .burger { display: inline-flex; }
  .content { padding: 16px 14px 90px; }
  .topbar { padding: 10px 14px; }
  #fixik { right: 10px; left: 10px; width: auto; bottom: 82px; }
  /* հեռախոսում ծանուցումները ներքևում են՝ որ վերնագիրը չփակեն */
  #toasts { top: auto; bottom: 86px; left: 12px; right: 12px; max-width: none; }
  #fixik-btn { width: 50px; height: 50px; font-size: 21px; right: 14px; bottom: 14px; }
}
@media (max-width: 560px) {
  .topbar h1 { font-size: 15px; }
  .topbar .sub { display: none; }
  .card { padding: 14px; }
  .vgrid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
}

/* ---------------------------------------------------------- օգտատեր / մուտք */
.userchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font-weight: 700; font-size: 12.8px; color: var(--ink);
  max-width: 220px; }
.userchip:hover { border-color: var(--violet); }
.userchip .av { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; display: grid;
  place-items: center; font-size: 13px; flex: 0 0 28px; }
.userchip span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loginbox form .field input { text-align: left; }
.loginbox .btn { white-space: normal; text-align: center; justify-content: center; line-height: 1.3; }
.waitic { font-size: 42px; margin: 6px 0; }
@media (max-width: 720px) { .userchip span:last-child { display: none; } .userchip { padding: 3px; } }

/* ---------------------------------------------------------- իմ անկյունը */
.corner .cav { width: 46px; height: 46px; border-radius: 15px; background: var(--grad); color: #fff; display: grid;
  place-items: center; font-size: 20px; font-weight: 800; flex: 0 0 46px; }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; margin-top: 6px; }
.cat { display: flex; align-items: center; gap: 9px; text-align: left; border: 1px solid var(--line); background: var(--card-2);
  border-radius: 14px; padding: 10px 12px; cursor: pointer; color: var(--ink); }
.cat:hover, .cat.sel { border-color: var(--violet); background: var(--soft); }
.cat .ci { font-size: 19px; }
.cat .cn { flex: 1; min-width: 0; font-size: 12.6px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.cat b { font-size: 15px; color: var(--violet); }
.card.over { outline: 2px dashed var(--violet); outline-offset: -6px; }

/* ---------------------------------------------------------- խմբագրիչ */
.sticky-head { position: sticky; top: 76px; z-index: 20; }
.notice { border-left: 4px solid var(--violet); }
.notice.warn { border-left-color: var(--warn); }
.docpage { max-width: 900px; margin-left: auto; margin-right: auto; padding: 28px 34px; }
textarea.ep { display: block; width: 100%; min-height: 0; resize: none; border: 1px solid transparent; background: transparent;
  padding: 4px 8px; margin: 0 0 2px; line-height: 1.55; border-radius: 8px; overflow: hidden; field-sizing: content;
  font-family: "Times New Roman", Sylfaen, serif; font-size: 15px; }
textarea.ep:hover { border-color: var(--line); background: var(--card-2); }
textarea.ep:focus { border-color: var(--violet); background: var(--solid, var(--card)); box-shadow: 0 0 0 3px rgba(106,61,232,.12); }
textarea.ep.h { font-size: 18px; font-weight: 800; }
textarea.ep.b { font-weight: 700; }
textarea.ep:placeholder-shown { min-height: 0; opacity: .5; }
table.etable { border-collapse: collapse; width: 100%; }
table.etable td { border: 1px solid var(--line); padding: 0; vertical-align: top; }
textarea.ec { width: 100%; min-height: 0; border: 0; border-radius: 0; resize: none; padding: 6px 8px; background: transparent;
  field-sizing: content; font-size: 13.5px; line-height: 1.45; }
textarea.ec:focus { box-shadow: inset 0 0 0 2px var(--violet); }
.sheetwrap { max-height: 70vh; overflow: auto; }
table.sheet th { position: sticky; top: 0; z-index: 1; text-align: center; }
table.sheet tbody th { position: sticky; left: 0; background: var(--soft); color: var(--muted); font-weight: 600; }
table.sheet td { min-width: 90px; white-space: pre-wrap; outline: none; }
table.sheet td:focus { box-shadow: inset 0 0 0 2px var(--violet); background: var(--solid, var(--card)); }
table.sheet td.chg { background: var(--warn-bg); }
/* ✏️ կառուցվածքի գործիքներ՝ պարբերություն / աղյուսակ / թերթ / աուդիո */
.eb { display: flex; gap: 6px; align-items: flex-start; }
.eb > textarea.ep { flex: 1; min-width: 0; }
.etools { display: flex; flex-wrap: wrap; gap: 2px; width: 118px; flex: 0 0 118px; opacity: 0; transition: opacity .12s; padding-top: 3px; }
.eb:hover .etools, .eb:focus-within .etools { opacity: 1; }
@media (hover: none) { .etools { opacity: 1; } }
.etools button, .tbar button { border: 1px solid var(--line); background: var(--card-2); color: inherit; border-radius: 7px; padding: 2px 6px;
  font-size: 12px; line-height: 1.4; cursor: pointer; min-width: 26px; }
.etools button:hover, .tbar button:hover { border-color: var(--violet); }
.etools button.on { background: var(--violet); color: #fff; border-color: var(--violet); }
.etools button.del:hover, .tbar button.del:hover { border-color: var(--err); color: var(--err); }
.tbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 6px 0 2px; font-size: 12px; }
.tbar .lbl { color: var(--muted); margin-right: 4px; }
td.sel-c, th.sel-c { box-shadow: inset 0 0 0 2px var(--violet); }
.audpart { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.audpart audio { width: 100%; max-width: 420px; height: 34px; }
.audpart .ctl { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; grid-column: 2; }
.audpart .ctl input[type=number] { width: 86px; }
/* 📅 մեդիա պլան՝ հոլովակներ ըստ օրերի */
.pcal-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pcal-month { min-width: 0; }
.pcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 6px; }
.pcal-w { border: 0; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; padding: 2px 0; }
.pcal-d { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40px; border: 1px solid var(--line);
  background: var(--card-2); border-radius: 8px; cursor: pointer; font-size: 12px; color: inherit; padding: 2px; }
.pcal-d i { font-style: normal; font-size: 9.5px; line-height: 1; margin-top: 2px; }
.pcal-d:disabled { opacity: .3; cursor: default; }
.pcal-d.sel { outline: 2px solid var(--violet); outline-offset: -1px; }
.pcal-d.free { background: transparent; border-style: dashed; color: var(--muted); }
.pcal-d i { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 🎬 մեդիա պլանի հոլովակները՝ մեկ բլոկում (25+ հոլովակ՝ բլոկի ներսում ոլորվում է) */
.mp-clips { max-height: 560px; }
.mp-clips .li { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
.mp-clips .li .t { min-width: 200px; }
.mp-clips .li .t input { height: 38px; min-height: 0; padding-top: 6px; padding-bottom: 6px; }
/* 📍 հասցեներ × հոլովակներ՝ մեկ աղյուսակ (վերնագիրը և հասցեների սյունակը կպած են ոլորելիս) */
.mp-mx-wrap { overflow: auto; max-height: 560px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.mp-mx { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 100%; }
.mp-mx th, .mp-mx td { padding: 5px 4px; text-align: center; border-bottom: 1px solid var(--line); background: var(--card); }
.mp-mx thead th, .mp-mx tfoot th, .mp-mx tfoot td { position: sticky; z-index: 2; background: var(--card-2); font-weight: 700; }
.mp-mx thead th { top: 0; }
.mp-mx tfoot th, .mp-mx tfoot td { bottom: 0; border-top: 1px solid var(--line); border-bottom: 0; }
.mp-mx .a { position: sticky; left: 0; z-index: 1; text-align: left; min-width: 210px; max-width: 300px; padding: 6px 10px;
  background: var(--card-2); border-right: 1px solid var(--line); cursor: pointer; }
.mp-mx thead .a, .mp-mx tfoot .a { z-index: 3; cursor: default; }
.mp-mx thead .a { cursor: pointer; }
.mp-mx .aw { display: flex; align-items: center; gap: 8px; }
.mp-mx .at { flex: 1; min-width: 0; }
.mp-mx .a b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-mx .a .s { font-size: 11px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-mx .c { min-width: 34px; cursor: pointer; font-variant-numeric: tabular-nums; }
.mp-mx td { cursor: pointer; }
.mp-mx td input { width: 17px; height: 17px; margin: 0; cursor: pointer; }
.mp-mx tbody tr:hover td, .mp-mx tbody tr:hover th { background: var(--soft); }
.mp-mx .n { font-weight: 700; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 📊/🏬 մեդիա պլանի տեսակը */
.mp-mode { padding: 18px; }
.mp-mode .pico { width: 52px; height: 52px; font-size: 26px; }
.mp-mode .pt { font-size: 17px; margin-bottom: 4px; }
.mp-mode.on { border-color: var(--violet); }
/* 🧩 խոշոր մեդիա պլան՝ գրաֆիկի վանդակները (ժամ × օր), ինչպես PDF-ում */
.mp-cg-bar { position: sticky; top: 76px; z-index: 5; background: var(--card); padding: 8px 0 4px; }
.mp-cg-wrap { overflow: auto; max-height: 640px; border: 1px solid var(--line); border-radius: var(--r-sm); user-select: none; }
.mp-cg { border-collapse: separate; border-spacing: 0; font-size: 11px; }
.mp-cg th, .mp-cg td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; padding: 0; }
.mp-cg thead th { position: sticky; top: 0; z-index: 2; background: var(--card-2); padding: 3px 2px; min-width: 34px; cursor: pointer; }
.mp-cg thead th b { display: block; font-size: 12px; }
.mp-cg thead th i { display: block; font-style: normal; font-size: 9.5px; font-weight: 500; color: var(--muted); }
.mp-cg thead th.we i { color: var(--err); }
.mp-cg th.t { position: sticky; left: 0; z-index: 1; background: var(--card-2); padding: 0 8px; white-space: nowrap;
  font-variant-numeric: tabular-nums; cursor: pointer; }
.mp-cg thead th.t { z-index: 3; }
.mp-cg th:hover { color: var(--violet); }
.mp-cg td { height: 26px; min-width: 34px; color: #222; font-weight: 600; white-space: nowrap; cursor: pointer;
  font-variant-numeric: tabular-nums; }
.mp-cg td.free { cursor: not-allowed;
  background: repeating-linear-gradient(45deg, var(--card-2), var(--card-2) 4px, var(--card) 4px, var(--card) 8px); }
.mp-cg td.own { box-shadow: inset 0 0 0 2px var(--violet); }
.mp-cg td.sel { outline: 2px solid #ff8a00; outline-offset: -2px; filter: brightness(.85); }
.mp-chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.mp-chip.on { color: #222; border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.mp-chip.off { opacity: .45; }
/* 🕒 հասցեի իր ժամերը (դատարկ՝ ընդհանուրը) և ✖՝ հանել հասցեն */
.mp-mx .hr { min-width: 136px; padding: 3px 6px; text-align: left; cursor: default; border-right: 1px solid var(--line); }
.mp-mx .hr input { width: 128px; height: 30px; min-height: 0; padding: 3px 7px; font-size: 12px; cursor: text; }
.mp-mx .hr .tiny { display: block; margin-top: 2px; }
.mp-mx .hr.own input { border-color: var(--violet); font-weight: 600; }
.mp-mx .hr.own .tiny { color: var(--violet); font-weight: 600; }
.mp-mx .x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 4px; font-size: 11px; border-radius: 6px; }
.mp-mx .x:hover { color: var(--err); background: var(--soft); }
@media (max-width: 600px) {          /* հեռախոսում՝ նեղ հասցեի սյունակ, որ մի քանի հոլովակ երևա */
  .mp-mx .a { min-width: 128px; max-width: 150px; padding: 5px 7px; }
  .mp-mx .aw { gap: 4px; }
  .mp-mx .c { min-width: 30px; }
  .mp-mx .hr { min-width: 106px; }
  .mp-mx .hr input { width: 98px; }
}
.mp-mx .bad, .mp-mx .bad .a, .mp-mx tr.bad td { color: var(--err); background: color-mix(in srgb, var(--err) 9%, var(--card)); }
/* 🧮 հաշվիչ ըստ ժամերի */
.pc-hours { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; margin: 4px 0 12px; }
.pc-hours .chip { padding: 7px 0; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .pc-hours { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.dropzone.big { padding: 46px 20px; }
.dropzone.big .dzi { font-size: 40px; }

/* ---------------------------------------------------------- 📷 լուսանկարից լրացված դաշտ */
.photowrap { display: inline-flex; }
.photowrap .btn.block { width: 100%; justify-content: center; }
input.filled, textarea.filled, select.filled { border-color: var(--ok) !important; background: var(--ok-bg) !important;
  transition: background .6s, border-color .6s; }
.grid.c5 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
table.table tr.warnrow td:first-child { color: var(--err); font-weight: 700; }
table.table tr.zebra td { background: var(--soft); }
.skeleton { text-align: center; color: var(--muted); }

/* ---------------------------------------------------------- արագություն. մեծ ցուցակները չեն նկարվում, մինչև չերևան */
.list .li { content-visibility: auto; contain-intrinsic-size: auto 52px; }
.slotcard { content-visibility: auto; contain-intrinsic-size: auto 84px; }
.vitem { content-visibility: auto; contain-intrinsic-size: auto 150px; }

/* ---------------------------------------------------------- տպել */
/* ---------------------------------------------------------- 📡 Տեխ. մոնիտորինգ */
.tm-wrap { max-height: 72vh; overflow: auto; }
.tm-grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12.5px; }
.tm-grid th, .tm-grid td { padding: 5px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card); }
.tm-grid thead th { position: sticky; top: 0; z-index: 2; background: var(--soft); text-align: center; }
.tm-grid .tm-sticky { position: sticky; left: 0; z-index: 1; min-width: 210px; max-width: 280px; text-align: left; border-right: 1px solid var(--line); }
.tm-grid thead .tm-sticky { z-index: 3; }
.tm-grid tr.tm-group td { background: var(--soft); max-width: none; padding-top: 8px; }
.tm-obj { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tm-addr { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tm-grid td.tm-c { text-align: center; min-width: 38px; cursor: pointer; user-select: none; color: #222; position: relative; }
.tm-grid td.tm-c:hover { outline: 2px solid var(--violet); outline-offset: -2px; }
.tm-grid td.tm-c.auto::after { content: ""; position: absolute; right: 3px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: #6A3DE8; opacity: .7; }
/* 🔒 խանութը փակ է այդ ժամին (📇 աշխատաժամեր)՝ անջատում չէ */
.tm-grid td.tm-c.closed { background: repeating-linear-gradient(135deg, var(--soft) 0 5px, var(--card) 5px 10px) !important;
  color: var(--muted); cursor: default; opacity: .75; }
.tm-grid td.tm-c.closed:hover { outline: none; }
.tm-grid td.tm-click { cursor: pointer; }
.tm-grid td.tm-click:hover .tm-obj { color: var(--violet); text-decoration: underline; }
/* ⏸ հասցեի մոնիտորինգը անջատված է */
.tm-mute { margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; white-space: normal; }
.tm-mute .btn { padding: 2px 8px; font-size: 11px; }
.tm-mute.on span { font-size: 11px; font-weight: 700; color: var(--warn); }
.tm-grid tr.tm-muted td.tm-c { opacity: .45; }
.tm-grid tr.tm-muted td.tm-sticky { background: var(--soft); }
/* 📇 խանութի քարտ */
.sc-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; background: var(--card-2); }
.sc-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.sc-block { padding: 6px 0; border-top: 1px dashed var(--line); }
.sc-block:first-of-type { border-top: 0; }
.sc-block.former { opacity: .75; }
.sc-phone { display: flex; align-items: center; gap: 6px; margin: 3px 0; flex-wrap: wrap; }
.sc-num { font-weight: 700; font-size: 14.5px; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.sc-phones { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.sc-who { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sc-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.list .li .sc-acts { margin-top: 0; flex-wrap: nowrap; }
.sc-ped { display: grid; gap: 6px; margin-bottom: 8px; }
.sc-prow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 6px; align-items: center; }
.sc-net { border-top: 1px solid var(--line); padding: 8px 0; }
.sc-net > summary { cursor: pointer; }
.li.sc-former { opacity: .7; }
@media (max-width: 560px) {
  .list .li { flex-wrap: wrap; } .sc-phones { align-items: flex-start; width: 100%; }
  .sc-prow { grid-template-columns: minmax(0, 1fr) auto; }
  .sc-prow + .sc-prow { padding-top: 8px; border-top: 1px dashed var(--line); }
  .sc-prow input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
.tm-bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding-top: 6px; }
.tm-bar { flex: 1; min-width: 6px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; font-size: 9.5px; color: var(--muted); }
.tm-bar i { display: block; width: 100%; background: linear-gradient(180deg, #e05252, #b42318); border-radius: 4px 4px 0 0; min-height: 2px; }
.tm-bar.off i { background: var(--line); }
.tm-heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 5px; margin-top: 8px; }
.tm-hc { border-radius: 9px; padding: 6px 2px; text-align: center; font-size: 11px; color: var(--ink); border: 1px solid var(--line); }
.tm-hc b { display: block; font-size: 14px; }
details.card > summary { list-style: none; }

/* ---------------------------------------------------------- 📻 ընթացիկ հեռարձակումներ / 🎵 Bubuka */
.navitem .cnt.warn { background: #F59E0B; color: #1a1300; font-weight: 700; }
.navitem .cnt.err { background: var(--err); color: #fff; font-weight: 700; }
.notice.err { border-left-color: var(--err); }
/* 🩺 սերվիսների վիճակ */
.svc-row .svc-ic { font-size: 20px; width: 28px; text-align: center; flex: none; }
.svc-row .badge { min-width: 30px; justify-content: center; flex: none; }
@media (max-width: 560px) { .svc-row { flex-wrap: wrap; } .svc-row .t { flex-basis: calc(100% - 80px); } }
#services-card, #mgbot-card { scroll-margin-top: 140px; }      /* կպչուն վերնագրի տակ չմնա */
/* 🤖 MG բոտի օգտատերեր */
.mgb-user { flex-wrap: wrap; }
.mgb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mgb-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 560px) { .list .li.mgb-user .t { flex: 1 1 100%; } .mgb-acts { margin-left: 0; } }
.bd-wrap { max-height: 74vh; overflow: auto; }
.bd-table { font-size: 12.6px; }
.bd-table th { position: sticky; top: 0; z-index: 2; }
.bd-table th.bd-vert { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; padding: 8px 3px; font-size: 10.5px;
  letter-spacing: .2px; text-transform: none; min-width: 26px; vertical-align: bottom; }
.bd-table td.bd-n { text-align: center; font-weight: 700; color: var(--navy); min-width: 26px; padding: 9px 3px; }
.bd-table tr.bd-ending td { background: color-mix(in srgb, #F59E0B 12%, var(--card)); }
.bd-table tr.bd-ended td, .bd-table tr.bd-paused td { color: var(--muted); }
.bd-table tr.bd-ended td b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.bd-table tbody td { cursor: cell; }
.bd-table tr.bd-selrow td { background: color-mix(in srgb, var(--violet) 10%, var(--card)); }
.bd-table td.bd-selcell { background: color-mix(in srgb, var(--violet) 24%, var(--card)); outline: 2px solid var(--violet); outline-offset: -2px; }
.bd-table th.bd-selcol { background: color-mix(in srgb, var(--violet) 22%, var(--card)); color: var(--violet); }
/* 📄 հասցեի մեդիա պլանը PDF-ով (ընդհանուր՝ Խանութներ + Երևան Սիթի) */
.ap-rowitem { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ap-rowitem .t { flex: 1; min-width: 180px; overflow-wrap: anywhere; }
.ap-rowlist { margin-top: 6px; }
.ap-form input[type=file] { width: 100%; padding: 9px 10px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--soft, transparent);
  font: inherit; font-size: 13px; cursor: pointer; }
.ap-form input[type=file]::file-selector-button { margin-right: 10px; border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer;
  background: var(--violet, #6A3DE8); color: #fff; font: inherit; font-weight: 600; }
.bd-clips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 420px; }
.bd-clip { display: inline-flex; gap: 2px; }
.bd-clip .btn { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.bd-card.bd-ending { border-left: 4px solid #F59E0B; }
.bd-card.bd-ended, .bd-card.bd-paused { opacity: .7; }
.bd-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 2px 0; }
.bd-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.bd-counts label { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); }
.bd-counts input { padding: 6px 8px; }
.bd-cliprow { display: grid; grid-template-columns: 1fr 1.4fr auto auto auto; gap: 6px; margin-bottom: 6px; }
.bd-colsed { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.bd-player { position: sticky; bottom: 10px; z-index: 25; margin-top: 12px; box-shadow: var(--shadow-lg); }
/* 💬 մեկնաբանություն գնի մասին (բյուջեի վանդակում) */
.bd-budget { cursor: pointer; }
.bd-budget:hover { outline: 2px solid var(--violet); outline-offset: -2px; }
.bd-bnote { font-size: 11.5px; font-weight: 500; color: var(--ink); text-align: left; white-space: pre-wrap; max-width: 180px; margin-top: 2px; }
.bd-bnote.add { color: var(--muted); opacity: 0; }
.bd-budget:hover .bd-bnote.add { opacity: 1; }
/* 🎵 մի քանի հոլովակ (Խանութներ → ամրագրում) */
.cps-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; background: var(--card); }
.cps-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cps-drop { border: 2px dashed var(--line); border-radius: 12px; padding: 10px; text-align: center; color: var(--muted); font-size: 12.5px; }
.cps-drop.over { border-color: var(--violet); color: var(--violet); background: var(--soft); }
@media (max-width: 760px) {
  .bd-cliprow { grid-template-columns: 1fr auto auto auto; }
  .bd-cliprow input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .bd-player { bottom: 74px; }
}

/* ---------------------------------------------------------- 💰 գնացուցակ (Խանութներ → Գներ) */
.pl-hero { text-align: center; }
.pl-title { font-size: clamp(20px, 3vw, 28px); margin: 4px 0 4px; }
.pl-kicker { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.pl-cap { font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; color: var(--navy); text-transform: uppercase; }
.pl-locs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; text-align: center; }
.pl-loc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px 16px;
  border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; color: var(--ink);
  font: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.pl-loc:hover:not([disabled]) { transform: translateY(-3px); box-shadow: var(--shadow); }
.pl-loc[disabled] { opacity: .45; cursor: default; }
.pl-loc .pl-ico { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
  background: var(--soft); overflow: hidden; }
.pl-loc .pl-ico img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pl-loc .pl-lt { font-weight: 800; font-size: 15px; color: var(--navy); }
.pl-loc .pl-lc { font-size: 12.5px; font-weight: 700; }
.pl-loc .pl-chev { position: absolute; top: 10px; right: 14px; font-weight: 800; color: var(--muted); }
.pl-loc.g-city .pl-lc { color: var(--blue); }
.pl-loc.g-malls .pl-lc { color: var(--amber); }
.pl-loc.g-other .pl-lc { color: var(--violet); }
.pl-loc.on.g-city { border-color: var(--blue); box-shadow: 0 10px 30px -10px rgba(47, 140, 255, .6); }
.pl-loc.on.g-malls { border-color: var(--amber); box-shadow: 0 10px 30px -10px rgba(255, 176, 32, .6); }
.pl-loc.on.g-other { border-color: var(--violet); box-shadow: var(--glow); }
.pl-loc.on .pl-chev { color: inherit; }
.pl-off { font-size: 10.5px; color: var(--ok); font-weight: 800; }
.pl-pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 18px; }
.pl-pkg { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 16px 16px; border-radius: 20px;
  border: 1.5px solid var(--line); background: var(--card-2); text-align: center; }
.pl-pkg.pop { border-color: var(--violet); box-shadow: var(--glow); }
.pl-pkg.on { border-color: var(--ok); background: var(--soft); }
.pl-rib { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 12px;
  border-radius: 20px; background: var(--grad-warm); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; }
.pl-pico { width: 46px; height: 46px; margin: 0 auto; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  background: var(--grad); color: #fff; box-shadow: var(--glow); }
.pl-pn { font-size: 20px; font-weight: 800; color: var(--navy); }
.pl-line { height: 1px; background: var(--line); margin: 2px 0 4px; }
.pl-f { display: flex; align-items: center; gap: 8px; font-size: 12.8px; text-align: left; }
.pl-f .pl-fi { width: 18px; text-align: center; opacity: .8; }
.pl-f .pl-fk { flex: 1; }
.pl-f b { color: var(--blue); white-space: nowrap; }
.pl-pkg.pop .pl-f b { color: var(--pink); }
.pl-note { font-size: 11.5px; color: var(--violet); font-weight: 700; }
.pl-price { margin: 10px 0 6px; display: flex; flex-direction: column; align-items: center; }
.pl-price b { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.pl-price s { font-size: 12px; color: var(--muted); }
.pl-price span { font-size: 11.5px; color: var(--muted); }
.pl-empty { grid-column: 1 / -1; text-align: center; padding: 18px; }
.pl-support { text-align: center; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.pl-chosen { margin: 6px 0 4px; }
.pl-pick { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--card-2); }
.pl-pick > summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.pl-addrs { max-height: 340px; overflow: auto; padding-right: 4px; }
.pl-net { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; cursor: pointer; }
.pl-net img { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; background: #fff; }
.pl-net input, .pl-a input, .pl-studio input { accent-color: var(--violet); width: 16px; height: 16px; flex: 0 0 auto; }
.pl-agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 12px; padding-left: 24px; }
.pl-a { display: flex; gap: 7px; align-items: flex-start; font-size: 12.6px; cursor: pointer; padding: 2px 0; }
.pl-a.full span { color: var(--err); }
.pl-k .v { text-align: center; }
.pl-k .k, .pl-k .n { text-align: center; }
.pl-studio { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card-2); cursor: pointer; font-weight: 600; }
.pl-studio b { margin-left: auto; color: var(--blue); font-size: 12.5px; }
.pl-total { margin: 14px 0; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--grad-soft); text-align: center; }
.pl-sum { font-size: 30px; font-weight: 800; margin: 2px 0; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; }
.pl-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.pl-btns .btn { justify-content: center; font-weight: 800; letter-spacing: .6px; }
.btn.pl-tg { background: linear-gradient(135deg, #2AABEE, #1E88E5); color: #fff; border-color: transparent; }
.btn.pl-wa { background: linear-gradient(135deg, #25D366, #12B04B); color: #fff; border-color: transparent; }
.btn.pl-cons { border-color: var(--mint); color: var(--mint); }

@media print {
  .sidebar, .topbar, #fixik, #fixik-btn, #toasts, .noprint { display: none !important; }
  body { background: #fff; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* 🛒 Կայքի հայտեր (⏳ 24-ժամյա ամրագրումներ) */
.hd-list { display: grid; gap: 12px; margin-top: 12px; }
.hd.on { border-left: 4px solid var(--warn); }
.hd.on.done { border-left-color: var(--ok); }
.hd .card-head h3 { margin: 0; font-size: 16px; }
.hd .right { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hd-left { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; color: var(--navy); }
.hd-left.warn { color: var(--err); }
.hd-info { display: grid; gap: 4px; margin: 6px 0 8px; font-size: 14px; }
.hd-addr summary { cursor: pointer; font-weight: 700; font-size: 13.5px; }
.hd-net { margin: 8px 0 0 4px; font-size: 13px; }
.hd-net ol { margin: 4px 0 0; padding-left: 22px; columns: 2 260px; }
.hd-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* 🎵 Հոլովակ մի քանի խանութում */
.bm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 8px; }
.bm-list { display: grid; gap: 6px; max-height: 46vh; overflow: auto; padding-right: 4px; }
.bm-net { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line, #e3e5ef); border-radius: 12px; background: var(--card, #fff); }
.bm-net.on { border-color: var(--violet); background: var(--tint); }
.bm-net input { width: 18px; height: 18px; flex: none; }
.bm-t { flex: 1; min-width: 0; display: grid; cursor: pointer; }
.bm-t b { font-size: 14px; }
.bm-addrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 12px; padding: 4px 8px 10px 40px; }
.bm-addr { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.bm-addr span { flex: 1; min-width: 0; }
.bm-addr small { color: var(--ok); font-weight: 700; white-space: nowrap; }
.bm-addr.full { opacity: .55; }
.bm-addr.full small { color: var(--err); }
.bm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; background: var(--tint); font-size: 13px; cursor: pointer; }

/* ✏️ խմբագրիչ՝ 4 սեղմվող քարտ (պայմանագիր, մեդիա պլան, ֆայլ, MP3) */
.ed-tip { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ed-tip:hover, .ed-tip:focus-visible { transform: translateY(-3px); border-color: var(--violet); box-shadow: var(--shadow-lg, var(--shadow)); outline: none; }
.ed-tip .ed-go { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--violet); }
.grid.ed-tips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .grid.ed-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.ed-tips { grid-template-columns: minmax(0, 1fr); } }

/* ✏️ խմբագրիչ՝ նկար, տեսանյութ, PowerPoint */
.ed-imgwrap { overflow: hidden; }
.ed-stage { display: grid; place-items: center; min-height: 260px; max-height: 62vh; padding: 18px; overflow: hidden;
  background: repeating-conic-gradient(var(--soft) 0 25%, transparent 0 50%) 0 0 / 22px 22px; border-radius: 12px; }
.ed-img { max-width: 100%; max-height: 56vh; object-fit: contain; transition: transform .35s, filter .2s; box-shadow: 0 8px 26px -14px rgba(0, 0, 0, .5); }
.ed-ctl { display: inline-flex; align-items: center; gap: 8px; }
.ed-ctl input[type=range] { width: 150px; }
.ed-video { width: 100%; max-height: 62vh; border-radius: 12px; background: #000; }
.ed-ptable input { width: 100%; min-width: 90px; }

/* 🖥 Gidra: значок ПК в строке мониторинга и блок в карточке магазина */
.gd-chip { margin-top: 3px; padding: 2px 8px; font-size: 11px; white-space: nowrap; }
.gd-chip.on { border-color: #35c07a; }
.gd-block .li { padding: 6px 0; }
.gd-chip.down { border-color: #c0392b; color: #c0392b; background: rgba(192, 57, 43, .08); font-weight: 700; }

/* 🛠 Տեխ. սպասարկում՝ հայտի քարտ, մեկնաբանություններ */
.ts-ticket { border-left: 4px solid var(--warn); }
.ts-ticket.solved { border-left-color: var(--ok); }
.ts-ticket.ts-focus { box-shadow: 0 0 0 3px var(--violet); }
.ts-ticket textarea { width: 100%; }
.ts-cs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ts-c { background: var(--soft); border-radius: var(--r-sm); padding: 6px 10px; }
.ts-c.solved { background: var(--ok-bg); }
.ts-c.reopen { background: var(--warn-bg); }
.ts-ch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.ts-ct { white-space: pre-wrap; font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.ts-solved { background: var(--ok-bg); color: var(--ok); border-radius: var(--r-sm); padding: 6px 10px; margin-bottom: 8px; font-size: 13px; }
.ts-cell { margin: 8px 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--warn-bg); font-size: 13px; }
.ts-cell.solved { background: var(--ok-bg); }
