/* Organization workspaces follow the Command Center typography, surfaces and navigation. */
:root{--portal-ink:#082a4d;--portal-muted:#64758b;--portal-border:#e4ebf2;--portal-brand:#08758c}
.portal-messenger-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,1fr);gap:22px;align-items:start}.portal-inbox-list{max-height:650px;overflow:auto}.portal-inbox-item{display:flex;gap:14px;padding:20px;border-bottom:1px solid var(--portal-border);color:var(--portal-ink);text-decoration:none}.portal-inbox-item:hover{background:#f3f8fb}.portal-inbox-item[hidden]{display:none}.portal-chat-avatar{width:42px;height:42px;border-radius:12px;background:#e7f3f6;color:var(--portal-brand);display:grid;place-items:center;flex-shrink:0;font-size:20px}.portal-inbox-item strong{font-size:13px}.portal-inbox-item small{font-size:10px;color:var(--portal-muted);white-space:nowrap}.portal-inbox-item p{font-size:12px;color:var(--portal-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:7px 0}.portal-compose-tabs{display:flex;border-bottom:1px solid var(--portal-border);overflow:auto;padding:0 14px}.portal-compose-tabs button{background:none;border:0;border-bottom:3px solid transparent;padding:16px 10px;white-space:nowrap;color:var(--portal-muted);font-size:12px}.portal-compose-tabs button[aria-selected=true]{border-color:var(--portal-brand);color:var(--portal-brand);font-weight:700}.portal-assisting-contact{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;border-bottom:1px solid var(--portal-border)}.portal-emoji-picker{position:relative;width:fit-content;margin:8px 0 16px}.portal-emoji-picker summary{cursor:pointer;color:var(--portal-muted);font-size:12px;list-style:none;padding:6px 10px;border:1px solid var(--portal-border);border-radius:6px}.portal-emoji-options{display:grid;grid-template-columns:repeat(6,36px);gap:4px;padding:10px;background:#fff;border:1px solid var(--portal-border);border-radius:8px;margin-top:6px;box-shadow:0 6px 20px #082a4d12}.portal-emoji-options button{font-size:22px;background:none;border:0;border-radius:4px;padding:3px}.portal-emoji-options button:hover{background:#e7f3f6}.portal-message-history{max-height:60vh;min-height:240px;overflow-y:auto;background:#fafcfe;overscroll-behavior:contain}.portal-message-day{align-self:center;font-size:10px;padding:5px 12px;border-radius:20px;background:#eaf0f5;color:var(--portal-muted)}.portal-message-tools{display:flex;justify-content:flex-end;margin-top:6px}.portal-message-tools summary{cursor:pointer;font-size:11px;color:var(--portal-muted)}@media(max-width:991px){.portal-messenger-grid{grid-template-columns:1fr}.portal-inbox-list{max-height:420px}}@media(max-width:575px){.portal-inbox-item{padding:14px;gap:10px}.portal-inbox-item .d-flex{flex-wrap:wrap}}
.portal-settings-tabs{display:flex;gap:24px;border-bottom:1px solid var(--portal-border);overflow-x:auto}.portal-settings-tabs a{padding:14px 0;color:var(--portal-muted);text-decoration:none;white-space:nowrap;border-bottom:3px solid transparent}.portal-settings-tabs a.active{color:var(--portal-brand);border-color:var(--portal-brand);font-weight:700}.portal-settings .card{border:1px solid var(--portal-border)!important;box-shadow:none!important}.portal-settings .form-label{font-size:13px;font-weight:600}.portal-settings .form-control,.portal-settings .form-select{min-height:44px}.portal-network-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:20px}.portal-network-directory{max-height:580px;overflow:auto}@media(max-width:991px){.portal-network-layout{grid-template-columns:1fr}}
body{font-family:"Open Sans",sans-serif;font-size:14px;color:#293b4d;background:#f5f8fc}
.ps-shell{background:#f5f8fc!important;height:100dvh!important}
.ps-shell .ps-sidebar{background:#082a4d!important;width:250px;flex-basis:250px}
.ps-shell .ps-nav-link{border-radius:6px;font-size:13px;padding:10px 12px;gap:10px}
.ps-shell .ps-nav-link.active{background:#08758c!important;color:#fff}
.ps-shell .ps-nav-label{font-size:10px;letter-spacing:.08em;color:#9eb1c6;padding-top:20px}
.ps-shell .ps-topbar{min-height:76px;background:#fff;box-shadow:none;border-bottom:1px solid var(--portal-border);padding:14px 28px}
.ps-shell .ps-topbar-org{font-size:17px;color:var(--portal-ink)}
.ps-shell .ps-topbar-title{font-size:10px;letter-spacing:.07em;color:var(--portal-muted)!important}
.ps-shell .ps-content{padding:26px 28px;background:#f5f8fc}
.ps-main{min-width:0}
.portal-workbench{max-width:1680px;width:100%;min-width:0;margin:0 auto;color:#293b4d}
.portal-workbench>*,.portal-chart-grid>*,.portal-dispatch-grid>*{min-width:0}
.portal-page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.portal-page-header h1{color:var(--portal-ink);font-size:26px;letter-spacing:-.035em;font-weight:750;margin:7px 0}
.portal-page-header p{margin:0;color:var(--portal-muted);font-size:13px}
.portal-breadcrumb{font-size:11px;color:var(--portal-muted)}
.portal-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ps-shell .btn,.portal-workbench .action-btn,.portal-workbench .pro-btn{border-radius:6px;min-height:36px;font-size:12px;font-weight:600;padding:8px 13px;display:inline-flex;gap:7px;align-items:center;justify-content:center;text-decoration:none}
.ps-shell .btn-primary,.portal-workbench .action-btn.primary,.portal-workbench .pro-btn.primary{background:var(--portal-brand);border:1px solid var(--portal-brand);color:#fff}
.ps-shell .btn-outline-primary{color:var(--portal-brand);border-color:var(--portal-brand)}
.ps-shell .btn-outline-primary:hover{background:var(--portal-brand);color:#fff}
.portal-tabs{display:flex;gap:24px;border-bottom:1px solid var(--portal-border);margin-bottom:24px;overflow-x:auto;white-space:nowrap}
.portal-tabs a{padding:12px 0;color:#61758a;text-decoration:none;font-size:13px;font-weight:600;border-bottom:2px solid transparent}
.portal-tabs a:hover,.portal-tabs a[aria-current=page]{color:var(--portal-brand);border-bottom-color:var(--portal-brand)}
.portal-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
.portal-kpi{display:flex;align-items:center;justify-content:space-between;padding:20px;background:white;border:1px solid var(--portal-border);border-radius:10px;min-width:0}
.portal-kpi span{font-size:12px;color:var(--portal-muted);display:block}
.portal-kpi strong{display:block;font-size:27px;color:var(--portal-ink);line-height:1.3;margin-top:8px}
.portal-kpi>i{display:grid;place-items:center;width:42px;height:42px;background:#eaf5f7;color:var(--portal-brand);border-radius:50%;font-size:20px;flex-shrink:0}
.portal-chart-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:20px;margin-bottom:22px}
.portal-surface,.portal-workbench .panel,.portal-workbench .pro-card{background:#fff;border:1px solid var(--portal-border);border-radius:10px;box-shadow:0 3px 12px rgba(8,42,77,.035);overflow:hidden;margin-bottom:20px}
.portal-chart-grid>.portal-surface{margin:0}
.portal-surface-heading,.portal-workbench .panel-header,.portal-workbench .pro-card>header{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #edf1f4}
.portal-surface-heading h2,.portal-workbench .panel-header h2,.portal-workbench .pro-card h2{font-size:14px;font-weight:700;color:var(--portal-ink);margin:0}
.portal-surface-heading p{font-size:11px;color:var(--portal-muted);margin:5px 0 0}
.portal-surface a,.portal-link{color:var(--portal-brand);font-size:12px;font-weight:600;text-decoration:none}
.portal-link{border:0;background:transparent;padding:0;cursor:pointer}
.portal-chart{min-height:260px;padding:12px 10px 0}
.portal-chart-legend{display:flex;gap:12px 18px;flex-wrap:wrap;padding:0 20px 20px;font-size:12px;color:var(--portal-muted)}
.portal-chart-legend strong{color:var(--portal-ink);margin-left:5px}
.portal-chart-data{margin:0 20px;font-size:12px;color:var(--portal-muted)}
.portal-chart-data summary{cursor:pointer;padding:8px 0}
.portal-footnote{font-size:10px;color:var(--portal-muted);margin:8px 20px 16px;line-height:1.6}
.portal-workbench .table,.portal-workbench .fleet-table{width:100%;margin:0;border-collapse:collapse;font-size:12px}
.portal-workbench .table th,.portal-workbench .fleet-table th{background:#f8fafc;color:var(--portal-muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em;font-weight:700;padding:13px 20px;border-bottom:1px solid var(--portal-border);white-space:nowrap}
.portal-workbench .table td,.portal-workbench .fleet-table td{padding:15px 20px;border-bottom:1px solid #edf1f4;vertical-align:middle}
.portal-workbench tbody tr:last-child td{border-bottom:0}
.portal-workbench tbody tr:hover{background:#f9fbfd}
.portal-status,.tag,.pro-pill{display:inline-flex;border-radius:4px;padding:4px 8px;font-size:10px;font-weight:600;background:#edf5f7;color:#08758c;white-space:nowrap}
.tag-success{background:#e8f8ef;color:#1a7a46}.tag-warning,.pro-pill.late{background:#fff8e6;color:#a06000}.tag-danger{background:#fef0f0;color:#c0392b}.tag-muted{background:#f0f4f8;color:#556070}
.portal-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-width:140px}.portal-row-actions form{margin:0}
.portal-empty{padding:48px 24px!important;text-align:center;color:var(--portal-muted);font-size:13px}
.portal-surface-footer{padding:15px 20px;border-top:1px solid var(--portal-border)}
.portal-page-footer{display:flex;justify-content:space-between;gap:12px;padding:8px 0 20px;font-size:11px;color:var(--portal-muted)}
.portal-page-footer a{color:var(--portal-brand);text-decoration:none}
.portal-dispatch-grid{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.7fr);gap:20px;align-items:start}
.portal-workbench .panel-body,.portal-workbench .pro-body{padding:20px}
.portal-workbench .panel-body-flush{max-height:none!important;overflow-x:auto!important}
.portal-workbench .action-btn,.portal-workbench .pro-btn{border:1px solid #d6e0e9;background:#fff;color:#334155;cursor:pointer}
.portal-workbench .form-control,.portal-workbench .form-select,.portal-workbench .pro-form input,.portal-workbench .pro-form select,.portal-workbench .pro-form textarea{font-size:13px;border:1px solid #d6e0e9;border-radius:6px;min-height:38px;padding:8px 10px;background:#fff;color:#293b4d;width:100%}
.portal-workbench .form-label-sm,.portal-workbench .pro-form label{display:block;font-size:12px;font-weight:600;color:#334155;margin:8px 0 5px}
.portal-workbench .pro-form{max-width:960px;margin:16px 0;display:grid;gap:7px}
.portal-workbench .pro-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.portal-workbench .pro-form button{justify-self:start}
.portal-workbench .pro-case{padding:18px 20px;border-bottom:1px solid var(--portal-border)}
.portal-workbench .pro-case h3{font-size:14px;font-weight:700;margin:0}
.portal-workbench .pro-case-top{display:flex;align-items:start;justify-content:space-between;gap:16px}
.portal-workbench .pro-muted{color:var(--portal-muted);font-size:12px}
.portal-workbench .pro-list{list-style:none;margin:0;padding:0}.portal-workbench .pro-list>li{padding:16px 0;border-bottom:1px solid var(--portal-border)}
.portal-workbench details summary{cursor:pointer;color:var(--portal-brand);font-size:12px;padding:10px 0}
.portal-workbench .pro-tool{display:flex;align-items:center;gap:14px;padding:18px 20px;border-bottom:1px solid var(--portal-border);text-decoration:none;color:var(--portal-ink)}
.portal-workbench .pro-tool i{font-size:20px;color:var(--portal-brand)}.portal-workbench .pro-tool strong,.portal-workbench .pro-tool small{display:block}.portal-workbench .pro-tool small{color:var(--portal-muted);margin-top:4px}
.modal-panel{display:none;position:fixed;inset:0;z-index:1060;background:rgba(8,42,77,.45);align-items:center;justify-content:center;padding:20px;overflow-y:auto}.modal-panel.show{display:flex}
.modal-box{background:#fff;border-radius:10px;width:100%;max-width:620px;box-shadow:0 24px 64px rgba(8,42,77,.18);overflow:hidden;max-height:90dvh;display:flex;flex-direction:column;margin:auto}.modal-box-lg{max-width:800px}
.modal-box>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.modal-box-header,.modal-box-footer{padding:18px 22px;border-bottom:1px solid var(--portal-border);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.modal-box-footer{border-top:1px solid var(--portal-border);border-bottom:0;justify-content:flex-end}.modal-box-body{padding:22px;overflow-y:auto;min-height:0}
.modal-panel .action-btn{border:1px solid #d6e0e9;background:#fff;color:#334155;padding:8px 12px;border-radius:6px;font-size:12px;cursor:pointer}.modal-panel .action-btn.primary{background:var(--portal-brand);color:#fff;border-color:var(--portal-brand)}.modal-panel .form-control,.modal-panel .form-select{border-radius:6px;font-size:13px;min-height:38px}.modal-panel .form-label-sm{font-size:12px;font-weight:600;margin-bottom:5px;display:block}
.driver-avatar,.operator-avatar{width:32px;height:32px;display:inline-grid;place-items:center;border-radius:50%;background:#eaf5f7;color:var(--portal-brand);font-size:11px;font-weight:700;flex-shrink:0}
.avail-dot,.compliance-dot{display:inline-block;width:7px;height:7px;border-radius:50%}
.portal-message-history{padding:24px;display:flex;flex-direction:column;gap:18px}.portal-message{display:flex}.portal-message.is-mine{justify-content:flex-end}.portal-message-bubble{max-width:82%;padding:14px 18px;background:#f0f4f8;border:1px solid var(--portal-border);border-radius:10px}.is-mine .portal-message-bubble{background:#eaf5f7;border-color:#cde5eb}.portal-message-bubble>strong{font-size:11px;color:var(--portal-brand);display:block;margin-bottom:5px}.portal-message-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.portal-message-bubble>small{display:block;color:var(--portal-muted);font-size:10px;margin-top:10px}.portal-message-file{display:flex;align-items:center;gap:8px;padding:10px 0;overflow-wrap:anywhere}.portal-message-file span{font-size:10px;color:var(--portal-muted)}.portal-message-composer{padding:20px 24px;border-top:1px solid var(--portal-border)}.portal-message-composer-actions{display:flex;justify-content:space-between;align-items:end;gap:16px}.portal-message-composer-actions>div{max-width:460px;min-width:0}.portal-message-connection{font-size:11px;color:var(--portal-muted)}.portal-message-pagination{padding:0 24px 20px}
@media(max-width:575px){.portal-message-history{padding:16px}.portal-message-bubble{max-width:95%}.portal-message-composer{padding:16px}.portal-message-composer-actions{flex-direction:column;align-items:stretch}}
.portal-workbench :focus-visible,.ps-nav-link:focus-visible{outline:3px solid #2997b0;outline-offset:3px}
@media(max-width:1199px){.portal-page-header{align-items:start;flex-direction:column}.portal-dispatch-grid{grid-template-columns:minmax(280px,1fr) minmax(0,1fr)}}
@media(max-width:991px){.ps-shell .ps-content{padding:20px 16px;min-width:0}.ps-shell .ps-topbar{padding:12px 16px}.portal-chart-grid{grid-template-columns:minmax(0,1fr)}.portal-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-dispatch-grid{grid-template-columns:minmax(0,1fr)}.ps-shell .ps-sidebar{width:250px}}
@media(max-width:575px){.ps-shell .ps-topbar{height:auto;flex-wrap:wrap;gap:10px}.ps-topbar>.d-flex{min-width:0;flex-wrap:wrap}.ps-topbar>.d-flex:last-child{width:100%;justify-content:flex-end}.portal-tabs{gap:20px;max-width:100%}.portal-kpis{gap:10px}.portal-kpi{padding:14px}.portal-kpi strong{font-size:23px}.portal-kpi>i{display:none}.portal-page-header h1{font-size:23px}.portal-page-header>div{min-width:0;max-width:100%}.portal-toolbar{width:100%}.portal-toolbar>.btn{flex:1}.portal-workbench .pro-form-grid{grid-template-columns:1fr}.portal-surface-heading{align-items:start}.portal-page-footer{flex-direction:column}}
