/* Shared layout rules for administration, passenger, guide and authentication. */
#workspace :is(.panel,.editor-form,.repeat-row,.stat-card,.form-grid>*,.checkout-layout>*,.section-heading>div,.page-heading>div,.trip-card,.notification-card){min-width:0}
#workspace :is(h1,h2,h3,p,strong,small,.notice,.fine-print,.badge){overflow-wrap:anywhere}
#workspace .badge{max-width:100%;white-space:normal;line-height:1.5}
#workspace .page-heading>.button{flex-shrink:0;max-width:100%;white-space:normal}
:where(#workspace) .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#workspace .trip-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,275px),1fr))}
#workspace .passenger-trip-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
#workspace .table-panel{max-width:100%;overscroll-behavior-x:contain}
#workspace .table-panel td{overflow-wrap:anywhere}
#workspace .table-panel :is(.button,.text-link){min-height:44px;display:inline-flex;align-items:center}
#workspace .stat-card strong{font-size:clamp(20px,2.1vw,29px);line-height:1.3}
#workspace .profile-view .form-grid{gap:22px}
#workspace .profile-view .form-grid>div{padding-bottom:16px;border-bottom:1px solid #eee5f4}
#workspace .lookup-row{grid-template-columns:minmax(0,1fr) auto}
#workspace .checkout-summary :is(small,strong){overflow-wrap:anywhere}
#workspace .summary-total{flex-wrap:wrap;gap:8px}
#workspace .notification-actions{flex-wrap:wrap}
#workspace .notification-card-heading{align-items:flex-start}
.d-dialog{width:min(600px,calc(100% - 32px));max-height:calc(100dvh - 32px);overscroll-behavior:contain}
.d-dialog :is(h2,h3,p,strong,label){overflow-wrap:anywhere}
.d-dialog .dialog-heading{align-items:flex-start}
.d-dialog .icon-button{min-width:44px;min-height:44px}
.d-dialog .dialog-actions{flex-wrap:wrap}
.description-toolbar{min-width:0}
.description-toolbar .editor-group{max-width:100%}
.app-shell :is(.main-panel,.auth-root,.row>*,.field){min-width:0}
.app-shell :is(h1,h2,p,label){overflow-wrap:anywhere}
@media(min-width:1400px){.dashboard-main{padding-inline:clamp(28px,4vw,64px)}.dashboard-main main{width:100%;max-width:1320px;margin-inline:auto}}
@media(max-width:1100px){
 #workspace .expense-form{grid-template-columns:repeat(2,minmax(0,1fr))}
 #workspace .checkout-layout{grid-template-columns:minmax(0,1fr)}
 #workspace .checkout-summary{position:static;grid-row:1}
}
@media(max-width:720px){
 .dashboard .sidebar{padding:16px 16px 0}
 .dashboard .sidebar nav{margin-top:12px;padding-bottom:10px;scrollbar-width:none}
 .dashboard .sidebar nav::-webkit-scrollbar{display:none}
 .dashboard .dashboard-greeting{display:none}
 .dashboard .dashboard-topbar{gap:12px;min-height:60px;height:auto;padding:8px 0}
 .dashboard .environment-badge{line-height:1.5;max-width:210px;margin-right:auto}
 .dashboard .notification-bell{width:40px;height:40px}
 .dashboard .mobile-signout{min-height:44px}
 .dashboard .dashboard-main{padding-inline:16px}
 #workspace .page-heading{margin-bottom:22px}
 #workspace .page-heading h1{font-size:26px;line-height:1.3}
 #workspace .page-heading>.button{width:100%;margin-top:14px}
 #workspace .panel{padding:18px;border-radius:12px}
 :where(#workspace) .form-grid,#workspace .guide-options,#workspace .expense-form{grid-template-columns:minmax(0,1fr)}
 #workspace .form-footer{flex-direction:column;align-items:stretch;gap:12px}
 #workspace .form-footer>span{order:2}
 #workspace .form-footer>.button{width:100%}
 #workspace .d-field :is(input,select,textarea),#workspace .search-field input{font-size:16px;min-height:46px;max-width:100%}
 #workspace .search-field{max-width:none}
 #workspace .repeat-row{padding:14px}
 #workspace .repeat-row .section-heading{flex-wrap:wrap;gap:10px}
 #workspace .section-heading{flex-wrap:wrap}
 #workspace .button.small{min-height:44px}
 #workspace .lookup-row{grid-template-columns:minmax(0,1fr)}
 #workspace .lookup-row .button{width:100%;margin-top:0}
 #workspace .checkout-passenger{min-width:0;padding:14px}
 #workspace .checkout-passenger legend{max-width:100%;overflow-wrap:anywhere}
 #workspace .vehicle-map{width:100%;padding:18px;max-width:300px}
 #workspace .checkout-steps{gap:6px}
 #workspace .checkout-steps li{min-width:0;text-align:center}
 #workspace .reservation-item,#workspace .transfer-card{align-items:stretch;flex-direction:column}
 #workspace .inline-actions{flex-wrap:wrap}
 #workspace .inline-actions>.button{flex:1 1 140px}
 #workspace .notification-actions{align-items:stretch;gap:10px}
 #workspace .notification-actions>.button{width:100%}
 #workspace .notification-pagination{gap:8px;flex-wrap:wrap}
 #workspace .notification-pagination>.button{padding:10px 12px}
 #workspace .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #workspace .stats-grid>.panel{margin-bottom:0;padding:14px}
 #workspace .stats-grid h2{margin-top:10px;margin-bottom:0}
 #workspace .stat-card{padding:16px 12px}
 #workspace .stat-card strong{font-size:21px;letter-spacing:-.6px}
 /* Keep real table semantics and headings for assistive technology. */
 #workspace .responsive-table{display:block;min-width:0;width:100%}
 #workspace .responsive-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #workspace .responsive-table tbody{display:grid;gap:14px}
 #workspace .responsive-table tbody tr{display:block;min-width:0;padding:12px;border:1px solid #e9dff2;border-radius:10px;background:#fdfbff}
 #workspace .responsive-table td{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;padding:9px 0;border-bottom:1px solid #eee6f4;min-width:0;font-size:14px}
 #workspace .responsive-table td:last-child{border:0}
 #workspace .responsive-table td[data-label]:before{content:attr(data-label);font-size:11px;font-weight:600;color:#87728f}
 #workspace .responsive-table td>small{margin:0}
 #workspace .responsive-table td>.badge{justify-self:start}
 #workspace .responsive-table td[colspan]{padding:8px 0}
 .d-dialog{padding:18px;width:calc(100% - 24px);max-height:calc(100dvh - 24px)}
 .d-dialog .dialog-heading h2{font-size:20px;line-height:1.4}
 .d-dialog .dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .d-dialog .d-field :is(input,select,textarea){font-size:16px}
 .description-toolbar :is(button,select){min-height:44px}
 .description-toolbar button{min-width:40px}
 .rich-description .ql-indent-1{padding-left:0.75em}
 .rich-description .ql-indent-2{padding-left:1.5em}
 .rich-description .ql-indent-3{padding-left:2.25em}
 .rich-description .ql-indent-4{padding-left:3em}
 .rich-description .ql-indent-5{padding-left:3.75em}
 .rich-description .ql-indent-6{padding-left:4.5em}
 .rich-description .ql-indent-7{padding-left:5.25em}
 .rich-description .ql-indent-8{padding-left:6em}
 .public-shell .public-header{flex-wrap:wrap;gap:12px}
 .public-shell .public-account{gap:10px;margin-left:auto}
 .public-shell .public-header .button{min-height:40px}
 .public-shell .public-footer{padding-bottom:110px}
 .public-shell .public-mobile-nav{min-height:66px}
}
@media(max-width:360px){
 #workspace .stats-grid{grid-template-columns:minmax(0,1fr)}
 #workspace .public-trip-body{padding:18px}
 #workspace .card-price{flex-wrap:wrap;gap:12px}
 #workspace .card-price>.button{width:100%}
 #workspace .public-account-dropdown{max-width:calc(100vw - 32px)}
 .d-dialog .dialog-actions{grid-template-columns:minmax(0,1fr)}
}
