/* Vendapon admin v2 — light by default, dark theme via [data-theme=dark] */
:root { --a-bg: #fff; --a-side: #fff; --a-side-line: #ececE6; --a-card: #f7f7f3; --a-text: #141412; --a-muted: #8a8a83; --a-soft: #5f5f58; --a-line: #ececE6; --a-hover: #f1f1ec; --a-on: #e3ebdc; --a-on-text: #145500; --a-input: #f1f1ec; --a-shadow: 0 1px 3px rgba(0,0,0,.05); }
[data-theme="dark"] { --a-bg: #0f1113; --a-side: #0f1113; --a-side-line: rgba(255,255,255,.08); --a-card: #181b1e; --a-text: #e8e8e3; --a-muted: rgba(232,232,227,.5); --a-soft: rgba(232,232,227,.75); --a-line: rgba(255,255,255,.08); --a-hover: rgba(255,255,255,.06); --a-on: rgba(255,255,255,.1); --a-on-text: #a8e6d4; --a-input: #22262a; --a-shadow: none; }
.adm-body { background: var(--a-bg); color: var(--a-text); }
.adm-body .muted { color: var(--a-muted); }
.adm { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; background: var(--a-side); color: var(--a-text); display: flex; flex-direction: column; padding: 18px 12px; border-right: 1px solid var(--a-side-line); }
.adm-logo img { height: 26px; width: auto; display: block; margin: 4px 10px 18px; }
.adm-logo .logo-dark { display: none; } [data-theme="dark"] .adm-logo .logo-light { display: none; } [data-theme="dark"] .adm-logo .logo-dark { display: block; }
.adm-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--a-card); margin-bottom: 14px; }
.adm-user-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #ff5fa0, #ffb347); color: #fff; font-weight: 700; display: grid; place-items: center; flex: none; }
.adm-user-text { min-width: 0; line-height: 1.2; }
.adm-user-text b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-user-text small { display: block; font-size: 11px; color: var(--a-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--a-soft); font-size: 14px; font-weight: 500; cursor: pointer; position: relative; }
.adm-nav a i { font-style: normal; width: 20px; text-align: center; opacity: .7; font-size: 14px; }
.adm-nav a:hover { background: var(--a-hover); color: var(--a-text); }
.adm-nav a.is-on { background: var(--a-on); color: var(--a-text); }
.adm-nav a.is-on i { color: var(--a-on-text); opacity: 1; }
.adm-nav a em { position: absolute; right: 10px; font-style: normal; font-size: 10px; font-weight: 700; background: #ff5fa0; color: #fff; padding: 2px 6px; border-radius: 999px; }
.adm-nav-group { margin: 8px 0 4px; }
.adm-nav-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--a-muted); padding: 6px 10px 4px; }
.adm-side-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px 0; border-top: 1px solid var(--a-side-line); }
.adm-side-foot .mini-quiet { color: var(--a-soft); }
.adm-side-foot .mini-quiet:hover { background: var(--a-hover); color: var(--a-text); }
.adm-main { padding: 28px 32px 60px; min-width: 0; }
.adm-h1 { font-size: 26px; margin: 0 0 6px; }
.adm-h1 .muted { font-size: 14px; font-weight: 500; color: var(--a-muted); margin-left: 8px; }
.adm-h2 { font-size: 16px; margin: 26px 0 10px; }
.adm-h2 .muted { font-size: 12px; font-weight: 500; color: var(--a-muted); margin-left: 6px; }
.adm-th { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-search { border: 0; background: var(--a-input); color: var(--a-text); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 13px; width: 220px; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.adm-card { background: var(--a-card); border-radius: 16px; padding: 14px 16px; box-shadow: var(--a-shadow); }
.adm-card small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--a-muted); }
.adm-card b { display: block; font-size: 28px; margin: 2px 0; }
.adm-card span { display: block; font-size: 12px; color: var(--a-soft); font-weight: 500; }
.adm-two { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; align-items: start; }
.adm-map { display: grid; grid-template-columns: 1fr 240px; gap: 12px; }
.adm-map-box { aspect-ratio: 1000/520; }
.adm-map-side { background: var(--a-card); border-radius: 16px; padding: 14px; box-shadow: var(--a-shadow); font-size: 13px; }
.adm-mp h3 { margin: 6px 0 2px; font-size: 16px; }
.adm-pin { border: 0; background: transparent; padding: 0; cursor: pointer; }
.adm-pin .pin-dot { width: 26px; height: 26px; border: 2px solid #fff; }
.adm-pin.st-online .pin-dot { box-shadow: 0 0 0 3px rgba(20,85,0,.35); }
.adm-pin.st-offline .pin-dot { box-shadow: 0 0 0 3px rgba(255,120,0,.45); }
.adm-legend { display: inline-flex; gap: 8px; align-items: center; margin-left: 6px; }
.adm-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.adm-legend .st-online, .chip.st-online, .chip.st-claimed, .chip.st-accepted, .chip.st-approved { background: #e3ebdc; color: #2f4a25; }
.adm-legend .st-offline, .chip.st-offline, .chip.st-retired, .chip.st-cancelled, .chip.st-rejected, .chip.st-expired { background: #fbe6d6; color: #6f4a2e; }
.adm-legend .st-unknown, .chip.st-unknown, .chip.st-unclaimed, .chip.st-pending, .chip.st-maintenance { background: #f9f1d2; color: #6b5a1c; }
.adm-legend .st-online { background: #145500; } .adm-legend .st-offline { background: #ff7800; } .adm-legend .st-unknown { background: #d9b24a; }
.chip-green { background: #e3ebdc; color: #2f4a25; }
.adm-mlist { list-style: none; margin: 8px 0 0; padding: 0; }
.adm-mlist li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.adm-mlist .chip { width: 10px; height: 10px; padding: 0; border-radius: 50%; }
.adm-act { list-style: none; margin: 0; padding: 0; background: var(--a-card); border-radius: 16px; box-shadow: var(--a-shadow); }
.adm-act li { padding: 10px 14px; border-top: 1px solid var(--a-line); font-size: 13px; font-weight: 500; }
.adm-act li:first-child { border-top: 0; }
.adm-act-when { display: inline-block; width: 64px; color: var(--a-muted); font-size: 12px; }
.adm-eds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.adm-ed { background: var(--a-card); border-radius: 16px; padding: 12px; text-align: center; box-shadow: var(--a-shadow); text-decoration: none; color: inherit; }
.adm-ed-img { position: relative; height: 90px; display: grid; place-items: center; }
.adm-ed-img img { max-height: 84px; max-width: 80%; }
.adm-3d { position: absolute; top: 0; right: 0; font-size: 10px; font-weight: 700; background: var(--g); color: #fff; padding: 2px 6px; border-radius: 999px; }
.adm-ed b { display: block; font-size: 13px; margin-top: 6px; }
.adm-ed small { display: block; font-size: 11px; color: var(--a-muted); font-weight: 500; }
.adm-table-wrap { overflow: auto; background: var(--a-card); border-radius: 16px; box-shadow: var(--a-shadow); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--a-muted); padding: 12px 12px 8px; white-space: nowrap; position: sticky; top: 0; background: var(--a-card); }
.adm-table td { padding: 9px 12px; border-top: 1px solid var(--a-line); vertical-align: middle; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.adm-table td .adm-mono { white-space: normal; }
.adm-table tr.is-off td { opacity: .5; }
.adm-table td.is-edit { text-decoration: underline; text-decoration-color: var(--pill-darker); text-underline-offset: 3px; cursor: text; }
.adm-table td.is-edit:hover { background: var(--tint-y); }
.adm-thumb { width: 28px; height: 34px; object-fit: contain; display: block; }
.adm-mono { font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: .04em; }
.adm-rowbtns { display: flex; gap: 6px; }
.adm-team { background: var(--a-card); border-radius: 16px; padding: 4px 16px 12px; margin-top: 14px; box-shadow: var(--a-shadow); }
.adm-team-head { display: flex; justify-content: space-between; align-items: center; }
.adm-team .adm-table th { position: static; }
.adm-toolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 14px; }
.adm-tool { background: var(--a-card); border-radius: 16px; padding: 16px; box-shadow: var(--a-shadow); }
.adm-tool h3 { margin: 0 0 4px; font-size: 15px; }
.adm-tool .pill { text-align: left; }
.adm-login { max-width: 460px; margin: 90px auto 60px; text-align: center; padding: 0 24px; }
.adm-login-logo { height: 40px; width: auto; display: block; margin: 0 auto 26px; }
.adm-login h1 { font-size: 30px; margin: 0 0 18px; }
.adm-login .muted { color: var(--a-soft); font-weight: 500; margin: 0 0 18px; }
.adm-login .pill { text-align: left; }
.adm-tabs { margin: 0 auto 18px; }
.adm-alt { margin-top: 18px; font-size: 13px; color: var(--a-muted); display: flex; gap: 10px; justify-content: center; }
.adm-alt .linkish { font-size: 13px; }
.adm-note { text-align: left; margin: 18px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--a-card); border: 1px solid var(--a-line); }
.adm-note b { display: block; font-size: 15px; margin-bottom: 4px; }
.adm-note p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--a-soft); font-weight: 500; }
.adm-note .row-btns { margin-top: 12px; }
.adm-note.is-ok { background: #e3ebdc; border-color: #cfe0c4; color: #2f4a25; } .adm-note.is-ok p { color: #2f4a25; }
.adm-note.is-err { background: #fbe6d6; border-color: #f2cfb7; color: #6f4a2e; } .adm-note.is-err p { color: #6f4a2e; }
.adm-note.is-warn { background: #f9f1d2; border-color: #ecdca0; color: #6b5a1c; } .adm-note.is-warn p { color: #6b5a1c; }
.adm-note.is-wait { color: var(--a-soft); }
.adm-panel { text-align: left; margin-top: 18px; padding: 20px; border-radius: 20px; background: var(--a-card); border: 1px solid var(--a-line); }
.adm-panel h2 { margin: 0 0 4px; font-size: 18px; }
.adm-panel .muted { margin-bottom: 12px; }
.adm-peek { font-size: 13px; padding: 10px 12px; border-radius: 12px; background: #e3ebdc; color: #2f4a25; margin-bottom: 8px; font-weight: 500; }
.adm-peek.is-bad { background: #fbe6d6; color: #6f4a2e; }
[data-theme="dark"] .pill { background: var(--a-input); } [data-theme="dark"] .pill input, [data-theme="dark"] .pill select { color: var(--a-text); } [data-theme="dark"] .pill input::placeholder { color: var(--a-muted); }
[data-theme="dark"] .mini { background: var(--a-input); color: var(--a-text); } [data-theme="dark"] .sheetbox { background: var(--a-card); color: var(--a-text); } [data-theme="dark"] .sheet-x { background: var(--a-input); color: var(--a-text); }
[data-theme="dark"] .adm-map-box { filter: brightness(.85); }
.tipbox { position: absolute; z-index: 60; background: #141412; color: #fff; font-size: 12px; font-weight: 500; padding: 7px 10px; border-radius: 8px; max-width: 260px; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.adm-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #141412; color: #fff; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 999px; opacity: 0; transition: all .25s; z-index: 70; }
.adm-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 900px) { .adm { grid-template-columns: 1fr; } .adm-side { position: static; height: auto; } .adm-nav { flex-direction: row; flex-wrap: wrap; } .adm-nav-group { display: contents; } .adm-nav-label { display: none; } .adm-nav a span { display: none; } .adm-two, .adm-map { grid-template-columns: 1fr; } .adm-main { padding: 18px; } }
[data-theme="dark"] .empty-note { background: var(--a-card); color: var(--a-soft); }
[data-theme="dark"] .adm-body .text-link, [data-theme="dark"] .linkish { color: var(--a-text); }
[data-theme="dark"] .seg { background: var(--a-input); } [data-theme="dark"] .seg button { color: var(--a-soft); } [data-theme="dark"] .seg button.is-on { background: var(--a-card); color: var(--a-text); }
[data-theme="dark"] .tipbox { background: #fff; color: #141412; }
.adm-thumb-btn { border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 8px; }
.adm-thumb-btn:hover { background: var(--a-hover); }
.adm-add { border: 0; background: var(--a-input); color: var(--a-soft); font: inherit; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.adm-add:hover { background: var(--g); color: #fff; }
.adm-add-soft { background: transparent; color: var(--a-muted); padding-left: 0; }
.adm-table td.is-edit .adm-add-soft { text-decoration: none; }

/* machines module */
.mx-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 10px; }
.mx-tab { border: 0; background: var(--a-input); color: var(--a-soft); font: inherit; font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mx-tab em { font-style: normal; font-size: 10px; background: var(--a-card); color: var(--a-muted); padding: 1px 6px; border-radius: 999px; }
.mx-tab.is-on { background: var(--ink); color: #fff; } .mx-tab.is-on em { background: rgba(255,255,255,.2); color: #fff; }
.mx-tab.is-empty { opacity: .5; }
.mx-totals { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--a-soft); font-weight: 500; margin-bottom: 10px; }
.mx-totals b { color: var(--a-text); font-size: 15px; margin-right: 4px; }
.mx-live { color: #145500; font-size: 11px; font-weight: 700; margin-left: auto; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.mx-mapclip { border-radius: var(--radius); overflow: hidden; background: var(--tint-o); }
.mx-map { will-change: transform; }
.adm-pin.is-sel .pin-dot { box-shadow: 0 0 0 4px var(--fuchsia); }
.adm-pin.is-event .pin-dot { border-color: #ffb900; }
.mx-mp-head { display: flex; justify-content: space-between; align-items: center; }
.mx-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 8px; }
.mx-kpis div { background: var(--a-input); border-radius: 12px; padding: 8px 10px; }
.mx-kpis small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a-muted); }
.mx-kpis b { display: block; font-size: 18px; }
.mx-kpis span { display: block; font-size: 11px; color: var(--a-muted); font-weight: 500; }
.mx-spark-wrap { color: var(--g); background: var(--a-input); border-radius: 12px; padding: 8px 10px 4px; margin-bottom: 10px; }
.mx-spark { width: 100%; height: 40px; display: block; }
.mx-bar { height: 8px; border-radius: 999px; background: var(--a-input); overflow: hidden; }
.mx-bar span { display: block; height: 100%; background: var(--g); border-radius: 999px; }
.mx-bar span.is-warm { background: #ffb900; } .mx-bar span.is-hot { background: var(--o); }
.mx-bar-sm { width: 70px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.mx-barlbl { font-size: 12px; color: var(--a-soft); margin-top: 6px; font-weight: 500; }
.mx-hot { color: var(--o); font-weight: 600; }
.mx-run { font-size: 12px; font-weight: 600; margin: 8px 0 0; }
.mx-eds { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12px; }
.mx-eds li { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px solid var(--a-line); }
.mx-row { cursor: pointer; } .mx-row.is-on td { background: var(--a-on); }
/* activity module */
.act-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 12px; }
.act-tools .adm-search { flex: 1; min-width: 220px; }
.adm-date { border: 0; background: var(--a-input); color: var(--a-text); border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 12px; }
.act-list { background: var(--a-card); border-radius: 16px; box-shadow: var(--a-shadow); }
.act-row { display: grid; grid-template-columns: 120px 220px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 14px; border-top: 1px solid var(--a-line); font-size: 13px; font-weight: 500; }
.act-row:first-child { border-top: 0; }
.act-when { color: var(--a-muted); font-size: 12px; }
.act-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .act-who em { font-style: normal; font-size: 11px; color: var(--a-muted); }
.act-what i { font-style: normal; color: var(--a-soft); }
.act-diff { font-size: 11px; color: var(--a-muted); cursor: help; }
@media (max-width: 900px) { .act-row { grid-template-columns: 1fr; gap: 2px; } }
.mx-map .pin { transform: translate(-50%, -50%) scale(var(--mxs, 1)); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.mx-map .pin .pin-tag { display: none; }
