/* Lotobola Coupons back office */
:root {
  --bg: #f5f6f9; --card: #fff; --ink: #121826; --ink2: #334055; --mut: #667085; --line: #e4e7ee; --line2: #d3d8e2; --soft: #f0f2f7;
  --acc: #1d4ed8; --acc2: #e8eefe; --acc3: #c7d5fb;
  --ok: #0f7a43; --ok2: #e3f5eb; --warn: #9a5b00; --warn2: #fff3d9; --bad: #b42318; --bad2: #fdecea; --off: #5f6b7d; --off2: #eceff4;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow2: 0 10px 30px rgba(16, 24, 40, .12);
  --r: 12px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1 { font-size: 26px; line-height: 1.2; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: 16px; margin: 0; }
h3 { font-size: 15px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); margin: 22px 0 8px; }
p { margin: 0; }
a { color: var(--acc); }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--soft); padding: 1px 6px; border-radius: 5px; }
pre { font-family: var(--mono); font-size: 12px; background: #0f1524; color: #e6e9ef; padding: 12px 14px; border-radius: 8px; overflow-x: auto; margin: 8px 0 0; max-height: 200px; }
.mut { color: var(--mut); } .err { color: var(--bad); font-size: 13px; } .err:empty { display: none; }
.hint { color: var(--mut); font-size: 13px; margin: 2px 0 14px; }
small { display: block; color: var(--mut); font-size: 11.5px; font-weight: 400; margin-top: 3px; }
.row { display: flex; align-items: center; } .between { justify-content: space-between; } .gap { gap: 10px; } .wrap { flex-wrap: wrap; }

/* ---------------------------------------------------------------- top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 0 24px; height: 60px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #1d4ed8, #4f7cff); color: #fff; }
.mark svg { width: 18px; height: 18px; }
.mark.big { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px; } .mark.big svg { width: 30px; height: 30px; }
nav { display: flex; gap: 4px; height: 100%; }
nav a { display: flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--mut); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
nav a svg { width: 17px; height: 17px; }
nav a:hover { color: var(--ink); }
nav a.on { color: var(--acc); border-bottom-color: var(--acc); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--acc2); color: var(--acc); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; }
.whotext { display: flex; flex-direction: column; line-height: 1.2; font-size: 12.5px; color: var(--ink2); }
.rolechip { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }

main { max-width: 1200px; margin: 0 auto; padding: 28px 24px 80px; }

/* ---------------------------------------------------------------- buttons and fields */
button { font: inherit; cursor: pointer; color: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 9px; font-weight: 600; font-size: 13.5px; border: 1px solid transparent; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s; text-decoration: none; }
.btn svg { width: 16px; height: 16px; stroke-width: 2.2; }
.btn.primary { background: var(--acc); color: #fff; box-shadow: 0 1px 2px rgba(29, 78, 216, .3); }
.btn.primary:hover { background: #1a43bd; }
.btn.ghost { background: #fff; border-color: var(--line2); color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { background: #fff; border-color: #f2c4bf; color: var(--bad); }
.btn.danger:hover { background: var(--bad2); }
.btn.dangerfill { background: var(--bad); color: #fff; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn.lg { height: 44px; padding: 0 22px; font-size: 14.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.lnk { background: none; border: 0; padding: 0; color: var(--acc); font-weight: 600; text-decoration: none; font-size: 13.5px; }
.lnk:hover { text-decoration: underline; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: inherit; color: var(--ink); padding: 0 12px; height: 40px; border: 1px solid var(--line2); border-radius: 9px; background: #fff; transition: border-color .12s, box-shadow .12s; }
textarea { height: auto; margin-bottom: 12px; padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc2); }
input[type=checkbox], input[type=radio] { width: auto; height: auto; display: inline; margin: 0; accent-color: var(--acc); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink2); }
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--mut); }
.searchbox input { margin: 0; padding-left: 34px; width: 260px; height: 38px; }

/* ---------------------------------------------------------------- page layout */
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.phead > div:first-child { min-width: 0; }
.sub { color: var(--mut); margin-top: 6px; max-width: 640px; }
.ptitle { display: flex; align-items: center; gap: 14px; }
.pactions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); margin-bottom: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--mut); text-decoration: none; } .crumbs a:hover { color: var(--acc); }
.crumbs .sep { color: var(--line2); }
.sect { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--mut); margin: 28px 0 12px; }
.sectrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } .sectrow .sect { margin-bottom: 12px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.panel h3 .n { width: 24px; height: 24px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 12.5px; display: grid; place-items: center; }
.offnote { background: var(--warn2); color: var(--warn); border-radius: 10px; padding: 10px 14px; font-weight: 500; margin: -6px 0 18px; }
.readonly-status:empty { display: none; }

/* on/off switch */
.onoff { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink2); background: #fff; border: 1px solid var(--line2); border-radius: 9px; height: 38px; padding: 0 8px 0 12px; cursor: pointer; }
.switch { position: relative; width: 40px; height: 23px; border-radius: 12px; border: 0; background: #c9cfda; padding: 0; transition: background .15s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch.on { background: var(--ok); } .switch.on::after { left: 20px; }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.switch:focus-visible { outline: 3px solid var(--acc3); outline-offset: 2px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.b-available, .b-on { background: var(--ok2); color: var(--ok); } .b-issued { background: var(--acc2); color: var(--acc); }
.b-expired { background: var(--warn2); color: var(--warn); } .b-off { background: var(--off2); color: var(--off); }
.b-test { background: #f3e8ff; color: #7e22ce; } .b-new { background: var(--acc2); color: var(--acc); } .b-bad { background: var(--bad2); color: var(--bad); }

/* ---------------------------------------------------------------- brands and lists as cards */
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.summary:empty { display: none; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .k { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--mut); font-weight: 500; }
.stat .k i { width: 8px; height: 8px; border-radius: 50%; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ccard { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s, border-color .15s; }
a.ccard:hover { box-shadow: var(--shadow2); transform: translateY(-1px); border-color: var(--acc3); }
.ccard .top-row { display: flex; align-items: center; gap: 12px; }
.ccard .name { font-weight: 650; font-size: 16px; line-height: 1.25; }
.ccard .meta { font-size: 12px; color: var(--mut); }
.ccard .grow { flex: 1; min-width: 0; }
.ccard .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ccard .nums div { font-size: 12px; color: var(--mut); } .ccard .nums b { display: block; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ccard.off { opacity: .72; }
.addcard { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 170px; border: 2px dashed var(--line2); border-radius: 14px; background: transparent; color: var(--mut); font-weight: 600; }
.addcard:hover { border-color: var(--acc); color: var(--acc); background: var(--acc2); }
.addcard svg { width: 26px; height: 26px; }
.bavatar { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; flex: none; }
.bavatar.lg { width: 54px; height: 54px; border-radius: 14px; font-size: 22px; }
.lowstock { color: var(--warn); font-size: 12px; font-weight: 600; }

/* stock meter */
.meter { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--soft); gap: 2px; }
.meter i { display: block; height: 100%; min-width: 0; }
.m-available { background: #22a861; } .m-issued { background: #3b6cf0; } .m-expired { background: #e3a008; } .m-off { background: #a7b0c0; }
.stock { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 22px; }
.stock .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.stock .stat { border: 0; box-shadow: none; padding: 0; }
.stock .meter { height: 10px; }

/* item strip on the brand page */
.strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.strip .chipitem { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 8px 8px; flex: none; }
.strip img, .strip .ph { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--soft); flex: none; }
.strip .ph { display: grid; place-items: center; color: var(--mut); } .strip .ph svg { width: 16px; height: 16px; }
.strip b { display: block; font-size: 13px; } .strip span { font-size: 12px; color: var(--mut); }
.strip .mut { padding: 8px 0; }

.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #f2d0cc; background: #fff; border-radius: var(--r); padding: 14px 18px; margin-top: 12px; flex-wrap: wrap; }
.danger-zone b { color: var(--bad); } .danger-zone p { color: var(--mut); font-size: 13px; }
#v-brand .danger-zone { margin-top: 40px; }

/* ---------------------------------------------------------------- tabs, toolbar, tables */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--mut); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--acc); border-bottom-color: var(--acc); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: #fff; border-radius: 20px; height: 32px; padding: 0 13px; font-size: 13px; font-weight: 500; color: var(--ink2); }
.chips button span { font-size: 11.5px; color: var(--mut); font-variant-numeric: tabular-nums; }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); } .chips button.on span { color: #c9d0dc; }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-weight: 600; color: var(--mut); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #fafbfe; }
.t .n { text-align: right; font-variant-numeric: tabular-nums; } .t .c { text-align: center; }
.t.compact td, .t.compact th { padding: 8px 12px; }
.t td.bad { color: var(--bad); background: var(--bad2); }
.t td small { font-size: 11px; }
.codecell { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.copy { border: 0; background: none; padding: 3px; border-radius: 5px; color: var(--mut); opacity: 0; transition: opacity .1s; display: inline-grid; }
.copy svg { width: 14px; height: 14px; }
tr:hover .copy, .copy:focus { opacity: 1; } .copy:hover { background: var(--soft); color: var(--ink); }
.citem { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.citem img, .citem .ph { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--soft); flex: none; border: 1px solid var(--line); }
.citem b { display: block; font-weight: 600; font-size: 13px; line-height: 1.25; } .citem span { font-size: 12px; color: var(--mut); }
.given { line-height: 1.3; } .given span { display: block; font-size: 11.5px; color: var(--mut); font-family: var(--mono); }
.emptystate { text-align: center; padding: 40px 20px; color: var(--mut); background: var(--card); border: 1px dashed var(--line2); border-radius: var(--r); }
.emptystate b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.emptystate .btn { margin-top: 14px; }
.more { display: flex; justify-content: center; margin-top: 14px; }
.loading td, .loadingtxt { color: var(--mut); }

/* ---------------------------------------------------------------- upload */
.stepper { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: s; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; color: var(--mut); font-weight: 600; font-size: 13px; padding-right: 28px; position: relative; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 1px; background: var(--line2); }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; font-size: 12px; background: #fff; }
.stepper li.on { color: var(--ink); } .stepper li.on span { border-color: var(--acc); background: var(--acc); color: #fff; }
.stepper li.done span { border-color: var(--ok); background: var(--ok2); color: var(--ok); }
.drop { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 44px 20px; border: 2px dashed var(--acc3); border-radius: 14px; background: #f8faff; color: var(--ink2); cursor: pointer; transition: background .15s, border-color .15s; font-weight: 400; }
.drop:hover, .drop.over { background: var(--acc2); border-color: var(--acc); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: 100%; margin: 0; }
.drop svg { width: 34px; height: 34px; color: var(--acc); }
.drop b { font-size: 15px; } .drop span { color: var(--mut); font-size: 13px; max-width: 460px; }
#upStep1 { padding: 14px; }
.filebar { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.filebar svg { width: 26px; height: 26px; color: var(--acc); }
.filebar div { flex: 1; min-width: 0; } .filebar b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .filebar span { font-size: 13px; color: var(--mut); }
.mapgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mapf { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fbfcfe; }
.mapf.set { border-color: #bfe3cd; background: #f6fcf8; }
.mapf.need { border-color: #f2c4bf; background: #fff8f7; }
.mapf .lab { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mapf select { height: 36px; font-weight: 500; }
.mapf .eg { font-size: 11.5px; color: var(--mut); margin-top: 6px; font-weight: 400; min-height: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req { color: #c2410c; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.mapextra { display: flex; gap: 14px 28px; flex-wrap: wrap; margin-top: 16px; }
.mapextra label { display: flex; align-items: center; gap: 10px; font-weight: 500; flex-wrap: wrap; }
.mapextra select, .mapextra input { width: auto; margin: 0; height: 36px; }
.upsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 16px; }
.upsum div { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--mut); }
.upsum b { display: block; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.upsum .warnbox { background: var(--warn2); color: var(--warn); } .upsum .warnbox b { color: var(--warn); }
.bar { height: 8px; background: var(--soft); border-radius: 5px; overflow: hidden; margin-top: 14px; } .bar div { height: 100%; width: 0; background: var(--acc); transition: width .2s; }
.done-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid #bfe3cd; border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow); }
.done-card .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--ok2); color: var(--ok); display: grid; place-items: center; flex: none; }
.done-card .ic svg { width: 22px; height: 22px; stroke-width: 2.4; }
.done-card h3 { font-size: 17px; } .done-card .grow { flex: 1; min-width: 0; }
.done-card.bad { border-color: #f2c4bf; } .done-card.bad .ic { background: var(--bad2); color: var(--bad); }
.done-card details { margin-top: 10px; font-size: 13px; } .done-card summary { cursor: pointer; font-weight: 600; }
.done-card .row { margin-top: 14px; }

/* ---------------------------------------------------------------- items */
.itgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.icard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.icard:hover { box-shadow: var(--shadow2); }
.icard.busy { opacity: .5; pointer-events: none; }
.icard.over { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc2); }
.iimg { position: relative; aspect-ratio: 4 / 3; background: var(--soft); }
.iimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg { height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--mut); font-size: 12.5px; text-align: center; padding: 10px; }
.noimg svg { width: 28px; height: 28px; margin: 0 auto; }
.iphoto { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; margin: 0; background: rgba(15, 21, 36, .82); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 8px; cursor: pointer; }
.iphoto svg { width: 14px; height: 14px; }
.noimg + .iphoto { background: var(--acc); }
.ibody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ibrand { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); }
.iname { font-weight: 650; font-size: 15.5px; line-height: 1.3; }
.iprices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.iprices div { background: var(--soft); border-radius: 9px; padding: 7px 10px; font-size: 11.5px; color: var(--mut); }
.iprices b { display: block; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.iprices .save { background: var(--ok2); color: var(--ok); } .iprices .save b { color: var(--ok); }
.icounts { display: flex; gap: 14px; font-size: 12.5px; color: var(--mut); margin-top: 2px; } .icounts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.iact { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.iact .btn { flex: 1; }

/* ---------------------------------------------------------------- activity feed */
.feed { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.ev { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.ev:last-child { border-bottom: 0; }
.ev .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--soft); color: var(--ink2); }
.ev .ic svg { width: 17px; height: 17px; }
.ev .ic.up { background: var(--acc2); color: var(--acc); } .ev .ic.del { background: var(--bad2); color: var(--bad); }
.ev .ic.sw { background: var(--warn2); color: var(--warn); } .ev .ic.new { background: var(--ok2); color: var(--ok); }
.ev .grow { flex: 1; min-width: 0; }
.ev .what { font-weight: 600; } .ev .what code { font-weight: 500; }
.ev .det { color: var(--ink2); font-size: 13px; }
.ev .when { font-size: 12px; color: var(--mut); text-align: right; white-space: nowrap; }
.ev .by { font-size: 12.5px; color: var(--mut); }

/* ---------------------------------------------------------------- staff */
.staffadd { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 16px; align-items: end; margin-top: 10px; }
.staffadd .roles { grid-column: 1 / -1; }
.staffadd > .btn { grid-column: 1 / -1; justify-self: start; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.roles label { position: relative; cursor: pointer; }
.roles input { position: absolute; opacity: 0; }
.roles span { display: block; border: 1.5px solid var(--line2); border-radius: 10px; padding: 10px 12px; font-weight: 400; color: var(--mut); font-size: 12.5px; height: 100%; }
.roles span b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.roles input:checked + span { border-color: var(--acc); background: var(--acc2); }
.roles input:focus-visible + span { box-shadow: 0 0 0 3px var(--acc3); }
.people { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.person:last-child { border-bottom: 0; }
.person .grow { flex: 1; min-width: 180px; } .person .grow b { display: block; font-weight: 600; }
.person select { width: 130px; margin: 0; height: 34px; }

/* ---------------------------------------------------------------- sign-in */
.signin { max-width: 420px; margin: 10vh auto 0; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 40px 34px; box-shadow: var(--shadow2); }
.signin h1 { margin-bottom: 8px; } .signin .mut { margin-bottom: 26px; }
.signin .fine { font-size: 12px; color: var(--mut); margin-top: 18px; }
.btn.ms { background: #2f2f2f; color: #fff; height: 46px; padding: 0 22px; font-size: 14.5px; }
.mslogo { display: grid; grid-template-columns: 9px 9px; gap: 2px; }
.mslogo i { width: 9px; height: 9px; display: block; } .mslogo i:nth-child(1) { background: #f25022; } .mslogo i:nth-child(2) { background: #7fba00; }
.mslogo i:nth-child(3) { background: #00a4ef; } .mslogo i:nth-child(4) { background: #ffb900; }

/* ---------------------------------------------------------------- dialog, toasts */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(16, 24, 40, .3); color: var(--ink); }
dialog::backdrop { background: rgba(15, 21, 36, .45); backdrop-filter: blur(2px); }
dialog form { margin: 0; }
.dlg-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; } .dlg-h h2 { font-size: 18px; }
.x { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--mut); padding: 4px 8px; border-radius: 8px; } .x:hover { background: var(--soft); }
.dlg-b { padding: 14px 22px 4px; display: grid; gap: 14px; }
.dlg-b p { color: var(--ink2); }
#dlgErr { padding: 0 22px; }
.dlg-f { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px 20px; }
.dlg-b .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-pick { display: flex; gap: 14px; align-items: center; }
.photo-pick .pv { width: 96px; height: 72px; border-radius: 10px; background: var(--soft); object-fit: cover; flex: none; display: grid; place-items: center; color: var(--mut); border: 1px solid var(--line); }
.photo-pick input { flex: 1; padding-top: 7px; }
#toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 50; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--shadow2); animation: tin .2s ease-out; max-width: 380px; }
.toast svg { width: 17px; height: 17px; color: #6ee7a8; stroke-width: 2.4; }
.toast.bad { background: var(--bad); } .toast.bad svg { color: #fff; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1000px) { .mapgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .top { gap: 12px; padding: 0 16px; height: auto; flex-wrap: wrap; padding-top: 10px; }
  nav { order: 3; width: 100%; overflow-x: auto; height: 44px; } .whotext { display: none; }
  main { padding: 20px 16px 60px; }
  .summary, .stock .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles { grid-template-columns: 1fr; } .staffadd { grid-template-columns: 1fr; }
  .searchbox input { width: 100%; } .searchbox { flex: 1; min-width: 200px; }
  h1 { font-size: 22px; }
}
@media (max-width: 520px) { .mapgrid { grid-template-columns: 1fr; } .dlg-b .two { grid-template-columns: 1fr; } .cards { grid-template-columns: 1fr; } }
