.bh-production-admin .page-heading { gap: 1rem; }
.bh-production-admin .page-heading h2 { text-wrap: balance; }
.bh-production-admin :is(.grid, .flex, .list-heading, .direita, .card) > * { min-inline-size: 0; }
.bh-production-admin :is(.rolar, .work-scroll) { max-inline-size: 100%; overflow-x: auto; }
.bh-production-admin .rolar { margin-inline: 0; }
.bh-production-admin .rolar:focus-visible { outline-offset: -3px; }
.bh-production-admin :is(td, dd, .sub, .setting-row, .closing-pending) { overflow-wrap: anywhere; }
.bh-production-admin pre { max-inline-size: 100%; overflow: auto; }
.bh-production-admin input:is([type="date"], [type="month"]) { min-inline-size: 0; max-inline-size: 100%; }
.bh-production-admin :is(#studio-error, #support-banner) { overflow-wrap: anywhere; }
.bh-production-admin .settings-tabs { flex-wrap: wrap; overflow: visible; }
.bh-production-admin .settings-tabs button[aria-pressed="true"] {
  background: var(--orange-soft);
  color: var(--ink);
  box-shadow: none;
}
.report-fields { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; gap: 12px; }
.report-fields > div { min-width: 0; }
.report-fields :is(input, select) { width: 100%; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
#r-feedback { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
#r-feedback:has(#r-status:empty):has(#r-open[hidden]) { display: none; }
#r-frame { display: block; width: 100%; height: 64vh; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-top: 12px; }
#r-frame[hidden], #r-open[hidden] { display: none; }
.work-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.work-filters > div { flex: 0 1 240px; }
.work-filters input { width: 100%; }
:is(#bank-status, #oc-status, #scale-status, #clientes-status, #closing-status, #pagamento-status):empty { display: none; }
.closing-steps { list-style: none; padding: 0; margin-bottom: 16px; }
.closing-layout { grid-template-columns: minmax(0, 1fr) minmax(210px, 290px); align-items: start; gap: 16px; }
.closing-layout .card { margin-bottom: 16px; }
.closing-main h3 { margin-bottom: 8px; }
.closing-main .b { margin-top: 0; }
.closing-main input[type=month] { width: auto; margin-top: 0; }
.closing-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.closing-summary { margin: 12px 0 0; }
.closing-summary div { padding: 10px 0; border-top: 1px solid var(--line); }
.closing-summary dt, .closing-pending span:not(.sr-only) { color: var(--muted); font-size: .8125rem; }
.closing-summary dd { margin: 4px 0 0; font-weight: 650; }
.closing-pending { padding: 0; list-style: none; margin: 16px 0; }
.closing-pending li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.closing-pending li > div { min-width: 0; }
.closing-pending strong, .closing-pending span:not(.sr-only) { display: block; }
.closing-check { align-items: flex-start; }
.closing-check input { flex: 0 0 18px; margin: 2px 0 0; }
.closing-main .closing-error { color: var(--red); }
#card-envio summary { cursor: pointer; font-weight: 650; }
#card-envio[open] summary { margin-bottom: 12px; }
.inicio-form .password-visibility { justify-self: start; width: auto; min-height: 44px; margin-top: 6px; }
.bh-production-employee #employee-pin-help { margin: 8px 0; }
.terminal #camera button:not([hidden]) + button:not([hidden]) { margin-top: 10px; }
.terminal .terminal-card { border-radius: 14px; box-shadow: none; }
.terminal #recibo { padding-block: 12px; }
@media (max-width: 760px) {
  .closing-layout { grid-template-columns: minmax(0, 1fr); }
  .closing-confirmation .closing-context { grid-row: 1; margin-bottom: 0; }
  .closing-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .bh-production-admin .settings-tabs { gap: 4px; }
  .bh-production-admin .settings-tabs button { white-space: normal; text-align: start; }
  .bh-production-admin .work-filters > div { flex: 1 1 135px; }
  .report-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-fields > div:nth-child(-n+2) { grid-column: 1 / -1; }
  #r-frame { display: none; }
}
@media (max-width: 420px) {
  .closing-pending li { align-items: flex-start; flex-direction: column; }
  .closing-actions > * { min-width: 0; }
  .closing-steps { gap: 8px 12px; }
  .closing-step { gap: 5px; }
  .closing-step b { width: 26px; height: 26px; }
  .bh-production-admin #sel-empresa { text-overflow: ellipsis; }
}
@media (max-height: 670px) and (orientation: landscape) {
  .terminal { margin-block: 12px; }
  .terminal header { margin-bottom: 12px; }
  .terminal video, .terminal #foto { max-height: 46dvh; }
}
