/* RiceMill Pro - extra styles on top of the shared iPOS app.css */
:root { --brand: #15803d; --brand-2: #166534; --brand-soft: #e8f5ec; --gold: #d4a017; }
.sidenav { background: #10261a; }
.shopbar { background: #10261a; }
b.dr, .dr { color: #b45309; }
b.cr, .cr { color: #15803d; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.neg { color: var(--bad); }
.calc { background: var(--brand-soft); border-radius: 12px; padding: 10px 14px; }
.calc .kv { grid-template-columns: 1fr auto; gap: 4px 16px; }
.calc .kv div:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; }
.calc .big { font-size: 20px; font-weight: 800; color: var(--brand-2); }
.lines td { padding: 4px; vertical-align: middle; }
.lines input, .lines select { min-height: 36px; padding: 4px 6px; }
.lines .w-s { width: 90px; } .lines .w-m { width: 130px; }
.yield-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: #eee; margin: 6px 0; }
.yield-bar span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.weigh-big { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.stock-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.stock-tile { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.stock-tile b { display: block; }
.stock-tile .q { font-size: 18px; font-weight: 800; color: var(--brand-2); }
.stock-tile.low { border-color: var(--bad); }
.k-paddy { border-left: 4px solid #d4a017; } .k-rice { border-left: 4px solid #15803d; } .k-byproduct { border-left: 4px solid #8b5e34; } .k-packing, .k-other { border-left: 4px solid #64748b; }
.a4 .gp-box { border: 2px solid #000; padding: 10px; margin-top: 14px; }
.a4 .tot2 { width: 50%; margin-left: auto; }
[dir=rtl] .a4 .tot2 { margin-left: 0; margin-right: auto; }

.small { font-size: 13px; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 8px; }
label.f.chk { display: flex; gap: 8px; align-items: center; font-weight: 500; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--brand-soft); }
tr.tot td { border-top: 2px solid var(--line); }
.banner.info { background: var(--brand-soft); color: var(--brand); }
.nbadge { margin-left: auto; background: #f2b705; color: #16202e; border-radius: 99px; font-size: 11.5px; padding: 1px 7px; }
.bottomnav .nbadge { position: absolute; margin: 0 0 0 18px; }
.req-alert { border-left: 4px solid #f2b705; }
.req-card { border-left: 4px solid #f2b705; }
.bk-head .card { margin-bottom: 0; }
.bk-head { margin-bottom: 16px; }

/* ac-list used inline (guest finder), and as buttons */
#gFound.ac-list { position: static; box-shadow: none; margin-bottom: 10px; }
.ac-list:empty { display: none; }
button.ac-row { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; justify-content: flex-start; }
#gsr button.ac-row { border-bottom: 1px solid var(--line); border-radius: 0; }


.btn.wa { background: #1fa855; color: #fff; border-color: #1fa855; }
/* settings */
.room-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 6px 10px; cursor: pointer; font: inherit; }
.chip.off { opacity: .5; text-decoration: line-through; }
.more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.more-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); margin: 0; }
.more-item svg { width: 28px; height: 28px; color: var(--brand); }

/* ---------- print ---------- */
.a4-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 12px; }
.a4-head img { width: 60px; height: 60px; object-fit: contain; }
.a4-head h1 { font-size: 20px; margin: 0; }
.a4-head > div { flex: 1; }
.a4-head h2 { text-align: right; font-size: 16px; margin: 0; }
.a4-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; line-height: 1.5; }
.a4 table.reg th { text-align: left; background: #f3f3f3; text-transform: none; font-size: 12.5px; color: #000; }
.a4 table.folio td, .a4 table.folio th { border: 1px solid #999; }
.a4.land { max-width: none; }
.a4 table.reg-list td, .a4 table.reg-list th { font-size: 10.5px; padding: 3px 4px; text-transform: none; color: #000; }
@media print {
  .a4.land { width: 277mm; }
  .a4 .tablewrap { overflow: visible; }
}

@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar h1 { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .user-chip { display: none !important; }
  #topActions { flex-basis: 100%; order: 5; }
  #topActions:empty { display: none; }
  .a4-grid { grid-template-columns: 1fr; }
  .bk-head { grid-template-columns: 1fr; }
}

/* Urdu (right to left) prints */
.a4.ur { font-size: 14px; line-height: 1.9; }
[dir=rtl] .right, [dir=rtl] th.right, [dir=rtl] td.right { text-align: left; }
[dir=rtl] th, [dir=rtl] td { text-align: right; }
[dir=rtl] .a4-head h2 { text-align: left; }
.rcpt.ur .lr span:last-child { direction: ltr; unicode-bidi: embed; }

.a5 { max-width: 132mm; font-size: 12.5px; }
.a5 .a4-head img { width: 44px; height: 44px; }
.a5 .a4-head h1 { font-size: 17px; }
.sig2 { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; align-items: flex-end; }
.sig2 div:last-child { border-top: 1px solid #000; padding-top: 4px; min-width: 150px; text-align: center; }
.cutline { margin: 22px 0; color: #555; white-space: nowrap; overflow: hidden; }
.job h3 { margin-top: 0; }
/* ---------- 26.10.6 additions ---------- */
.nbadge.rq { background: #ef4444; color: #fff; }
.branch-sel { width: auto; min-height: 34px; padding: 4px 8px; }
