/* ============ CMP stylesheet — edit freely; affects entire site ============ */
:root{--bg:#f4f6f9;--card:#fff;--ink:#1f2733;--muted:#7a8699;--line:#e3e8ef;--primary:#1f4e79;--accent:#e08a1e;--ok:#1f8a4c;--radius:10px;--shadow:0 1px 3px rgba(20,30,50,.08)}
*{box-sizing:border-box}body{margin:0;font:14px/1.45 -apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink)}
a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}
.topbar{display:flex;justify-content:space-between;align-items:center;background:var(--primary);color:#fff;padding:10px 18px}
.brand{font-weight:600;font-size:16px}.logo{background:var(--accent);color:#fff;border-radius:6px;padding:2px 8px;font-weight:700;margin-right:6px}
.topright{display:flex;align-items:center;gap:14px}.who{opacity:.9;font-size:13px}
.bell{color:#fff;position:relative}.bell i{position:absolute;top:-6px;right:-10px;background:var(--accent);border-radius:10px;font-size:10px;font-style:normal;padding:0 5px}
.shell{display:flex;min-height:calc(100vh - 46px)}
.side{width:190px;background:#fff;border-right:1px solid var(--line);padding:10px 0;flex-shrink:0}
.side a{display:block;padding:9px 18px;color:var(--ink);border-left:3px solid transparent}
.side a:hover{background:var(--bg);text-decoration:none}.side a.active{border-left-color:var(--accent);background:#eef3f9;font-weight:600;color:var(--primary)}
.main{flex:1;padding:20px 26px;max-width:1200px}
.pagehead{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
h1{font-size:22px;margin:0}h3{margin:0 0 10px}
.btn{background:var(--primary);color:#fff;border:0;border-radius:8px;padding:9px 14px;cursor:pointer;font-size:14px;display:inline-block}
.btn:hover{filter:brightness(1.08);text-decoration:none}.btn.ghost{background:#fff;color:var(--primary);border:1px solid var(--line)}
.btn.sm{padding:5px 9px;font-size:12px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:16px;box-shadow:var(--shadow)}
.widgets{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.widget{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px 18px;min-width:150px;box-shadow:var(--shadow)}
.wv{display:block;font-size:26px;font-weight:700;color:var(--primary)}.wl{color:var(--muted);font-size:12px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media(max-width:800px){.grid2{grid-template-columns:1fr}}
.tbl{width:100%;border-collapse:collapse}.tbl th,.tbl td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);font-size:13px}
.tbl th{color:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.03em}
.kv td{padding:6px 10px}.kv td:first-child{color:var(--muted);width:130px}
.muted{color:var(--muted)}.hidden{display:none}
.pill{padding:2px 9px;border-radius:20px;font-size:11px;background:#eef2f7;color:var(--ink)}
.pill.s-new,.s-assigned{background:#fdeccd;color:#8a5a12}.pill.s-closed,.s-paid{background:#d9f0e2;color:#1f8a4c}.pill.s-draft{background:#eef2f7}
.form label,.f3 label{display:flex;flex-direction:column;gap:4px;margin-bottom:10px;font-size:12px;color:var(--muted)}
input,select,textarea{padding:8px 10px;border:1px solid var(--line);border-radius:7px;font:inherit;background:#fff;color:var(--ink)}
textarea{min-height:70px}.f3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0 14px}@media(max-width:700px){.f3{grid-template-columns:1fr}}
.f3.inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.f3.inline input,.f3.inline select{margin-bottom:0}
.filters{display:flex;gap:8px;margin-bottom:14px}.filters input{min-width:280px}
.flash{background:#d9f0e2;border:1px solid #b6e0c6;color:#1f6a3c;padding:10px 14px;border-radius:8px;margin-bottom:14px}
.err{background:#fce4e4;border:1px solid #f3b7b7;color:#a12; padding:10px;border-radius:8px;margin-bottom:12px}
.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:14px}
.tab{background:none;border:0;padding:10px 14px;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent}
.tab.active{color:var(--primary);border-bottom-color:var(--accent);font-weight:600}
.tabpane{display:none}.tabpane.active{display:block}
.dz{border:2px dashed var(--line);border-radius:10px;padding:26px;text-align:center;color:var(--muted);cursor:pointer;position:relative;margin-bottom:10px}
.dz.drag{border-color:var(--accent);background:#fff7ec}.dz input{position:absolute;inset:0;opacity:0;cursor:pointer}
.timeline div{padding:5px 0;border-bottom:1px dashed var(--line);font-size:13px}
.notei{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--line)}
.avatar{width:34px;height:34px;border-radius:50%;object-fit:cover}
.listrow{display:flex;gap:8px;align-items:center;margin-bottom:8px}.listrow b{min-width:150px}.listrow input[name=values]{flex:1}
.invoice .total td{font-weight:700;border-top:2px solid var(--ink)}
/* auth */
.authbg{background:linear-gradient(135deg,var(--primary),#12324f);min-height:100vh;display:flex;align-items:center;justify-content:center}
.authcard{background:#fff;border-radius:14px;padding:34px;width:360px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.authcard h1{font-size:18px;margin:6px 0 18px}.authcard label{display:flex;flex-direction:column;gap:5px;margin-bottom:14px;font-size:13px}
.authcard .btn{width:100%}.authlogo{background:var(--accent);color:#fff;width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px}
.hint{color:var(--muted);font-size:12px;margin-top:14px}
