/* RC35: retain the established black / champagne palette. */
.ops35-order-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ops35-search-label{flex:1 1 280px;min-width:0}.ops35-order-cards{display:none}.ops35-order-card-head{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.ops35-order-card-head strong{font-size:24px!important}.ops35-orders-desktop td small,.ops35-activity-table td small{display:block;margin-top:6px;color:var(--muted)}.ops35-activity-table td{vertical-align:top;line-height:1.7;padding:18px}.ops35-activity-table details{max-width:100%;min-width:0}.ops35-activity-table pre,main pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;min-width:0}.ops35-delete-card{margin:20px 0}.ops35-delete-card form{display:grid;gap:18px}.ops35-delete-card label{display:grid;gap:8px}
/* Match specificity of the legacy table rule so desktop widths actually apply. */
@media(min-width:1101px){body.ops-shell main .table-wrap .ops31-today-table.ops34-orders-table{min-width:1420px}.ops35-orders-desktop table{min-width:1180px}.ops35-activity-table{min-width:1100px}}
@media screen and (max-width:1100px){
 body.ops-shell main .ops35-orders-desktop{display:none!important}.ops35-order-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ops35-order-card{min-width:0}.ops35-order-card h2{font-size:16px!important;overflow-wrap:anywhere}.ops35-order-card p{overflow-wrap:anywhere;line-height:1.7}
 body.ops-shell main .ops35-order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important}body.ops-shell main .ops35-order-actions>.btn{min-width:0!important;width:100%!important;max-width:100%!important;padding:0 8px!important;justify-self:stretch!important;font-size:14px!important}
}
@media screen and (max-width:900px){.ops35-order-cards,.ops34-mobile-orders{grid-template-columns:minmax(0,1fr)}}
@media screen and (max-width:760px){
 html{max-width:100%;width:100%}body.ops-shell{width:100%;max-width:100%;min-width:0}body.ops-shell main{width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;padding:18px 12px 100px!important;box-sizing:border-box}
 body.ops-shell main :is(section,article,form,fieldset,label,.card,.detail-grid,.form-grid,.driver-order-shell,.daily-mobile,.quick-route-controls,.quick-route-row,.table-wrap,.route-table-wrap,.visual-table-wrap){min-width:0!important;max-width:100%!important;box-sizing:border-box}
 body.ops-shell main :is(p,small,a,summary,.notice,.detail-item,.document-no){overflow-wrap:anywhere}body.ops-shell main :is(h1,h2,h3){overflow-wrap:anywhere}
 body.ops-shell main :is(.page-actions,.ops-actions,.actions,.edit-toolbar,.route-actions,.preview-toolbar,.visual-tools,.ops31-row-actions,.ops33-row-actions){max-width:100%;gap:12px!important;flex-wrap:wrap!important;min-width:0}
 body.ops-shell main :is(button,.btn,.button-link,.table-action,.page-actions>a,.ops-actions>a,.document-actions>a,.edit-toolbar>a,.actions>a,.route-actions>a,.preview-toolbar>a,.visual-tools>a){min-width:0!important;max-width:100%!important;flex-shrink:1;white-space:nowrap!important;padding:0 12px!important;box-sizing:border-box;justify-self:stretch}
 body.ops-shell main :is(.page-actions,.ops-actions,.actions,.edit-toolbar,.route-actions,.preview-toolbar,.visual-tools)>:is(a,button,form){max-width:100%!important;min-width:0!important}
 body.ops-shell main .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}body.ops-shell main .form-grid>:is(.span2,.span4,.span-full){grid-column:1/-1!important}body.ops-shell main .form-grid>label{width:auto!important;max-width:100%;min-width:0;flex-basis:calc(50% - 8px)!important}
 body.ops-shell main :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){width:100%!important;min-width:0!important;max-width:100%!important;font-size:16px!important;box-sizing:border-box}body.ops-shell main :is(input[type=date],input[type=time],input[type=month]){min-inline-size:0!important;max-inline-size:100%!important;appearance:none!important}body.ops-shell main .picker-control{width:100%!important;max-width:100%!important;min-width:0!important}
 body.ops-shell main :is(.table-wrap,.route-table-wrap){overflow:visible!important;width:100%!important;padding-left:0!important;padding-right:0!important}
 body.ops-shell main .ops35-record-table{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;background:transparent!important;border:0!important}
 body.ops-shell main .ops35-record-table colgroup{display:none!important}body.ops-shell main .ops35-record-table :is(thead,tbody,tfoot){display:block!important;min-width:0!important;width:100%!important}
 body.ops-shell main .ops35-record-table tr.ops35-record-head{position:absolute!important;clip-path:inset(50%);width:1px!important;height:1px!important;overflow:hidden!important;white-space:nowrap!important;display:block!important;padding:0!important;margin:0!important;border:0!important}
 body.ops-shell main .ops35-record-table tr:not(.ops35-record-head){display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 18px!important;padding:14px!important;border:1px solid var(--line)!important;border-radius:12px;background:var(--panel)!important;box-sizing:border-box}
 body.ops-shell main .ops35-record-table tr:not(.ops35-record-head)>:is(td,th){display:block!important;position:static!important;min-width:0!important;width:100%!important;max-width:100%!important;padding:10px 0!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box;font-size:14px!important}
 body.ops-shell main .ops35-record-table tr:not(.ops35-record-head)>td:before{content:attr(data-label)!important;display:block!important;position:static!important;width:auto!important;min-width:0!important;font-size:12px!important;line-height:1.5!important;color:var(--gold);font-weight:600;margin-bottom:6px}
 body.ops-shell main .ops35-record-table td[colspan]:before{display:none!important}body.ops-shell main .ops35-record-table td :is(form,.ops35-order-actions){max-width:100%!important;min-width:0!important;flex-wrap:wrap!important;gap:10px!important}
 body.ops-shell main .ops35-route-table td:nth-child(8){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}body.ops-shell main .ops35-route-table td:nth-child(8):before{grid-column:1/-1}
 body.ops-shell main .visual-table-wrap{overflow:visible!important;width:100%!important}body.ops-shell main .visual-grid{min-width:0!important;max-width:100%!important;width:100%!important;table-layout:fixed!important}body.ops-shell main .visual-grid :is(td,th){min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;padding:6px!important}.visual-grid col{width:auto!important}
 body.ops-shell main :is(.order-status-tabs,.ops-tabs,.mobile-order-tabs){display:flex!important;flex-wrap:wrap!important;overflow:visible!important;white-space:normal!important;max-width:100%!important;gap:8px!important}body.ops-shell main .ops-tabs button{min-width:0!important;max-width:100%!important;flex:1 1 auto!important;padding:0 10px!important}
 body.ops-shell main .basic-order>label{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:12px!important;max-width:100%!important;min-width:0!important}body.ops-shell main .basic-order>label>small{grid-column:2}
 body.ops-shell main .daily-event{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ops34-tags span,.order-card-tags span{max-width:100%;overflow-wrap:anywhere}.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important}.calendar-day{min-width:0!important;padding:7px 2px!important}.calendar-heading{flex-wrap:wrap}.calendar-heading h2{min-width:0}.calendar-filter{flex-wrap:wrap}
 body.ops-shell main :is(.daily-template-preview,.billing-preview-frame,iframe){display:block;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box}.ops31-doc-state{flex-wrap:wrap!important;white-space:normal!important}
 body.ops-shell main .ops34-card-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.ops-shell main .ops34-card-actions>.btn{width:100%!important;min-width:0!important;max-width:100%!important;padding:0 6px!important;font-size:14px!important}
 body.ops-shell main .ops31-summary,.ops31-summary,.ops31-reminder-grid{grid-template-columns:minmax(0,1fr)!important}body.ops-shell main .ops33-row-actions{display:flex!important;flex-wrap:wrap!important}body.ops-shell main .ops33-row-actions>a.btn,body.ops-shell main .ops33-row-actions>form>button{max-width:100%!important;min-width:0!important;width:auto!important}
 body.ops-shell .bottom-nav{left:0;right:0;width:100%;box-sizing:border-box;min-width:0}.bottom-nav a{min-width:0;overflow-wrap:anywhere}body.ops-shell>header{max-width:100%;box-sizing:border-box;gap:8px!important}body.ops-shell .header-home img{max-width:64px!important}.ops31-notice-link{margin-left:0!important;padding:6px!important;font-size:12px!important;flex-shrink:0}
}
@media screen and (max-width:380px){body.ops-shell main .form-grid{grid-template-columns:minmax(0,1fr)!important}body.ops-shell main .form-grid>label{flex-basis:100%!important}body.ops-shell main .basic-order>label{grid-template-columns:minmax(0,1fr)!important}body.ops-shell main .basic-order>label>small{grid-column:1}.ops34-card-heading>strong{font-size:22px!important}}
@media print{.ops35-order-cards{display:none!important}.ops35-orders-desktop{display:block!important}}
@media screen and (max-width:760px){body.ops-shell main .operation-document-preview{overflow:visible!important;max-width:100%;min-width:0}body.ops-shell main .ops35-paper-frame{width:100%;max-width:100%;min-width:0;position:relative;overflow:clip}body.ops-shell main .ops35-paper-fitted>.paper-a4{margin:0!important;transform:scale(var(--ops35-preview-scale,1))!important;transform-origin:top left!important}.paper-view-viewport::-webkit-scrollbar:horizontal{height:0}}
@media print{.ops35-paper-frame{display:contents!important;overflow:visible!important;height:auto!important}.ops35-paper-frame>.paper-a4{transform:none!important}}
/* Flexible form rows prevent legacy span-4 rules from creating implicit phone columns. */
@media screen and (max-width:760px){body.ops-shell main .form-grid,body.ops-shell main .driver-order-shell .form-grid{display:flex!important;flex-wrap:wrap!important;align-items:stretch;gap:16px!important}body.ops-shell main .form-grid>label{flex:1 1 calc(50% - 8px)!important;min-width:0!important;width:auto!important}body.ops-shell main .form-grid>.span2,body.ops-shell main .form-grid>.span4,body.ops-shell main .form-grid>.span-full{flex:1 1 100%!important;width:100%!important;min-width:0!important}body.ops-shell main .form-grid>button{flex:0 1 auto}body.ops-shell main .billing-line{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%;max-width:100%;min-width:0}body.ops-shell main .billing-line>label{min-width:0!important;max-width:100%!important}body.ops-shell main .billing-line>label:first-child{grid-column:1/-1}body.ops-shell main .billing-line button{grid-column:1/-1!important;justify-self:stretch!important;width:100%!important}}
@media screen and (max-width:380px){body.ops-shell main .form-grid>label{flex-basis:100%!important}}
@media screen and (max-width:760px){body.ops-shell main .form-grid>label{flex:1 1 100%!important;width:100%!important}body.ops-shell main .form-grid>*{min-width:0;max-width:100%;box-sizing:border-box}}
@media screen and (max-width:760px){body.auth-bg{width:100%;max-width:100%;min-width:0;margin:0;box-sizing:border-box}body.auth-bg :is(.login-shell,.install-shell){width:calc(100% - 24px)!important;max-width:100%!important;min-width:0!important;grid-template-columns:minmax(0,1fr)!important;margin:16px auto!important;padding:0!important}body.auth-bg :is(.brand-panel,.auth-card){width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;padding:20px!important}body.auth-bg>.auth-card{width:calc(100% - 24px)!important;margin:16px auto!important}body.auth-bg form,body.auth-bg label,body.auth-bg details{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere}body.auth-bg :is(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;font-size:16px!important}body.auth-bg .form-grid{display:flex!important;flex-wrap:wrap;gap:16px}body.auth-bg .form-grid>*{flex:1 1 100%;width:100%;min-width:0;max-width:100%;box-sizing:border-box}body.auth-bg input[type=checkbox]{width:20px!important;min-width:20px;flex:0 0 20px}body.auth-bg button{max-width:100%;box-sizing:border-box;white-space:nowrap;font-size:14px!important}body.auth-bg :is(h1,h2,h3,p){overflow-wrap:anywhere}}
/* Keep daily event fields in a readable sequence without implicit grid columns. */
@media screen and (max-width:760px){body.ops-shell main .daily-event{display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:flex-start}body.ops-shell main .daily-event>input,body.ops-shell main .daily-event>select{flex:1 1 calc(50% - 6px)!important;width:calc(50% - 6px)!important;min-width:0!important;order:0}body.ops-shell main .daily-event>.daily-place,body.ops-shell main .daily-event>.daily-address{display:flex!important;flex-direction:column!important;flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:100%!important;gap:8px!important;order:1}body.ops-shell main .daily-event>.daily-address{order:2}body.ops-shell main .daily-event>button{order:3;flex:0 1 auto!important;width:auto!important;min-width:0!important}}
