/* Upper workspace + full-width ledger. Shared by the independent portals. */
.wide-workspace{display:block;width:100%;min-height:100vh;overflow-x:clip}
.wide-workspace .app-main{display:block;width:100%;min-width:0}
.wide-workspace .top-navbar{padding:16px 24px;min-height:70px;gap:16px}
.wide-workspace .content-body{display:block;max-width:none;width:100%;margin:0;padding:22px 24px 32px}
.portal-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;min-width:0}
.operator-upper-grid,.supervisor-upper-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;align-items:stretch;min-width:0}
.wide-workspace .app-sidebar{position:static;width:100%;height:auto;min-height:0;overflow:visible;z-index:auto;border:1px solid #e1e7ef;border-radius:12px;background:#fff;box-shadow:none}
.wide-workspace .sidebar-header{padding:18px 16px;gap:10px;border-bottom:0}
.wide-workspace .sidebar-logo{width:36px;height:36px;font-size:20px;border-radius:10px}
.wide-workspace .sidebar-brand h2{font-size:15px}
.wide-workspace .sidebar-brand p{font-size:11px}
.wide-workspace .portal-badge{margin:0 12px 8px;padding:10px 11px;font-size:12px;border-radius:9px}
.wide-workspace .sidebar-nav-section{padding:0 10px 16px;flex:initial}
.wide-workspace .nav-group-title{padding:10px 9px 7px;font-size:11px}
.wide-workspace .nav-menu{gap:5px}
.wide-workspace .nav-item{padding:10px 11px;font-size:13px;min-height:44px}
.wide-workspace .nav-platform-icon{width:30px;height:30px;font-size:11px}
.wide-workspace .nav-item-left{gap:9px}
.wide-workspace .nav-badge{min-width:26px;height:26px;font-size:12px}
.wide-workspace .op-entry-card{padding:24px 28px;margin:0;min-width:0}
.wide-workspace .op-card-header{margin-bottom:22px;align-items:center;gap:12px}
.wide-workspace .op-card-header h2{font-size:20px}
.wide-workspace .card-subtitle{font-size:13px;line-height:1.7}
.wide-workspace .op-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 24px}
.wide-workspace .op-form-grid .col-span-3{grid-column:1/-1}
.wide-workspace .form-label{font-size:14px;line-height:1.6}
.wide-workspace .op-entry-card .form-input,.wide-workspace .op-entry-card .form-select{font-size:14px;min-height:46px}
.wide-workspace .upload-trigger-btn{width:100px;height:100px}
.wide-workspace .image-preview-item{width:100px;height:100px}
.wide-workspace .supervisor-summary{min-width:0;display:flex;flex-direction:column}
.wide-workspace .workbench-heading{margin-bottom:18px}
.wide-workspace .workbench-heading h2{font-size:27px}
.wide-workspace .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.wide-workspace .stat-card{padding:20px;min-width:0}
.wide-workspace .stat-value{font-size:30px}
.wide-workspace .supervisor-analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:0;flex:1}
.wide-workspace .analytics-card{padding:20px;min-width:0}
.wide-workspace .table-card{width:100%;min-width:0;margin:0}
.wide-workspace .table-header-bar{padding:22px 26px;gap:16px}
.wide-workspace .table-title-wrap h3{font-size:20px}
.wide-workspace .table-helper{font-size:13px}
.wide-workspace .table-filters-wrap .form-input,.wide-workspace .table-filters-wrap .form-select{min-height:44px;font-size:14px}
.wide-workspace .table-responsive{max-height:min(78vh,960px);min-height:300px;overflow:auto}
.wide-workspace .data-table{width:100%;min-width:1260px}
.wide-workspace .data-table th{font-size:14px;padding:16px 15px;white-space:nowrap}
.wide-workspace .data-table td{font-size:14px;padding:18px 15px;line-height:1.75}
.wide-workspace .col-order{min-width:195px}
.wide-workspace .order-no-text{font-size:13px;line-height:1.7}
.wide-workspace .col-opinion{min-width:260px}
.wide-workspace .opinion-preview{font-size:14px;line-height:1.8;max-width:none;white-space:normal;overflow:visible;text-overflow:clip;display:block;-webkit-line-clamp:unset}
.wide-workspace .photo-thumbnails{gap:7px}
.wide-workspace .photo-thumb-btn{width:58px;height:70px}
.wide-workspace .loss-badge,.wide-workspace .defect-pill,.wide-workspace .assignee-badge{font-size:13px}
.wide-workspace .col-actions .btn{font-size:12px;padding:7px 10px}
.wide-workspace .table-footer{padding:17px 26px;font-size:14px}
@media(max-width:1200px){
 .operator-upper-grid,.supervisor-upper-grid{grid-template-columns:200px minmax(0,1fr);gap:18px}
 .wide-workspace .content-body{padding:18px}
 .wide-workspace .op-entry-card{padding:22px}
 .wide-workspace .op-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .wide-workspace .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .wide-workspace .stat-icon{display:none}
 .wide-workspace .supervisor-analytics-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:768px){
 .wide-workspace .top-navbar{padding:16px;min-height:0;position:static;align-items:flex-start}
 .wide-workspace .top-navbar-title h1{font-size:16px}
 .wide-workspace .content-body{padding:14px 12px 24px}
 .portal-workspace{gap:16px}
 .operator-upper-grid,.supervisor-upper-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 .wide-workspace .sidebar-header{padding:14px 14px 10px}
 .wide-workspace .portal-badge{margin:0 12px 10px}
 .wide-workspace .sidebar-nav-section{padding:0 10px 12px}
 .wide-workspace .nav-menu{flex-direction:row;flex-wrap:wrap;gap:5px}
 .wide-workspace .nav-item{padding:8px 9px;font-size:12px;min-height:38px}
 .wide-workspace .nav-platform-icon{width:24px;height:24px;font-size:10px}
 .wide-workspace .nav-badge{min-width:22px;height:22px;font-size:11px}
 .wide-workspace .nav-item-left{gap:6px}
 .wide-workspace .op-entry-card{padding:18px}
 .wide-workspace .op-form-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .wide-workspace .op-form-grid>.form-group{grid-column:1/-1!important}
 .wide-workspace .op-form-grid .col-span-3>div:first-child{flex-wrap:wrap;gap:7px}
 .wide-workspace .op-card-header h2{font-size:18px}
 .wide-workspace .form-label{font-size:13px}
 .wide-workspace .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .wide-workspace .stat-card{padding:16px}
 .wide-workspace .stat-value{font-size:25px}
 .wide-workspace .analytics-card{padding:18px}
 .wide-workspace .table-header-bar{padding:18px 16px}
 .wide-workspace .table-title-wrap h3{font-size:17px;flex-wrap:wrap}
 .wide-workspace .table-responsive{max-height:72vh;min-height:260px}
 .wide-workspace .data-table td{padding:16px 13px}
 .wide-workspace .table-footer{padding:15px 16px;font-size:12px}
}
