/* Figma: 16:2213, 55:3276, 159:2442, 159:2862, 166:2234, 178:5879. */
.auth-card h1{line-height:1.05}
.auth-register .field-middle_name{grid-column:1/-1;width:calc(50% - 10px)}
.sidebar nav{gap:4px}
.sidebar nav a,.logout{line-height:1.05}
.sidebar nav .subnav{padding-top:8px;padding-bottom:8px}
.sidebar nav .subnav.current{color:#fff}
.sidebar img{flex:none}
.workspace.compact-top{padding-top:35px}
.page-header{margin-bottom:20px}
.page-header:has(+.stats){margin-bottom:20px}
.stat>span{line-height:1.05}
.stat{min-width:0}
.stat-selected{outline:1px solid #e0d0ff;box-shadow:0 0 10px #7a25cb15}
.stats{margin-bottom:24px}
.queue-view .stats{margin-bottom:32px}
.catalog-filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:32px;position:relative}
.catalog-filters>select{border:0;background-color:#eaeaea;border-radius:100px;width:210px;max-width:100%;height:48px;padding:12px 16px;color:#616161;font-size:16px}
.catalog-filters>select{appearance:none;padding-right:50px;background-image:url('/assets/icons/audit_dropdown.svg?v=2'),radial-gradient(circle at center,#fff 70%,transparent 72%);background-repeat:no-repeat;background-size:20px 20px,40px 40px;background-position:right 14px center,right 4px center}
.portal:has(.matching-header){background:var(--bg)}
.search-box{display:flex;align-items:center;background:#eaeaea;border-radius:10px;padding:4px;margin-left:auto;width:331px;max-width:100%}
.search-box input{border:0;background:transparent;height:40px;padding:10px 12px;min-width:0}
.search-box button{display:flex;justify-content:center;align-items:center;border:0;background:#a15bf6;border-radius:10px;height:40px;min-width:59px;padding:8px}
.advanced-filters{font-size:14px;color:#616161}
.advanced-filters summary{cursor:pointer;padding:10px 0}
.advanced-filters[open]{flex-basis:100%}
.advanced-fields{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding-top:12px}
.advanced-fields label{flex:1;min-width:150px}
.advanced-fields .button{min-height:48px;padding:10px 18px}
.metric-cards{display:grid;grid-template-columns:1.45fr 1.45fr .92fr;gap:12px;margin-bottom:24px}
.metric{display:flex;flex-direction:column;justify-content:center;gap:12px;min-width:0}
.metric h3{font-size:20px;line-height:1.05}
.metric p{font-size:16px;line-height:1.05}
.metric .big{font-size:48px;line-height:1.05}
.metric-note{font-size:14px;line-height:1.05;color:#616161;align-self:flex-start}
.metric-note.positive{background:#d3f89c;color:#497a00;border-radius:50px;padding:8px 10px;align-self:auto}
.metric-progress span{display:block;text-align:right;font-size:14px;margin-bottom:6px}
.sla-metric progress::-webkit-progress-value{background:linear-gradient(90deg,#497a00,#00b697)}
.region-chart h2{font-size:32px;margin-bottom:20px}
.region-chart .bar-row+.bar-row{margin-top:20px}
.bar-row .row{font-size:16px;line-height:1.05;margin-bottom:8px}
progress{border-radius:10px;background:#f0f0f0}
progress::-moz-progress-bar{background:linear-gradient(90deg,#8e3ae4,#cdafff);border-radius:10px}
.region-chart progress::-webkit-progress-value{box-shadow:0 0 5px #a15bf6}
.bar-row.green progress::-webkit-progress-value{background:linear-gradient(90deg,#7ab621,#b6f45e);box-shadow:none}
.bar-row.orange progress::-webkit-progress-value{background:linear-gradient(90deg,#ff7a00,#ffde9c);box-shadow:none}
.bar-row.red progress::-webkit-progress-value{background:linear-gradient(90deg,#ff1f3d,#ff9aa7);box-shadow:none}
.document-header{display:flex;gap:24px;align-items:center;justify-content:space-between;margin-bottom:20px}
.document-tabs{display:flex;gap:12px;min-width:0}
.document-tabs>a{display:flex;align-items:center;justify-content:space-between;gap:24px;width:277px;padding:16px 24px}
.document-tabs strong{font-size:24px;line-height:1.05}
.document-tabs .selected{outline:1px solid #e0d0ff;box-shadow:0 0 16px #7a25cb15}
.catalog-table{background:#fff;border-radius:10px;box-shadow:0 0 12px #4646460a}
.catalog-table table{font-size:16px;line-height:1.2}
.catalog-table th{background:#fff;font-size:14px;font-weight:400;color:#545454;border-bottom:1px solid #a15bf6}
.catalog-table th,.catalog-table td{padding:22px 20px;vertical-align:middle;text-align:center}
.catalog-table td{border-bottom:1px solid #d4d4d4}
.catalog-table small{display:block;font-size:12px;color:#777;margin-top:6px}
.catalog-table .request-table{min-width:1000px;font-size:14px}
.catalog-table .request-table th,.catalog-table .request-table td{padding:18px 12px}
.request-table tbody tr:nth-child(even){background:#f8f3ff}
.request-number{font-weight:700;text-decoration:underline;text-underline-offset:3px}
.status-badge{display:inline-flex;align-items:center;justify-content:center;white-space:normal;line-height:1.05;border-radius:100px;background:#e0d0ff;color:#5f19a0;padding:7px 12px;font-size:14px;min-width:100px;max-width:180px}
.status-problem,.status-paused,.document-error{background:#ff9da8;color:#970003}
.status-completed{background:#d3f89c;color:#497a00}
.status-cancelled,.document-review{background:#d9d9d9;color:#545454}
.status-new{background:#fff2ae;color:#8c5600}
.status-en_route,.status-accepted,.status-arrived,.status-delivering{background:#d3f89c;color:#497a00}
.table-actions{display:flex;align-items:center;justify-content:center;gap:10px}
.button.outline{background:#fff;border:1px solid #8e3ae4;color:#5f19a0}
.button.small{min-height:46px;padding:12px 24px;font-size:14px}
.round-button{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;flex:none;border-radius:50%;padding:12px}
.form-dialog{border:0;border-radius:20px;padding:32px 40px;width:714px;max-width:calc(100vw - 32px);max-height:90svh;color:#333;background:#fff;box-shadow:0 8px 70px #30154e55}
.form-dialog::backdrop{background:#33333366;backdrop-filter:blur(3px)}
.form-dialog h2{font-size:32px;margin-bottom:24px}
.form-dialog input,.form-dialog select{background:#f5f5f5;border:0}
.dialog-close,.preview-close{position:absolute;right:20px;top:15px;border:0;background:none;font-size:30px;line-height:1;color:inherit}
.analytics-top{display:grid;grid-template-columns:1fr 1.1fr;gap:12px;margin-bottom:24px}
.analytics-metrics{display:grid;grid-template-columns:1.1fr 1fr;gap:12px}
.analytics-metrics .sla-metric{grid-column:1/-1}
.analytics-metrics .cancellation-metric{background:#fff2f2}
.sla-regions h3{font-size:24px;font-weight:700;margin-bottom:20px}
.sla-regions .bar-row+.bar-row{margin-top:14px}
.analytics-middle{display:grid;grid-template-columns:1.65fr 1fr;gap:12px;margin-bottom:24px}
.hours-chart{background:#f8f3ff}
.hours-chart h3,.ranking h3{font-size:24px;font-weight:700;margin-bottom:20px}
.hours-chart svg{width:100%;display:block;min-width:0}
.hours-chart text{font-family:Circe,Arial,sans-serif;font-size:12px;fill:#5f19a0}
.hours-chart circle:focus{stroke:#30154e;stroke-width:3;outline:none}
.ranking{background:#582582;color:#fff}
.ranking th{background:transparent;color:#e0d0ff;font-weight:400}
.ranking th,.ranking td{border-color:#bb91f5;padding:12px 8px;font-size:14px}
.ranking small{display:block;color:#e0d0ff;font-size:12px}
.ranking .empty{color:#e0d0ff;padding:30px 10px}
.problems-report .bar-row{margin:16px 0}
.problems-report h2{font-size:32px;margin:0}
.problems-report .catalog-table{box-shadow:none;margin-top:24px}
.analytics-extra{margin-top:24px;color:#616161}
.analytics-extra summary{cursor:pointer}
.analytics-extra .panel{display:grid;gap:16px;margin-top:16px}
.queue-layout{display:grid;grid-template-columns:1fr;gap:12px;align-items:start}
.queue-layout.with-preview{grid-template-columns:minmax(0,2fr) minmax(300px,1fr)}
.with-preview .request-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.request-card{display:block;min-width:0;line-height:1.05}
.request-card>.row:first-child{gap:8px;align-items:start}
.request-card strong{font-size:18px;line-height:1.05}
.priority-badge{font-size:12px;padding:7px 10px}
.priority-badge::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:3px;vertical-align:middle}
.request-card time{display:block;margin-top:4px}
.request-card .vehicle{margin:20px 0;font-size:14px;padding:12px}
.request-card .vehicle strong{font-size:14px}
.request-card .vehicle img{flex:none}
.request-card .vehicle span{text-align:right}
.request-card.priority-high{box-shadow:0 0 20px #ff667522}
.request-card.card-selected{background:#f8f3ff;outline:1px solid #cdafff}
.countdown .row{font-size:16px;margin-bottom:6px}
.countdown strong{font-size:20px;color:#497a00}
.countdown progress::-webkit-progress-value{background:linear-gradient(90deg,#7ab621,#b6f45e)}
.countdown.urgent strong{color:#ff7a00}
.countdown.urgent progress::-webkit-progress-value{background:linear-gradient(90deg,#ff7a00,#ffe0a0)}
.countdown.overdue strong{color:#ed0025}
.countdown.overdue progress::-webkit-progress-value{background:linear-gradient(90deg,#ff1f3d,#ff9aa7)}
.queue-preview{border-radius:20px;background:#b482fb;padding:24px 20px;position:relative;display:flex;flex-direction:column;gap:16px}
.queue-preview>.badge{align-self:flex-start}
.queue-preview h2{font-size:28px}
.queue-preview h3{font-size:24px;font-weight:700}
.queue-preview .vehicle{margin:0}
.queue-preview dl{margin:0}
.queue-preview dl div{grid-template-columns:1fr;gap:8px;border:0}
.queue-preview dt{color:#545454}
.queue-preview dd{background:#ffffff66;padding:16px;border-radius:10px}
.queue-preview form .button{width:100%}
.map-header h1{font-size:32px}
.map-header .tabs{margin:20px 0}
.map-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:20px;align-items:stretch}
.map-list{display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - 230px);overflow:auto}
.map-list .request-card{padding:18px}
.map-list .request-card .row{flex-wrap:wrap}
.map-list p{margin-top:12px}
.map-surface{background:#eeeaf2;border-radius:12px;min-height:500px;display:flex;align-items:center;justify-content:center;padding:32px;text-align:center}
.map-surface h2{font-size:28px}
.map-surface p{margin-top:16px;max-width:420px}
.pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:24px;flex-wrap:wrap}
.item-view{background:#f7f3ff}
.case-layout{display:grid;grid-template-columns:minmax(330px,437px) minmax(0,1fr);gap:40px;align-items:start}
.case-left,.case-right{min-width:0}
.case-right{position:sticky;top:20px}
.breadcrumb{font-size:14px;line-height:1.05;color:#8e3ae4;margin:6px 0 24px}
.breadcrumb a:hover{text-decoration:underline}
.case-summary{border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:12px}
.case-summary h1{font-size:24px;line-height:1.05}
.case-summary>.badge{padding:0;background:none;align-self:flex-start}
.case-summary .creator{display:flex;align-items:center;gap:4px;font-size:14px;padding:8px;background:#f8f3ff;border-radius:8px;align-self:flex-start}
.creator img{flex:none}
.case-badges{display:flex;gap:8px;flex-wrap:wrap}
.case-badges .status-badge{min-width:0}
.case-tabs{margin:32px 0}
.case-tabs a{font-size:14px;line-height:1.05;padding:10px 14px}
.case-left>.panel:not(.case-summary){margin-bottom:20px;border-radius:20px;padding:20px}
.case-left .customer-card{background:#5f19a0;color:white}
.case-left .driver-card{background:#7a25cb;color:white}
.person-header{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.person-header h2{font-size:16px;line-height:1.05;margin:0}
.person-header small{font-size:12px}
.person-avatar{background:#ffffff66;display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;flex:none}
.contact-icon{background:#b482fb;border-radius:50%;padding:4px;display:flex;flex:none;margin-left:auto}
.person-data{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;margin:0 0 16px;font-size:14px;line-height:1.15}
.person-data div{display:block;padding:0;border:0}
.person-data .wide{grid-column:1/-1}
.person-data dt{color:#d2b1fc;font-size:12px;margin-bottom:4px}
.person-data dd{color:#fff}
.case-left .button.small{min-height:40px;padding:10px 20px}
.case-left .button-glass{background:#b482fb33}
.case-progress ol{list-style:none;padding:0;margin:0}
.case-progress li{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:0 0 20px 20px;border-left:2px dashed #e0d0ff;position:relative;color:#999;font-size:14px}
/* The 14px marker is centered on the 2px line, relative to the item's padding edge. */
.case-progress li::before{content:"";position:absolute;left:-8px;top:0;background:#fff;border:2px solid #e0d0ff;border-radius:50%;box-sizing:border-box;width:14px;height:14px}
.case-progress li.reached{border-left-color:#b482fb;border-left-style:solid;color:#a15bf6}
.case-progress li.reached::before{background:#a15bf6;border-color:#a15bf6}
.case-progress li.current{font-weight:700;color:#5f19a0}
.case-progress li.current::before{background:#5f19a0;border-color:#5f19a0;box-shadow:0 0 6px #a15bf6}
.case-progress li:last-child{padding-bottom:0;border-color:transparent}
.case-progress time{font-size:11px;white-space:nowrap;font-weight:400}
.case-map{height:calc(100vh - 70px);min-height:560px;position:relative;padding:40px 24px 160px;overflow:hidden;background:#eae7ee;align-items:center}
.map-placeholder{max-width:480px}
.map-placeholder h2{font-size:28px}
.map-placeholder p{font-size:16px;line-height:1.4}
.map-addresses{position:absolute;bottom:12px;left:12px;right:12px;display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);align-items:center;gap:16px;background:#545454;color:#fff;padding:16px;border-radius:16px;text-align:left}
.map-addresses small{display:block;color:#ccc;font-size:14px;margin-bottom:8px}
.map-addresses strong{display:block;font-size:16px;line-height:1.1;overflow-wrap:anywhere}
.map-addresses>span{font-size:40px;text-align:center}
.recipient{margin-top:16px}
.case-operations{display:flex;flex-direction:column;gap:20px}
.case-operations .panel{border-radius:20px;padding:20px}
.case-operations h2{font-size:24px}
.case-operations .form-actions{gap:8px;margin-top:16px}
.case-operations .button{font-size:14px;min-height:40px;padding:10px 16px}
.case-comment{border:1px solid #a15bf6}
.case-comment textarea{height:190px}
.case-comment button{margin-top:12px}
.case-history{border-radius:20px;min-height:calc(100vh - 70px);padding:20px 12px}
.case-history h2{font-size:20px;font-weight:400;padding:0 8px;margin-bottom:16px}
.case-history ol{list-style:none;margin:0;padding:0}
.case-history li{display:grid;grid-template-columns:96px minmax(0,1fr) 100px 100px;gap:12px;padding:12px 10px;font-size:14px;line-height:1.15;border-radius:8px}
.case-history li:nth-child(-n+2){background:#f8f3ff}
.case-history li p{margin-top:8px;color:#7a25cb;overflow-wrap:anywhere}
.case-history li time{font-size:12px}
.case-history .event-role{align-self:start;justify-self:start;font-size:12px;border-radius:100px;padding:6px 10px;background:#e0d0ff;color:#5f19a0}
.case-history .role-driver{background:#b6f1ff;color:#00516d}
.case-history .role-dispatcher,.case-history .role-admin{background:#d9d9d9;color:#545454}
.case-history .role-system{background:#eee;color:#616161}
.case-history dl div{display:block}
.case-photos h2,.case-documents h2{font-size:18px}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.photo-grid img{display:block;width:100%;height:100px;object-fit:cover;border-radius:4px}
.photo-more{border:0;border-radius:4px;background:#eee3ff;color:#7a25cb;font-size:14px;padding:8px}
.document-pills{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.document-pills>a{display:inline-flex;align-items:center;gap:8px;background:#eee3ff;color:#7a25cb;border-radius:100px;padding:12px 20px;font-size:14px;line-height:1.05}
.document-pills img{filter:brightness(.5);flex:none}
.document-tools{font-size:14px}
.document-tools summary{cursor:pointer;font-size:16px}
.document-tools[open]>summary{margin-bottom:16px}
.document-tools p{margin:12px 0;overflow-wrap:anywhere}
.file-review{padding:16px 0;border-bottom:1px solid #ddd}
.file-review h3{font-size:18px;margin-bottom:12px}
.file-review form{margin-top:16px}
.file-review .form-actions{margin-top:0}
.file-review .button{font-size:12px}
.photos-dialog{width:1000px;max-width:calc(100vw - 24px);max-height:90svh;border:0;border-radius:20px;padding:32px;overflow:auto;color:#333}
.photos-dialog::backdrop{background:#30154e99}
.photos-dialog h2{font-size:28px;margin-bottom:24px;padding-right:20px}
.all-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.all-photos figure{margin:0}
.all-photos img{width:100%;height:180px;object-fit:cover}
.all-photos figcaption{font-size:14px;margin-top:8px}
.matching-header{margin-bottom:20px}
.matching-header p{font-size:20px;font-weight:700;margin-top:16px}
.matching-note{margin-top:24px}
.filter-chip{border-radius:100px;background:#eee3ff;padding:14px 16px;color:#5f19a0;font-size:14px}
.candidate-card header{display:flex;align-items:center;gap:8px;margin-bottom:24px}
.candidate-card header strong{display:block;font-size:16px}
.candidate-card small{display:block;font-size:14px;color:#616161;margin-bottom:4px}
.candidate-card small.availability{font-size:12px;color:#497a00}
.candidate-card .person-avatar{background:#eaeaea}
.candidate-rating{margin-left:auto;font-size:12px;background:#d3f89c;color:#497a00;white-space:nowrap;border-radius:20px;padding:4px 8px}
.candidate-distances{display:flex;justify-content:space-between;gap:12px;margin-bottom:24px}
.candidate-distances strong,.candidate-card>strong{display:block;font-size:16px}
.candidate-preview>.person-avatar{align-self:flex-start}
.candidate-preview .availability{color:#305200}
.form-progress{margin:0 0 32px}
.form-progress>span{display:block;text-align:right;font-size:14px;color:#616161;margin-bottom:6px}
.extended-form input,.extended-form select{background:#f5f5f5;border:1px solid transparent}
.extended-form input:focus,.extended-form select:focus{border-color:#a15bf6;outline:0}
.extended-form input[readonly]{color:#616161;background:#eee}
.extended-form .panel{margin-bottom:24px}
.extended-form .three-columns{gap:20px 16px}
.extended-form label{font-size:14px}
.extended-form .panel h2{margin-bottom:20px}
.form-dialog [data-request-review] div{grid-template-columns:1fr 1.4fr;font-size:14px}
.review-fields{border:0;padding:0;margin:0;min-width:0}
.review-fields input:disabled,.review-fields select:disabled,.review-fields textarea:disabled{opacity:1;color:#333;-webkit-text-fill-color:#333}
.case-left{position:relative}
.case-menu{position:absolute;top:62px;right:20px;z-index:2}
.case-menu summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#eee3ff;cursor:pointer;list-style:none}
.case-menu>div{position:absolute;right:0;top:48px;min-width:250px;padding:8px;background:#30154e;color:#fff;border-radius:8px;box-shadow:0 5px 20px #30154e33}
.case-menu button,.case-menu a{display:block;border:0;background:none;color:#fff;width:100%;text-align:left;font:inherit;font-size:14px;padding:12px}
.case-menu button:hover,.case-menu a:hover{background:#5f19a0;border-radius:4px}
.case-issue{border:1px solid #ff9da8;border-radius:16px;padding:20px;background:#fff2f2;margin-bottom:24px;color:#970003}
.case-issue h3{font-size:18px;font-weight:700;margin-bottom:8px}
.case-issue p{font-size:14px;color:#545454}
@media(min-width:1251px){.section-requests:has(.extended-form) .workspace{padding-top:50px}}
@media(max-width:1390px){.case-layout{grid-template-columns:380px minmax(0,1fr);gap:24px}.case-history li{grid-template-columns:90px minmax(0,1fr)}.case-history li>span:nth-last-child(2){grid-column:2}.case-history li time{grid-column:2}.case-map{padding:24px 20px 200px}.map-addresses{grid-template-columns:1fr;gap:8px}.map-addresses>span{display:none}.map-addresses small{margin-bottom:4px}.matching-header h1{font-size:40px}}
@media(max-width:1150px){.case-layout{grid-template-columns:minmax(300px,.9fr) minmax(0,1fr);gap:20px}.person-data{gap:12px}.case-summary .case-badges{gap:6px}.case-summary .status-badge{font-size:12px}.case-tabs{gap:8px}.case-map h2{font-size:24px}.photo-grid img{height:80px}}
@media(max-width:800px){.case-layout{grid-template-columns:1fr}.case-right{position:static;grid-row:2}.case-map{height:auto;min-height:420px}.map-addresses{grid-template-columns:1fr 1fr}.case-history{min-height:400px}.case-history li{grid-template-columns:90px minmax(0,1fr)}.all-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.matching-header h1{font-size:32px}}
@media(max-width:600px){.photo-grid img{height:90px}.all-photos{grid-template-columns:1fr}.photos-dialog{padding:24px 16px}.photos-dialog h2{font-size:24px}.case-map{padding:24px 16px 190px}.map-addresses{grid-template-columns:1fr}.map-addresses strong{font-size:14px}.candidate-grid{grid-template-columns:1fr}.case-history{padding:16px 8px}.case-history li{gap:8px;padding:12px 8px}.case-left>.panel:not(.case-summary){padding:20px}.case-progress time{font-size:10px}.form-dialog [data-request-review] div{grid-template-columns:1fr;gap:8px}.extended-form .form-actions>.button{width:100%}}
@media(max-width:1390px){.request-card>.row:first-child{flex-wrap:wrap}.queue-layout.with-preview{grid-template-columns:minmax(0,1fr) 320px}.with-preview .request-grid{grid-template-columns:1fr}.document-tabs>a{width:230px}.catalog-filters>select{width:180px}.search-box{width:280px}}
@media(max-width:1250px){.analytics-middle{grid-template-columns:1.4fr 1fr}.metric{padding:20px}.metric .big{font-size:40px}.metric h3{font-size:18px}.stat>span{font-size:16px}.analytics-top{grid-template-columns:1fr 1fr}.document-header{flex-wrap:wrap}.document-tabs{flex:1}.document-tabs>a{flex:1}.map-layout{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:1000px){.workspace.compact-top{padding-top:24px}.metric-cards{grid-template-columns:1fr 1fr}.metric-cards>.cancellation-metric{grid-column:1/-1}.catalog-filters{gap:10px}.search-box{margin-left:0;flex:1;min-width:200px}}
@media(max-width:700px){.analytics-top,.analytics-middle{grid-template-columns:1fr}.queue-layout.with-preview{grid-template-columns:1fr}.queue-preview{grid-row:1}.document-header{gap:16px}.document-tabs>a{width:auto;padding:16px;gap:10px}.document-tabs strong{font-size:20px}.map-layout{grid-template-columns:1fr}.map-list{max-height:400px}.map-surface{min-height:300px}.problems-report>.row{align-items:start}.problems-report h2{font-size:26px}}
@media(max-width:600px){.auth-register .field-middle_name{width:100%;grid-column:auto}.workspace.compact-top{padding-top:20px}.catalog-filters>select{flex:1 1 130px;width:auto}.search-box{flex:1 1 100%}.advanced-filters{flex-basis:100%}.advanced-fields{align-items:stretch}.advanced-fields label{min-width:100%}.metric-cards{grid-template-columns:1fr}.metric-cards>.cancellation-metric{grid-column:auto}.metric{min-height:160px}.metric h3{font-size:20px}.region-chart h2{font-size:26px}.document-tabs{width:100%;gap:10px}.document-tabs .stat-icon{padding:7px}.document-header>.button{width:100%}.document-tabs strong{font-size:18px}.form-dialog{padding:28px 20px}.analytics-metrics{grid-template-columns:1fr}.analytics-metrics .sla-metric{grid-column:auto}.analytics-metrics .metric{min-height:145px}.catalog-table table{min-width:660px}.problems-report{padding:20px 16px}.queue-view .stats{margin-bottom:24px}.request-card>.row:first-child{flex-wrap:nowrap}.priority-badge{font-size:11px}.stat>span{font-size:15px}.stat .row{gap:8px}.stat-icon{padding:6px}.map-header h1{font-size:28px}}

/* Geometry and state corrections from Figma, 2026-12-01. */
.metric-cards>.metric{min-height:190px}
.request-grid>.empty{grid-column:1/-1}
.metric-result{display:flex;flex-direction:column;gap:4px}
.arrival-metric h3{max-width:315px}
.metric-note.positive,.metric-note.negative{align-self:flex-start}
.metric-note.negative{background:#ffcbd0;color:#970003;border-radius:50px;padding:8px 10px}
.section-dashboard .region-chart{min-height:400px}
.stat-selected[data-status="active"]{background:#f4fce6;outline-color:#b6f45e}
.stat-selected[data-status="problem"]{background:#fff2f2;outline-color:#ff9da8}
.stat-selected[data-status="completed"]{background:#f1f1f1;outline-color:#c0c0c0}
.section-documents .workspace.compact-top,.section-registers .workspace.compact-top{padding-top:70px}
.section-documents .catalog-filters,.section-registers .catalog-filters{margin-bottom:20px}
.queue-filters{position:relative;margin-top:-32px;margin-bottom:0;min-height:32px}
.queue-filters>summary{width:max-content;margin-left:auto;font-size:12px;line-height:32px;color:#616161;cursor:pointer}
.queue-filters[open]{margin-bottom:24px}
.queue-filters .catalog-filters{margin-bottom:0}
.transfer-banner{padding:20px;border:1px solid #a15bf6;background:#fafafa;border-radius:20px;margin-bottom:24px;color:#5f19a0}
.transfer-banner.pending{background:#fff2f2;border-color:#ff9da8;color:#970003}
.transfer-banner h3{font-size:18px;font-weight:700;margin-bottom:8px}
.transfer-banner p{font-size:14px;color:#545454;margin-bottom:12px}
.transfer-banner .form-actions{margin-top:12px}
.completion-summary{width:580px;padding:24px;border-radius:20px}
.completion-summary h2{font-size:32px;line-height:1.05;padding-right:24px}
.completion-summary dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 24px}
.completion-summary dl div{display:block;border:0;padding:12px;background:#f7f3ff;border-radius:8px}
.completion-summary dl .wide{grid-column:1/-1}
.completion-summary dt{font-size:12px;color:#8e3ae4;margin-bottom:6px}
.completion-summary dd{font-size:16px}
.completion-summary .duration{font-size:24px;font-weight:700}
@media(max-width:1000px){.section-documents .workspace.compact-top,.section-registers .workspace.compact-top{padding-top:24px}}
@media(max-width:600px){.section-documents .workspace.compact-top,.section-registers .workspace.compact-top{padding-top:20px}.queue-filters{margin-top:-24px;min-height:24px}.queue-filters>summary{line-height:24px}.metric-cards>.metric{min-height:160px}.completion-summary dl{grid-template-columns:1fr}.completion-summary dl .wide{grid-column:auto}}

.completion-summary dd small{display:block;margin-top:6px;font-size:12px;color:#616161}
.transfer-sent{max-width:460px;text-align:center}

/* Figma 264:11594: full photo viewer with thumbnail strip and keyboard navigation. */
.gallery-dialog{width:1000px;max-width:calc(100vw - 64px);max-height:calc(100svh - 32px);padding:0;border:0;background:transparent;color:#fff;overflow:auto;outline:none}
.gallery-dialog::backdrop{background:rgba(38,38,38,.4)}
.gallery-stage{position:relative;margin:0;min-height:0;background:#262626;border-radius:20px;overflow:hidden}
.gallery-stage>img{display:block;width:100%;height:min(700px,calc(100svh - 248px));object-fit:contain}
.gallery-stage figcaption{position:absolute;bottom:0;left:0;right:0;padding:32px 20px 16px;background:linear-gradient(transparent,#0009);font-size:14px;pointer-events:none}
.gallery-close{position:absolute;right:8px;top:8px;z-index:2;width:44px;height:44px;display:grid;place-items:center;background:#26262666;border:0;border-radius:50%}
.gallery-close img,.gallery-controls img{width:24px;height:24px}
.gallery-thumbnails{display:flex;gap:12px;margin:32px 0;padding:4px 2px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#fff8 transparent}
.gallery-thumbnails button{padding:0;border:2px solid transparent;border-radius:10px;background:#262626;flex:0 0 100px;height:100px;overflow:hidden}
.gallery-thumbnails img{width:100%;height:100%;object-fit:cover}.gallery-thumbnails button[aria-current=true]{border-color:#fff}
.gallery-controls{display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.gallery-controls button{width:44px;height:44px;border:0;border-radius:50%;background:#fff;display:grid;place-items:center}.gallery-controls [data-gallery-next] img{transform:rotate(180deg)}
.gallery-dialog button:focus-visible{outline:3px solid #bd8aff;outline-offset:2px}.confirmation-dialog p{line-height:1.5;margin-bottom:24px}
@media(min-width:1001px){.portal:not(.portal-admin):has(.sidebar.collapsed) .sidebar{width:90px;padding:32px 20px}.portal:not(.portal-admin):has(.sidebar.collapsed) .workspace{margin-left:100px}.portal:not(.portal-admin) .sidebar.collapsed .sidebar-tools{height:auto;flex-direction:column;gap:20px}.portal:not(.portal-admin) .sidebar.collapsed .sidebar-tools>a{display:flex;justify-content:center}.portal:not(.portal-admin) .sidebar.collapsed .profile{display:flex;justify-content:center;margin-top:20px}.portal:not(.portal-admin) .sidebar.collapsed .profile strong,.portal:not(.portal-admin) .sidebar.collapsed nav .subnav{display:none}}
@media(max-width:600px){.gallery-dialog{max-width:calc(100vw - 24px)}.gallery-stage>img{height:55svh}.gallery-thumbnails{gap:8px;margin:16px 0}.gallery-thumbnails button{flex-basis:64px;height:64px}.gallery-stage figcaption{font-size:12px;padding:28px 12px 12px}}

.case-history .history-changes{margin:12px 0 0;font-size:14px}.history-changes>div{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:12px;padding:7px 0}.history-changes dt{color:#777}.history-changes dd{display:flex;flex-wrap:wrap;gap:8px;margin:0;overflow-wrap:anywhere;min-width:0}.history-before{color:#888;text-decoration:line-through}.history-after{color:#333}.history-arrow{color:#a15bf6}
@media(max-width:600px){.history-changes>div{grid-template-columns:1fr;gap:4px}.case-history .history-changes{font-size:12px}}

.candidate-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:440px;color:#545454;text-align:center}.candidate-empty>img{width:32px;height:32px}.candidate-empty p{max-width:606px;font-size:20px;line-height:1.05;margin:0}
@media(max-width:600px){.candidate-empty{min-height:280px}.candidate-empty p{font-size:18px;line-height:1.3}}

/* Request form geometry from Figma 31:57208, with manual location until maps are connected. */
.form-view .workspace{padding-top:40px}.form-view .page-header{margin-bottom:0}.form-view .form-breadcrumb{margin:0 0 14px;font-size:16px;color:#777}.form-view .page-header h1{font-size:48px;line-height:1.1}
.form-view .form-progress{margin:0 0 32px}.form-view .form-progress>span{margin-bottom:4px}.extended-form .panel{padding:20px;border-radius:10px}.extended-form .panel h2{font-size:24px;line-height:1.05}.extended-form .fields{gap:20px 16px}.extended-form input,.extended-form select{padding:14px 16px}.extended-form select{appearance:none;background-image:url('/assets/icons/audit_dropdown.svg?v=2');background-size:20px 20px;background-position:right 14px center;background-repeat:no-repeat;padding-right:40px}
.location-fields{display:grid;grid-template-columns:2fr 1fr;gap:16px}.location-map-field,.equipment-field{display:flex;flex-direction:column;gap:7px;font-size:14px;line-height:1.05}.location-map-unavailable{background:#f5f5f5;border:1px dashed #d9cce9;border-radius:10px;flex:1;min-height:125px;padding:20px;display:flex;flex-direction:column;gap:10px;justify-content:center;align-items:center;text-align:center;color:#777}.location-map-unavailable small{font-size:12px;line-height:1.4}
.equipment-picker{position:relative}.equipment-picker summary{list-style:none;cursor:pointer;min-height:48px;padding:14px 40px 14px 16px;background:#f5f5f5 url('/assets/icons/audit_dropdown.svg?v=2') no-repeat right 14px center;background-size:20px 20px;border-radius:10px;font-size:16px;line-height:20px}.equipment-picker summary::-webkit-details-marker{display:none}.equipment-picker>div{position:absolute;left:0;right:0;top:calc(100% + 4px);padding:16px;background:#fff;border:1px solid #e5d6f6;border-radius:10px;z-index:3;box-shadow:0 8px 24px #30154e22;display:grid;gap:14px}.equipment-picker .check{flex-direction:row;align-items:center;line-height:1.3}.equipment-picker .check input{width:18px;height:18px;padding:0;flex:none;accent-color:#8e3ae4}.form-wide{grid-column:1/-1}.extended-form .form-wide textarea{min-height:60px}.clarification-panel{max-width:700px;padding:20px;border:1px solid #a15bf6;background:#f7f1ff;border-radius:10px;margin:24px 0;box-shadow:0 0 10px #a15bf622}.clarification-message{background:#eee;border-radius:6px;padding:12px;margin-top:8px;line-height:1.4}.clarification-panel .form-actions{flex-wrap:wrap}.insurance-cancel{margin-bottom:16px}.extended-form input[readonly]{background:#f5f5f5}
@media(min-width:1400px){.portal:not(.portal-admin).form-view .workspace{padding-left:50px;padding-right:40px;padding-top:40px}.portal:not(.portal-admin).form-view .workspace>*{max-width:1047px}}
@media(max-width:800px){.location-fields{grid-template-columns:1fr}.location-map-unavailable{min-height:100px}.form-view .page-header h1{font-size:32px}}
@media(max-width:600px){.form-view .workspace{padding-top:20px}.form-view .form-breadcrumb{font-size:14px}.extended-form .panel{padding:20px 16px}.extended-form .fields{gap:18px}.extended-form .location-fields .two-columns{grid-template-columns:1fr}.clarification-panel{padding:16px}.clarification-panel .form-actions>*{width:100%}.form-view .form-progress{margin-bottom:24px}}

.form-view .form-breadcrumb{line-height:1.05;margin-bottom:13px}.form-view .form-progress>span{line-height:1.05}.form-view .form-progress progress{display:block}

/* Selected filters and the approaching arrival deadline from the insurance list. */
.catalog-filters .active-filter-chip{display:inline-flex;align-items:center;justify-content:space-between;gap:20px;min-height:48px;padding:4px 4px 4px 16px;border-radius:30px;background:#f0e6ff;color:#333;font-size:14px;text-decoration:none}.active-filter-chip span{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#8c36ef;color:#fff;font-size:24px}.status-risk{background:#fff4ae;color:#b65b00}

.clarification-view{max-width:1047px}.clarification-view .review-fields>.panel:first-child{max-width:365px}.clarification-view .review-fields>.panel:first-child .fields{grid-template-columns:1fr}.clarification-view .review-fields input,.clarification-view .review-fields select{border:1px solid #e8d9ff}.clarification-response{max-width:688px;gap:16px}.clarification-response .clarification-panel{margin:0;max-width:none}.clarification-response .form-actions{margin-top:0}.clarification-view .matching-header h1{font-size:48px}.clarification-view .matching-header p{font-size:18px;font-weight:400}
@media(min-width:1400px){.portal-insurance:has(.clarification-view) .workspace{padding-left:50px;padding-top:40px}}
@media(max-width:600px){.clarification-view .matching-header h1{font-size:30px}.clarification-response .form-actions>*{width:100%}}

/* Personal saved criteria reuse the existing filter controls. */
.saved-views{margin:0 0 24px;padding:14px 18px;background:#fff;border:1px solid #e8e2ef;border-radius:12px;min-width:0}
.saved-views>summary{cursor:pointer;color:#5f19a0;font-weight:600}
.saved-views p{font-size:14px;line-height:1.5}
.saved-view-list{list-style:none;padding:0;display:grid;gap:8px}
.saved-view-list>li{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #eee;padding:8px 0}
.saved-view-list a{overflow-wrap:anywhere;min-width:0}
.saved-view-list form{flex-shrink:0}
.saved-view-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:16px;align-items:end}
.saved-view-form label{min-width:0}
.saved-view-form input,.saved-view-form select{width:100%;min-width:0}
@media(max-width:800px){.saved-view-form{grid-template-columns:1fr}.saved-view-form>.button{width:100%}}
