/* ============================================================================
   receipts.desktop.css — DESKTOP / TABLET (≥768px, loaded via <link media>).
   "light theme 2026" relayout to sit beside the shared AppShell sidebar,
   matching modules/account/pages/account-hub + modules/member profile.desktop
   (light-gray canvas #F4F5F7 · neutral hairlines · ink #181A1D · orange accent
   used sparingly).

   OWNER REVIEW FIX (2026-07-19): the bills/receipts LIST previously rendered as
   a 2–3-up GRID OF WHITE CARDS — each row a white box with border + shadow
   floating on the canvas ("เอาพื้นหลังสีขาวตรง list ออก"). This file now makes
   the LIST FLAT: rows are transparent, separated by a hairline divider
   (#EEF0F3), no per-row border/shadow/box, with a subtle hover (#F7F8FA).
   The summary bar + filter tabs KEEP their light container.

   MOBILE (<768px) never loads this file — the phone view (receipts.css) is the
   Source-of-Truth and is untouched. Scoped to body.ptshell so it only applies
   when the shell chrome is active (same as account-hub).
   ============================================================================ */

/* page canvas → light gray (the shell hides the page's own <header>) */
body.ptshell{background:#F4F5F7}

/* centre every content column to one width */
body.ptshell .sum,
body.ptshell .tabs,
body.ptshell main.page,
body.ptshell .foot{max-width:1080px;margin-left:auto;margin-right:auto}

/* summary bar → light 2026 white card (this is the single kept container) */
body.ptshell .sum{
  margin-top:22px;padding:18px 22px;border-radius:20px;
  background:#fff;border:1px solid #E8EAEF;
  box-shadow:0 18px 44px -30px rgba(20,25,35,.26)
}
body.ptshell .sum .sic{box-shadow:0 10px 22px -10px rgba(239,95,6,.6)}
body.ptshell .sum .sl .k{color:#565C64}
body.ptshell .sum .sl .v{color:#181A1D}
body.ptshell .sum .st .v{font-size:22px}

/* filter tabs row: roomier, wraps, hover affordance */
body.ptshell .tabs{padding:16px 24px 4px;flex-wrap:wrap;overflow:visible}
body.ptshell .tab{cursor:pointer;transition:border-color .14s,background .14s,color .14s}
body.ptshell .tab:hover{border-color:#FFD8BE}

/* content column */
body.ptshell main.page{padding:8px 24px 44px}

/* ===========================================================================
   THE LIST → FLAT (no more grid of white cards)
   =========================================================================== */

/* one flat column — no grid, no gaps, no boxes */
body.ptshell .list{display:block;margin-top:4px}

/* each receipt = a flat row: transparent bg · hairline divider · subtle hover.
   Was: white card (border-color/shadow/radius) in a 2–3-up grid with hover lift.
   The row lays out as two tidy lines inside a 2-col grid:
     line 1 (spans) → [type icon] [bill_no + type label] …… [amount + status]
     line 2         → [issue date]                              [ดูเอกสาร · พิมพ์] */
body.ptshell .rc{
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-areas:"top top" "meta act";
  align-items:center;
  gap:8px 18px;
  margin:0;
  padding:16px 12px;
  background:transparent;
  border:0;
  border-bottom:1px solid #EEF0F3;
  border-radius:0;
  box-shadow:none;
  animation:none;
  transition:background .12s ease
}
body.ptshell .rc:last-child{border-bottom:0}
body.ptshell .rc:hover{background:#F7F8FA}

/* line 1 — icon · bill_no+type · amount+status all centred on one line */
body.ptshell .rc .rtop{grid-area:top;align-items:center;gap:14px}
body.ptshell .rc .rno{color:#181A1D}
/* amount + status chip inline (was a stacked column in the card) */
body.ptshell .rc .ramt{flex-direction:row;align-items:center;gap:12px}

/* line 2 — issue date on the left (drop the dashed in-card divider) */
body.ptshell .rc .rmeta{grid-area:meta;margin:0;padding:0;border-top:0;align-items:center}

/* line 2 — actions pinned to the right, compact auto-width buttons
   (mobile stretches them full-width; desktop keeps them tidy) */
body.ptshell .rc .ract{grid-area:act;margin:0;justify-self:end;flex:0 0 auto}
body.ptshell .rc .ract .btn{
  flex:0 0 auto;width:auto;padding:8px 16px;
  cursor:pointer;transition:filter .12s,background .12s,box-shadow .12s
}
body.ptshell .rc .ract .btn:hover{background:#FAFAFB}
body.ptshell .rc .ract .btn.view:hover{filter:brightness(1.05)}

/* empty / loading / error states: flat + centred on the canvas (no white box).
   They render as direct children of #listHost, so they were never in .list. */
body.ptshell .empty,
body.ptshell .state{
  background:transparent;border:0;box-shadow:none;border-radius:0
}

/* footer spacing */
body.ptshell .foot{margin-top:24px}

/* wider screens: keep the flat list, just a touch more column width */
@media (min-width:1280px){
  body.ptshell .sum,
  body.ptshell .tabs,
  body.ptshell main.page,
  body.ptshell .foot{max-width:1200px}
}
