﻿/* VSG Enterprise - admin panel v2 (loaded after admin.css) */
:root{--navy:#1a2260;--ink:#0f172a;--mute:#5b6b82;--line:#e6e9f2;--ok:#1f8a3b;--wa:#1faa59;--sun:#f4881a}
body{background:linear-gradient(180deg,#eef2fb 0,#f6f8fd 320px)}

/* top bar: readable avatar */
.top{background:linear-gradient(100deg,#0b0f2a,#1a2260)}
.who i{background:#fff;color:#1a2260}
.who{background:rgba(255,255,255,.1);padding:4px 14px 4px 5px;border-radius:999px}

/* summary cards */
.cards{gap:16px}
.card{border:0;border-left:0;border-radius:18px;padding:18px 20px;box-shadow:0 8px 24px rgba(26,34,96,.07);position:relative;overflow:hidden}
.card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--c,#1a2260)}
.card b{font-size:30px}

/* status chips */
.chips{gap:10px}
.chip{border-color:var(--line);box-shadow:0 2px 6px rgba(26,34,96,.04)}
.chip.on{box-shadow:0 8px 18px rgba(26,34,96,.25)}

/* filters */
.filters{border:0;border-radius:18px;box-shadow:0 8px 24px rgba(26,34,96,.06);padding:8px 18px 18px;gap:12px 14px}
.quick{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:2px}
.qd{border:1.5px dashed #c7d0e6;background:#fff;color:#334257;border-radius:999px;padding:7px 13px;font:600 13px 'DM Sans',sans-serif;cursor:pointer;min-height:38px}
.qd:hover{border-color:#1a2260;color:#1a2260}.qd.on{background:#1a2260;border-color:#1a2260;color:#fff}

/* table */
.tw{border:0;border-radius:18px;box-shadow:0 10px 30px rgba(26,34,96,.08)}
@media(min-width:721px){table{min-width:1000px}}
th{padding:14px;background:#f1f4fb;letter-spacing:.02em;text-transform:uppercase;font-size:11.5px}
td{padding:16px 14px}
td b{font-weight:700}
.nw{white-space:nowrap}
.nw b{font-family:Poppins,'DM Sans',sans-serif;font-size:14px;letter-spacing:.01em;color:#1a2260}
.ago{color:#1f8a3b!important;font-weight:700;font-size:12.5px}
tbody tr[data-i]{cursor:pointer;transition:background .15s}
tbody tr.new{box-shadow:inset 4px 0 0 var(--sun);background:linear-gradient(90deg,#fff8ef,#fff 40%)}
tbody tr.new:hover{background:#fff4e4}
a.ph{display:block;font-weight:700;text-decoration:none;color:#1a2260;margin-top:2px}
a.ph:hover{text-decoration:underline}
.det{max-width:360px}
.tag{white-space:nowrap;margin-bottom:8px}
.dcs{display:flex;flex-wrap:wrap;gap:6px}
.dc{display:inline-block;background:#f1f4fb;color:#27365a;border-radius:8px;padding:3px 9px;font-size:12.5px;font-weight:600}
.dc.bill{background:#fff1de;color:#a35300}
.msg{margin:8px 0 0;color:#5b6b82;font-size:13.5px;line-height:1.45;background:#f8f9fd;border-left:3px solid #d5dcf0;padding:6px 10px;border-radius:0 8px 8px 0;overflow-wrap:anywhere}
.src b{font-size:13.5px}.src small{color:#5b6b82}
.pill{font-size:12.5px}

/* row actions */
.act{white-space:nowrap}
.ab{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end}
.ib{display:inline-flex;align-items:center;gap:5px;border:0;cursor:pointer;text-decoration:none;font:700 12.5px 'DM Sans',sans-serif;border-radius:999px;padding:7px 11px;min-height:36px;color:#fff;transition:transform .15s,filter .15s}
.ib:hover{transform:translateY(-1px);filter:brightness(1.06)}
.ib span{display:none}
.ib.call{background:#1a2260}.ib.wa{background:var(--wa)}.ib.done{background:#fff;color:#1f8a3b;border:1.5px solid #bfe3c9}
@media(min-width:1500px){.ib span{display:inline}}

/* list footer */
.foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px}
.foot .cnt{margin:0}

/* detail dialog */
.mbox{border-radius:22px;max-width:560px}
.macts{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 4px}
.macts .btn.pri{color:#fff}
.info{display:grid;grid-template-columns:110px 1fr;gap:6px 14px;margin:12px 0 4px;padding:14px;background:#f6f8fd;border-radius:14px;font-size:14px}
.info:empty{display:none}
.info dt{color:#5b6b82;font-weight:700;font-size:12.5px;padding-top:1px}
.info dd{margin:0;overflow-wrap:anywhere;font-weight:600}

/* keep the mobile card layout tidy */
@media(max-width:720px){
 tbody tr.new{background:#fff8ef}
 td{grid-template-columns:84px 1fr}
 .ab{justify-content:stretch}.ab>*{flex:1}
 .ib{justify-content:center}.ib span{display:inline}
 .ab .btn.s{flex:1 1 100%}
 .info{grid-template-columns:96px 1fr}
 .quick{width:100%}
}

@media(min-width:721px){.ab{flex-wrap:nowrap}.act{min-width:190px}}
@media(max-width:720px){
 .cards{grid-template-columns:1fr 1fr;gap:10px}
 .card{padding:12px 12px 12px 16px;gap:10px;border-radius:14px}
 .card .ci{width:38px;height:38px;font-size:18px;border-radius:11px}
 .card b{font-size:24px}.card small{font-size:12px;line-height:1.2;display:block}
 .tb small{display:none}
 .hello h1{font-size:21px}
 .wrap{padding-top:16px}
}
