/* Tables grow with their rows; the page owns vertical scrolling. */
.trips-table-wrap,.cw-table-scroll,.fleet-table-scroll,.aw-table-scroll {
    height:auto!important; max-height:none!important; overflow-x:auto!important; overflow-y:hidden!important;
}
.trips-table th,.trips-table td,.cw-table-scroll th,.cw-table-scroll td,
.fleet-table-scroll th,.fleet-table-scroll td,.aw-table-scroll th,.aw-table-scroll td {
    text-align:center!important; vertical-align:middle!important;
}
.cw-table-scroll td small,.fleet-table-scroll td small { text-align:center!important; }
.trip-status.status-not-fulfilled { background:#fff0f0!important;color:#b42318!important;border:1px solid #f5caca!important; }
.trip-status-tabs button { background:transparent!important; }
.trip-status-tabs button.active { background:#eaf2ff!important; }
.trip-actions-menu,.aw-actions-menu { position:fixed!important; inset:auto; z-index:3000!important; max-height:calc(100dvh - 16px); overflow-y:auto; visibility:hidden; }
.trips-workspace .trip-row-actions:has(.trip-actions-menu),.aw-actions-menu-host:has(.aw-actions-menu) { z-index:3000!important; }
.trips-workspace .trip-popover-host:has(>.trip-export-popover) { z-index:3001!important; }
.trip-export-popover { position:absolute;top:calc(100% + 8px);inset-inline-end:0;z-index:3001;min-width:160px;padding:6px;background:white;border:1px solid #dce5f2;border-radius:12px;box-shadow:0 12px 32px #102f4d22; }
.trip-export-popover button { display:block;width:100%;padding:12px;border:0;background:transparent;text-align:center;font:inherit;cursor:pointer;border-radius:8px; }
.trip-export-popover button:hover { background:#edf4ff; }
.shahin-nav .nav-group { display:flex;flex-direction:column;gap:4px; }
.shahin-nav .nav-group-heading { display:flex;align-items:center; }
.shahin-nav .nav-group-heading > button:first-child { flex:1;min-width:0; }
.shahin-nav .nav-group-toggle { flex:0 0 34px!important;width:34px!important;padding:8px 3px!important;justify-content:center; }
.shahin-nav .nav-group .nav-child { margin:0;width:100%;font-size:inherit;min-height:54px;padding:14px 16px; }
.shahin-nav .nav-group-heading { position:relative; }
.shahin-nav .nav-group-heading > button:first-child { width:100%;min-height:54px;padding:14px 16px; }
.shahin-nav .nav-group-toggle { position:absolute;inset-inline-end:4px;top:10px; }
.shahin-nav .nav-group button:not(.nav-group-toggle) { width:100%!important;min-height:43px!important;margin:0!important;padding:0 12px!important;font-size:13px!important;gap:11px!important; }
.shahin-nav .nav-group-toggle { top:4px; }
.shahin-nav .nav-group button:not(.nav-group-toggle) .material-symbols-rounded { font-size:20px!important; }
.trip-context-dismiss { position:fixed;inset:0;border:0;background:transparent;z-index:8500; }
.trip-context-menu { position:fixed;z-index:8501;width:270px;padding:12px;background:white;border:1px solid #dce5f2;border-radius:12px;box-shadow:0 12px 32px #102f4d22; }
.trip-context-menu a { color:#183652;text-decoration:none;font:inherit;display:block; }
.trip-number-button { text-decoration:none;cursor:pointer; }
.trip-details-actions-dismiss { position:fixed;inset:0;background:transparent;border:0;z-index:2500; }
.trip-modal-actions-host:has(.trip-actions-menu) { z-index:3000; }
.trip-popover-dismiss { z-index:2000!important; }
.trip-date-popover,.trip-filter-popover,.trip-columns-popover { z-index:3001!important; }
/* Raise the host too: trips-layout creates a z-index:41 stacking context,
   which otherwise traps these popovers below the dismiss overlay. */
.trips-workspace .trip-popover-host:has(>.trip-date-popover),
.trips-workspace .trip-popover-host:has(>.trip-filter-popover),
.trips-workspace .trip-popover-host:has(>.trip-columns-popover) { z-index:3001!important; }
.trip-modal-header-controls a { text-decoration:none;color:#526881;font-size:24px;padding:4px 10px; }
.trip-modal-backdrop.standalone { position:static!important;background:transparent!important;padding:0!important;display:block!important; }
.trip-modal-backdrop.standalone .trip-modal { width:100%!important;max-width:100%!important;max-height:none!important;margin:0!important;box-shadow:none!important; }
.shahin-shell:has(.trip-standalone) .trips-page-heading { display:none!important; }
.trip-standalone { display:block!important; }
.trip-standalone > .trips-toolbar,.trip-standalone > .trip-status-tabs,.trip-standalone > .trips-table-wrap,.trip-standalone > .trips-footer { display:none!important; }
.trips-table td:has(> .trip-cell-link) { padding:0!important; }
.trip-cell-link { display:flex;align-items:center;justify-content:center;min-height:60px;padding:12px 14px;color:inherit;text-decoration:none;cursor:pointer; }
.shaheen-global-search { min-width:260px;width:min(510px,100%);z-index:3100; }
.shaheen-global-search { position:relative; }
.shaheen-global-search__box { display:flex;align-items:center;gap:10px;border:1px solid #dce5f2;border-radius:12px;padding:8px 12px;background:#f8fafd; }
.shaheen-global-search__box input { border:0;background:transparent;width:100%;outline:0;font-family:Tajawal,Arial,sans-serif; }
.shaheen-global-search__box{flex-wrap:wrap}.shaheen-global-search__box input{flex:1 1 160px;min-width:100px}.shaheen-global-search__term{display:inline-flex;align-items:center;gap:5px;border-radius:8px;background:#e8f1ff;color:#1957a3;padding:3px 6px;font-size:12px;white-space:nowrap}.shaheen-global-search__term button{border:0;background:none;color:inherit;cursor:pointer;font-size:17px;line-height:1}
.shaheen-global-search__results { position:absolute;top:calc(100% + 8px);inset-inline:0;background:white;border:1px solid #dce5f2;box-shadow:0 12px 32px #102f4d22;border-radius:12px;max-height:70dvh;overflow:auto; }
.shaheen-global-search__item { display:flex;flex-direction:column;align-items:stretch;width:100%;text-align:start;padding:12px;border:0;border-bottom:1px solid #edf1f7;background:white;cursor:pointer;font-family:Tajawal,Arial,sans-serif; }
.shaheen-global-search__item:hover { background:#f1f6ff; }
.shaheen-global-search__type,.shaheen-global-search__item small { color:#70829b;font-size:12px; }
.shaheen-global-search__empty { padding:16px;color:#70829b; }
.trip-modal-backdrop.standalone .trip-modal-body { max-height:none!important;overflow:visible!important; }
input[list],select { font-family:Tajawal,Arial,sans-serif!important; }
.export-excel { color:#198754; }.export-pdf { color:#c83434; }
.customer-workspace .trip-status { display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 10px;border-radius:8px;border:1px solid transparent;font-weight:700;font-size:11px;white-space:nowrap; }
.customer-workspace .status-new { background:#eef5ff;color:#1665c8; }
.customer-workspace .status-assigned { background:#fff4de;color:#996000; }
.customer-workspace .status-approved { background:#eef1ff;color:#4d5ec4; }
.customer-workspace .status-loaded { background:#e8f8f5;color:#087a63; }
.customer-workspace .status-delivered { background:#e8f8ef;color:#137746; }
.customer-workspace .status-invoiced { background:#f4edff;color:#7142a5; }
.customer-workspace .status-collected { background:#e7f7ee;color:#0b7245; }
.customer-workspace .status-cancelled { background:#fff0f0;color:#c13e3e; }
.customer-workspace .status-neutral { background:#f3f5f8;color:#6e7988; }
.customer-workspace .status-not-fulfilled { background:#fde8e8;color:#b42318;border-color:#f5b7b7; }
.trip-export-popover button { display:flex;gap:10px;align-items:center;justify-content:center; }
.cw-table-card,.fleet-table-card { position:relative;overflow:visible!important; }
.cw-table-card:has(>.cw-panel),.fleet-table-card:has(>.fleet-panel) { z-index:2001; }
.profile-popover-dismiss { position:fixed;inset:0;z-index:2000;background:transparent;border:0; }
.cw-table-card>.cw-filter-panel,.fleet-table-card>.fleet-filters { position:absolute!important;top:82px;inset-inline-start:16px;width:min(540px,calc(100% - 32px));background:white!important;box-shadow:0 15px 45px #18365222;border-radius:14px!important;z-index:2002;max-height:70vh;overflow:auto; }
.cw-table-card>.cw-column-panel,.fleet-table-card>.fleet-columns { position:absolute!important;top:82px;inset-inline-end:16px;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;width:min(310px,calc(100% - 32px));background:white!important;box-shadow:0 15px 45px #18365222;border-radius:14px!important;z-index:2002;max-height:70vh;overflow-x:hidden!important;overflow-y:auto!important; }
.cw-table-card>.cw-column-panel>.profile-column-option,.fleet-table-card>.fleet-columns>.profile-column-option { box-sizing:border-box;width:100%;min-width:0;flex:0 0 auto; }
.cw-table-card>.cw-column-panel>.profile-column-option label,.fleet-table-card>.fleet-columns>.profile-column-option label { min-width:0;white-space:nowrap; }
.profile-popover-heading { grid-column:1/-1;display:flex;justify-content:space-between;align-items:center; }
.profile-popover-heading button { border:0;background:transparent;font-size:22px;cursor:pointer; }
.cw-toolbar,.fleet-toolbar { display:flex!important;align-items:center;gap:10px; }
.cw-toolbar>input,.fleet-toolbar>input { flex:1;min-width:0; }
.cw-toolbar>button,.fleet-toolbar>button { display:flex;align-items:center;justify-content:center;gap:9px;font-weight:400!important;min-height:44px; }
.profile-cell-link { display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:70px;padding:12px;color:inherit;text-decoration:none;cursor:pointer; }
.cw-table-scroll td:has(>.profile-cell-link),.fleet-table-scroll td:has(>.profile-cell-link) { padding:0!important; }
.profile-page>.customer-heading,.profile-page>.cw-stats,.profile-page>.cw-table-card,.profile-page>.fleet-heading,.profile-page>.fleet-stats,.profile-page>.fleet-table-card { display:none; }
.profile-standalone { position:static!important;display:block!important;inset:auto!important;padding:0!important;background:transparent!important; }
.profile-standalone>.cw-modal,.profile-standalone>.fleet-modal { width:100%!important;max-width:100%!important;max-height:none!important;margin:0!important;box-shadow:none; }
.profile-standalone .cw-modal-body,.profile-standalone .fleet-body { max-height:none!important;overflow:visible!important; }
.trip-pagination { display:flex;align-items:center;gap:10px;flex-wrap:wrap; }
.trip-pagination label { display:flex;align-items:center;gap:7px; }
.trip-pagination select,.trip-pagination button { border:1px solid #d5e2f1;border-radius:9px;background:#fff;padding:7px 10px;color:#173654;font:inherit; }
.trip-pagination button:not(:disabled) { cursor:pointer; }
.trip-detail-lines strong { text-align:left;justify-self:stretch; }
.profile-column-option { display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px; }
.profile-column-option label { display:flex;align-items:center;gap:8px;flex:1; }
.profile-column-option span { display:flex;gap:3px; }
.profile-column-option button { border:1px solid #d5e2f1;background:#fff;border-radius:6px;min-width:28px;cursor:pointer; }
.phone-entry { display:flex;gap:8px; }.phone-entry select { width:105px!important; }.phone-entry input { flex:1;min-width:0; }
.trip-modal-backdrop.inline-carrier-route-overlay { z-index:20000!important; }
.cw-form-grid .customer-phone { display:flex;align-items:center;gap:8px; }
.customer-phone select { flex:0 0 155px;width:155px!important;min-width:0; }
.customer-phone input { flex:1;width:0!important;min-width:0; }
.aw-workspace .primary-button { border:1px solid #e2b34c;border-radius:11px;background:#f5c75b;color:#183652;display:inline-flex;align-items:center;gap:9px;padding:12px 18px;min-height:46px;font:inherit;font-weight:700;cursor:pointer; }
.aw-workspace .aw-more-button { display:grid!important;visibility:visible!important;opacity:1!important;min-width:36px; }
.aw-workspace .aw-users-table { min-width:0!important;table-layout:auto; }
.aw-workspace .aw-actions-cell { position:sticky;inset-inline-end:0;background:white;z-index:2; }
.aw-workspace .aw-actions-cell:has(.aw-actions-menu) { z-index:3000; }
.truck-catalog { width:min(950px,calc(100vw - 32px))!important;max-height:85vh;overflow:auto; }
.settings-modal.settings-editor { z-index:11000!important; }
.truck-catalog table { width:100%;border-collapse:collapse; }
.truck-catalog th,.truck-catalog td { padding:12px;border-bottom:1px solid #edf0f5;text-align:center; }
.settings-primary { display:inline-flex;align-items:center;justify-content:center;gap:8px; }
.catalog-heading { display:flex;align-items:center;justify-content:space-between; }.catalog-heading button { border:0;background:transparent;font-size:26px;cursor:pointer; }
.truck-catalog td button { padding:8px 12px;border:1px solid #dbe3ee;border-radius:9px;background:white;margin:3px;cursor:pointer;font:inherit; }
.settings-actions button { padding:10px 18px;border:1px solid #dbe3ee;border-radius:9px;cursor:pointer; }
@media screen { .fleet-print-report { display:none; } }
@media print {
    .fleet-print-report { display:block; }
    .fleet-print-report table { width:100%;border-collapse:collapse; }
    .fleet-print-report th,.fleet-print-report td { border:1px solid #cad3de;padding:6px;text-align:center;font-size:11px; }
    .fleet-print-report tr { break-inside:avoid; }
    .fleet-print-report thead { display:table-header-group; }
}
