/* Poultry Manager - extra styles on top of the shared iPOS app.css */
:root { --brand: #15803d; --brand-2: #166534; --brand-soft: #e8f5ec; }
.sidenav { background: #14301c; }
.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; }


.mono { font-family: ui-monospace, Consolas, monospace; }
.chg { color: var(--bad); font-weight: 700; }
.neg { color: var(--bad); }
tr.late td { background: #fff6f5; }
tr.off td { opacity: .5; }
.seg button small { opacity: .7; }
.prod small.neg { color: var(--bad); font-weight: 700; }
.cartlines .cartline { display: flex; align-items: center; gap: 8px; }
.prod span { color: var(--brand); font-weight: 700; margin-top: auto; }
.totals .big { font-size: 20px; font-weight: 800; border-top: 2px solid var(--ink); padding-top: 8px; margin-top: 4px; }
.totals { max-width: 420px; margin-left: auto; }
.cart .totals { max-width: none; }
.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; }

.a4 table.rx-view th, .a4 table.rx-view td { border: 1px solid #555; color: #000; font-size: 14px; padding: 6px 12px; }
.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; }
@media (max-width: 820px) {
  .rx-in { min-width: 54px; font-size: 15px; padding: 4px 2px; }
  table.rx-grid th.rx-eye { width: 54px; font-size: 11.5px; }
  table.rx-grid td { padding: 2px; }
}

/* ---------- 26.10.6 additions ---------- */
.nbadge.rq { background: #ef4444; color: #fff; }
.branch-sel { width: auto; min-height: 34px; padding: 4px 8px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gal-item { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 8px; text-align: left; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 3px; position: relative; }
.gal-item:hover { outline: 2px solid var(--brand-soft); }
.gal-item img, .gal-ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: var(--soft, #eef6f8); display: flex; align-items: center; justify-content: center; }
.gal-ph svg { width: 48px; height: 48px; color: var(--muted); }
.gal-item small { color: var(--muted); }
.gal-item span { color: var(--brand); font-weight: 800; }
.gal-item em { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--bad); font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.gal-big { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: center; }
.gal-big img { width: 100%; border-radius: 12px; }
@media (max-width: 820px) { .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gal-big { grid-template-columns: 1fr; } }

/* ---------- poultry ---------- */
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.flock-card { margin: 0; cursor: pointer; border-top: 4px solid var(--brand); }
.flock-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.flock-card.off { border-top-color: var(--line); opacity: .8; }
.fc-shed { font-size: 17px; }
.fc-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 8px; }
.fc-nums div { background: var(--bg); border-radius: 8px; padding: 6px 8px; }
.fc-nums small { display: block; font-size: 11px; color: var(--muted); }
.fc-nums b { font-size: 15px; }
.dl-card { margin-bottom: 10px; border-left: 4px solid #f2b705; }
.dl-card.done { border-left-color: var(--brand); }
.dl-grid label.f { margin: 0; }
.dl-grid label.f span { font-size: 12px; }
.dl-grid input, .dl-grid select { min-height: 38px; }
.dl-note { grid-column: span 2; }
td.b, span.b { font-weight: 700; }
.stat .val small { font-size: 13px; font-weight: 600; color: var(--muted); }
.spark { width: 100%; height: 140px; display: block; }
.sp-bar { fill: var(--brand); opacity: .75; }
.sp-line { fill: none; stroke: var(--brand); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.sp-line2 { fill: none; stroke: #d98e04; stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.sp-axis { stroke: var(--line); }
.sp-t { font-size: 11px; fill: var(--muted); }
.a5 { max-width: 140mm; }
.cutline { margin: 16px 0; text-align: center; color: #666; }
@media (max-width: 1100px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fc-nums { grid-template-columns: repeat(2, 1fr); } .dl-note { grid-column: 1 / -1; } }
.shopbar { background: linear-gradient(90deg, #102716, #1a3d24) !important; }
.shopbar-t small { color: #a9c7b0; }
.topbar h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 120px; }
#topActions { flex-wrap: wrap; justify-content: flex-end; }
@media (min-width: 821px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar h1 { min-width: 260px; }
  #topActions { margin-left: auto; }
}
.fc-nums b { white-space: nowrap; font-size: 14.5px; }
