/* Polycontrol 2.0 – Polycon design: Inter Display, grey #63686d, paper #edeeeb, green #5cc68c */
/* Inter variable with optical-size axis; opsz 32 = Inter Display cut */
@font-face { font-family: 'Inter Display'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter/inter-latin-ext-opsz-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter Display'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter/inter-latin-opsz-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --grey: #63686d;
  --grey-dark: #4f5357;
  --grey-darker: #3f4245;
  --grey-light: #9a9ea2;
  --paper: #edeeeb;
  --line: #d9dad6;
  --white: #ffffff;
  --text: #1f2224;
  --muted: #63686d;
  --green: #5cc68c;
  --green-dark: #47ad76;
  --green-text: #23704a;
  --green-bg: #e3f4ea;
  --red: #b5452f;
  --red-bg: #f6e3de;
  --amber: #b07b16;
  --amber-bg: #f7eed9;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --font: 'Inter Display', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-variation-settings: 'opsz' 32; font-feature-settings: 'cv11', 'ss01'; font-size: 15px; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--green-text); }
h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: -.015em; }
button, input, select, textarea { font: inherit; font-variation-settings: inherit; font-feature-settings: inherit; color: inherit; }
.hidden { display: none !important; }
svg.ico { width: 16px; height: 16px; vertical-align: -3px; flex: none; }
.muted { color: var(--muted); }
.boot { display: grid; place-items: center; height: 100vh; }
.boot img { height: 48px; opacity: .6; }

/* ---------- Top bar ---------- */
.topbar { background: var(--grey); color: #fff; height: 56px; display: flex; align-items: stretch; padding: 0 20px; position: sticky; top: 0; z-index: 20; }
.topbar .brand { display: flex; align-items: center; padding-right: 18px; flex: none; }
.topbar .brand img { height: 30px; display: block; }
.nav { display: flex; align-items: stretch; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #e8e9e7; text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { background: var(--grey-dark); color: #fff; }
.nav a.active { background: var(--grey-darker); color: #fff; border-bottom-color: var(--green); }
.nav a .ico { width: 17px; height: 17px; opacity: .9; }
.nav a .soon { width: 6px; height: 6px; border-radius: 50%; background: #e0b65a; margin-left: -2px; align-self: flex-start; margin-top: 18px; }
.topbar .right { display: flex; align-items: center; gap: 6px; flex: none; }
.lang { display: flex; gap: 2px; margin-right: 6px; }
.lang button { background: none; border: 0; color: #d6d8d5; font-weight: 700; font-size: 12px; padding: 6px 7px; border-radius: 3px; cursor: pointer; }
.lang button.on { background: var(--grey-darker); color: #fff; }
.userbtn { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px 10px; border-radius: 3px; font-weight: 600; }
.userbtn:hover, .iconbtn:hover { background: var(--grey-dark); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.iconbtn { background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; border-radius: 3px; display: flex; }
.iconbtn .ico { width: 18px; height: 18px; }
.menu { position: absolute; right: 16px; top: 52px; background: #fff; color: var(--text); min-width: 220px; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px; z-index: 30; }
.menu .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who small { display: block; color: var(--muted); }
.menu a, .menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 12px; text-decoration: none; color: var(--text); background: none; border: 0; text-align: left; cursor: pointer; border-radius: 3px; }
.menu a:hover, .menu button:hover { background: var(--paper); }
.menu .ico { width: 16px; height: 16px; color: var(--muted); }
.burger { display: none; align-self: center; }

/* ---------- Layout ---------- */
.main { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.pagehead h1 { font-size: 28px; }
.pagehead p { margin: 4px 0 0; color: var(--muted); }
.crumb { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }

.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.panel > header { background: var(--grey); color: #fff; padding: 12px 18px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.panel > header .ico { width: 18px; height: 18px; }
.panel > header .actions { margin-left: auto; display: flex; gap: 8px; }
.panel .body { padding: 18px; }

.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: 2fr 1fr; }
@media (max-width: 900px) { .grid.cols-2 { grid-template-columns: 1fr; } }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 3px; padding: 9px 16px; font-weight: 600; cursor: pointer; background: var(--green); color: #fff; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--green-dark); }
.btn .ico { width: 16px; height: 16px; }
.btn.secondary { background: #fff; color: var(--grey); box-shadow: inset 0 0 0 1px var(--line); }
.btn.secondary:hover { background: var(--paper); }
.btn.dark { background: var(--grey); }
.btn.dark:hover { background: var(--grey-dark); }
.btn.danger { background: var(--red); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.icon { padding: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.panel > header .btn.secondary { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }

label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], input[type=url], input[type=date], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 3px; background: #fff; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(92,198,140,.2); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.check input { width: 17px; height: 17px; accent-color: var(--green); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.formerr { background: var(--red-bg); color: var(--red); padding: 10px 12px; border-radius: 3px; margin-bottom: 14px; font-weight: 600; }

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; color: var(--green-text); font-weight: 700; font-size: 13.5px; padding: 12px 14px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: #f7f8f6; }
table.t td.actions { text-align: right; white-space: nowrap; }
table.t .sub { display: block; font-size: 12.5px; color: var(--muted); }
table.t select { padding: 6px 8px; font-size: 13.5px; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 12px; font-weight: 700; background: var(--paper); color: var(--grey); white-space: nowrap; }
.badge.green { background: var(--green-bg); color: var(--green-text); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.dark { background: var(--grey); color: #fff; }

/* access level pill colours */
.lvl-none { color: var(--grey-light); }
.lvl-read { color: var(--grey); }
.lvl-write { color: var(--green-text); }
.lvl-manage { color: #fff; background: var(--green-text) !important; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.tabs a .ico { width: 16px; height: 16px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--green); }

/* ---------- Dashboard ---------- */
.hello { background: var(--grey); color: #fff; border-radius: var(--radius); padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; position: relative; overflow: hidden; }
.hello h1 { font-size: 26px; }
.hello p { margin: 6px 0 0; color: #dfe1de; }
.hello .shard { position: absolute; right: -20px; top: -30px; width: 220px; opacity: .1; }
.hello .meta { text-align: right; font-size: 13px; color: #dfe1de; position: relative; }
.hello .meta strong { display: block; color: #fff; font-size: 15px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 24px; }
.tile { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--grey); transition: transform .12s, box-shadow .12s; min-height: 170px; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.tile.active { border-top-color: var(--green); }
.tile .tico { width: 42px; height: 42px; border-radius: 6px; background: var(--paper); display: grid; place-items: center; color: var(--grey); }
.tile.active .tico { background: var(--green-bg); color: var(--green-text); }
.tile .tico .ico { width: 22px; height: 22px; }
.tile h3 { font-size: 18px; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.tile .foot { display: flex; justify-content: space-between; align-items: center; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.activity li:last-child { border-bottom: 0; }
.stat { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stat strong { font-size: 20px; }

/* ---------- Module placeholder ---------- */
.planned { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; }
.planned .intro { padding: 34px; }
.planned .intro h2 { font-size: 22px; margin-bottom: 10px; }
.planned .intro p { color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.planned .art { background: var(--paper); display: grid; place-items: center; padding: 30px; border-left: 1px solid var(--line); }
.planned .art svg { width: 180px; height: 180px; }
.feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feat li { display: flex; gap: 10px; align-items: flex-start; }
.feat li::before { content: ''; flex: none; width: 9px; height: 9px; margin-top: 6px; background: var(--green); clip-path: polygon(4% 20%, 70% 4%, 97% 42%, 72% 94%, 22% 82%); }
@media (max-width: 800px) { .planned { grid-template-columns: 1fr; } .planned .art { display: none; } }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .side { background: var(--grey); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .side img.logo { height: 44px; align-self: flex-start; }
.login .side h2 { font-size: 34px; line-height: 1.15; max-width: 440px; }
.login .side p { color: #dfe1de; max-width: 420px; line-height: 1.5; }
.login .side .shard { position: absolute; right: -80px; bottom: -60px; width: 420px; opacity: .08; }
.login .side small { color: #c9ccc8; }
.login .formside { display: grid; place-items: center; padding: 32px 20px; }
.login form { width: 100%; max-width: 380px; }
.login form h1 { font-size: 26px; margin-bottom: 6px; }
.login form p.muted { margin: 0 0 24px; }
.login .btn { width: 100%; justify-content: center; padding: 12px; font-size: 16px; }
.login .lang { justify-content: center; margin-top: 22px; }
.login .lang button { color: var(--muted); }
.login .lang button.on { background: var(--grey); color: #fff; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login .side { padding: 28px; min-height: 0; } .login .side h2, .login .side p, .login .side small { display: none; } }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(40,42,44,.55); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 720px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal.sm { max-width: 460px; }
.modal > header { background: var(--grey); color: #fff; padding: 14px 20px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; border-radius: var(--radius) var(--radius) 0 0; }
.modal > header button { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.modal .mbody { padding: 20px; overflow-y: auto; }
.modal > footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.modal h4 { margin: 8px 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-text); }
.permgrid { display: grid; gap: 8px; }
.permgrid .pr { display: grid; grid-template-columns: 1fr 180px; align-items: center; gap: 10px; padding: 8px 12px; background: var(--paper); border-radius: 3px; }
.permgrid .pr .ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 8px; color: var(--grey); }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; background: var(--paper); padding: 12px 14px; border-radius: 3px; letter-spacing: .04em; user-select: all; }

/* ---------- Toast ---------- */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--grey-darker); color: #fff; padding: 11px 20px; border-radius: 3px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--red); }

.footer { text-align: center; color: var(--grey-light); font-size: 12.5px; padding: 10px 0 30px; }

/* ---------- Responsive nav ---------- */
@media (max-width: 1180px) {
  .topbar { padding: 0 10px; }
  .topbar .brand { padding-right: 10px; }
  .topbar .brand img { height: 24px; }
  .burger { display: flex; }
  .nav { position: absolute; top: 56px; left: 0; right: 0; background: var(--grey-dark); flex-direction: column; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-bottom: 0; border-left: 3px solid transparent; }
  .nav a.active { border-left-color: var(--green); }
  .topbar .spacer { flex: 1; }
  .main { padding: 20px 14px 40px; }
}
.hello .meta .ico { width: 15px; height: 15px; vertical-align: -2px; }
input:disabled, select:disabled { background: var(--paper); color: var(--muted); }

/* ---------- Documents module (v2.1.0) ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input[type=search] { flex: 1 1 280px; }
.filters select { width: auto; flex: 0 1 220px; }
.filters .check { font-weight: 600; color: var(--muted); padding: 0 6px; }
.lchips { display: flex; flex-wrap: wrap; gap: 5px; }
.lchip { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 3px; background: var(--green-bg); color: var(--green-text); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-decoration: none; }
.lchip.link:hover { background: var(--green); color: #fff; }
.lchip.big { min-width: 46px; height: 46px; font-size: 15px; border-radius: 4px; background: var(--grey); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tag { font-size: 11.5px; background: var(--paper); color: var(--muted); padding: 1px 7px; border-radius: 10px; }
table.t tr.clickrow { cursor: pointer; }
.dtitle { color: var(--text); font-weight: 700; text-decoration: none; display: inline-flex; gap: 7px; align-items: center; }
.dtitle .ico { color: var(--red); }
.dtitle:hover { color: var(--green-text); }
.doctable td:first-child { max-width: 460px; }
.empty { text-align: center; padding: 48px 20px !important; color: var(--muted); }
.empty p { margin: 10px 0 18px; }
svg.ico.big { width: 40px; height: 40px; color: var(--grey-light); }
textarea { resize: vertical; }

.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed var(--line); border-radius: 4px; background: #fafaf9; cursor: pointer; text-align: center; transition: .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--green); background: var(--green-bg); }
.dropzone.has { border-style: solid; border-color: var(--green); background: var(--green-bg); }
.dropzone.has svg.ico.big { color: var(--green-text); }
.dropzone .dz-text { font-weight: 600; word-break: break-all; }
.progress { width: 100%; max-width: 320px; height: 6px; background: #fff; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.progress > div { height: 100%; width: 0; background: var(--green); transition: width .15s; }

.modal.xl { max-width: 1100px; height: calc(100vh - 40px); }
.modal.xl .mbody { padding: 0; flex: 1; overflow: hidden; }
.pdfframe { width: 100%; height: 100%; border: 0; display: block; background: #525659; }

.backlink { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.backlink:hover { color: var(--text); }
.notice { background: var(--amber-bg); color: var(--amber); padding: 10px 14px; border-radius: 3px; font-weight: 600; margin-bottom: 18px; }
.langlist { display: flex; flex-direction: column; }
.langrow { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.langrow:last-child { border-bottom: 0; }
.lr-main { display: flex; gap: 14px; align-items: center; }
.lr-info { flex: 1; min-width: 0; }
.lr-info .sub { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.lr-actions { display: flex; gap: 6px; flex: none; }
.history { margin: 12px 0 0 60px; }
.history summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }
.history table.t td { padding: 8px 10px; font-size: 13.5px; }
.history table.t .sub { display: block; font-size: 12px; color: var(--muted); }
.metainfo { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; display: grid; gap: 6px; }
.metainfo span { display: inline-block; min-width: 110px; color: var(--muted); font-weight: 600; }
.cattable td { padding: 6px; }
.cattable input { padding: 7px 9px; }
@media (max-width: 700px) {
  .lr-main { flex-wrap: wrap; }
  .lr-actions { width: 100%; justify-content: flex-end; }
  .history { margin-left: 0; }
}

@media (max-width: 700px) {
  .filters select { flex: 1 1 100%; }
  .doctable th:nth-child(2), .doctable td:nth-child(2), .doctable th:nth-child(4), .doctable td:nth-child(4) { display: none; }
}
@media (max-width: 860px) { .userbtn .uname, .topbar .lang { display: none; } }

/* ---------- Dashboard version panel (v2.1.1) ---------- */
.vbadge { background: var(--green); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 12px; }
.vhead strong { display: block; font-size: 18px; }
.vhead .muted { font-size: 13px; }
.panel.version h5 { margin: 16px 0 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-text); }
.feat.small { gap: 7px; font-size: 13.5px; line-height: 1.4; }
.feat.small li::before { margin-top: 5px; }
.vhist { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.vhist summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.vhist ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }

/* ---------- Contacts module (v2.2.0) ---------- */
.headbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 700px) { .row3 { grid-template-columns: 1fr; } }
.cc { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: var(--paper); color: var(--grey); padding: 1px 6px; border-radius: 3px; vertical-align: 1px; }
.ctable td { vertical-align: top; }
.ctable .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ctable .sub a { color: var(--muted); }
.cname { color: var(--text); font-weight: 700; text-decoration: none; }
.cname:hover { color: var(--green-text); }
.pn { font-weight: 600; }
tr.dim td, .pcard.dim { opacity: .55; }
.notice.review { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.notice.review ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }
.plist { display: flex; flex-direction: column; }
.pcard { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pcard:last-child { border-bottom: 0; }
.pcard .avatar { width: 38px; height: 38px; font-size: 13px; flex: none; }
.pcard .avatar.grey { background: var(--grey-light); }
.pinfo { flex: 1; min-width: 0; }
.pinfo .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; word-break: break-word; }
.pinfo .sub a { color: var(--green-text); text-decoration: none; }
.panel > header .actions .btn.sm { background: var(--green); }
.scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.scard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; border-left: 4px solid var(--grey-light); }
.scard strong { display: block; font-size: 24px; }
.scard span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.scard.green { border-left-color: var(--green); }
.scard.amber { border-left-color: #e0b65a; }
.tabs.inpanel { margin: 0; padding: 0 12px; background: #fafaf9; }
.tabs.inpanel .badge { margin-left: 4px; }
.ifoot { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.ipad { padding: 14px 18px; margin: 0; }
#itab table.t .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
#itab { max-height: 620px; overflow: auto; }
.filters select, .filters input { min-width: 0; max-width: 100%; }
@media (max-width: 700px) {
  .ctable th:nth-child(2), .ctable td:nth-child(2), .ctable th:nth-child(4), .ctable td:nth-child(4) { display: none; }
  .notice.review { flex-direction: column; }
}

/* ---------- Contacts: selection, row actions, labels (v2.3.0) ---------- */
.ctable .selcol { width: 34px; padding-right: 0; }
.ctable .selcol input, .bulkbar input { width: 16px; height: 16px; accent-color: var(--green); cursor: pointer; }
.ctable th.num, .ctable td.num { text-align: center; width: 80px; }
.ctable .actcol { width: 92px; text-align: right; }
.ctable tr.selected td { background: var(--green-bg); }
.rowacts { display: inline-flex; gap: 4px; }
.iconbtn2 { width: 34px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--grey); border-radius: 3px; cursor: pointer; }
.iconbtn2:hover:not(:disabled) { background: var(--grey); border-color: var(--grey); color: #fff; }
.iconbtn2:disabled { opacity: .35; cursor: not-allowed; }
.iconbtn2 .ico { width: 17px; height: 17px; }
.bulkbar { position: sticky; top: 64px; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--grey-darker); color: #fff; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.bulkbar strong { margin-right: auto; }
.bulkbar .btn.secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.lblpick { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 168px; height: 238px; padding: 6px 4px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.slot { border: 1px dashed var(--grey-light); background: #fafaf9; border-radius: 3px; cursor: pointer; font-weight: 700; color: var(--muted); }
.slot:hover { border-color: var(--green); }
.slot.used { background: repeating-linear-gradient(45deg, #eee, #eee 4px, #f8f8f8 4px, #f8f8f8 8px); color: #bbb; }
.slot.fill { background: var(--green); border: 1px solid var(--green-dark); color: #fff; }
.label-preview { width: 252px; height: 176px; border: 1px solid var(--line); border-radius: 4px; padding: 20px 20px 16px 26px; display: flex; flex-direction: column; justify-content: center; font-size: 13px; line-height: 1.35; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.label-preview .name { font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.label-preview .attn { margin-bottom: 4px; }
.label-preview .country { font-weight: 700; margin-top: 3px; }
.muted.small { font-size: 12.5px; margin: 10px 0 0; }
.printframe { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
@media (max-width: 700px) {
  .lblpick { grid-template-columns: 1fr; }
  .ctable th.num, .ctable td.num { display: none; }
}

.label-preview { position: relative; padding-top: 34px; }
.label-preview .lp-sender { position: absolute; top: 10px; left: 26px; right: 14px; font-size: 7.5px; line-height: 1.3; color: #555; border-bottom: 1px solid #bbb; padding-bottom: 2px; }
.label-preview .lp-sender div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Samples module (v2.4.0) ---------- */
.sst { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--paper); color: var(--grey); }
.sst-new { --c: #c0392b; --b: #f8e1dd; } .sst-approved { --c: var(--green-text); --b: var(--green-bg); } .sst-updated { --c: #2f6aa3; --b: #e1ecf7; }
.sst-ready { --c: var(--amber); --b: var(--amber-bg); } .sst-sent { --c: var(--grey); --b: #e6e7e4; }
span.sst { color: var(--c); background: var(--b); }
.stchips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.stchip { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 6px 12px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--c, var(--text)); }
.stchip b { margin-left: 4px; }
.stchip.on { background: var(--c, var(--grey)); border-color: var(--c, var(--grey)); color: #fff; }
.stable td { vertical-align: top; }
.stable .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stable .trk { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
a.plain { color: var(--text); text-decoration: none; } a.plain:hover { color: var(--green-text); }
.h1sub { font-weight: 500; color: var(--muted); font-size: .7em; margin-left: 8px; }
.wf { display: flex; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.wf-step { flex: 1 1 140px; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 11px 10px; border: 0; background: #e3e4e1; color: var(--muted); font-weight: 700; cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); }
.wf-step:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.wf-step span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.6); display: grid; place-items: center; font-size: 12px; }
.wf-step.past { background: #d3d5d1; color: var(--grey); }
.wf-step.on { background: var(--c); color: #fff; }
.wf-step:disabled { cursor: default; }
.picker { position: relative; }
.pk-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 8px 20px rgba(0,0,0,.12); max-height: 260px; overflow: auto; }
.pk-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; cursor: pointer; }
.pk-list button:hover { background: var(--paper); }
.itable td { padding: 6px 6px; vertical-align: middle; }
.itable input, .itable select { padding: 6px 8px; font-size: 13.5px; }
.itable tr.inote td { border-top: 0; padding-top: 0; }
.itable tbody tr[data-i]:not(.inote) td { border-bottom: 0; }
.iconbtn2.has { background: var(--green-bg); color: var(--green-text); border-color: var(--green); font-weight: 700; }
.iconbtn2 sup { font-size: 9px; }
.recipe { background: var(--paper); border-radius: 4px; padding: 10px 12px; }
.recipe table.t { margin: 6px 0 8px; background: #fff; }
.recipe table.t td, .recipe table.t th { padding: 5px 6px; font-size: 13px; }
.savebar { position: sticky; bottom: 14px; z-index: 10; display: flex; gap: 10px; align-items: center; justify-content: flex-end; background: var(--grey-darker); color: #fff; padding: 10px 14px; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.25); margin-top: 10px; }
.savebar span { margin-right: auto; font-weight: 600; }
.savebar .btn.secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
@media (max-width: 700px) {
  .stable th:nth-child(4), .stable td:nth-child(4), .stable th:nth-child(5), .stable td:nth-child(5), .stable th:nth-child(6), .stable td:nth-child(6) , .stable th:nth-child(7), .stable td:nth-child(7) { display: none; }
  .wf-step { flex-basis: 45%; clip-path: none; }
}
.stable td:first-child .cname { white-space: nowrap; }
.metainfo span { min-width: 150px; }

/* ---------- Samples: production queries (v2.4.1) ---------- */
.stable .actcol1 { width: 48px; text-align: right; }
.modal.wide { max-width: 980px; }
.sq { display: grid; grid-template-columns: 330px 1fr; gap: 22px; }
.sq h4 { margin: 0 0 10px; }
.sq-col h4:not(:first-child) { margin-top: 18px; }
.sq-tpls { display: flex; flex-direction: column; gap: 6px; }
.sq-tpl { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 3px; padding: 9px 12px; cursor: pointer; font-weight: 600; }
.sq-tpl:hover { border-color: var(--green); }
.sq-tpl.on { background: var(--green-bg); border-color: var(--green); color: var(--green-text); }
.sq-rcp { display: flex; flex-direction: column; gap: 10px; }
.sq-rcp .check { align-items: flex-start; font-weight: 400; }
.sq-rcp .check input { margin-top: 3px; }
.sq-rcp small { font-size: 12px; }
#sqBody { font-size: 14px; line-height: 1.45; }
.tplcard { border: 1px solid var(--line); border-radius: 4px; padding: 14px 14px 10px; margin-bottom: 12px; background: #fafaf9; }
.phs { font-size: 13px; color: var(--muted); line-height: 1.9; }
.phs code { background: var(--paper); padding: 1px 6px; border-radius: 3px; color: var(--green-text); font-weight: 600; }
.rcptable td { padding: 6px; }
.rcptable input[type=text], .rcptable input[type=email] { padding: 7px 9px; }
@media (max-width: 800px) { .sq { grid-template-columns: 1fr; } }

/* ---------- Samples: order header (v2.5.0) ---------- */
.shead { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--green); padding: 18px 20px 6px; margin-bottom: 16px; }
.shead-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.shead h1 { font-size: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shead-meta { margin: 4px 0 0; font-size: 13px; }
.shead-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr .8fr; gap: 0 16px; }
.shead-grid.small { grid-template-columns: 1fr 1fr 1fr 1fr; border-top: 1px solid var(--line); padding-top: 12px; }
.shead .f > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.shead input.big { font-size: 16px; font-weight: 600; }
.pinfo2 { display: block; margin-top: 5px; font-size: 12.5px; color: var(--muted); min-height: 16px; }
.pinfo2 a { color: var(--green-text); }
.pcode { display: inline-block; font-size: 13px; font-weight: 700; background: var(--grey); color: #fff; padding: 3px 9px; border-radius: 3px; letter-spacing: .02em; vertical-align: middle; }
.pcode.sm { font-size: 11px; padding: 1px 6px; }
.copyfrom { background: var(--paper); border-radius: 4px; padding: 12px 14px; }
.copyfrom strong { display: block; margin-bottom: 8px; }
.ordiv { text-align: center; margin: 14px 0; position: relative; color: var(--muted); font-size: 13px; }
.ordiv::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.ordiv span { position: relative; background: #fff; padding: 0 10px; }
.stable .actcol1 { width: 92px; }
@media (max-width: 900px) { .shead-grid, .shead-grid.small { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .shead-grid, .shead-grid.small { grid-template-columns: 1fr; } }
.stable .trk { max-width: 130px; }
.stable td.actcol1 { white-space: nowrap; padding-left: 4px; }
.stable th, .stable td { padding-left: 10px; padding-right: 10px; }

.sent-ok { color: var(--green-text); font-weight: 600; white-space: nowrap; }
.sent-ok .ico { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- Samples: header v2 (v2.5.3) ---------- */
.shead2 { display: grid; grid-template-columns: 1fr 300px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--green); margin-bottom: 16px; }
.sh-left { padding: 16px 22px 6px; min-width: 0; }
.sh-right { background: #f6f7f5; border-left: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; border-radius: 0 var(--radius) var(--radius) 0; }
.sh-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 4px 0 8px; }
.sh-num { font-size: 15px; font-weight: 700; color: #fff; background: var(--grey); padding: 4px 10px; border-radius: 3px; white-space: nowrap; align-self: center; letter-spacing: .02em; }
input.sh-project { flex: 1 1 320px; min-width: 0; font-size: 28px; font-weight: 700; letter-spacing: -.015em; border: 1px solid transparent; padding: 4px 8px; margin-left: -8px; background: transparent; }
input.sh-project:hover:not(:disabled) { border-color: var(--line); }
input.sh-project:focus { background: #fff; }
input.sh-project:disabled { background: transparent; color: var(--text); }
.sh-sub { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 14px; }
.sh-code { display: inline-flex; align-items: center; gap: 8px; }
.sh-code span { font-size: 13px; font-weight: 600; color: var(--muted); }
.sh-code input { width: 170px; padding: 6px 9px; font-weight: 700; }
.sh-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 16px; }
.sh-grid.three { grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--line); padding-top: 12px; }
.shead2 .f > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.sh-status { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--muted); font-size: 13px; }
.sh-actions { display: flex; flex-direction: column; gap: 6px; }
.sh-actions .btn { justify-content: flex-start; width: 100%; }
.btn.danger-text { color: var(--red); }
.btn.danger-text:hover { background: var(--red-bg); }
.sh-prices { border-top: 1px solid var(--line); padding-top: 12px; }
.sh-prices .f { margin-bottom: 10px; }
.sh-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.sh-total span { font-weight: 600; color: var(--muted); font-size: 13px; }
.sh-total strong { font-size: 20px; }
.addrbox { margin-bottom: 16px; }
.addrbox > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 18px; background: var(--grey); color: #fff; }
.addrbox > summary::-webkit-details-marker { display: none; }
.addrbox > summary::after { content: '▾'; margin-left: auto; transition: transform .15s; }
.addrbox[open] > summary::after { transform: rotate(180deg); }
.addrbox > summary .ico { width: 18px; height: 18px; }
.addr-sum { font-size: 13px; color: #dfe1de; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 16px 18px 6px; }
.addr-grid h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-text); }
@media (max-width: 960px) { .shead2 { grid-template-columns: 1fr; } .sh-right { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); } .addr-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .sh-grid, .sh-grid.three { grid-template-columns: 1fr; } input.sh-project { font-size: 22px; } }
/* compact right column */
.shead2 { grid-template-columns: 1fr 340px; }
.sh-right { gap: 12px; padding: 14px 16px; }
.sh-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sh-actions .btn { padding: 7px 10px; font-size: 13.5px; }
.sh-actions .btn .ico { width: 15px; height: 15px; }
.sh-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; padding-top: 10px; }
.sh-prices .f { margin-bottom: 8px; }
.sh-prices input { padding: 7px 9px; }
.sh-total { grid-column: 1 / -1; }
.sh-left .sh-grid.three { margin-bottom: 0; }
@media (max-width: 960px) { .shead2 { grid-template-columns: 1fr; } }
.langsw { display: flex; gap: 4px; justify-content: flex-end; margin-bottom: 6px; }
.langsw button { border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 3px; cursor: pointer; color: var(--muted); }
.langsw button.on { background: var(--grey); border-color: var(--grey); color: #fff; }
.label-preview.item { justify-content: flex-start; padding: 12px 16px; font-size: 12px; }
.label-preview.item .meta { font-weight: 700; font-size: 11px; border-bottom: 1px solid #000; padding-bottom: 2px; margin-bottom: 4px; }
.label-preview.item .big { font-size: 17px; font-weight: 800; }
.label-preview.item .small { font-size: 11px; color: #555; }

/* ---------- Samples: files (v2.6.0) ---------- */
.filespanel.has-files { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.filespanel.has-files > header { background: var(--green-text); }
.filespanel.over { box-shadow: 0 0 0 3px var(--green), var(--shadow); }
.badge.filescount { background: #fff; color: var(--green-text); }
.flist { display: flex; flex-direction: column; }
.frow { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; }
.finfo { flex: 1; min-width: 0; }
.finfo a { color: var(--text); text-decoration: none; word-break: break-all; }
.finfo a:hover { color: var(--green-text); }
.finfo .sub { display: block; font-size: 12.5px; color: var(--muted); }
.fext { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 4px; font-size: 11px; font-weight: 800; color: #fff; background: var(--grey-light); letter-spacing: .02em; }
.fext-pdf { background: #c0392b; } .fext-dwg, .fext-dxf { background: #2f6aa3; } .fext-step, .fext-stp, .fext-igs, .fext-iges { background: #6c4ab6; }
.fext-doc, .fext-docx { background: #2b579a; } .fext-xls, .fext-xlsx, .fext-csv { background: #217346; } .fext-zip, .fext-rar, .fext-7z { background: #8a6d3b; }
.fthumb { width: 44px; height: 44px; flex: none; border-radius: 4px; overflow: hidden; background: var(--paper); }
.fthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fdrop { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 18px 16px; padding: 14px; border: 2px dashed var(--line); border-radius: 4px; color: var(--muted); cursor: pointer; font-size: 13.5px; flex-wrap: wrap; text-align: center; }
.fdrop:hover { border-color: var(--green); color: var(--green-text); background: var(--green-bg); }
.fdrop .progress { flex-basis: 100%; max-width: none; }
.fempty { padding: 14px 18px 4px !important; }
.clipbadge { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--green-text); background: var(--green-bg); padding: 1px 6px; border-radius: 10px; }
.clipbadge .ico { width: 12px; height: 12px; }

/* ---------- v2.7.0: QR, approval reminder ---------- */
.label-preview .qr { position: absolute; right: 16px; top: 34px; width: 60px; height: 60px; }
.label-preview .lp-logo { position: absolute; right: 16px; top: 12px; height: 13px; }
.label-preview.item:has(.lp-logo) > .meta { padding-right: 62px; font-size: 8.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label-preview.item { position: relative; }
.label-preview.item:has(.qr) > div:not(.meta):not(.lp-sender) { margin-right: 72px; }
.ovbadge { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 700; color: #fff; background: #c0392b; padding: 1px 7px; border-radius: 10px; white-space: nowrap; }
.panel.overdue { box-shadow: 0 0 0 2px #c0392b, var(--shadow); }
.panel.overdue > header { background: #c0392b; }
.panel.overdue .badge { background: #fff; color: #c0392b; }
.ovlist { list-style: none; margin: 0; padding: 0; }
.ovlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.ovlist li:last-child { border-bottom: 0; }
.ovlist a { color: var(--text); text-decoration: none; min-width: 0; }
.ovlist a:hover strong { color: var(--green-text); }
.ovlist .muted { display: block; font-size: 12.5px; }
.ovdays { flex: none; font-size: 12px; font-weight: 700; color: #c0392b; }
#items tr.flash td { background: #fff4c2; transition: background 1.5s; }

/* ---------- v2.8.0: item IDs, R mark, photos ---------- */
.itable td.iid, .iid { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
.phgroup .iid { display: inline-block; background: var(--grey); color: #fff; padding: 1px 7px; border-radius: 3px; font-size: 12.5px; margin-right: 6px; }
.fmtcell { min-width: 200px; }
.fmtcell select + input { margin-top: 6px; }
.iacts { display: flex; align-items: center; gap: 4px; }
.rbtn { width: 30px; height: 30px; border: 1.5px solid var(--line); background: #fff; border-radius: 4px; font-weight: 800; color: var(--muted); cursor: pointer; font-family: inherit; font-size: 14px; }
.rbtn:hover { border-color: var(--green); color: var(--green-text); }
.rbtn.on { border: 2px solid var(--green); color: var(--green-text); background: var(--green-bg); }
.rmark { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid var(--green); color: var(--green-text); font-weight: 800; font-size: 11px; border-radius: 3px; background: var(--green-bg); }
.ibadges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; align-items: center; }
.ibadges .clipbadge { margin-top: 0; }
.clipbadge.photo { background: #e8f0fb; color: #2f6aa3; }
.iconbtn2.cam.has { color: #2f6aa3; border-color: #2f6aa3; }
.iconbtn2 sup { font-size: 10px; font-weight: 800; margin-left: 1px; }
.btn.has-photos { border-color: #2f6aa3; color: #2f6aa3; }
.pcount { display: inline-block; background: #2f6aa3; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11.5px; margin-left: 4px; }
.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.phtile { margin: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.phtile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.phtile figcaption { display: flex; align-items: center; gap: 4px; padding: 6px 8px; font-size: 12px; }
.phtile figcaption .muted { flex: 1; }
.phtile .iconbtn2 { width: 26px; height: 26px; }
.phgroup { margin-bottom: 20px; }
.phgroup h4 { margin: 0 0 10px; font-size: 14px; }
#phdrop { margin: 16px 0 0; }
.fdrop.over { border-color: var(--green); background: var(--green-bg); }
.codetable td input[type=text] { min-width: 90px; }
.codetable td.mv { white-space: nowrap; }
.sechead { margin: 6px 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.itable td { vertical-align: middle; }
.phgroup h4 { text-transform: none; letter-spacing: 0; color: var(--text); }

/* ---------- Reports (v2.9.0) ---------- */
.rpcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 26px; }
.rpcard { display: flex; flex-direction: column; gap: 6px; background: #fff; border-top: 3px solid var(--green); box-shadow: var(--shadow); padding: 18px 20px; text-decoration: none; color: var(--text); border-radius: 2px; }
.rpcard:hover { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.rpcard .tico { width: 40px; height: 40px; display: grid; place-items: center; background: var(--green-bg); color: var(--green-text); border-radius: 4px; }
.rpcard h3 { margin: 6px 0 0; font-size: 17px; }
.rpcard p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; flex: 1; }
.rpcard .go { display: inline-flex; gap: 4px; align-items: center; color: var(--green-text); font-weight: 700; font-size: 13.5px; margin-top: 6px; }
.rpcard .go .ico { width: 15px; height: 15px; }
.rpcard.planned { border-top-color: var(--grey-light); opacity: .75; }
.rpcard.planned .tico { background: var(--paper); color: var(--muted); }
.rpcard.planned .badge { align-self: flex-start; margin-top: 6px; }
.rpfilters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.rpfilters .seg { display: inline-flex; background: #fff; box-shadow: var(--shadow); border-radius: 3px; overflow: hidden; }
.rpfilters .seg button { border: 0; background: none; padding: 9px 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-right: 1px solid var(--line); }
.rpfilters .seg button:last-child { border-right: 0; }
.rpfilters .seg button.on { background: var(--grey); color: #fff; }
.rpfilters .custom { display: inline-flex; gap: 6px; align-items: center; }
.rpfilters input[type=date], .rpfilters select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; font: inherit; font-size: 13.5px; background: #fff; }
.rpperiod { margin-left: auto; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: #fff; box-shadow: var(--shadow); padding: 14px 16px; border-left: 4px solid var(--green); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi span { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi strong { font-size: 26px; font-weight: 800; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi strong small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.kpi em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.kpi em.up { color: var(--green-text); } .kpi em.down { color: #c0392b; }
.kpi.alert { border-left-color: #c0392b; } .kpi.alert strong { color: #c0392b; }
.rpgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rpgrid .panel { margin: 0; }
.rpblock.wide { grid-column: 1 / -1; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #e3e4e1; stroke-width: 1; }
.chart .ax { font-size: 12px; fill: #8a8f93; }
.chart .val { font-size: 12px; fill: #1f2224; font-weight: 700; }
.chart .s0, .legend .s0 { fill: #5cc68c; background: #5cc68c; }
.chart .s1, .legend .s1 { fill: #b9bcbf; background: #b9bcbf; }
.legend { display: flex; gap: 16px; font-size: 13px; margin-bottom: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hb { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 74px; gap: 10px; align-items: center; font-size: 13.5px; }
.hb .hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb .ht { background: var(--paper); height: 14px; border-radius: 2px; overflow: hidden; }
.hb .ht i { display: block; height: 100%; background: var(--green); }
.hb .hv { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hb .hv small { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 11.5px; }
.rptable td, .rptable th { white-space: nowrap; }
.rptable td:nth-child(2) { white-space: normal; }
.printonly { display: none; }
@media (max-width: 860px) { .rpgrid { grid-template-columns: 1fr; } .rpperiod { margin-left: 0; } }
@media print {
  .topbar, .noprint, .footer, #toast { display: none !important; }
  .printonly { display: block; margin-bottom: 4mm; font-size: 9pt; }
  body { background: #fff; }
  .panel, .kpi { box-shadow: none !important; border: 0.3mm solid #ccc; }
  .rpgrid { gap: 4mm; } .rpblock { break-inside: avoid; }
  .tablewrap { overflow: visible; }
}
.rpfilters select { width: auto; min-width: 200px; }
.rptable th.num, .rptable td.num { text-align: right; }

/* ---------- v2.9.2: address toggle, contact card, items header, production note, QC ---------- */
.addrbox > summary::after { content: none; }
.addr-toggle { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); border-radius: 16px; padding: 4px 8px 4px 12px; font-size: 13px; font-weight: 700; }
.addr-toggle .ico { width: 18px !important; height: 18px !important; stroke-width: 2.6; transition: transform .15s; }
.addrbox[open] .addr-toggle .ico { transform: rotate(180deg); }
.addr-toggle .c, .addrbox[open] .addr-toggle .o { display: none; }
.addrbox[open] .addr-toggle .c { display: inline; }
.addrbox > summary:hover .addr-toggle { background: var(--green); border-color: var(--green); }
.pcard { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; padding: 7px 10px; background: var(--paper); border-left: 3px solid var(--green); border-radius: 2px; font-size: 13px; }
.pcard .pc-pos { color: var(--muted); width: 100%; font-size: 12.5px; }
.pcard .pc-item { display: inline-flex; align-items: center; gap: 5px; color: var(--text); text-decoration: none; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 2px 9px 2px 7px; }
.pcard .pc-item:hover { border-color: var(--green); color: var(--green-text); }
.pcard .pc-item .ico { width: 14px; height: 14px; color: var(--green-text); }
.pinfo2 { min-height: 0; }
.itable thead th { text-align: center; }
.pnote { box-shadow: 0 0 0 2px #e0a526, var(--shadow); }
.pnote > header { background: #b7791f; }
.pnote > header small { font-weight: 400; opacity: .9; font-size: 13px; }
.pnote textarea { background: #fffaf0; border-color: #ecd3a0; font-size: 14.5px; }
.pnote.filled textarea { font-weight: 600; }
.qcpanel { margin-top: 20px; box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.qcpanel > header { background: var(--green-text); }
.qclist { margin: 0; padding-left: 22px; line-height: 1.6; }
.qclist li:first-child { font-weight: 700; }
.qcsign { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; }
.qcsign .ico { width: 16px; height: 16px; }

/* ---------- v3.0: data, backups, update ---------- */
.progress.indet { max-width: none; } .progress.indet > div { width: 35%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.updbox { margin-top: 14px; padding: 14px 16px; border-radius: 3px; border: 1px solid var(--line); background: var(--paper); }
.updbox.ok { border-color: var(--green); background: var(--green-bg); }
.updbox.warn { border-color: #e0a526; background: #fff8e8; }
.updbox p { margin: 0 0 6px; }
.updbox pre { white-space: pre-wrap; font-family: inherit; font-size: 13px; max-height: 260px; overflow: auto; background: #fff; padding: 10px; border-radius: 3px; margin: 8px 0 0; }
.updsteps { margin: 18px 0 0; padding-left: 20px; line-height: 1.6; }

/* ---------- v3.0: login page with reference projects ---------- */
.login .side.refs { padding: 40px 48px; justify-content: space-between; }
.login .side .slides { position: absolute; inset: 0; }
.login .side .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 8s linear; }
.login .side .slides img.on { opacity: 1; transform: scale(1); }
.login .side .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,43,46,.55) 0%, rgba(40,43,46,.05) 30%, rgba(40,43,46,.15) 50%, rgba(40,43,46,.88) 100%); }
.login .side.refs > * { position: relative; }
.login .side.refs .slides, .login .side.refs .shade { position: absolute; }
.login .side.refs h2 { font-size: 28px; margin: 0 0 18px; max-width: 520px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.refcard { display: flex; flex-direction: column; gap: 3px; border-left: 4px solid var(--green); padding: 4px 0 4px 16px; min-height: 140px; opacity: 0; transform: translateY(8px); }
.refcard.in { opacity: 1; transform: none; transition: opacity .7s ease .3s, transform .7s ease .3s; }
.refcard .kicker { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #cfe9da; }
.refcard strong { font-size: 24px; line-height: 1.15; }
.refcard .where { color: #e3e5e2; font-size: 14px; }
.refcard .area { font-size: 34px; font-weight: 300; margin-top: 6px; letter-spacing: -.01em; }
.refcard .area small { font-size: 13px; font-weight: 600; color: #cfe9da; letter-spacing: 0; }
.refcard .spec { font-size: 13.5px; color: #e3e5e2; }
.login .dots { display: flex; gap: 8px; margin: 18px 0 14px; }
.login .dots button { width: 26px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.4); cursor: pointer; }
.login .dots button.on { background: var(--green); }
@media (max-width: 860px) { .login .side.refs { min-height: 300px; padding: 24px; } .login .side.refs h2, .login .side.refs small { display: none; } .refcard { min-height: 0; } .refcard .area { font-size: 26px; } }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr; } }
.tabs { flex-wrap: wrap; overflow-x: visible; }
.tabs a { padding: 10px 12px; }

/* ---------- v3.1: ready / sent confirmations ---------- */
.modal h4.mh { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--green-text); }
.modal h4.mh:first-child { margin-top: 0; }
.check.big { align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; margin-bottom: 6px; font-weight: 600; }
.check.big:has(input:checked) { border-color: var(--green); background: var(--green-bg); }
.check.big input { margin-top: 3px; }
.check.big em { display: block; font-style: normal; font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.check.big em.warn { color: #b7791f; } .check.big em.ok { color: var(--green-text); }
.pkgtable td input, .pkgtable td select { width: 100%; }
.sclist { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.sclist li { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 3px; font-size: 14px; }
.sclist li .ico { width: 16px; height: 16px; flex: none; }
.sclist li.ok { background: var(--green-bg); color: var(--green-text); }
.sclist li.warn { background: #fff8e8; color: #8a5a12; }
.wfconf { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -8px 0 16px; font-size: 13px; color: var(--green-text); }
.wfconf span { display: inline-flex; align-items: center; gap: 5px; }
.wfconf .ico { width: 15px; height: 15px; }
.check.big { display: flex; width: 100%; gap: 10px; }
.login .side.refs small { display: block; margin-top: 18px; }

/* ---------- v3.2: communication log, missing checks ---------- */
.commlog { margin-top: 20px; }
.logtable td { vertical-align: top; }
.logtable .chip { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; font-size: 12.5px; margin: 0 2px 3px 0; }
.logtable tr.lg-sample_ready_confirmed td:first-child, .logtable tr.lg-sample_sent_confirmed td:first-child { border-left: 3px solid var(--green); }
.wfconf .wfmiss { color: #b7791f; font-weight: 700; }
.restricted-note { display: flex; gap: 8px; align-items: center; }
.notice.ok { background: var(--green-bg); color: var(--green-text); border-color: var(--green); display: flex; gap: 8px; align-items: center; }
.notice.ok .ico { width: 16px; height: 16px; }

/* ---------- v3.3: user manual ---------- */
.manlink { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: var(--text); border-left: 4px solid var(--green); }
.manlink:hover { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.manlink .mico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--green-bg); color: var(--green-text); border-radius: 4px; }
.manlink .mico .ico { width: 24px; height: 24px; }
.manlink strong { display: block; font-size: 16px; } .manlink small { color: var(--muted); font-size: 13px; }
.manlink > .ico:last-child { margin-left: auto; color: var(--green-text); }
.helpbtn { color: #fff; display: grid; place-items: center; }
.manual { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.mtoc { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 2px; background: #fff; box-shadow: var(--shadow); padding: 14px 10px; max-height: calc(100vh - 90px); overflow: auto; }
.mtoc strong { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 8px 8px; }
.mtoc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 3px; text-decoration: none; color: var(--text); font-size: 13.5px; line-height: 1.3; }
.mtoc a span { flex: none; width: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mtoc a:hover { background: var(--paper); } .mtoc a.on { background: var(--green-bg); color: var(--green-text); font-weight: 700; }
.mbody { background: #fff; box-shadow: var(--shadow); padding: 8px 36px 30px; min-width: 0; }
.msec { padding-top: 22px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.msec:last-of-type { border-bottom: 0; }
.msec h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin: 6px 0 12px; }
.msec h2 span { display: grid; place-items: center; width: 32px; height: 32px; background: var(--grey); color: #fff; border-radius: 3px; font-size: 15px; flex: none; }
.msec p, .msec li { line-height: 1.6; font-size: 15px; }
.msec ol.steps { counter-reset: st; list-style: none; padding: 0; }
.msec ol.steps li { counter-increment: st; position: relative; padding: 4px 0 4px 38px; }
.msec ol.steps li::before { content: counter(st); position: absolute; left: 0; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.mfig { margin: 16px 0 18px; }
.mfig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.mfig figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; font-style: italic; }
.mtip { display: flex; gap: 10px; align-items: flex-start; background: var(--green-bg); border-left: 4px solid var(--green); padding: 10px 14px; margin: 12px 0; font-size: 14.5px; line-height: 1.5; }
.mtip .ico { flex: none; width: 18px; height: 18px; color: var(--green-text); margin-top: 2px; }
@media (max-width: 900px) { .manual { grid-template-columns: 1fr; } .mtoc { position: static; max-height: none; } .mbody { padding: 4px 16px 20px; } }
@media print { .manual { display: block; } .mbody { box-shadow: none; padding: 0; } .msec { break-inside: auto; } .mfig { break-inside: avoid; } .mfig img { max-height: 120mm; width: auto; max-width: 100%; } }

/* ---------- v3.4: Poly, tips, AI ---------- */
.polybtn { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border: 0; border-radius: 30px; background: var(--grey); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 22px rgba(0,0,0,.25); }
.polybtn img { width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.polybtn:hover { background: var(--green-text); }
.polypanel { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 400px; max-width: calc(100vw - 24px); height: 600px; max-height: calc(100vh - 90px); background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.28); border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; }
.polypanel header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--grey); color: #fff; }
.polypanel header img { width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.polypanel header div { flex: 1; } .polypanel header small { display: block; font-size: 12px; color: #cfe9da; }
.polypanel header .iconbtn { font-size: 20px; line-height: 1; }
.pmsgs { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.pm { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.pm p { margin: 0 0 6px; } .pm p:last-child { margin: 0; } .pm ul { margin: 4px 0; padding-left: 18px; }
.pm.bot { background: #fff; align-self: flex-start; border-bottom-left-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.pm.me { background: var(--green); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.pm a { color: var(--green-text); font-weight: 600; }
.pm.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: #b9bcbf; animation: blink 1s infinite; }
.pm.typing span:nth-child(2) { animation-delay: .2s; } .pm.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.pex { display: flex; flex-wrap: wrap; gap: 6px; }
.pex button { border: 1px solid var(--green); background: #fff; color: var(--green-text); border-radius: 14px; padding: 5px 10px; font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }
.pex button:hover { background: var(--green-bg); }
#polyF { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
#polyF input { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 18px; font: inherit; }
#polyF .btn { border-radius: 18px; }
.pnote { margin: 0; padding: 0 12px 8px; font-size: 11px; color: var(--muted); }
.polycard { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-left: 4px solid var(--green); }
.polycard > img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.polycard > div { flex: 1; min-width: 0; } .polycard strong { display: block; font-size: 16px; } .polycard small { color: var(--muted); font-size: 13px; display: block; margin-bottom: 8px; }
.polycard form { display: flex; gap: 6px; } .polycard input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 18px; font: inherit; font-size: 13.5px; }
.tipcard header .aitag { margin-left: auto; font-size: 11px; background: #fff; color: var(--green-text); padding: 1px 7px; border-radius: 8px; }
.tipcard .tipimg img { display: block; width: 100%; max-height: 180px; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.tipcard .tipsec { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-text); font-weight: 700; margin-bottom: 4px; }
.tipcard p { margin: 0 0 8px; line-height: 1.5; font-size: 14px; }
.tipmore { display: inline-flex; gap: 4px; align-items: center; font-weight: 700; color: var(--green-text); text-decoration: none; font-size: 13.5px; }
.tipmore .ico { width: 14px; height: 14px; }
.aihead { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; } .aihead img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.ok-text { color: var(--green-text); font-weight: 600; }
.recolist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.recolist li { border-left: 4px solid var(--line); padding: 8px 12px; background: var(--paper); border-radius: 2px; }
.recolist li.pr-high { border-color: #c0392b; } .recolist li.pr-medium { border-color: #e0a526; } .recolist li.pr-low { border-color: var(--green); }
.recolist .prio { float: right; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.recolist p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; } .recolist .how { color: var(--green-text); display: flex; gap: 6px; } .recolist .how .ico { width: 14px; height: 14px; flex: none; margin-top: 3px; }
@media print { .polybtn, .polypanel { display: none !important; } }
@media (max-width: 700px) { .polypanel { right: 6px; bottom: 6px; height: calc(100vh - 70px); } .polybtn span { display: none; } .polybtn { padding: 6px; } }
#aiForm .check:not(.big) { display: flex; margin: 6px 0; }

/* ---------- v3.4.2: vertical menu in Settings ---------- */
.setlayout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.setlayout > #tab { min-width: 0; }
.vtabs { position: sticky; top: 72px; display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow); padding: 8px 0; }
.vtabs a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; border-left: 4px solid transparent; }
.vtabs a .ico { width: 18px; height: 18px; flex: none; }
.vtabs a:hover { color: var(--text); background: var(--paper); }
.vtabs a.active { color: var(--text); border-left-color: var(--green); background: var(--green-bg); }
.vtabs a.active .ico { color: var(--green-text); }
@media (max-width: 900px) { .setlayout { grid-template-columns: 1fr; } .vtabs { position: static; flex-direction: row; flex-wrap: wrap; padding: 4px; }
  .vtabs a { border-left: 0; border-bottom: 3px solid transparent; padding: 8px 10px; } .vtabs a.active { border-bottom-color: var(--green); } }

/* v3.4.3: "updated" entries in the communication log */
.logtable tr.lg-sample_update_confirmed td:first-child, .logtable tr.lg-sample_update_notified td:first-child { border-left: 3px solid #d69e2e; }

/* ---------- v3.5.0 ---------- */
/* new sample orders on the dashboard */
.neworders { box-shadow: 0 0 0 2px #e67e22, var(--shadow); margin-bottom: 20px; }
.neworders > header { background: #e67e22; }
.neworders.late { box-shadow: 0 0 0 2px #c0392b, var(--shadow); }
.neworders.late > header { background: #c0392b; }
.neworders > header .badge { background: #fff; color: #b9601a; }
.neworders.late > header .badge { color: #c0392b; }
.panel.neworders > header .actions .btn { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.5); }
.neworders .pulse { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; animation: nopulse 1.4s ease-in-out infinite; }
@keyframes nopulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .neworders .pulse { animation: none; } }
.nohint { margin: 0; padding: 10px 18px; font-size: 13.5px; color: #8a4b12; background: #fdf3e7; border-bottom: 1px solid var(--line); }
.neworders.late .nohint { color: #8e2a1e; background: #fbeceb; }
.nolist { list-style: none; margin: 0; padding: 0; }
.nolist li { border-bottom: 1px solid var(--line); }
.nolist li:last-child { border-bottom: 0; }
.nolist a { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 10px 18px; color: var(--text); text-decoration: none; }
.nolist a:hover { background: var(--paper); }
.nolist .nonum { font-weight: 700; font-size: 13px; background: var(--grey); color: #fff; padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.nolist li.late .nonum { background: #c0392b; }
.nolist .nomain { min-width: 0; }
.nolist .nomain strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nolist .nomain small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nolist .noage { font-size: 13px; color: var(--muted); white-space: nowrap; }
.nolist .noage .ovbadge { margin: 0; }
.nolist .nogo { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; color: var(--green-text); white-space: nowrap; }
.nolist .nogo .ico { width: 14px; height: 14px; }
.nomore { padding: 8px 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 700px) { .nolist a { grid-template-columns: auto 1fr; } .nolist .noage, .nolist .nogo { grid-column: 2; } }
.tile { position: relative; }
.tile .tnew { position: absolute; top: 14px; right: 14px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: #e67e22; color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
/* samples list: column with recipe / photos / files */
.stable th.attcol, .stable td.attcol { white-space: nowrap; }
.stable td.attcol .ibadges { flex-wrap: nowrap; margin-top: 0; }
/* header buttons of an order: long labels (DE) wrap inside the button instead of overflowing */
.shead2 { grid-template-columns: minmax(0, 1fr) 360px; }
.sh-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-actions .btn { min-width: 0; white-space: normal; text-align: left; line-height: 1.2; min-height: 38px; height: auto; overflow-wrap: anywhere; hyphens: auto; }
.sh-actions .btn .ico { flex: none; }
.sh-actions .btn .pcount { margin-left: auto; }
@media (max-width: 960px) { .shead2 { grid-template-columns: 1fr; } }
.stable thead th { white-space: normal; vertical-align: bottom; }
.stable td.attcol .clipbadge { padding: 1px 5px; }
.stable th, .stable td { padding-left: 8px; padding-right: 8px; }
.stable .trk { max-width: 112px; }
.stable td:nth-child(3) { min-width: 140px; }
.stable td .ovbadge { display: table; margin: 4px 0 0; }
.stable td:first-child { width: 1%; }
.stable td.attcol .ibadges { flex-wrap: wrap; max-width: 92px; }
.stable td.attcol { white-space: normal; width: 1%; }
.stable td .badge { white-space: normal; text-align: center; }
.stable td .sst { white-space: normal; max-width: 110px; text-align: center; line-height: 1.25; }
.stable th, .stable td { padding-left: 7px; padding-right: 7px; }
.stable td:first-child .cname { font-size: 14.5px; }
.stable .actcol1 { width: 80px; }
.stable td:nth-child(2), .stable td:nth-child(3) { overflow-wrap: anywhere; }
.stable td.attcol .ibadges { flex-wrap: nowrap; max-width: none; }

/* v3.5.1: main menu – Dashboard as the home page, then the work modules, then (separated) Reports and Settings */
.nav a { padding: 0 12px; }
.nav .navsep { flex: none; width: 1px; margin: 14px 10px; background: rgba(255,255,255,.28); }
.nav a.navhome { font-weight: 700; }
@media (max-width: 1500px) { .userbtn .uname { display: none; } }
@media (min-width: 1181px) and (max-width: 1320px) { .nav a { padding: 0 8px; gap: 5px; font-size: 14px; } .nav a .ico { width: 15px; height: 15px; } .nav .navsep { margin: 14px 5px; } .topbar .brand { padding-right: 10px; } .topbar .helpbtn { display: none; } }
@media (max-width: 1180px) { .nav a { padding: 14px 20px; } .nav .navsep { width: auto; height: 1px; margin: 4px 16px; } }

/* v3.5.2: switch Axel / tip of the day off directly from the dashboard */
.polycard { position: relative; }
.cardoff { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 4px; }
.cardoff:hover, .tipoff:hover { text-decoration: underline; }
.tipcard header { display: flex; align-items: center; }
.tipoff { margin-left: 10px; border: 0; background: none; color: rgba(255,255,255,.8); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 4px; }
.tipcard header .aitag + .tipoff { margin-left: 8px; }
.tipcard header .tipoff:first-of-type { margin-left: auto; }
.tipcard header .aitag ~ .tipoff { margin-left: 8px; }
.flashbox { animation: flashbox 2s ease-out; }
@keyframes flashbox { 0%, 40% { box-shadow: 0 0 0 3px var(--green), var(--shadow); } 100% { box-shadow: var(--shadow); } }

/* v3.5.3: personal dashboard layout */
.tiles.compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tiles.compact .tile { min-height: 0; flex-direction: row; align-items: center; padding: 14px 16px; gap: 12px; }
.tiles.compact .tile p, .tiles.compact .tile .foot { display: none; }
.tiles.compact .tile h3 { font-size: 16px; }
.tiles.compact .tile .tico { width: 36px; height: 36px; flex: none; }
.tiles.compact .tile .tnew { top: 50%; transform: translateY(-50%); right: 12px; }
.dashgrid.notiles { grid-template-columns: 1fr; }
.dashgrid.notiles .dashside { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0 20px; align-items: start; }
.pdtiles .check.big { width: 100%; }
.dashgrid.notiles .dashside > .hidden, .dashgrid.notiles .dashside > #tipBox:empty { display: none; }

/* ---------- v3.6.0: two-factor authentication ---------- */
.login .check.remember { font-weight: 500; margin: 2px 0 14px; font-size: 14px; }
.tfaqr { display: flex; gap: 16px; align-items: center; background: var(--paper); padding: 12px; border-radius: var(--radius); margin: 4px 0 14px; }
.tfaqr img { width: 150px; height: 150px; background: #fff; padding: 6px; flex: none; }
.tfaqr > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tfaqr code { font-size: 13px; font-weight: 700; word-break: break-all; background: #fff; padding: 6px 8px; border-radius: 3px; }
input.tfacode { font-size: 22px; letter-spacing: .25em; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.tfarec { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 14px; }
.tfarec code { background: var(--paper); padding: 8px; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .06em; border-radius: 3px; }
.tfastate { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius); background: var(--amber-bg); color: var(--amber); }
.tfastate.on { background: var(--green-bg); color: var(--green-text); }
.tfastate .ico { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.tfastate strong { display: block; } .tfastate small { display: block; color: var(--text); opacity: .8; margin-top: 2px; }
.tfaacts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.devlist { list-style: none; margin: 0 0 10px; padding: 0; }
.devlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.devlist small { display: block; font-size: 12.5px; }
.myip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
#secForm textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; }
.badge.tfa { background: #e1ecf7; color: #2f6aa3; display: inline-flex; align-items: center; gap: 3px; }
.badge.tfa .ico { width: 12px; height: 12px; }
.mbody h3.mh3 { font-size: 17px; margin: 22px 0 8px; }

/* ---------- v3.6.1: guide for IT in Settings ---------- */
.mddoc { max-width: 900px; font-size: 14.5px; line-height: 1.55; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 4px; }
.mddoc h2 { font-size: 24px; margin: 18px 0 10px; } .mddoc h3 { font-size: 18px; margin: 26px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--green); }
.mddoc h4 { font-size: 15.5px; margin: 18px 0 6px; }
.mddoc p { margin: 8px 0; } .mddoc ul, .mddoc ol { margin: 8px 0; padding-left: 22px; } .mddoc li { margin: 3px 0; }
.mddoc code { background: var(--paper); padding: 1px 5px; border-radius: 3px; font-size: 13px; font-family: ui-monospace, Consolas, monospace; }
.mddoc blockquote { margin: 10px 0; padding: 8px 14px; border-left: 4px solid var(--amber); background: var(--amber-bg); }
.mddoc .mdtable td, .mddoc .mdtable th { vertical-align: top; font-size: 13.5px; }
.mddoc li.chk { list-style: none; margin-left: -22px; display: flex; gap: 8px; align-items: flex-start; }
.mddoc li.chk .box { width: 16px; height: 16px; border: 1.5px solid var(--grey-light); border-radius: 3px; flex: none; margin-top: 3px; display: grid; place-items: center; font-size: 11px; }
.mdcode { position: relative; margin: 10px 0; }
.mdcode pre { background: #2b2f31; color: #e8e9e7; padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; font-size: 12.8px; line-height: 1.5; margin: 0; }
.mdcode pre code { background: none; padding: 0; color: inherit; }
.mdcode .mdcopy { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.itgfiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 6px 16px; }
.itgfiles li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.itgfiles a { display: inline-flex; align-items: center; gap: 6px; color: var(--green-text); text-decoration: none; }
.itgfiles a .ico { width: 15px; height: 15px; }
@media print {
  body.print-itg .topbar, body.print-itg .vtabs, body.print-itg .pagehead, body.print-itg .footer, body.print-itg .panel > header, body.print-itg .itgfiles, body.print-itg .mh, body.print-itg .mdcopy, body.print-itg #polyBtn { display: none !important; }
  body.print-itg .setlayout { display: block; } body.print-itg .panel { box-shadow: none; }
  body.print-itg .mdcode pre { background: #f3f3f3; color: #000; white-space: pre-wrap; }
}
.mdcode pre { padding-right: 120px; }

/* v3.6.2: sales agency of a customer */
.agbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: #2f6aa3; background: #e1ecf7; padding: 1px 8px 1px 6px; border-radius: 10px; margin: 0 6px 3px 0; }
.agbadge .ico { width: 13px; height: 13px; }

/* v3.6.3: tags as coloured labels */
.tagchip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 10px; margin: 0 4px 3px 0; line-height: 1.5; white-space: nowrap; cursor: default; }
[data-tag].tagchip, [data-addtag].tagchip { cursor: pointer; }
[data-tag].tagchip:hover, [data-addtag].tagchip:hover { filter: brightness(.94); text-decoration: underline; }
.tagrow { display: block; margin-top: 4px; }
.tagprev { display: block; margin-top: 6px; min-height: 0; }
.tagsugg { display: block; margin-top: 4px; }
.tagsugg small { margin-right: 4px; }

/* ---------- v3.7.0: price offers (Cenové nabídky) ---------- */
.qst { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--paper); color: var(--grey); }
.qst-draft { background: #eceee6; color: #4f5a33; } .qst-sent { background: #e1ecf7; color: #2f6aa3; } .qst-negotiation { background: var(--amber-bg); color: var(--amber); }
.qst-won { background: var(--green-bg); color: var(--green-text); } .qst-lost { background: #f8e1dd; color: #a8372a; } .qst-cancelled { background: #e8e9eb; color: #6b7076; }
.vbadge2 { display: inline-block; font-size: 11.5px; font-weight: 800; background: var(--grey); color: #fff; padding: 1px 7px; border-radius: 10px; }
.vbadge2.big { font-size: 14px; padding: 4px 10px; border-radius: 3px; background: var(--green); align-self: center; }
.qtable td .sub .vbadge2 { margin-right: 4px; }
.qhead .sh-grid.qcontact { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-top: 12px; }
.qfields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.qfields .f { margin-bottom: 8px; } .qfields input, .qfields select { padding: 7px 9px; }
.qstsel { width: auto; padding: 4px 8px; font-weight: 700; }
.qsum { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13.5px; }
.qsum > div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 3px 0; }
.qsum > div span:nth-child(n+2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qsum .qsumhead { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.qsum .tot { border-top: 2px solid var(--grey); margin-top: 4px; padding-top: 6px; font-weight: 800; font-size: 15px; }
.qsum .m2 { color: var(--muted); }
.qsec { margin-bottom: 16px; }
.qrows input[type=text], .qrows input[type=number] { padding: 6px 8px; font-size: 14px; width: 100%; min-width: 70px; }
.qrows td.num input { text-align: right; max-width: 120px; }
.qrows td.unit { color: var(--muted); font-size: 13px; padding-left: 0; white-space: nowrap; }
.qrows td.rt { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 110px; }
.qrows tr.off td { opacity: .55; } .qrows tr.off td:first-child { opacity: 1; }
.qrows td.qlabel { font-weight: 600; white-space: nowrap; }
.qrows tr.elrow > td { background: var(--paper); padding: 10px 12px; }
.qsecsum { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.eltable { overflow-x: auto; }
.eltable table { min-width: 1500px; background: #fff; }
.eltable th { font-size: 11.5px; white-space: nowrap; }
.eltable input[type=text], .eltable input[type=number] { padding: 5px 6px; font-size: 13px; width: 100%; min-width: 64px; }
.eltable input[readonly] { background: var(--paper); }
.elfoot { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.elfoot .muted { margin-left: auto; font-size: 13px; }
@media (max-width: 960px) { .qhead .sh-grid.qcontact { grid-template-columns: 1fr; } }

/* old overview colours: made by a representative (green) / representative's calculation edited by Polycon (grey) */
.qtable tr.qmark-agent td:first-child { box-shadow: inset 4px 0 0 var(--green); }
.qtable tr.qmark-agent_edited td:first-child { box-shadow: inset 4px 0 0 #b9bcbf; }

/* ---------- v3.8.0: quotation header like the sample orders, QR, summary with shares ---------- */
.qhead.shead2 { grid-template-columns: minmax(0, 1fr) 380px; }
.qhead .sh-grid.qfive { grid-template-columns: 1.1fr .7fr 1.3fr .7fr .8fr; border-top: 1px solid var(--line); padding-top: 12px; }
.curchip { display: inline-block; font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--grey); color: #fff; letter-spacing: .04em; }
.qmarkchip { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.qmarkchip.qm-agent { background: var(--green-bg); color: var(--green-text); } .qmarkchip.qm-agent_edited { background: #e8e9eb; color: #555; }
.qtop { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: start; }
.qqr { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; text-decoration: none; color: var(--muted); font-size: 10.5px; font-weight: 700; text-align: center; }
.qqr img { width: 86px; height: 86px; display: block; }
.qtop .qacts { grid-template-columns: 1fr; }
.qsum { margin-top: 8px; border-top: 0; padding-top: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.qsum h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-text); }
.qsumt { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.qsumt th { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 0 0 4px; text-align: left; }
.qsumt th.num, .qsumt td.num { text-align: right; white-space: nowrap; }
.qsumt td { padding: 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.qsumt td.pc { color: var(--muted); font-size: 12.5px; padding-left: 10px; width: 54px; }
.qsumt tbody tr.zero td { color: var(--muted); }
.qbar { display: block; height: 4px; background: var(--paper); border-radius: 2px; margin-top: 4px; overflow: hidden; max-width: 150px; }
.qbar i { display: block; height: 100%; background: var(--green); border-radius: 2px; }
.qsumt tfoot tr.sub td { color: var(--muted); font-size: 13px; }
.qsumt tfoot tr.tot td { border-top: 2px solid var(--grey); border-bottom: 0; font-weight: 800; font-size: 16px; padding-top: 8px; }
.qsumt tfoot tr.m2 td { border-bottom: 0; color: var(--muted); font-size: 12.5px; padding: 2px 0; }
.curpick { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 1100px) { .qhead .sh-grid.qfive { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 960px) { .qhead.shead2 { grid-template-columns: 1fr; } }

/* v3.9.0: quotation header (bigger ID, version under it), attachments, order confirmations */
.qhead .qtitle { align-items: center; gap: 18px; }
.qid { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.qhead .sh-num.qnum { font-size: 19px; padding: 6px 12px; letter-spacing: .01em; }
.qver { font-size: 12.5px; color: var(--muted); padding-left: 2px; }
.qver strong { color: var(--text); }
.qhead .sh-grid.qfive.qsix { grid-template-columns: 1.1fr .6fr 1.3fr .6fr .7fr .9fr; }
@media (max-width: 1100px) { .qhead .sh-grid.qfive.qsix { grid-template-columns: 1fr 1fr 1fr; } }
.qhead .qacts #qOc { margin-top: 6px; }
.grid.cols-2.qextra { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .grid.cols-2.qextra { grid-template-columns: 1fr; } }
.attlist { list-style: none; margin: 0; padding: 0; counter-reset: att; }
.attlist li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); counter-increment: att; }
.attlist li:first-child { border-top: 0; }
.attlist li::before { content: counter(att) "."; color: var(--muted); font-size: 12px; width: 16px; text-align: right; }
.attico { flex: 0 0 auto; font-size: 10px; font-weight: 800; letter-spacing: .03em; background: var(--grey); color: #fff; border-radius: 3px; padding: 3px 5px; min-width: 34px; text-align: center; }
.attico.doc { background: var(--green-dark); }
.attmain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.attmain a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attbtns { display: flex; gap: 2px; flex: 0 0 auto; }
.attbtns .iconbtn2:disabled { opacity: .3; cursor: default; }
h4.attgrp { margin: 12px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--green-text); }
.oclist { list-style: none; margin: 0; padding: 0; }
.oclist li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.oclist li:first-child { border-top: 0; }
.ocmain, .ocpo { display: flex; flex-direction: column; min-width: 0; }
.ocmain strong { font-size: 15px; }
.octot { font-weight: 700; white-space: nowrap; text-align: right; }
.ocbtns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.ocbtns .iconbtn2 { height: 30px; width: 32px; }
.grid.cols-2.tight { grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* v3.10.0: dialog with unsaved text – short shake instead of closing */
@keyframes nudge { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.modal.nudge { animation: nudge .35s ease; }

/* v3.10.2: price summary as a strip in the left part of the quotation header */
.qsumh { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; font-variant-numeric: tabular-nums; }
.qsh-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.qsh-head h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-text); }
.qsh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qsc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qsc .l { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qsc strong { font-size: 15px; white-space: nowrap; }
.qsc .qbar { display: block; height: 4px; background: #e6e7e4; border-radius: 2px; overflow: hidden; margin-top: 2px; }
.qsc .qbar i { display: block; height: 100%; background: var(--green); }
.qsc .pc { font-size: 12px; color: var(--muted); }
.qsc.zero { opacity: .55; }
.qsh-tot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 8px; background: var(--paper); border: 1px solid var(--grey-light); border-radius: var(--radius); padding: 9px 12px; }
.qsh-tot .l { font-weight: 700; }
.qsh-tot strong { font-size: 20px; margin-right: auto; }
.qsh-tot .m2 { font-size: 12.5px; color: var(--muted); }
.qsh-tot .m2 b { color: var(--text); font-weight: 600; }
.qsh-comm { margin-top: 6px; }
@media (max-width: 700px) { .qsh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v3.11.0: header without QR, buttons in two columns, summary on the right, project discount */
.qhead .qtop { display: block; }
.qhead .qtop .qacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qhead .qtop .qacts #qOc { grid-column: 1 / -1; margin-top: 0; }
.qhead .qsum { margin-top: 12px; }
.qsum h4 .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.qsumt tr.subtot td { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 600; }
.qsumt tr.adj td { font-weight: 800; padding: 6px 6px; }
.qsumt tr.adj.disc td { background: var(--green-bg); color: var(--green-text); }
.qsumt tr.adj.surch td { background: var(--amber-bg); color: var(--amber); }
.qsumt tr.adj td:first-child { border-radius: 3px 0 0 3px; } .qsumt tr.adj td:last-child { border-radius: 0 3px 3px 0; }
.qsumt tr.perm2 td { background: var(--paper); font-weight: 700; font-size: 14px; padding: 7px 6px; color: var(--text); }
.qsumt tr.perm2 td:first-child { border-radius: 3px 0 0 3px; } .qsumt tr.perm2 td:last-child { border-radius: 0 3px 3px 0; }
.qhead .sh-grid.qadj { grid-template-columns: 1.7fr .8fr .6fr 1.3fr; border-top: 1px solid var(--line); padding-top: 12px; align-items: end; }
.qadj .qadj-on { align-self: center; }
@media (max-width: 1100px) { .qhead .sh-grid.qadj { grid-template-columns: 1fr 1fr; } }

/* v3.12.0: tidier quotation header – one 6-column grid, project label, status by the version, attachments in the header */
.qtitle2 { display: flex; align-items: flex-start; gap: 18px; margin: 4px 0 6px; }
.qtitle2 .qid { flex: 0 0 auto; }
.qver { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qver select.qstsel { width: auto; height: 28px; padding: 2px 26px 2px 8px; font-size: 12.5px; font-weight: 700; }
.qproj { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qlbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--green-text); padding-left: 1px; }
.qproj input.sh-project { margin-left: -8px; flex: 0 0 auto; width: 100%; }
.qg6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 14px; align-items: start; }
.qg6 .f { margin-bottom: 12px; }
.qg6 .f > span { display: block; min-height: 18px; }
.qg6 > hr { grid-column: 1 / -1; border: 0; border-top: 1px solid var(--line); margin: 4px 0 12px; }
.qg6 .c1 { grid-column: span 1; } .qg6 .c2 { grid-column: span 2; } .qg6 .c3 { grid-column: span 3; } .qg6 .c4 { grid-column: span 4; }
.qg6 .f input, .qg6 .f select { width: 100%; }
.qg6 .qadj-on { align-self: center; margin-bottom: 12px; }
.qcompany input { font-weight: 700; }
@media (max-width: 1100px) { .qg6 .c1 { grid-column: span 2; } .qg6 .c3, .qg6 .c4 { grid-column: span 6; } .qg6 .c2 { grid-column: span 3; } }
.qattbox { margin-top: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.qattbox > header { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-weight: 700; font-size: 13.5px; border-bottom: 1px solid var(--line); background: var(--paper); flex-wrap: wrap; }
.qattbox > header .badge { background: var(--grey) !important; }
.qattbox > header .actions { margin-left: auto; display: flex; gap: 6px; }
.qattbox > .body { padding: 10px 12px; }
.qattbox .attlist li input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 auto; }
.qhead .qacts2 { display: grid; grid-template-columns: 1fr; gap: 8px; }
.qhead .qacts2 .btn { justify-content: flex-start; }
.qhead .qocbtn { white-space: normal; text-align: left; line-height: 1.25; height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.qhead .qacts3 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.qsumt tr.comm td { color: var(--amber); font-weight: 600; }
.qsumnote { margin: 6px 0 0; }
.xsec { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.xsec:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.xsec h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-text); }
.xsec h5 { margin: 10px 0 4px; font-size: 12.5px; color: var(--muted); }
.xfmt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.xopt { position: relative; cursor: pointer; }
.xopt input { position: absolute; opacity: 0; }
.xopt span { display: flex; align-items: center; gap: 8px; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; font-weight: 700; background: #fff; }
.xopt input:checked + span { border-color: var(--green-dark); background: var(--green-bg); color: var(--green-text); box-shadow: 0 0 0 1px var(--green-dark) inset; }
.xlang { max-width: 240px; }
.xmerge { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }

/* v3.13.0 */
.qsumt tr.m2b td { color: var(--muted); font-size: 12.5px; padding-top: 6px; }
.qsumt tr.m2 td.num, .qsumt tr.m2b td.num, .qsumt tr.perm2 td.num { text-align: right; }
.qprepbox { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 10px; background: #fff; font-size: 13px; line-height: 1.4; min-height: 40px; }
.qprepbox.rep { border-color: var(--green-dark); background: var(--green-bg); }
.qprepbox > svg { flex: 0 0 auto; margin-top: 2px; }
.docpick { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); }
.docpick .dpt { flex: 1 1 auto; font-weight: 600; }
.docpick .dpl { display: flex; gap: 6px; }
.lpick { position: relative; cursor: pointer; }
.lpick input { position: absolute; opacity: 0; }
.lpick span { display: inline-block; min-width: 36px; text-align: center; padding: 4px 6px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; font-weight: 800; background: #fff; color: var(--muted); }
.lpick input:checked + span { background: var(--green); border-color: var(--green-dark); color: #fff; }
.lpick input:disabled + span { opacity: .55; cursor: default; }

/* v3.13.1: more compact quotation header */
.qhead.shead2 { padding-top: 12px; padding-bottom: 12px; }
.qhead .crumb { margin-bottom: 2px; }
.qhead .qtitle2 { margin: 2px 0 2px; }
.qhead .sh-sub { margin: 2px 0 8px; }
.qhead .qg6 { gap: 0 10px; }
.qhead .qg6 .f { margin-bottom: 7px; }
.qhead .qg6 .f > span { font-size: 12px; margin-bottom: 2px; min-height: 16px; }
.qhead .qg6 input, .qhead .qg6 select { height: 34px; padding-top: 4px; padding-bottom: 4px; }
.qhead .qg6 > hr { margin: 2px 0 7px; }
.qhead .qg6 .qadj-on { padding: 5px 8px; margin-bottom: 7px; }
.qhead .qg6 .qadj-on em { display: none; }
.qhead .qproj input.sh-project { font-size: 24px; padding-top: 2px; padding-bottom: 2px; }
.qhead .qattbox { margin-top: 4px; }
.qhead .qattbox > header { padding: 6px 10px; }
.qhead .qattbox > header .btn { height: 30px; }
.qhead .qattbox > .body { padding: 6px 10px; }
.qhead .qattbox > .body > p.muted.small { display: none; }
.qhead .qattbox .attlist li { padding: 4px 0; }
.qhead .qacts2, .qhead .qacts3 { gap: 6px; }
.qhead .qacts2 .btn { min-height: 36px; }
.qhead .qsum { margin-top: 10px; padding: 10px 12px; }
.qhead .qsumt td { padding-top: 3px; padding-bottom: 3px; }

/* v3.13.2: versions of the quotation in the header */
.qverdd { position: relative; }
.qverdd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: 12.5px; white-space: nowrap; }
.qverdd > summary::-webkit-details-marker { display: none; }
.qverdd > summary:hover { border-color: var(--grey-light); }
.qverdd .caret { color: var(--muted); font-size: 10px; }
.qverlist { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.qverlist a { display: grid; grid-template-columns: 38px 86px auto 1fr 110px; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 3px; color: var(--text); text-decoration: none; font-size: 13px; }
.qverlist a:hover { background: var(--paper); }
.qverlist a.cur { background: var(--green-bg); }
.qverlist a .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.qverlist a .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qverlist .btn { margin-top: 4px; align-self: flex-start; }

/* v3.14.0: recycle bin */
.trlog { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 13.5px; }
.trlog > div > span:first-child { display: inline-block; min-width: 200px; color: var(--muted); }
.trfields { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.trfields td { font-size: 12.5px; padding: 4px 8px; vertical-align: top; word-break: break-word; }

/* v3.14.1: money fields together – currency, commission, project discount / surcharge in one aligned row */
.qhead .qmoney { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 6px 10px 0; margin: 2px 0 8px; }
.qhead .qmoney-h { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-text); margin-bottom: 4px; }
.qhead .qmoney-h svg { width: 14px; height: 14px; }
.qhead .qmoney .qg6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.qhead .qmoney .f > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.qtoggle { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 600; font-size: 13px; }
.qtoggle input { width: 16px; height: 16px; margin: 0; }
.qtoggle:has(input:checked) { border-color: var(--green-dark); background: var(--green-bg); color: var(--green-text); }
@media (max-width: 1100px) { .qhead .qmoney .qg6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .qhead .qmoney .qg6 .c1 { grid-column: span 1; } }

/* v3.14.3: confirmations and note in the header (left part) */
.qhead .qattbox + .qattbox { margin-top: 8px; }
.qhead .qocbox .oclist li { padding: 7px 10px; }
.qhead .qocbox > .body > p { margin: 0; font-size: 12.5px; }
.qhead .qocbox > header .btn { height: 30px; }
.qhead .qnotebox textarea { width: 100%; min-height: 44px; resize: vertical; }
.qhead .sh-left { display: flex; flex-direction: column; }
.qhead .qnotebox { flex: 1 1 auto; display: flex; flex-direction: column; }
.qhead .qnotebox > .body { flex: 1 1 auto; display: flex; }
.qhead .qnotebox textarea { flex: 1 1 auto; }
.qhead .sh-right { display: flex; flex-direction: column; }
.qhead .sh-right .qsum { flex: 1 1 auto; }

/* v3.15.0: row numbers, wider description */
.qrows th.qno, .qrows td.qno { width: 42px; color: var(--muted); font-weight: 700; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qrows.qmat th:nth-child(2) { width: 30%; }
.qrows.qmat th:nth-child(3), .qrows.qmat th:nth-child(4) { width: 14%; }

h4.codeh { margin: 14px 0 6px; font-size: 13px; }
h4.codeh:first-of-type { margin-top: 4px; }
.codetable td { padding: 3px 6px; }
.codetable input { width: 100%; height: 32px; }
.codetable td:last-child { width: 44px; }

/* v3.16.0: quantity with unit, unit price with currency / unit */
.qtyu { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.qtyu input { width: 96px; text-align: right; }
.qtyu select { width: 74px; height: 34px; padding: 2px 18px 2px 6px; font-size: 12.5px; }
.qtyu.price input { width: 96px; }
.qtyu .usfx { min-width: 44px; font-size: 12px; color: var(--muted); text-align: left; white-space: nowrap; }
.qtyu.needprice input { border-color: var(--amber); background: var(--amber-bg); box-shadow: 0 0 0 1px var(--amber) inset; }

/* v3.17.0: detail table of elements */
.eltable td.wide input, .eltable th.wide { min-width: 220px; }
.eltable td input[type=number] { width: 72px; }
.eltable td input[data-ek=shape] { width: 70px; }
.eltable td.wide input { width: 100%; }
.eltable tr.elman input[disabled] { opacity: .35; }
.eltable .elfoot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eltable .elfoot [data-elsum] { margin-left: auto; font-weight: 600; }

/* v3.17.1: elements in a wide window */
.modal.xwide { width: min(1440px, 97vw); max-width: none; }
.modal.xwide .eltable { overflow: visible; }
.modal.xwide .eltable table { width: 100%; }
.modal.xwide .eltable td input[type=number] { width: 100%; min-width: 64px; }
.modal.xwide .eltable td.wide input { min-width: 200px; }
.modal.xwide .eltable table { table-layout: fixed; }
.modal.xwide .eltable th:nth-child(1) { width: 3%; } .modal.xwide .eltable th:nth-child(2) { width: 22%; } .modal.xwide .eltable th:nth-child(3) { width: 7%; }
.modal.xwide .eltable th:nth-child(n+4):nth-child(-n+9) { width: 8%; } .modal.xwide .eltable th:nth-child(10) { width: 5%; } .modal.xwide .eltable th:nth-child(11) { width: 8%; } .modal.xwide .eltable th:nth-child(12) { width: 4%; }
.modal.xwide .eltable td input[type=number], .modal.xwide .eltable td input[type=text] { min-width: 0; width: 100%; }
.modal.xwide .eltable td.wide input { min-width: 0; }
.modal.xwide .eltable th { white-space: normal; }
.modal.xwide .eltable table { min-width: 0; }
.modal.xwide .eltable th.wide { min-width: 0; }

/* v3.17.2: quantity linked to the material total */
.qauto { border: 1px solid var(--line); background: #fff; color: var(--grey-light); font-size: 10.5px; font-weight: 800; border-radius: 3px; padding: 2px 5px; cursor: pointer; text-transform: uppercase; letter-spacing: .03em; }
.qtyu.isauto .qauto { background: var(--green-bg); border-color: var(--green-dark); color: var(--green-text); }
.qtyu.isauto input[data-k=qty] { color: var(--green-text); font-weight: 600; }
tr.off .qauto { visibility: hidden; }

.qtyu input { width: 108px; }
.qtyu.price input { width: 100px; }
/* v3.17.4: quantity field never shrinks; narrower description / shade columns in the material table */
.qtyu input { flex: 0 0 110px; min-width: 110px; }
.qtyu.price input { flex: 0 0 100px; min-width: 100px; }
.qtyu select { flex: 0 0 74px; }
.qrows.qmat th:nth-child(2) { width: 21%; }
.qrows.qmat th:nth-child(3) { width: 9%; }
.qrows.qmat th:nth-child(4) { width: 12%; }
.qrows.qmat td:nth-child(5), .qrows.qmat td:nth-child(6) { white-space: nowrap; }
.qrows.qmat td input[data-k=description], .qrows.qmat td input[data-k=color], .qrows.qmat td input[data-k=structure] { width: 100%; min-width: 0; }
.qrows.qmat th:nth-child(3) { width: 10%; }

/* v3.17.5: combo box with the whole code list; wider structure column, compact elements button */
.combopop { position: fixed; z-index: 1000; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0,0,0,.16); max-height: 300px; overflow-y: auto; padding: 4px; }
.combopop .co { padding: 6px 10px; border-radius: 3px; cursor: pointer; display: flex; flex-direction: column; line-height: 1.3; }
.combopop .co small { color: var(--muted); font-size: 11.5px; }
.combopop .co:hover, .combopop .co.act { background: var(--paper); }
.combopop .co.sel { background: var(--green-bg); }
.combopop .co.sel strong { color: var(--green-text); }
.qrows.qmat th:nth-child(2) { width: 20%; }
.qrows.qmat th:nth-child(3) { width: 9%; }
.qrows.qmat th:nth-child(4) { width: 15%; }
.qrows.qmat [data-els] { padding-left: 9px; padding-right: 9px; gap: 4px; }

/* v3.18.0: own rows in a section */
.ownrow { display: flex; gap: 6px; align-items: center; }
.ownrow input { flex: 1 1 auto; font-weight: 600; }
.ownrow .iconbtn2 { width: 30px; height: 30px; flex: 0 0 auto; }

/* v3.21.0 – pallets (unit price only), notes printed under the tables, concurrent-edit banner */
.qprintnote { margin: 8px 14px 0; padding: 8px 12px; border-left: 3px solid var(--green, #47ad75); background: var(--paper, #f3f4f1); font-size: 12px; line-height: 1.45; color: var(--muted, #5f6366); border-radius: 0 6px 6px 0; }
.qprintnote b { color: var(--text, #1f2124); font-weight: 600; }
.qprintnote[hidden] { display: none; }
.qtyu.unitonly input::placeholder { font-style: italic; }
.qchanged { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid #e3b341; background: #fff8e1; color: #5c4400; border-radius: 8px; font-size: 13px; }
.qchanged span { flex: 1; }
.qchanged svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* v3.22.0 – column headings centred over their columns, wider unit select, notes editor */
.qrows thead th, .qrows thead th.num, .eltable thead th { text-align: center; }
.qtyu select { flex: 0 0 88px; width: 88px; }
.qnotes textarea { font-size: 13px; line-height: 1.45; }

/* v3.23.0 – default rows of a new quotation (Settings › Quotations) */
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-4 { grid-template-columns: 1fr 1fr; } }
.qdeftable td { vertical-align: middle; }
.qdeftable tr.off td:nth-child(3) { color: var(--muted); }
.qdeftable input[type=text] { width: 100%; min-width: 180px; }
.qdeftable input[type=number] { width: 110px; text-align: right; }
.qdeftable th:nth-child(3) { width: 32%; }
.qdeftable th:nth-child(4) { width: 34%; }
.qdeftable td:nth-child(5) { white-space: nowrap; }

/* v3.25.0 – Settings › Update › Version history */
.vhbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.vhbar input[type=search] { flex: 1 1 260px; max-width: 420px; }
.vhlist { border-top: 1px solid var(--line, #ddd); }
details.vh { border-bottom: 1px solid var(--line, #ddd); padding: 0; }
details.vh summary { display: grid; grid-template-columns: 80px 1fr 150px 230px; gap: 12px; align-items: baseline; padding: 10px 4px; cursor: pointer; list-style: none; }
details.vh summary::-webkit-details-marker { display: none; }
details.vh summary:hover { background: var(--paper); }
details.vh.cur summary { background: var(--green-bg); }
.vhv { font-weight: 700; font-variant-numeric: tabular-nums; }
.vht { font-weight: 600; }
.vhd { font-size: 12.5px; white-space: nowrap; }
details.vh ul { margin: 4px 0 12px 96px; padding-left: 18px; line-height: 1.5; font-size: 13.5px; }
details.vh p { margin: 0 0 10px 96px; }
@media (max-width: 900px) { details.vh summary { grid-template-columns: 70px 1fr; } details.vh ul, details.vh p { margin-left: 8px; } }
details.vh p.vhfrom { margin: -6px 0 10px 96px !important; }

/* v3.26.0 – TEMPORARY test records */
.btn.testbtn { border: 1.5px dashed #c98a00; color: #8a5d00; background: #fff8e1; }
.btn.testbtn:hover { background: #ffefc2; }
.testbadge { margin-right: 4px; letter-spacing: .04em; }
.panel.testpanel > header { background: #8a5d00; }

/* v3.26.1 – bulk selection of sample orders + group query */
.stable th.selcol, .stable td.selcol { width: 34px; text-align: center; padding-left: 10px; padding-right: 4px; }
.stable td.selcol input, .stable th.selcol input { width: 17px; height: 17px; cursor: pointer; }
.stable tr.sel td { background: var(--green-bg); }
.selbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--green-bg); border-bottom: 1px solid var(--line, #ddd); position: sticky; top: 0; z-index: 2; }
.selbar.hidden { display: none; }
.selbar #selN { font-weight: 700; color: var(--green-text); margin-right: auto; }
.sq-orders { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; max-height: 120px; overflow: auto; }
.stable td.selcol + td .cname, .stable td.selcol + td .badge { white-space: nowrap; }
.stable td.selcol, .stable th.selcol { vertical-align: middle; }
@media (max-width: 700px) {
  .stable th:nth-child(4), .stable td:nth-child(4) { display: table-cell; }
  .stable th:nth-child(5), .stable td:nth-child(5), .stable th:nth-child(6), .stable td:nth-child(6), .stable th:nth-child(7), .stable td:nth-child(7), .stable th:nth-child(8), .stable td:nth-child(8) { display: none; }
}

/* v3.27.0 – types of sample orders with their own colour */
.badge.stbadge { box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
[data-codes="stype"] input[type=color] { width: 38px; height: 30px; padding: 2px; border: 1px solid var(--line, #ccc); border-radius: 6px; vertical-align: middle; cursor: pointer; }

/* v3.27.1 – orders from the old Polycontrol in the "new orders" panel */
.nolist .badge.pc1 { margin-left: 6px; font-size: 10.5px; padding: 2px 7px; background: #e8eaed; color: #3c4043; vertical-align: middle; }

/* v3.27.2 – column headings of the overviews (samples, quotations) centred over their columns */
.stable thead th, .stable thead th.num, .qtable thead th, .qtable thead th.num { text-align: center; }
.stable thead th.selcol { text-align: center; }

/* v3.28.0 – merging of company cards */
.mgcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 8px; }
.mgcard { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line, #ddd); border-radius: 10px; cursor: pointer; background: #fff; line-height: 1.45; }
.mgcard.on { border-color: var(--green-dark, #47ad76); background: var(--green-bg); }
.mgcard input { margin-top: 3px; }
.mgtable td { vertical-align: top; }
.mgopt { display: inline-flex; gap: 6px; align-items: flex-start; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.mgopt.on { background: var(--green-bg); font-weight: 600; }

/* v3.28.1 – company picker with the address book */
.pkwrap { display: flex; gap: 8px; align-items: flex-start; }
.pkwrap .picker { flex: 1 1 auto; min-width: 0; }
.pkwrap .pk-browse { flex: 0 0 auto; white-space: nowrap; height: 40px; }
.cbfilters { display: grid; grid-template-columns: 1fr 220px 220px; gap: 10px; margin-bottom: 12px; }
@media (max-width: 800px) { .cbfilters { grid-template-columns: 1fr; } }
.cblist { max-height: 62vh; overflow: auto; border: 1px solid var(--line, #ddd); border-radius: 8px; }
.cbtable tr.clickrow { cursor: pointer; }
.cbtable tr.clickrow:hover td { background: var(--green-bg); }
.cbtable thead th { position: sticky; top: 0; background: #fff; z-index: 1; text-align: center; }
.xtrhint { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.35; }

/* v3.29.1 – Settings › Quotations: sections + translations */
.qsubnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 6px; background: var(--paper); border-radius: 10px; position: sticky; top: 0; z-index: 3; }
.qsubbtn { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 9px 14px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.qsubbtn svg { width: 17px; height: 17px; }
.qsubbtn:hover { background: rgba(255,255,255,.7); color: var(--text); }
.qsubbtn.on { background: #fff; color: var(--green-text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.qsub[hidden] { display: none; }
.qsavebar { position: sticky; bottom: 14px; display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding: 10px 14px; background: #fff; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.12); margin-top: 8px; z-index: 3; }
.qsavebar[hidden] { display: none; }
.trtable td { vertical-align: top; }
.trtable td.trsrc { width: 38%; font-size: 13.5px; line-height: 1.45; }
.trtable textarea { width: 100%; min-width: 260px; font-size: 13.5px; line-height: 1.45; }

/* v3.30.0 – payment terms */
.qmoney .qpay { margin-top: 8px; }
.qmoney .qpay input { width: 100%; }
.qsumpay { margin-top: 10px; padding: 8px 10px; border-left: 3px solid var(--green-dark, #47ad76); background: var(--paper); border-radius: 0 6px 6px 0; font-size: 13px; line-height: 1.4; }
.qsumpay span { display: block; font-size: 11px; font-weight: 700; color: var(--green-text); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.qsum .qsumpay, .qsumpay { display: block !important; }

/* ---------- v3.38.0: samples – one header with full addresses and contact, scrollable files and communication ---------- */
.addrbox.addrfull > summary { align-items: flex-start; background: #fff; color: var(--text); border-bottom: 1px solid var(--line); padding: 14px 18px; }
.addrbox.addrfull > summary:hover .addr-toggle { color: #fff; }
.addrfull .addr-toggle { background: var(--grey); color: #fff; border-color: var(--grey); align-self: flex-start; }
.addrhead { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; min-width: 0; }
.addrcol h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.addrcol h4 .ico { width: 16px; height: 16px; }
.addrcol { font-size: 14px; line-height: 1.45; color: var(--text); }
.addrcol .ac-name { font-weight: 700; font-size: 15px; }
.addrcol .ac-sub { color: var(--muted); font-size: 13px; }
.addrcol .addrsame { color: var(--muted); font-style: italic; font-size: 12.5px; margin-bottom: 2px; }
.addrcol .ac-person { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.addrcol .ac-person a { display: inline-flex; align-items: center; gap: 4px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 13px; }
.addrcol .ac-person .ico { width: 14px; height: 14px; }
@media (max-width: 800px) { .addrhead { grid-template-columns: 1fr; } }
#files .flist { max-height: 300px; overflow-y: auto; }
#commlog { max-height: 340px; overflow-y: auto; }
.sh-sub .sh-cust input { min-width: 170px; }
td.custno { font-weight: 600; color: var(--text); }
.iconbtn2.invbtn { font-weight: 800; font-size: 14px; }
.iconbtn2.invbtn.has { color: var(--green-text); }
/* v3.38.1: selection of photos for printing */
.phtile { position: relative; }
.phtile .phsel { position: absolute; top: 6px; left: 6px; z-index: 2; background: rgba(255,255,255,.92); border-radius: 4px; padding: 3px 4px; line-height: 0; box-shadow: 0 1px 3px rgba(0,0,0,.25); cursor: pointer; }
.phtile .phsel input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); cursor: pointer; }
.phtile.unsel img { opacity: .45; }
/* v3.38.2 – samples: billing + delivery address in the header, editing panel right under it, workflow below */
.sh-addr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; border-top: 1px solid var(--line); padding: 12px 0; margin-top: 4px; }
.sh-addr .sh-addr-link { font-size: 12px; font-weight: 600; margin-left: 6px; }
.addrbox .addr-who { padding: 16px 18px 0; }
@media (max-width: 600px) { .sh-addr { grid-template-columns: 1fr; } }
.addr-who .f > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.phtile .attname { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; font-size: 12.5px; }
.attother { margin-top: 14px; border-top: 1px solid var(--line); }
/* v3.39.0 – quotations: flag of a version created by saving changes, VAT note, save hint */
.qnewver { display: inline-flex; align-items: center; gap: 5px; background: #fff4d6; color: #8a5a00; border: 1px solid #f0c75e; border-radius: 14px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; }
.qnewver .ico { width: 14px; height: 14px; }
.qvatnote { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--text); }
.savebar .sbver { margin-left: 6px; color: #8a5a00; }
/* v3.39.1 – list of changes against the previous version (hover / focus on the flag) */
.qnewver { position: relative; cursor: help; }
.qnewver .qvpop { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; width: min(520px, 86vw); max-height: 360px; overflow-y: auto; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 12px 14px; font-weight: 400; font-size: 13px; line-height: 1.4; text-align: left; white-space: normal; cursor: default; }
.qnewver:hover .qvpop, .qnewver:focus .qvpop, .qnewver:focus-within .qvpop { display: block; }
.qnewver .qvpop::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.qvpop > b { display: block; margin-bottom: 6px; color: #8a5a00; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.qvpop ul { margin: 0; padding: 0; list-style: none; }
.qvpop li { padding: 5px 0; border-top: 1px dashed var(--line); }
.qvpop li:first-child { border-top: 0; }
.qvpop .qvrow { display: block; font-weight: 700; font-size: 12.5px; }
.qvpop em { font-style: normal; color: var(--muted); }
.qvpop s { color: var(--muted); }
.qvpop i.up { font-style: normal; color: var(--green-text); font-weight: 700; }
.qvpop i.dn { font-style: normal; color: #b3261e; font-weight: 700; }
.qvpop .qvnone { color: var(--muted); display: block; margin-top: 4px; }
/* v3.40.0 – samples overview over the whole width of the window (all columns visible) */
.main[data-mod="samples"][data-sub="list"] { max-width: 1920px; padding-left: 12px; padding-right: 12px; }
@media (max-width: 1180px) { .main[data-mod="samples"][data-sub="list"] { padding-left: 14px; padding-right: 14px; } }

/* v3.45.0: surface treatment that must not be overlooked – hydrophobisation blue, anti-graffiti red (app, prints, labels) */
.fin-hyd, select.fin-hyd { color: #1659c7 !important; font-weight: 700; }
.fin-ang, select.fin-ang { color: #d0161b !important; font-weight: 700; }
select.fin-hyd { border-color: #1659c7; background-color: #eef4fe; }
select.fin-ang { border-color: #d0161b; background-color: #fdeeee; }
option.fin-hyd { color: #1659c7; } option.fin-ang { color: #d0161b; }
/* v3.45.0 – one look for every switch in the application (same as in Planning): green frame, active = green */
.rpfilters .seg, .seg { display: inline-flex; border: 2px solid #5cc68c; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.rpfilters .seg button, .seg button { border: 0; background: #fff; padding: 7px 16px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text); cursor: pointer; min-width: 52px; }
.rpfilters .seg button + button, .seg button + button { border-left: 1px solid rgba(83,180,120,.45); }
.rpfilters .seg button:hover:not(.on), .seg button:hover:not(.on) { background: #eaf6ef; }
.rpfilters .seg button.on, .seg button.on { background: #5cc68c; color: #fff; }

/* ---------- v3.57.0: Procesní plán projektu (PPP) ---------- */
.ppst-draft { background: var(--paper); color: var(--grey); }
.ppst-sent { background: var(--amber-bg); color: var(--amber); }
.ppst-confirmed { background: var(--green-bg); color: var(--green-text); }
.iconbtn.pppx { color: var(--muted); padding: 4px 6px; font-size: 18px; line-height: 1; }
.iconbtn.pppx:hover { color: var(--red); background: var(--red-bg); }
.pppgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 16px; }
.pppgrid .wide { grid-column: 1 / -1; }
.pppgrid .pppf { margin-bottom: 12px; }
.pppsec > header .check { font-size: 13px; font-weight: 600; color: #fff; }
.pppsec > header .check input { accent-color: var(--green); }
.pppsec.forcust > header { background: var(--green-text); }
.pppnote { margin: 6px 0 0; }
.pppnote textarea { background: #fff8f8; border-color: #f1d5d5; }
.pppnote > span .ico { width: 13px; height: 13px; vertical-align: -2px; }
.pppint { margin: -6px 0 14px; }
.pppint .ico { width: 13px; height: 13px; vertical-align: -2px; }
table.ppptab { width: 100%; margin-bottom: 8px; }
table.ppptab td { padding: 3px 4px; vertical-align: top; }
table.ppptab th { font-size: 12px; }
table.ppptab input, table.ppptab textarea { width: 100%; padding: 5px 7px; font-size: 13px; min-height: 30px; resize: vertical; overflow: hidden; }
table.ppptab td.acts { width: 30px; }
table.ppptab.kv td:first-child { width: 38%; }
table.ppptab tr td:first-child textarea { font-weight: 600; }
.pppsrc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
.ppplinks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.ppplinks .lchip .ico, .pppsigned .lchip .ico { width: 13px; height: 13px; margin-right: 5px; }
.pppstatus .body { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.pppsteps { display: flex; flex-wrap: wrap; gap: 8px; }
.pppsteps > div { padding: 7px 12px; border-radius: 4px; background: var(--paper); color: var(--muted); font-weight: 600; font-size: 13.5px; max-width: 360px; }
.pppsteps > div b { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #fff; align-items: center; justify-content: center; font-size: 12px; margin-right: 4px; }
.pppsteps > div small { display: block; font-weight: 500; font-size: 12px; margin-top: 2px; }
.pppsteps > div.done { background: var(--green-bg); color: var(--green-text); }
.pppsteps > div.on { background: var(--grey); color: #fff; }
.pppsteps > div.on b { color: var(--grey); }
.pppstatus.st-confirmed .pppsteps > div.on { background: var(--green); }
.pppsigned { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pppimgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; }
.pppimgs.small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pppimg { display: flex; flex-direction: column; gap: 6px; background: #fafaf9; border: 1px solid var(--line); border-radius: 4px; padding: 8px; }
.pppimg img { width: 100%; height: 150px; object-fit: contain; background: #fff; display: block; }
.pppimgs.small .pppimg img { height: 100px; }
.pppimg input[type=text] { padding: 5px 7px; font-size: 13px; }
.pppimgf { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.pppimgf .check { font-weight: 500; }
.ppppick { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-height: 55vh; overflow: auto; }
.ppppick button { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 9px 12px; cursor: pointer; font: inherit; }
.ppppick button:hover { border-color: var(--green); background: var(--green-bg); }
table.ppptake td.pre { white-space: pre-line; font-size: 13px; }
table.ppptake td:first-child { width: 28px; }
.headbtns .iconbtn.pppx { font-size: inherit; }

/* ---------- v3.58.0: Adresář – adresa ze snímku obrazovky ---------- */
.addrassist { border: 2px dashed var(--line); border-radius: 4px; padding: 12px 14px; margin-bottom: 16px; background: #fafaf9; outline: none; transition: .15s; }
.addrassist:focus, .addrassist:focus-within, .addrassist.over { border-color: var(--green); background: var(--green-bg); }
.addrassist .aa-main { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.addrassist .aa-main > .ico { width: 26px; height: 26px; color: var(--green-text); flex: none; }
.addrassist .aa-main > div:not(.aa-btns) { flex: 1 1 240px; }
.addrassist .aa-main small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.addrassist .aa-btns { display: flex; gap: 6px; }
.addrassist.compact .aa-main small { display: none; }
.addrassist .aa-textbox { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.addrassist .aa-textbox.hidden, .addrassist .aa-out.hidden { display: none; }
.addrassist .aa-textbox textarea { width: 100%; }
.addrassist .aa-out { margin-top: 10px; display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.addrassist .aa-out img { width: 120px; max-height: 90px; object-fit: contain; border: 1px solid var(--line); background: #fff; flex: none; }
.addrassist .aa-out small { display: block; margin-top: 2px; }
.addrassist .aa-person { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.addrassist .aa-person .ico { width: 15px; height: 15px; vertical-align: -3px; }
.addrassist .aa-person .check { font-weight: 500; font-size: 13px; }
.addrassist .aa-warn { margin-top: 6px; color: var(--amber); font-weight: 600; }
.addrassist .aa-wait { color: var(--muted); font-weight: 600; }
.addrassist.busy .aa-wait::after { content: ' …'; }
form input.aafilled, form select.aafilled { background: var(--green-bg); border-color: var(--green); }

/* ---------- v3.59.0: import of one offer from the old Polycontrol ---------- */
.q1steps { margin: 0 0 14px; padding-left: 20px; line-height: 1.5; }
.q1steps li { margin-bottom: 8px; }
.q1bm { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; }
.q1bmlink { cursor: grab; }
.q1drop { outline: none; }
.q1drop:focus { border-color: var(--green); }
.q1console { margin-top: 12px; font-size: 13.5px; }
.q1console summary { cursor: pointer; color: var(--muted); font-weight: 600; }
tr.q1main td { background: var(--green-bg); }
.sub.warn { color: var(--amber); }

/* ---------- v3.60.0: highlighted text about the GRC façade design under the price summary ---------- */
.qsum > .qdesign, .qdesign { display: block; margin-top: 12px; padding: 10px 12px 10px 14px; background: var(--green-bg); border: 1px solid var(--green); border-left: 4px solid var(--green); border-radius: 4px; font-size: 12.5px; line-height: 1.45; }
.qdesign b { display: block; color: var(--green-text); font-size: 14px; line-height: 1.3; margin-bottom: 6px; }
.qdesign p { margin: 0 0 6px; }
.qdesign p:last-child { margin-bottom: 0; }
.qdesign p.cta { font-weight: 700; color: var(--green-text); }

/* ---------- v3.60.1: Procesní plán projektu – compact layout ---------- */
.pppsecs { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 12px; align-items: start; }
.pppsecs .pppsec.full { grid-column: 1 / -1; }
.pppsec { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pppsec > header { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: var(--grey); color: #fff; font-weight: 700; font-size: 13.5px; }
.pppsec.forcust > header { background: var(--green-text); }
.pppsec > header span { flex: 1; }
.pppsec > header .check { font-size: 12px; font-weight: 600; color: #fff; gap: 5px; }
.pppsec > header .check input { width: 14px; height: 14px; }
.pppsec .pb { padding: 6px 12px 8px; }
.pppsec .pr { display: grid; grid-template-columns: 175px 1fr; gap: 8px; align-items: start; padding: 2px 0; }
.pppsec .pr.kv { grid-template-columns: 175px 1fr 24px; }
.pppsec .pr.hidden { display: none; }
.pppsec .pl { font-size: 12.5px; font-weight: 600; color: var(--muted); padding-top: 6px; line-height: 1.25; }
.pppsec .pr input[type=text].pl { padding: 4px 7px; font-size: 12.5px !important; color: var(--muted); font-weight: 600; background: #fafaf9; }
.pppsec .pr input[type=text], .pppsec .pr textarea { padding: 4px 8px; font-size: 13.5px; min-height: 28px; line-height: 1.4; }
.pppsec textarea[data-auto] { resize: none; overflow: hidden; }
.pppsec .pppnote .pl { color: var(--red); }
.pppsec .pppnote .pl .ico { width: 12px; height: 12px; vertical-align: -1px; }
.pppsec .pppnote textarea { background: #fff8f8; border-color: #f1d5d5; }
.pppsec .pppadd { background: none; border: 0; color: var(--green-text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 3px 0; margin-right: 12px; }
.pppsec .pppadd:hover { text-decoration: underline; }
.pppsec .pppadd .ico { width: 12px; height: 12px; vertical-align: -1px; }
.pppsec .iconbtn.pppx { padding: 2px 4px; margin-top: 3px; }
.pppsec table.ppptab { width: 100%; border-collapse: collapse; margin: 2px 0 2px; }
.pppsec table.ppptab th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 4px; border-bottom: 1px solid var(--line); }
.pppsec table.ppptab td { padding: 2px 2px; vertical-align: top; }
.pppsec table.ppptab td textarea { width: 100%; padding: 3px 6px; font-size: 13px; min-height: 26px; }
.pppsec table.ppptab td.acts { width: 26px; }
.pppstatus .body { padding: 10px 14px; }
.pppint { margin: -10px 0 10px; }
@media (max-width: 700px) { .pppsecs { grid-template-columns: 1fr; } .pppsec .pr, .pppsec .pr.kv { grid-template-columns: 1fr; gap: 2px; } .pppsec .pr.kv { grid-template-columns: 1fr 1fr 24px; } }

/* ---------- v3.61.0: contact person picker in the quotation, advance payment in the order confirmation ---------- */
.qg6 .c6 { grid-column: span 6; }
.qg6 .qperson.hidden { display: none; }
fieldset.ocadv { border: 1px solid var(--green); border-radius: 4px; background: var(--green-bg); padding: 8px 12px 10px; margin: 0 0 14px; }
fieldset.ocadv legend { font-weight: 700; color: var(--green-text); padding: 0 6px; font-size: 13px; }
fieldset.ocadv .f { margin-bottom: 8px; }
.ocadvtot { padding-top: 6px; font-size: 14px; line-height: 1.35; }
.ocadvtot small { display: block; color: var(--muted); font-size: 12px; }
.ocadvchip { display: block; font-size: 11.5px; font-weight: 600; color: var(--green-text); white-space: nowrap; }

/* ---------- v3.62.0: internal project ID of a quotation ---------- */
.qintid { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qintid .qlbl { white-space: nowrap; }
input.qintid-in { text-transform: uppercase; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.qintid input.qintid-in { width: 150px; padding: 4px 8px; }
.qidchip { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 3px; background: var(--paper); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--grey); vertical-align: 1px; }

/* ---------- v3.63.0: Nástroje (tabs of the tool modules) and Poptávka dopravy ---------- */
#tooltabs:not(:empty) { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.tooltabs { display: flex; gap: 2px; max-width: 1240px; margin: 0 auto; padding: 0 20px; overflow-x: auto; }
.tooltabs a { display: flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.tooltabs a .ico { width: 16px; height: 16px; }
.tooltabs a:hover { color: var(--text); }
.tooltabs a.active { color: var(--text); border-bottom-color: var(--green); }
.tiles.toolhub { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.trst-draft { background: var(--paper); color: var(--grey); }
.trst-sent { background: var(--amber-bg); color: var(--amber); }
.trst-closed { background: var(--green-bg); color: var(--green-text); }
.trst-cancelled { background: var(--red-bg); color: var(--red); }
.trpanel .body { padding: 12px 14px; }
table.trrec td { vertical-align: middle; }
table.trrec select, table.trrec input { padding: 4px 7px; font-size: 13px; min-width: 0; }
table.trrec input[type=email] { min-width: 210px; }
table.trrec td.acts { text-align: right; }
table.trrec td.acts .btn { margin-left: 4px; }
table.trrec tr.trwin td { background: var(--green-bg); }
input.trbad { border-color: var(--red); background: #fff8f8; }
.trbadtxt { color: var(--red); font-weight: 600; }
.trwinner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; background: var(--green-bg); border: 1px solid var(--green); border-left: 4px solid var(--green); border-radius: 4px; }
.trwinner > .ico { width: 22px; height: 22px; color: var(--green-text); }
.trwinner > div { flex: 1; }
.trwinner b { display: block; color: var(--green-text); font-size: 15px; }
.trwinner span, .trwinner small { display: block; }
.trwinner small { color: var(--muted); font-size: 12px; }
.trclist { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; }
.trc { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.trc.hidden { display: none; }
.trc.dim { opacity: .55; }
.trc small { display: block; color: var(--muted); font-size: 12px; }
.trc input { margin-top: 3px; accent-color: var(--green); }
.trsendlist { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.trsendlist .check { font-weight: 500; }
.trtext { border-top: 1px solid var(--line); padding-top: 8px; }
.trtext h4 { margin: 4px 0 8px; }
table.trrec td.acts { white-space: nowrap; } table.trrec td.acts .iconbtn { display: inline-flex; vertical-align: middle; }
.qterms textarea { font-size: 12.5px; line-height: 1.45; } label.xterms { margin: 10px 0 4px; } label.xterms em { display: block; font-style: normal; font-size: 12.5px; }
