
/* KAFE DAPOR RUMAH — Minimal Alarm Dark v3
   Screen only. Functional and print/PDF implementation remains unchanged. */
@media screen {
  :root {
    color-scheme: dark !important;
    --bg:#0b0b0d !important;
    --card:#252527 !important;
    --ink:#f7f7f9 !important;
    --mute:#ababaf !important;
    --line:#3a3a40 !important;
    --inc:#70cb7c !important;
    --exp:#ed7676 !important;
    --acc:#f4a14f !important;
    --accink:#20140b !important;
    --alarm-bg:#0b0b0d;
    --alarm-panel:#252527;
    --alarm-field:#1b1b1f;
    --alarm-stroke:#3a3a40;
    --alarm-text:#f7f7f9;
    --alarm-muted:#ababaf;
    --alarm-orange:#f4a14f;
    --alarm-green:#70cb7c;
    --alarm-red:#ed7676;
  }
  html,body { background:#0b0b0d !important; color:#f7f7f9 !important; }
  body :is(input,select,textarea) { background:#1b1b1f !important; color:#f7f7f9 !important; border-color:#3a3a40 !important; }
  body :is(button,input,select,textarea):focus-visible { outline-color:#f4a14f !important; }
  body :is(dialog,section,.card,.panel) { border-color:#3a3a40 !important; }
  body h1,body h2 { color:#f7f7f9 !important; }

  /* Home: dark grey, white text, single orange cue. */
  body nav > :is(a,button) { background:#252527 !important; color:#f7f7f9 !important; border-color:#3a3a40 !important; border-inline-start:4px solid #f4a14f !important; }
  body nav > :is(a,button) span { color:#f4a14f !important; }

  /* Cash report: no green-tinted surfaces or lime buttons. */
  #report-main .top .cafe-name { color:#f7f7f9 !important; }
  #report-main .card { background:#252527 !important; border-color:#3a3a40 !important; box-shadow:none !important; }
  #report-main .sum div { background:#1b1b1f !important; border-color:#35353b !important; }
  #report-main .dshow,#report-main .entry-amount,#report-main input,
  #report-main select { background:#1b1b1f !important; border-color:#3a3a40 !important; }
  #report-main .dshow > span:first-child { color:#f7f7f9 !important; }
  #report-main .lunar-date { color:#ababaf !important; }
  #report-main .seg button { background:#303035 !important; color:#f7f7f9 !important; border-color:#45454b !important; }
  #report-main .seg button[aria-pressed="true"].i,
  #report-main .seg button[aria-pressed="true"].e {
    background:#f4a14f !important; border-color:#f4a14f !important; color:#20140b !important;
  }
  #report-main .add, #report-main .pdf, #exportPreview .add {
    background:#f4a14f !important; border-color:#f4a14f !important; color:#20140b !important;
  }
  #report-main #tBal,#report-main #colVal { color:#f7f7f9 !important; }
  #report-main #tIn,#report-main #sInc,#report-main .inc { color:#70cb7c !important; }
  #report-main #tOut,#report-main #sExp,#report-main .exp { color:#ed7676 !important; }
  #report-main #toggleEntries { background:#303035 !important; color:#f7f7f9 !important; }
  #deleteDialog { background:#252527 !important; color:#f7f7f9 !important; }
  #exportPreview .card { background:#252527 !important; }
  #exportText { background:#fff !important; color:#141414 !important; }

  /* Sales: no green/olive cards, lime labels or secondary highlight colors. */
  body main > section, body main > .card { background:#252527 !important; color:#f7f7f9 !important; border-color:#3a3a40 !important; }
  body .date,body .date :is(time,span) { color:#f7f7f9 !important; }
  body .amount { background:#1b1b1f !important; color:#f7f7f9 !important; border-color:#3a3a40 !important; }
  body .amount span:last-child { color:#f7f7f9 !important; }
  body #total { color:#f7f7f9 !important; }
  body :is(#export-pdf,#editor button[type="submit"],#export,#share) {
    background:#f4a14f !important; border-color:#f4a14f !important; color:#20140b !important;
  }
  body :is(#preview,#cancel,#close-report,#share-report,#share-image,#add,#save-note,#note-menu) {
    background:#303035 !important; color:#f7f7f9 !important; border-color:#45454b !important;
  }

  /* Invoice & quotation: orange actions, monochrome neutral controls. */
  body :is(#kind,#term,.qty-choice) { color:#f7f7f9 !important; }
  body :is(.line-grip,#subtotal,#total,.summary strong) { color:#f7f7f9 !important; }
  body .remove,body #confirm-delete-line { color:#ed7676 !important; }

  /* Receipt editor: paper stays white; controls stay charcoal/orange. */
  body:has(#makerPane) {
    --green:#f4a14f !important; --green2:#f4a14f !important;
    --peach:#f4a14f !important; --bg:#0b0b0d !important;
    --border:#3a3a40 !important; --muted:#ababaf !important;
  }
  body:has(#makerPane) header,
  body:has(#makerPane) :is(.panel,.hrow,.item,.totals,.notice,#productPicker,#menuPane) {
    background:#252527 !important; color:#f7f7f9 !important; border-color:#3a3a40 !important;
  }
  body:has(#makerPane) .tabs button.active,
  body:has(#makerPane) :is(.btn.main,#saveReceipt,#saveMenu,.topbtn) {
    background:#f4a14f !important; color:#20140b !important; border-color:#f4a14f !important;
  }
  body:has(#makerPane) .brand small { color:#ababaf !important; }
  body:has(#makerPane) :is(.pill,.offline-state) { background:#303035 !important; color:#f7f7f9 !important; }
  body:has(#makerPane) .paper { background:white !important; color:#222 !important; }
}
