/* Sevenday POS — "ศูนย์การเงิน" (fincenter.js) · ใช้สีจาก style.css */
#fc-modal[hidden] { display: none !important; }
.fc-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.fc-head h2 { margin: 0; font-size: 22px; }
.fc-head p { margin: 4px 0 0; color: var(--on-surface-variant, #555); font-size: 14px; max-width: 70ch; }
.fc-empty { text-align: center; padding: 40px 16px; color: var(--on-surface-variant, #555); }
.fc-banner { background: #e3f2fd; color: #0d47a1; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fc-banner.warn { background: #fff3e0; color: #8a4b00; }
.fc-btn { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.fc-btn.primary { background: var(--primary, #4f46e5); border-color: var(--primary, #4f46e5); color: #fff; }
.fc-btn.ghost { background: transparent; }
.fc-btn.big { min-height: 48px; padding: 10px 22px; font-size: 16px; }
.fc-btn.sm { padding: 3px 10px; font-size: 12.5px; }
.fc-btn:disabled { opacity: .45; cursor: default; }
.fc-salary { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; background: #fff; border: 1px solid var(--border); border-left: 6px solid #2e7d32; border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
.fc-k { font-size: 13px; color: var(--on-surface-variant, #555); }
.fc-big { font-size: 30px; font-weight: 700; font-family: 'Geist', sans-serif; line-height: 1.15; }
.fc-lak { font-size: 12.5px; color: var(--on-surface-variant, #666); }
.fc-sal-meta { flex: 1; min-width: 220px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.fc-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.fc-totals > div { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; }
.fc-totals span { font-size: 12.5px; color: var(--on-surface-variant, #555); }
.fc-totals b { font-size: 20px; font-family: 'Geist', sans-serif; }
.fc-totals p { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--on-surface-variant, #777); }
.fc-totals .fc-warn b { color: #b26a00; } .fc-totals .fc-ok b { color: #2e7d32; }
.fc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.fc-card { background: #fff; border: 1px solid var(--border); border-top: 4px solid #90a4ae; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fc-b-DEPOSIT { border-top-color: #78909c; } .fc-b-COGS { border-top-color: #6a1b9a; } .fc-b-OPEX { border-top-color: #1565c0; }
.fc-b-TAX { border-top-color: #b26a00; } .fc-b-RESERVE { border-top-color: #00838f; } .fc-b-GROWTH { border-top-color: #558b2f; } .fc-b-OWNER { border-top-color: #2e7d32; }
.fc-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 14px; }
.fc-card-h small { color: var(--on-surface-variant, #888); font-size: 11px; }
.fc-avail { font-size: 22px; font-weight: 700; font-family: 'Geist', sans-serif; }
.fc-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--on-surface-variant, #555); }
.fc-row.small { font-size: 11.5px; }
.fc-bar { height: 6px; background: #eceff1; border-radius: 3px; overflow: hidden; margin-top: 2px; }
.fc-bar i { display: block; height: 100%; background: #43a047; }
.fc-card-a { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.fc-neg { color: #c62828; } .fc-pos { color: #2e7d32; }
.fc-muted { color: var(--on-surface-variant, #777); font-size: 12.5px; }
.fc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fc-sec { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; min-width: 0; }
.fc-sec h3 { margin: 0 0 8px; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.fc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fc-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; font-size: 14px; flex-wrap: wrap; }
.fc-list li.off { opacity: .5; }
.fc-acts { display: flex; gap: 6px; }
.fc-table-wrap { overflow-x: auto; }
.fc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fc-table th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--on-surface-variant, #555); padding: 6px; border-bottom: 1px solid var(--border); }
.fc-table td { padding: 6px; border-bottom: 1px solid #f2f2f2; vertical-align: top; }
.fc-table .r, .fc-lv .r { text-align: right; white-space: nowrap; }
.fc-in { width: 130px; max-width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.fc-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin: 10px 0; }
.fc-sold { font-size: 14px; margin-bottom: 8px; }
.fc-tag { background: #fff3e0; color: #8a4b00; border-radius: 8px; padding: 1px 8px; font-size: 11.5px; }
.fc-lv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f2f2f2; font-size: 13.5px; }
.fc-lv .fc-bar { width: 120px; margin-left: auto; }
.fc-est { margin-top: 10px; background: #fff8e1; border-radius: 8px; padding: 8px 10px; font-size: 13.5px; }
.fc-ledger { list-style: none; margin: 0; padding: 0; font-size: 13px; max-height: 360px; overflow: auto; }
.fc-ledger li { display: grid; grid-template-columns: 78px 1fr auto; grid-template-areas: "a b d" "a c d"; gap: 0 8px; padding: 5px 0; border-bottom: 1px solid #f4f4f4; }
.fc-ledger li > :nth-child(1) { grid-area: a; } .fc-ledger li > :nth-child(2) { grid-area: b; } .fc-ledger li > :nth-child(3) { grid-area: c; overflow-wrap: anywhere; } .fc-ledger li > :nth-child(4) { grid-area: d; align-self: center; }
.fc-warn { color: #b26a00; font-size: 13px; margin-top: 8px; }
.fc-settings summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.fc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 10px 0; }
.fc-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; min-width: 0; }
.fc-f.wide, .fc-form .wide { grid-column: 1 / -1; }
.fc-f input, .fc-f select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 14px; width: 100%; box-sizing: border-box; }
.fc-split { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fc-split label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.fc-split input { padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; font: inherit; width: 100%; box-sizing: border-box; }
#fc-modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 950; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fc-m-box { background: #fff; border-radius: 14px; width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.fc-m-title { font-size: 17px; font-weight: 700; margin: 0; }
.fc-m-body { display: flex; flex-direction: column; gap: 10px; }
.fc-m-err { color: #c62828; font-size: 13px; min-height: 18px; }
.fc-m-foot { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 760px) {
  .fc-totals { grid-template-columns: 1fr 1fr; }
  .fc-grid2, .fc-form { grid-template-columns: 1fr; }
  .fc-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-big { font-size: 26px; }
  .fc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-avail { font-size: 18px; }
  .fc-table th:nth-child(4), .fc-table td:nth-child(4) { display: none; }
  .fc-in { width: 100%; }
  .fc-salary .fc-btn.big { width: 100%; }
}
.fc-seg { display: inline-flex; gap: 4px; margin-left: auto; }
.fc-comm-lines { margin-top: 10px; } .fc-comm-lines summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.fc-comm-lines select { padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
