/* Final responsive overrides: one shell breakpoint, compact content, touch targets preserved. */
.mobile-week-agenda{display:none}
.calendar-help{margin:12px 0;font-size:12px;color:#52697e}.calendar-help summary{cursor:pointer;min-height:36px;display:list-item;padding:8px 0}.week-agenda-hint{font-size:11px;color:#52697e;margin:6px 0}
@media(min-width:1001px){
 body.app-page .sidebar{position:fixed;inset:0 auto 0 0;width:224px;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
 body.app-page{padding-left:224px}
 .sidebar .brand{height:86px;min-height:86px;padding:16px}
 .sidebar nav{display:block;flex:1 1 auto;min-height:0;overflow-y:auto;align-content:start}
 .sidebar nav .nav-item{min-height:30px;padding:6px 9px;margin:1px 8px;font-size:12px}
 .sidebar .nav-section-title{margin:10px 17px 5px}
 .sidebar-status{flex-shrink:0;margin:6px 9px 9px;padding:8px}
}
@media(max-width:1000px){
 body.app-page{font-size:14px;line-height:1.45}
 .main-shell,.main-shell.with-desktop-header{padding:10px 12px calc(var(--mobile-bottom) + 16px)!important}
 .mobile-topbar{padding-left:12px;padding-right:12px;min-height:calc(56px + env(safe-area-inset-top));padding-top:calc(6px + env(safe-area-inset-top));padding-bottom:6px}
 .mobile-brand>span{width:34px;height:34px;border-radius:9px}.mobile-brand small{font-size:10px;margin-top:1px}
 .main-shell>.portfolio-context{display:none}.scope-explanation{padding:8px 10px;margin-bottom:10px;font-size:11px;line-height:1.4}
 .sidebar nav{display:block!important;align-content:start}.sidebar nav .nav-item{min-height:40px;padding:9px 10px;margin:1px 0;font-size:13px}.sidebar .brand{height:auto;min-height:0;padding:4px;margin:0 0 8px}.sidebar .nav-section-title{margin:9px 10px 4px}
 .mobile-bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))}.mobile-bottom-nav a,.mobile-bottom-nav button{font-size:10px;gap:3px}.mobile-bottom-nav svg{width:20px;height:20px}
 .app-page .panel,.app-page .compact-panel,.app-page .desktop-filter-panel{padding:12px!important;margin-bottom:12px!important;border-radius:11px!important;box-shadow:0 2px 8px #15223508}
 .app-page .table-panel,.app-page .desktop-orders-table{padding:0!important}
 .app-page h1{font-size:23px}.app-page h2{font-size:18px}.app-page p{line-height:1.45}
 .panel-heading,.desktop-panel-heading,.page-header{gap:8px;margin-bottom:10px}.panel-heading p,.desktop-panel-heading p{font-size:12px}
 .app-page .button,.app-page button:not(.mobile-bottom-nav button),.app-page select,.app-page input:not([type=checkbox]):not([type=radio]):not([type=hidden]){min-height:44px}
 .app-page .button{padding:8px 11px;font-size:13px}.app-page label{gap:4px;line-height:1.35}
 .app-page .form-grid,.app-page .form-grid.three,.app-page .form-grid.two,.app-page .desktop-order-filters{gap:9px}
 .panel .form-grid{margin-top:10px}.mobile-filter-options>summary{padding:9px 0}.mobile-filter-options>div{gap:8px}
 .app-page .desktop-order-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}.desktop-order-filters>label,.desktop-order-filters>details{grid-column:1/-1}.desktop-order-filters>.button{grid-column:auto;width:100%}
 .quick-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 0 8px;align-items:stretch}
 .quick-filters a{display:flex;align-items:center;justify-content:center;flex:none;min-width:0;min-height:40px!important;padding:7px 9px!important;border-radius:8px!important;font-size:12px!important;line-height:1.25;text-align:center;white-space:normal}
 .quick-filters a:last-child:nth-child(odd){grid-column:1/-1}.saved-filters-panel summary{font-size:12px;padding:6px 0}
 .mobile-order-list,.sales-customer-list,.inactive-customer-list{gap:8px;margin-top:10px}.mobile-order-card{padding:12px;border-radius:11px}.mobile-order-card h2{margin:5px 0;font-size:16px!important}.mobile-order-card h2 a{min-height:0}.mobile-order-reference{margin:4px 0 8px}.mobile-order-footer{margin-top:8px;padding-top:8px}
 .priority-panel{margin:8px 0}.priority-shortcuts{gap:7px;margin:10px 0;grid-template-columns:repeat(2,minmax(0,1fr))}.priority-shortcuts a{padding:8px;gap:2px}.priority-shortcuts strong{font-size:21px}.priority-shortcuts span{font-size:12px}
 .priority-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;padding:9px 0;font-size:13px}.priority-row small{font-size:12px;margin-top:2px}.priority-panel .panel-heading>.button{min-height:36px}
 .sales-summary,.summary-grid,.invoice-kpis,.deadline-summary-grid{gap:7px!important;margin:10px 0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.sales-summary>a,.sales-summary>div,.summary-grid article,.app-page .invoice-kpis>div{padding:10px!important}.deadline-summary-card{padding:9px 10px!important;min-height:62px}.deadline-summary-card span{font-size:11px}.deadline-summary-card strong{font-size:23px}
 .customer-page .sales-customer-card,.customer-page .inactive-customer-card{padding:12px;gap:9px}.customer-page .sales-customer-facts,.customer-page .inactive-facts{display:flex;gap:6px 14px;flex-wrap:wrap}.customer-page .sales-customer-facts>span,.customer-page .inactive-facts>span{width:auto}
 .customer-next-summary{margin:6px 0}.sales-reason-box,.inactive-reason{margin:6px 0!important}.customer-page .sales-customer-actions,.customer-page .inactive-customer-actions{gap:6px}.work-search{padding:10px;gap:8px;margin-bottom:12px}.work-heading{margin-bottom:10px}.work-heading h2{margin:0 0 3px}.work-heading p{margin:0 0 8px;font-size:12px}.work-priorities{margin-bottom:10px}.work-tabs a{padding:8px;font-size:12px;min-height:40px}
 .app-page .invoice-list-modern .invoice-card-modern{padding:11px;gap:6px}.app-page .invoice-card-modern .invoice-card-value strong{font-size:19px}.app-page .invoice-card-value .invoice-open-link{padding:5px 0}.invoice-stat-card{padding:12px!important}
 table.mobile-cards>tbody{gap:8px}table.mobile-cards>tbody>tr{padding:11px!important;gap:0 10px}table.mobile-cards>tbody>tr>td{padding:5px 0!important;font-size:13px;line-height:1.35}table.mobile-cards>tbody>tr>td:before{margin-bottom:3px;font-size:9px}
 table.deadline-table.mobile-cards>tbody>tr{grid-template-columns:minmax(0,1fr) auto}
 table.deadline-table.mobile-cards>tbody>tr>td:nth-child(1){grid-column:1;font-size:14px}table.deadline-table.mobile-cards>tbody>tr>td:nth-child(2){grid-column:2}
 table.deadline-table.mobile-cards>tbody>tr>td:nth-child(2):before,table.deadline-table.mobile-cards>tbody>tr>td:nth-child(3):before,table.deadline-table.mobile-cards>tbody>tr>td:nth-child(7):before{display:none}
 table.deadline-table.mobile-cards>tbody>tr>td:nth-child(n+3){grid-column:1/-1}table.deadline-table.mobile-cards>tbody>tr>td:nth-child(3){padding-top:3px!important}table.deadline-table.mobile-cards>tbody>tr>td:nth-child(4):before,table.deadline-table.mobile-cards>tbody>tr>td:nth-child(5):before,table.deadline-table.mobile-cards>tbody>tr>td:nth-child(6):before{display:inline;margin-right:6px}
 .work-dialog{padding:14px}.work-dialog-head{margin-bottom:10px}.work-dialog label:has(textarea){margin-top:8px}#appointment-form>label,#appointment-form>.form-grid{margin-bottom:10px}.work-dialog p{margin:7px 0;font-size:12px}
 .calendar-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:9px}.calendar-toolbar>.work-inline{display:grid;grid-template-columns:40px auto 40px minmax(0,1fr);gap:5px;width:100%}.calendar-toolbar .button{padding:7px;min-height:40px}.calendar-toolbar h3{width:auto;margin:0 0 0 5px;font-size:13px}.calendar-toolbar .work-tabs{margin:0;display:flex;width:100%;justify-content:space-around}.calendar-toolbar .work-tabs a{flex:1;text-align:center}
 .calendar-filters{margin-bottom:10px}.calendar-filters>summary{display:block;padding:9px 11px;font-size:12px;background:#fff;border:1px solid #d8e2ec;border-radius:8px}.calendar-filters .work-search{margin-top:6px}
 .calendar-instructions{font-size:11px;margin:6px 0}.calendar-footnote{font-size:11px;margin-top:12px}.calendar-overdue{padding:9px 11px;margin-bottom:10px;font-size:12px}
 .mobile-week-agenda{display:block}.desktop-week-grid{display:none!important}
 .week-day-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:8px 0 10px}
 .app-page .week-day-strip button{padding:7px 1px;display:grid;justify-items:center;gap:2px;border:1px solid #d9e2ed;background:#fff;color:#294459;border-radius:9px;min-width:0;min-height:67px;font:inherit}
 .week-day-strip span{font-size:10px}.week-day-strip strong{font-size:18px;line-height:1.2}.week-day-strip small{font-size:9px;white-space:nowrap}.week-day-strip .is-today{border-color:#d12636}.week-day-strip [aria-selected=true]{background:#c81f31!important;border-color:#c81f31!important;color:#fff!important}
 .mobile-week-agenda [hidden]{display:none!important}.week-agenda-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:8px 0;font-size:13px}.week-agenda-heading a{color:#205b86;display:flex;align-items:center;min-height:36px;font-size:12px}
 .week-agenda-events .calendar-event{padding:10px;margin-bottom:7px;min-height:0}.week-agenda-events .appointment-open{display:block;font-size:15px;min-height:36px!important;white-space:normal}.week-agenda-events .calendar-event-time{font-size:11px}.week-agenda-events .calendar-event-actions .button{min-height:36px;font-size:12px;padding:6px 9px}.week-agenda-empty{padding:16px 12px;border:1px dashed #cedae7;background:#fff;border-radius:10px;text-align:center;color:#566a7e;font-size:13px}.week-add{width:100%}
}
@media(max-width:360px){.mobile-bottom-nav a,.mobile-bottom-nav button{font-size:9px}.calendar-toolbar h3{font-size:11px}.week-day-strip{gap:2px}}
