/* Shared admin layout: keep the bakery identity, give the work more room. */
.site-menu-panel { display: contents; }
.mobile-menu-button { display: none; }
.skip-link { position: fixed; left: 1rem; top: -10rem; z-index: 500; background: white; padding: .8rem; }
.skip-link:focus { top: 0; }
.nav-group-label { color: var(--peach-light); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; padding: .7rem .7rem .2rem; }
.site-nav-menu__items { max-height: 75vh; overflow-y: auto; }
.page-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.page-heading h1 { margin: 0; }
.page-actions, .record-nav { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: .8rem 0; }
.record-nav { border-bottom: 1px solid var(--peach); padding-bottom: .8rem; }
.record-nav [aria-current="page"] { font-weight: bold; border-bottom: 3px solid var(--cocoa); }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1rem 0; }
.table-scroll > table { margin: 0; }
.table-scroll:has(.sales-report-table) { max-height: 70vh; }
.table-scroll .sales-report-table > thead th { top: 0; }
.table-scroll .sales-report-table .sales-group-summary > th { top: var(--sales-column-header-height, 2.5rem); }
.nav-group-label { display: block; }
.table-scroll:focus-visible { outline: 3px solid var(--cocoa); outline-offset: 3px; }
.cost-warning { padding: 1rem; border-left: 4px solid #a96512; background: #fff0d6; color: #482c13; }
.cost-status { font-size: .85em; display: block; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; align-items: end; margin: 1rem 0; }
.filter-grid label { display: block; }
.filter-grid input, .filter-grid select { width: 100%; min-width: 0; box-sizing: border-box; }
.attention-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem; }
.attention-card { background: #fffaf5; border: 1px solid var(--peach); border-radius: .6rem; padding: 1rem; }
.attention-card h3 { margin: 0 0 .5rem; }
.attention-card p { margin: .5rem 0; }
.report-tools { padding: .75rem; border: 1px solid var(--peach); border-radius: .5rem; margin: 1rem 0; }
.report-tools input, .report-tools select { max-width: 100%; }
.report-compact .financial-detail { display: none; }
.technical-details { font-size: .85rem; margin: 1rem 0; overflow-wrap: anywhere; }
@media (max-width: 70rem) {
  .site-header { flex-direction: row; align-items: center; justify-content: space-between; padding: .55rem .8rem; gap: .5rem; }
  .site-logo { width: 2.6rem; height: 2.6rem; }
  .site-brand-name { font-size: 1.4rem; }
  .site-brand-role { font-size: .6rem; }
  .mobile-menu-button { display: block; }
  .site-menu-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cocoa); padding: 1rem; max-height: 75vh; overflow-y: auto; box-shadow: var(--shadow); }
  .site-menu-panel.is-open { display: block; }
  .site-nav { display: block; width: 100%; }
  .site-nav-menu { margin-bottom: .4rem; }
  .site-nav-menu summary, .site-nav-menu__items a { min-height: 44px; box-sizing: border-box; display: flex; align-items: center; }
  .site-nav-menu__items { position: static; width: auto; max-height: none; box-shadow: none; }
  .app-shell { min-width: 0; overflow-x: visible; }
  .table-scroll table { min-width: 42rem; }
  .table-scroll tbody td:first-child { position: sticky; left: 0; background: #fffaf5; z-index: 1; }
  .record-form-grid { grid-template-columns: 1fr; }
  .record-details { grid-template-columns: 1fr; gap: .25rem; }
  .record-details dd { margin-bottom: .75rem; }
  .technical-details input { max-width: 100%; }
}
@media print {
  .mobile-menu-button, .page-actions, .record-nav, .report-tools, .skip-link { display: none !important; }
  .table-scroll { overflow: visible; }
  .table-scroll:has(.sales-report-table) { max-height: none; }
  .sales-report-table th { position: static !important; }
  .table-scroll table { min-width: 0; }
  .table-scroll tbody td:first-child { position: static; }
}
