/* Dilsho Admin Console — its own lightweight styling on top of the brand tokens
   (/brand/tokens.css). Kept deliberately small; no framework. */
:root { --gap: 16px; }
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font-body, system-ui, sans-serif);
  color: var(--ink, #2b211d); background: var(--surface-soft, #f6efe9);
}
.boot, .center { display: grid; place-items: center; min-height: 100vh; color: var(--muted, #8a7d75); }

/* ---- Login ---- */
.login-wrap { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.login-card {
  width: 100%; max-width: 380px; background: var(--surface, #fff); border-radius: 18px;
  padding: 28px; box-shadow: 0 18px 50px rgba(0,0,0,.10); border: 1px solid rgba(0,0,0,.05);
}
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.brand img { height: 30px; }
.brand b { font-size: 20px; }
.brand-o { color: var(--coral, #D85A30); }
.login-card h1 { font-size: 20px; margin: 6px 0 2px; }
.login-card .muted { color: var(--muted, #8a7d75); font-size: 14px; margin: 0 0 18px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
input, select {
  width: 100%; padding: 11px 12px; border: 1px solid rgba(0,0,0,.14); border-radius: 10px;
  font-size: 15px; background: #fff; color: inherit;
}
input:focus, select:focus { outline: 2px solid var(--coral, #D85A30); outline-offset: 1px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border: 0; border-radius: 10px; padding: 11px 16px; font-size: 15px; font-weight: 600;
  background: var(--surface-soft, #eee); color: inherit;
}
.btn-primary { background: var(--coral, #D85A30); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid rgba(0,0,0,.15); }
.btn-danger { background: #b3261e; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 18px; }
.btn:disabled { opacity: .55; cursor: default; }
.form-msg { min-height: 18px; font-size: 13px; margin: 10px 0 0; }
.form-msg.err { color: #b3261e; }
.form-msg.ok { color: #1b873f; }
.muted { color: var(--muted, #8a7d75); }
.tiny { font-size: 12px; }

/* ---- Shell ---- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--surface, #fff); border-right: 1px solid rgba(0,0,0,.06); padding: 18px 14px; }
.side .brand { padding: 0 6px 14px; border-bottom: 1px solid rgba(0,0,0,.06); margin-bottom: 12px; }
.navbtn {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  border: 0; background: transparent; color: inherit; padding: 10px 12px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; margin-bottom: 2px;
}
.navbtn:hover { background: var(--surface-soft, #f4ede7); }
.navbtn.is-active { background: var(--coral, #D85A30); color: #fff; }
.navbtn .ico { width: 20px; text-align: center; }
.who { margin-top: 16px; padding: 12px; background: var(--surface-soft,#f4ede7); border-radius: 12px; font-size: 13px; }
.who .role { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 99px; background: var(--coral,#D85A30); color:#fff; font-size: 11px; }
.main { padding: 24px 28px; overflow: auto; }
.main h1 { margin: 0 0 4px; font-size: 22px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

/* ---- Cards / tables / KPIs ---- */
.card { background: var(--surface, #fff); border: 1px solid rgba(0,0,0,.06); border-radius: 14px; padding: 16px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--gap); }
.kpi { background: var(--surface, #fff); border: 1px solid rgba(0,0,0,.06); border-radius: 14px; padding: 18px; }
.kpi .n { font-size: 26px; font-weight: 800; color: var(--coral, #D85A30); }
.kpi .l { color: var(--muted, #8a7d75); font-size: 13px; margin-top: 4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(0,0,0,.06); vertical-align: top; }
table.data th { color: var(--muted, #8a7d75); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
table.data td.r, table.data th.r { text-align: right; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; background: var(--surface-soft,#f0e8e2); }
.pill.in { background: #d8f3e0; color: #1b873f; }
.pill.out { background: #fbdcd9; color: #b3261e; }
.row { display: flex; align-items: center; gap: 10px; }
.stack > * + * { margin-top: var(--gap); }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--surface-soft,#eee); }
.imgcard { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.imgcard img { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; }
.grid-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 6px 14px; }
.checklist label { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 0; }
.checklist input { width: auto; }
fieldset { border: 1px solid rgba(0,0,0,.1); border-radius: 12px; padding: 12px 14px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; }
@media (max-width: 720px) { .shell { grid-template-columns: 1fr; } .side { display: none; } }
