/* Shared responsive overrides, loaded after each page's desktop stylesheet. */
.shared-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:16px 0 24px;color:var(--muted,var(--text-muted,#94a3b8));font-size:13px}
.shared-pagination p{margin:0}
.shared-pagination nav{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.shared-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid var(--line,var(--border-color,#303030));border-radius:8px;color:var(--text,var(--text-main,#fff));text-decoration:none;background:var(--card,var(--card-bg,#181818))}
.shared-pagination a[aria-current]{background:#ffc400;color:#111;border-color:#ffc400;font-weight:700}
.shared-pagination a:focus-visible{outline:2px solid #ffc400;outline-offset:2px}
.shared-pagination .page-disabled{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid var(--line,var(--border-color,#303030));border-radius:8px;color:var(--muted,var(--text-muted,#94a3b8));background:var(--card,var(--card-bg,#181818));opacity:.55;cursor:not-allowed}
.workflow-shell .table-wrap,.workflow-shell .table-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}
.workflow-shell .account-card{overflow:visible}
.workflow-shell .data-table{min-width:1000px}
.mobile-nav-toggle[hidden],.workflow-sidebar [hidden]{display:none!important}
.mobile-nav-toggle{display:none}
@media(max-width:900px){
  body.workflow-shell{width:100%;min-width:0}
  .workflow-shell>.main-wrapper,.workflow-shell>.main-content,.workflow-shell>.workflow-main{width:100%;max-width:100%;margin-left:0;min-width:0}
  .workflow-sidebar{position:relative;inset:auto;width:100%;height:auto;max-height:none;overflow:visible;padding:16px;border-right:0}
  .workflow-sidebar .workflow-brand{min-height:44px;margin:0;padding:0 95px 0 0;gap:10px}
  .workflow-sidebar .workflow-brand-logo{width:36px;height:36px}
  .workflow-sidebar .workflow-brand strong{font-size:12px}
  .workflow-sidebar .workflow-brand span{font-size:10px}
  .workflow-sidebar .mobile-nav-toggle{position:absolute;top:16px;right:16px;display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:9px 12px;background:var(--workflow-sidebar-bg);color:var(--text-main,var(--text,#fff));border:1px solid var(--workflow-sidebar-border);border-radius:9px;font:600 13px 'Segoe UI',sans-serif;cursor:pointer}
  .workflow-sidebar .workflow-nav-group{margin-top:18px}
  .workflow-sidebar .workflow-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workflow-sidebar .workflow-sidebar-footer{margin-top:16px}
  .workflow-sidebar .workflow-nav a{min-width:0}
  .workflow-shell .main-content{padding:20px 16px}
  .workflow-shell .top-header{padding:20px 16px;gap:16px}
  .workflow-shell .header-controls{flex-direction:column;align-items:stretch;gap:14px;width:100%;min-width:0}
  .workflow-shell .dashboard-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:12px}
  .workflow-shell .dashboard-filter>*{min-width:0;width:100%}
  .workflow-shell .dashboard-filter .unit-field{grid-column:1/-1;min-width:0}
  .workflow-shell .date-control{width:100%;min-width:0;max-width:100%;min-height:44px}
  .workflow-shell .user-profile{border-left:0;padding-left:0;overflow-wrap:anywhere}
  .workflow-shell .dashboard-container{padding:16px;gap:16px}
  .workflow-shell .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .workflow-shell .metric-card,.workflow-shell .card-panel{min-width:0;padding:18px}
  .workflow-shell .panel-header,.workflow-shell .bottom-bar{flex-wrap:wrap;gap:14px}
  .workflow-shell .summary-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:16px}
  .workflow-shell .summary-item{min-width:0;border:0;padding:0}
  .workflow-shell .settings-grid,.workflow-shell .qr-grid{grid-template-columns:minmax(0,1fr)}
  .workflow-shell .header-title,.workflow-shell .page-header,.workflow-shell .table-header{flex-wrap:wrap;gap:12px;min-width:0}
  .workflow-shell .export-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
  .workflow-shell .filter-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .workflow-shell .table-card,.workflow-shell .table-wrap,.workflow-shell .table-scroll{max-width:100%;min-width:0}
  .workflow-shell .table-scroll{overflow-x:auto;overscroll-behavior-x:contain}
  .workflow-shell .workflow{width:calc(100% - 32px);margin:20px auto}
  .workflow-shell .workflow header{padding:18px;gap:12px}
  .workflow-shell .workflow header h1,.workflow-shell .page-title h1,.workflow-shell .header-title h1,.workflow-shell .header-title h2{font-size:22px;overflow-wrap:anywhere}
  .workflow-shell .workflow header p{line-height:1.6}
  .workflow-shell .filters{gap:8px}
  .workflow-shell .filters a{display:inline-flex;align-items:center;min-height:44px}
  .workflow-shell .account-card{padding:18px}
  .workflow-shell .account-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workflow-shell .qr{display:flex;width:100%;max-width:352px;box-sizing:border-box;margin:10px auto 18px;padding:12px}
  .workflow-shell .qr img{width:100%;min-width:0;max-width:100%;height:auto}
  .workflow-shell .link{overflow-wrap:anywhere}
  .workflow-shell .footer{padding:18px 16px}
}
@media(max-width:600px){
  input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important;min-width:0;max-width:100%;min-height:44px}
  .workflow-shell .metrics-grid,.workflow-shell .filter-form,.workflow-shell .account-form{grid-template-columns:minmax(0,1fr)}
  .workflow-shell .metric-header{gap:10px}
  .workflow-shell .metric-sub{white-space:normal}
  .workflow-shell .panel-header,.workflow-shell .bottom-bar{align-items:flex-start;flex-direction:column}
  .workflow-shell .panel-title{font-size:13px}
  .workflow-shell .top-info{min-width:0}
  .workflow-shell .top-info>div{overflow-wrap:anywhere}
  .workflow-shell .top-vol{flex-shrink:0}
  .workflow-shell .summary-group{grid-template-columns:minmax(0,1fr)}
  .workflow-shell .table-header,.workflow-shell .table-footer{flex-direction:column;align-items:flex-start;gap:12px}
  .workflow-shell .pagination{justify-content:flex-start;flex-wrap:wrap}
  .workflow-shell .pagination a{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .workflow-shell .export-actions>a{flex:1;min-height:44px;justify-content:center}
  .workflow-shell .filter-card,.workflow-shell .settings-grid .card,.workflow-shell .qr-grid .card{padding:16px}
  .workflow-shell .qr-grid .actions{grid-template-columns:1fr}
  .brand-header{flex-wrap:wrap;gap:12px}
  .brand-header .brand-logo{min-width:0}
  .brand-header .brand-title{font-size:22px;white-space:normal}
  .form-card{width:100%;max-width:100%;padding:18px!important}
  .form-card fieldset,.form-card .grid>*,.form-card .grid-2>*,.form-card .grid-3>*,.form-card .grid-4>*{min-width:0}
  @media (max-width: 760px) {
    .form-card .grid,.form-card .grid-2,.form-card .grid-3,.form-card .grid-4,.form-card .form-actions{grid-template-columns:minmax(0,1fr)}
    .form-card .wide{grid-column:1/-1}
    .form-card .registration-ticket-controls{grid-template-columns:minmax(0,1fr)}
  }
  .form-card .upload-box{flex-wrap:wrap;min-width:0}
  .form-card .upload-box>*{min-width:0;overflow-wrap:anywhere}
  .form-card .expected-meter-field,.form-card .expected-meter-label{max-width:100%;width:100%}
  .login-theme-toggle{position:static!important;align-self:flex-end;margin:0 16px 12px;width:auto!important}
  .login-card{padding:26px 20px!important}
  body:has(.login-card) .top-header{padding:20px 16px}
  body:has(.login-card) .main-container{padding:12px 16px 24px}
  .photo-modal{padding:12px!important}
  .photo-modal img{max-width:100%!important;max-height:80dvh!important}
  .workflow:not(.workflow-shell .workflow){width:calc(100% - 24px)}
  .workflow .decision{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workflow .decision input{grid-column:1/-1}
}
@media(max-width:380px){
  .workflow-sidebar .workflow-nav{grid-template-columns:1fr}
  .workflow-shell .dashboard-filter{grid-template-columns:1fr}
  .workflow-shell .dashboard-filter .unit-field{grid-column:auto}
  .workflow-sidebar .workflow-brand strong{font-size:11px}
}
