/* Nyola Pharmacy — online dashboard (temporary deployment). Palette matches
   the desktop app's lemon-green theme for a consistent look. */
:root {
  --lemon: #8bc53f;
  --lemon-dark: #6ea52f;
  --lemon-darker: #588424;
  --lemon-light: #eef8de;
  --lemon-lighter: #f7fcef;
  --white: #ffffff;
  --ink: #22301a;
  --muted: #6b7a5e;
  --border: #dfeccb;
  --danger: #c0392b;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(34, 48, 26, 0.08), 0 1px 2px rgba(34, 48, 26, 0.06);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--white);
}
.center-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--lemon-light) 0%, var(--white) 60%);
  padding: 20px;
}
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 32px 36px; width: 100%; max-width: 360px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--lemon); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.brand-mark-img {
  width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: var(--white);
  flex-shrink: 0;
}
.brand-name { font-weight: 700; color: var(--ink); display: block; }
.brand-sub { font-size: 11.5px; color: var(--muted); }
.brand-motto { font-size: 10.5px; font-style: italic; color: var(--muted); display: block; }
h1 { font-size: 19px; margin: 4px 0 2px; }
.page-sub { color: var(--muted); font-size: 12.5px; margin: 0 0 16px; }
form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
input {
  padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit;
}
button {
  border: none; border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 600;
  cursor: pointer; background: var(--lemon); color: var(--white); transition: background 0.15s;
}
button:hover { background: var(--lemon-dark); }
button:disabled { opacity: 0.6; cursor: default; }
.error-msg { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c0; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.hidden { display: none !important; }

/* ---------- Dashboard shell ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--lemon-darker); color: var(--white);
}
.topbar .brand-name, .topbar .brand-sub, .topbar .brand-motto { color: var(--white); }
.topbar .brand-sub { opacity: 0.85; }
.topbar .brand-motto { opacity: 0.85; }
.topbar-right { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.topbar-right button {
  background: rgba(255,255,255,0.16); color: var(--white); padding: 7px 12px; font-size: 12.5px;
}
.topbar-right button:hover { background: rgba(255,255,255,0.28); }
main { max-width: 1000px; margin: 0 auto; padding: 24px; }
.banner {
  background: var(--lemon-light); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; font-size: 13px; color: var(--lemon-darker); margin-bottom: 18px;
}
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
}
.kpi-label { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.kpi-value { font-size: 26px; font-weight: 700; margin: 6px 0 2px; }
.kpi-card.alert .kpi-value { color: var(--danger); }
.panel {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px;
}
.panel h2 { font-size: 14.5px; margin: 0 0 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); }
td { padding: 7px 8px; border-bottom: 1px solid var(--lemon-lighter); }
.empty-row { color: var(--muted); text-align: center; padding: 18px; }
.muted { color: var(--muted); font-size: 12.5px; }
