/* Compact operations layout: reduce empty space while keeping touch controls usable. */
.content{padding:20px 24px 24px}
.topbar{height:52px;padding:0 24px}
.page-heading{margin-bottom:16px;gap:12px}
h1{font-size:24px}
.page-heading p{margin-top:3px;font-size:12px}
.stats{padding:13px 0;margin-bottom:14px}
.stat{padding:0 20px;gap:1px}
.stat-value{font-size:27px;line-height:1.3}
.stat-note{font-size:12px}
.batch-overview{margin-bottom:8px}
.batch-overview summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;list-style:none}
.batch-overview summary::-webkit-details-marker{display:none}
.summary-toggle{color:var(--primary);font-size:12px;display:flex;gap:8px;align-items:center}
.summary-toggle:after{content:"";display:block;width:7px;height:7px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg) translateY(-2px)}
.batch-overview[open] .summary-toggle:after{transform:rotate(225deg) translateY(-2px)}
.batch-overview #all-batches{float:right}
.batch-overview:after{content:"";display:block;clear:both}
.batch-grid{gap:12px}
.batch-card{padding:13px 16px}
.batch-card .mode-tags{margin-top:5px}
.batch-name{font-size:14px}
.batch-progress{margin-top:10px}
.progress-meta strong{font-size:19px}
.progress-bar{margin-top:5px;height:4px}
.batch-foot{margin-top:8px;padding-top:5px}
.batch-foot .text-button{min-height:32px}
.batch-card .batch-date{font-size:12px;margin-bottom:1px}
.tracking-section{margin-top:16px}
.section-heading{margin-bottom:10px}
.filters{padding:10px 12px;gap:10px}
.table-wrap td{padding-top:9px;padding-bottom:9px}
.table-wrap th{height:38px;padding-top:8px;padding-bottom:8px}
.table-wrap .number-link{text-align:left}
.mobile-recipient{display:none}
.row-warehouse,.row-detail{min-width:54px;min-height:40px;padding:6px 10px;border-radius:5px;font-size:12px;font-weight:500}
.row-warehouse{background:var(--blue-bg);color:var(--primary);border:1px solid #c9dcf7}
.row-warehouse:hover{background:#dceaff}
.row-detail{color:var(--muted);background:transparent}
.badge.warehoused{color:#5f3db2;background:#f2edfc}
.warehouse-parcel{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;background:var(--canvas);border-radius:6px;font-size:13px}
.warehouse-parcel span{color:var(--muted)}
.warehouse-explanation{font-size:13px;margin-top:12px;color:var(--muted)}
.import-options{margin-top:12px;font-size:13px}
.import-options>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--primary)}
.warehouse-history{border:1px solid var(--border);border-radius:7px;margin-top:16px;padding:12px}
.warehouse-history h3{font-size:14px;margin-bottom:8px}
.warehouse-history>div{font-size:12px;padding:7px 0;border-top:1px solid var(--border)}
.warehouse-history strong{font-weight:500;margin-right:12px}
.warehouse-history span,.warehouse-history p{color:var(--muted)}
.drawer{padding:20px 24px}
.drawer-heading{margin-bottom:12px}
.drawer-status{padding:12px;margin-bottom:12px}
.detail-grid{gap:10px 16px;margin:14px 0}
.drawer-tools{gap:8px;padding-top:12px}
.timeline-heading{margin:18px 0 12px}
.timeline li{padding-bottom:15px}
.settings-panel{padding:18px}
.settings-panel label{margin-top:16px}
.settings-layout{margin-bottom:18px}
dialog{padding:20px}
dialog label{margin-top:12px}
.form-actions{margin-top:16px;padding-top:12px}
footer{margin:0 24px;padding:12px 0}
@media(max-width:800px){
  .sidebar{padding:8px 12px 0}
  .brand{padding-bottom:5px}
  .brand img{width:24px;height:24px}
  .brand>span{font-size:18px}
  .sidebar nav{gap:8px}
  .nav-item{min-height:44px;height:44px;margin-bottom:4px;font-size:12px}
  .topbar{height:40px;padding:0 14px}
  .topbar .icon-button{min-height:36px;height:36px;min-width:36px;width:36px}
  .content{padding:14px}
  .page-heading{margin-bottom:12px}
  .page-heading p{display:none}
  .stats{padding:10px 0;margin-bottom:8px}
  .stat{padding:0 12px}
  .stat-note{display:none}
  .batch-card{padding:10px 13px}
  .table-note{font-size:12px}
}
@media(max-width:560px){
  .content{padding:12px}
  .page-heading{flex-direction:row;align-items:center;gap:8px;min-height:44px;margin-bottom:10px}
  h1{font-size:20px}
  #page-title{overflow-wrap:anywhere;line-height:1.45}
  .page-heading .actions{width:auto;gap:8px}
  .page-heading .actions>button{flex:none;min-height:44px;padding:8px 10px;font-size:12px}
  .page-heading .actions [data-icon]{display:none}
  .stats{grid-template-columns:repeat(4,minmax(0,1fr));padding:10px 0}
  .stat{padding:0 6px;border-bottom:0;gap:2px;text-align:center}
  .stat:nth-child(2){border-right:1px solid var(--border)}
  .stat-label{font-size:12px;white-space:nowrap}
  .stat-value{font-size:23px}
  .stat-value small{display:none}
  .batch-overview summary{min-height:40px}
  .batch-overview summary h2{font-size:14px}
  .batch-grid{gap:8px}
  .batch-name{font-size:14px}
  .batch-card{padding:10px 12px}
  .batch-progress{margin-top:7px}
  .batch-card .mode-tag{font-size:12px}
  .batch-foot{margin-top:6px;padding-top:3px}
  .tracking-section{margin-top:10px}
  .tracking-section>.section-heading{align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:8px}
  .tracking-section>.section-heading .actions{width:auto;margin-left:auto;gap:8px}
  .tracking-section>.section-heading .secondary{min-height:44px;font-size:12px;padding:7px 10px}
  .tracking-section>.section-heading .text-button{min-height:44px;padding:5px 3px;font-size:12px}
  .title-inline .muted{font-size:12px}
  #tracking-title{font-size:15px}
  .filters{padding:8px;gap:8px}
  .filter-label{gap:2px;font-size:12px}
  .filter-label select{font-size:12px;padding:7px 4px;min-height:44px}
  .filters .search input{font-size:16px;min-height:44px}
  .table-wrap table{min-width:0;table-layout:fixed}
  .table-wrap th,.table-wrap td{padding:7px 8px}
  .table-wrap th:first-child,.table-wrap td:first-child{width:51%}
  .table-wrap th:nth-child(4),.table-wrap td:nth-child(4){width:28%}
  .table-wrap th:nth-child(7),.table-wrap td:nth-child(7){display:table-cell;width:21%;text-align:right}
  .table-wrap th:nth-child(7) .sr-only{position:static;width:auto;height:auto;margin:0;clip:auto;overflow:visible}
  .table-wrap .number-link{display:block;width:100%;min-height:44px;font-size:12px;white-space:normal;line-height:1.45;text-align:left}
  .table-wrap .number-link>span{white-space:nowrap}
  .table-wrap .mobile-recipient{display:block;font-size:12px;margin-top:3px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .table-wrap .desktop-order{display:none}
  .table-wrap .badge{font-size:12px;padding:3px 6px;gap:4px}
  .row-warehouse,.row-detail{min-height:44px;min-width:44px;padding:7px 6px;font-size:12px;width:100%}
  .table-wrap .query-warning,.table-wrap .paused{font-size:12px}
  .pagination{padding:7px 8px;font-size:12px;gap:8px}
  .page-controls{gap:8px}
  .page-controls .icon-button{min-height:44px;min-width:44px;height:44px;width:44px}
  .table-note{font-size:12px;margin-top:8px}
  footer{margin:0 12px;padding:10px 0;font-size:11px}
  .drawer{padding:16px;max-width:100%;width:100%}
  .drawer-heading{margin-bottom:10px}
  .drawer .icon-button{min-height:44px;min-width:44px}
  .drawer-status{padding:10px}
  .drawer-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .drawer-tools button,.drawer-tools .button-link{font-size:13px;min-height:44px;padding:8px}
  .detail-grid{gap:8px 12px;margin:12px 0}
  .detail-grid dt{font-size:12px;margin-bottom:1px}
  .detail-grid dd{font-size:13px}
  .timeline small,.drawer .timeline-heading small{font-size:12px}
  dialog{padding:16px;max-width:calc(100% - 20px);max-height:calc(100dvh - 24px);border-radius:9px}
  .dialog-heading{margin-bottom:6px}
  .dialog-heading h2{font-size:18px}
  dialog .icon-button{min-width:44px;min-height:44px}
  dialog label{font-size:13px;margin-top:10px}
  dialog input:not([type=checkbox]),dialog select,dialog textarea{font-size:16px;min-height:44px;padding:8px 10px}
  dialog textarea{min-height:64px}
  dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
  dialog .form-grid .full-row{grid-column:1/-1}
  .form-actions{gap:8px;margin-top:12px;padding-top:12px}
  .form-actions button{min-height:44px;flex:1}
  .settings-panel{padding:14px}
  .settings-layout{gap:12px;margin-bottom:16px}
  .settings-panel input,.settings-panel select{font-size:16px}
  .settings-panel button{min-height:44px}
  .job-history{padding:0 12px}
  .job-history-row{padding:10px 0;gap:3px}
}
