/* Profile opened from the carrier directory; scoped to this dialog. */
#modalRoot .modal:has(.carrier-profile){width:min(760px,100%);padding:32px}
#modalRoot .carrier-profile{display:grid;gap:24px;min-width:0}
#modalRoot .carrier-profile-header{display:flex;align-items:center;gap:16px;padding-right:28px;min-width:0}
#modalRoot .carrier-profile-header>div{min-width:0}
#modalRoot .carrier-profile-header .carrier-avatar{flex:0 0 56px;width:56px;height:56px;display:grid;place-items:center;background:#edf6eb;color:var(--green);border-radius:14px;font-weight:800}
#modalRoot .carrier-profile h2{margin:0 0 10px;line-height:1.25;overflow-wrap:anywhere}
#modalRoot .carrier-profile-status{display:inline-block;padding:6px 10px;border-radius:8px;background:var(--soft);color:var(--muted);font-size:14px;line-height:1.4}
#modalRoot .carrier-profile-status.is-verified{background:#edf6eb;color:var(--green)}
#modalRoot .carrier-profile-description{margin:0;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}
#modalRoot .carrier-profile-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#modalRoot .carrier-profile-details section{min-width:0;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
#modalRoot .carrier-profile-details h3{margin:0 0 12px;font-size:16px;line-height:1.4;color:var(--green)}
#modalRoot .carrier-profile-details ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
#modalRoot .carrier-profile-details li,#modalRoot .carrier-profile-details p{margin:0;line-height:1.55;overflow-wrap:anywhere}
#modalRoot .carrier-profile-details li+li{padding-top:10px;border-top:1px solid var(--line)}
#modalRoot .carrier-profile-routes{grid-column:1/-1}
#modalRoot .carrier-profile-footer{display:flex;justify-content:flex-end;padding-top:20px;border-top:1px solid var(--line)}
#modalRoot .carrier-profile-footer .btn{min-width:110px;background:var(--green)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:var(--green)!important}
@media(max-width:600px){
 #modalRoot .modal:has(.carrier-profile){padding:24px 18px}
 #modalRoot .carrier-profile{gap:20px}
 #modalRoot .carrier-profile-details{grid-template-columns:1fr}
 #modalRoot .carrier-profile-details section{padding:16px}
 #modalRoot .carrier-profile-header{align-items:flex-start;gap:12px}
}

/* Directory presentation, scoped independently from carrier profile dialogs. */
#dashboardView.cn-app #carriersPage{max-width:1600px;margin-inline:auto;padding:24px!important;color:var(--cn-navy);font-family:var(--cn-font)}
#dashboardView.cn-app #carriersPage .cn-page-header{margin:0 0 24px!important;padding:0!important}
#dashboardView.cn-app #carriersPage .cn-page-header h1{font-size:34px!important;line-height:1.15;letter-spacing:-.6px;margin:0 0 8px!important;color:var(--cn-navy)}
#dashboardView.cn-app #carriersPage .cn-page-header p{font-size:14px!important;line-height:1.6!important;color:#617087!important;margin:0!important}
#dashboardView.cn-app #carriersPage>.cn-card{padding:22px!important;margin-bottom:20px;border:1px solid var(--cn-border)!important;border-radius:12px!important;background:#fff!important;box-shadow:var(--cn-shadow)!important;min-width:0}
#dashboardView.cn-app #carriersPage h2{font-size:20px!important;line-height:1.3!important;margin:0 0 18px!important;color:var(--cn-navy)}
#dashboardView.cn-app #carriersPage label{font-size:14px!important;line-height:1.4;color:var(--cn-navy);margin-bottom:8px!important}
#dashboardView.cn-app #carriersPage :is(input:not([type=checkbox]),select,.vehicle-selector>summary){min-width:0;box-sizing:border-box;min-height:46px;height:46px!important;padding:11px 12px!important;border:1px solid var(--cn-border)!important;border-radius:8px!important;background:#fff!important;font-size:14px!important;color:var(--cn-navy)}
#dashboardView.cn-app #carriersPage #carrierLoadSelect{width:100%;margin-top:8px}
#dashboardView.cn-app #carriersPage #carrierFilterFields{min-width:0;margin:0;padding:0;border:0}
#dashboardView.cn-app #carriersPage .cn-resource-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 16px;align-items:end}
#dashboardView.cn-app #carriersPage .cn-resource-filters>.field{min-width:0;margin:0}
#dashboardView.cn-app #carriersPage .cn-resource-filters .field>label{display:block}
#dashboardView.cn-app #carriersPage .cn-resource-filters :is(input,select){width:100%}
#dashboardView.cn-app #carriersPage .btn{min-height:44px;padding:10px 16px!important;border-radius:8px!important;font-size:14px!important;background:var(--cn-green)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid var(--cn-green)!important;box-shadow:none!important}
#dashboardView.cn-app #carriersPage .btn.outline,#dashboardView.cn-app #carriersPage .cn-button--ghost{background:#fff!important;color:var(--cn-green)!important;-webkit-text-fill-color:var(--cn-green)!important;border:1px solid #c8ddc4!important;border-radius:8px!important;text-decoration:none!important;min-height:40px;padding:9px 14px!important}
#dashboardView.cn-app #carriersPage .cn-resource-filters>.btn{min-height:46px;width:100%;margin:0}
#dashboardView.cn-app #carriersPage .cn-filter-chips{margin:16px 0 0;gap:8px}
#dashboardView.cn-app #carriersPage .cn-resource-results-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding-top:22px;margin:22px 0 18px;border-top:1px solid var(--cn-border)!important}
#dashboardView.cn-app #carriersPage .cn-resource-results-head h2{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0!important}
#dashboardView.cn-app #carriersPage .cn-resource-results-head label{display:flex;align-items:center;gap:10px;margin:0!important}
#dashboardView.cn-app #carriersPage .cn-count-pill{background:#eaf7ee!important;color:var(--cn-green)!important;font-size:12px!important;line-height:1.4;padding:5px 10px;border-radius:20px;white-space:nowrap}
#dashboardView.cn-app #carriersPage #carrierResults{display:grid;gap:14px;min-width:0}
#dashboardView.cn-app #carriersPage .cn-resource-row{display:grid;grid-template-columns:24px 48px minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,1fr);gap:16px;align-items:center;padding:20px!important;border:1px solid var(--cn-border)!important;border-radius:12px!important;background:white!important;box-shadow:0 2px 10px #173b6704}
#dashboardView.cn-app #carriersPage .cn-resource-row>div{min-width:0;overflow-wrap:anywhere}
#dashboardView.cn-app #carriersPage .cn-resource-actions{grid-column:3/-1;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding-top:14px;border-top:1px solid var(--cn-border)!important}
#dashboardView.cn-app #carriersPage .cn-resource-actions .btn{min-width:140px}
#dashboardView.cn-app #carriersPage .carrier-avatar{width:48px;height:48px;background:#eaf7ee;color:var(--cn-green);font-size:18px}
#dashboardView.cn-app #carriersPage .cn-resource-row small{font-size:13px!important;line-height:1.5;color:#617087}
#dashboardView.cn-app #carriersPage .cn-resource-row b{font-size:15px;line-height:1.4}
#dashboardView.cn-app #carriersPage .cn-resource-availability{padding:12px;border-radius:8px;background:#eefaf0;color:var(--cn-green)}
#dashboardView.cn-app #carriersPage .ui-icon{color:var(--cn-green)}
#dashboardView.cn-app #carriersPage .btn:not(.outline) .ui-icon{color:inherit}
#dashboardView.cn-app #carriersPage .cn-empty{min-height:210px;padding:32px 20px;border:1px dashed var(--cn-border)!important;border-radius:12px;background:#f8fafc;color:#617087}
#dashboardView.cn-app #carriersPage .cn-empty h3{font-size:18px!important;color:var(--cn-navy)}
#dashboardView.cn-app #carriersPage .cn-empty p{font-size:14px!important;line-height:1.5}
#dashboardView.cn-app #carriersPage button:disabled{opacity:.55;cursor:not-allowed}
#dashboardView.cn-app #carriersPage .cn-choice-summary{margin-top:18px;border:1px solid #d7e8d5!important;border-radius:10px;background:#f4faf3}
@media(max-width:1050px){#dashboardView.cn-app #carriersPage .cn-resource-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboardView.cn-app #carriersPage .cn-resource-row{grid-template-columns:24px 48px minmax(0,1fr)}#dashboardView.cn-app #carriersPage :is(.cn-resource-vehicle,.cn-resource-availability){grid-column:2/-1}#dashboardView.cn-app #carriersPage .cn-resource-actions{grid-column:1/-1}}
@media(max-width:600px){#dashboardView.cn-app #carriersPage{padding:16px!important}#dashboardView.cn-app #carriersPage .cn-page-header h1{font-size:28px!important}#dashboardView.cn-app #carriersPage>.cn-card{padding:16px!important}#dashboardView.cn-app #carriersPage .cn-resource-filters{grid-template-columns:minmax(0,1fr);gap:16px}#dashboardView.cn-app #carriersPage :is(input:not([type=checkbox]),select,.vehicle-selector>summary){font-size:16px!important}#dashboardView.cn-app #carriersPage .cn-resource-results-head label{width:100%;flex-wrap:wrap}#dashboardView.cn-app #carriersPage .cn-resource-results-head select{flex:1}#dashboardView.cn-app #carriersPage .cn-resource-row{padding:14px!important;gap:12px}#dashboardView.cn-app #carriersPage .cn-resource-actions{display:grid;grid-template-columns:minmax(0,1fr)}#dashboardView.cn-app #carriersPage .cn-resource-actions .btn{width:100%;min-width:0}}

/* Match the supplied carrier-search reference. */
#dashboardView.cn-app #carriersPage{padding:26px!important}
#dashboardView.cn-app #carriersPage .cn-page-header{margin-bottom:20px!important}
#dashboardView.cn-app #carriersPage .cn-page-header h1{font-size:34px!important;line-height:1.2;margin-bottom:10px!important}
#dashboardView.cn-app #carriersPage .cn-page-header p{color:var(--cn-navy)!important;font-size:14px!important;line-height:1.65!important}
#dashboardView.cn-app #carriersPage>.cn-card{padding:18px!important;margin-bottom:18px;border-radius:8px!important;box-shadow:0 1px 4px #173b6703!important}
#dashboardView.cn-app #carriersPage h2{font-size:19px!important;margin-bottom:16px!important}
#dashboardView.cn-app #carriersPage label{font-size:13px!important;font-weight:700}
#dashboardView.cn-app #carriersPage .cn-resource-filters{gap:16px 14px}
#dashboardView.cn-app #carriersPage :is(input:not([type=checkbox]),select,.vehicle-selector>summary){height:46px!important;min-height:46px;border-radius:6px!important;font-size:14px!important}
#dashboardView.cn-app #carriersPage #directoryVehicleSelector>summary{border-color:#83a37b!important}
#dashboardView.cn-app #carriersPage #directoryVehicleSelector>summary .ui-icon{color:var(--cn-navy)}
#dashboardView.cn-app #carriersPage .cn-resource-filters>.btn{border-radius:8px!important}
#dashboardView.cn-app #carriersPage #carrierFilterChips{margin-top:16px}
#dashboardView.cn-app #carriersPage #carrierFilterChips button[onclick="clearCarrierFilters()"]{min-height:36px;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--cn-navy)!important;-webkit-text-fill-color:var(--cn-navy)!important;text-decoration:underline!important;font-size:14px!important;padding:8px 20px!important}
#dashboardView.cn-app #carriersPage .cn-resource-results-head{padding-top:14px;margin:18px 0 18px;gap:16px}
#dashboardView.cn-app #carriersPage .cn-resource-results-head h2{margin:0!important;font-size:19px!important}
#dashboardView.cn-app #carriersPage .cn-count-pill{background:#eef4fc!important;color:var(--cn-navy)!important;font-size:12px!important;font-weight:400;padding:4px 9px}
#dashboardView.cn-app #carriersPage .cn-resource-results-head select{min-width:155px}
#dashboardView.cn-app #carriersPage .cn-empty{background:#fff;min-height:210px;border-radius:8px;padding:40px 20px;color:var(--cn-navy)}
#dashboardView.cn-app #carriersPage .cn-empty h3{font-size:17px!important;margin:0 0 14px}
#dashboardView.cn-app #carriersPage .cn-empty p{color:var(--cn-navy);margin:0;font-size:14px!important}
@media(min-width:901px){#dashboardView.cn-app #carriersPage .cn-resource-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){#dashboardView.cn-app #carriersPage{padding:16px!important}#dashboardView.cn-app #carriersPage>.cn-card{padding:16px!important}#dashboardView.cn-app #carriersPage .cn-page-header h1{font-size:28px!important}#dashboardView.cn-app #carriersPage :is(input:not([type=checkbox]),select,.vehicle-selector>summary){font-size:16px!important}#dashboardView.cn-app #carriersPage .cn-resource-results-head select{min-width:0;max-width:100%}}

/* Illustrated reference with three independent panels. */
#dashboardView.cn-app #carriersPage .carrier-breadcrumb{display:flex;gap:10px;align-items:center;margin:0 0 16px;font-size:12px;color:#687b99}
#dashboardView.cn-app #carriersPage .carrier-illustrated-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px!important}
#dashboardView.cn-app #carriersPage .carrier-illustrated-head>div{min-width:0;flex:1}
#dashboardView.cn-app #carriersPage .carrier-header-art{display:block;width:34%;max-width:390px;height:130px;object-fit:contain;flex-shrink:0}
#dashboardView.cn-app #carriersPage .cn-page-header p{color:#536781!important;line-height:1.5!important}
#dashboardView.cn-app #carriersPage>.cn-card{border:1px solid #f0f3f8!important;border-radius:12px!important;box-shadow:0 5px 18px #173b6705!important;padding:18px!important;margin-bottom:18px}
#dashboardView.cn-app #carriersPage .carrier-section-title{display:flex;align-items:center;gap:14px;margin-bottom:14px!important}
#dashboardView.cn-app #carriersPage .carrier-section-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;background:#eaf9eb;border-radius:12px;color:var(--cn-green)}
#dashboardView.cn-app #carriersPage .carrier-section-icon.blue{background:#edf3fc;color:var(--cn-green)}
#dashboardView.cn-app #carriersPage .carrier-section-icon .ui-icon{width:21px;height:21px;color:inherit}
#dashboardView.cn-app #carriersPage .carrier-input-icon{position:relative;min-width:0}
#dashboardView.cn-app #carriersPage .carrier-input-icon>.ui-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:19px;height:19px;pointer-events:none;color:var(--cn-navy)}
#dashboardView.cn-app #carriersPage .carrier-input-icon :is(input,select){padding-left:42px!important}
#dashboardView.cn-app #carriersPage .ui-icon{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#dashboardView.cn-app #carriersPage #carrierFilterChips button[onclick="clearCarrierFilters()"]{display:inline-flex;align-items:center;gap:14px;padding:4px 8px!important;font-weight:400}
#dashboardView.cn-app #carriersPage #carrierFilterChips button .ui-icon{width:18px;height:18px;color:var(--cn-navy)}
#dashboardView.cn-app #carriersPage .carrier-results-panel .cn-resource-results-head{padding-top:0;margin:0 0 18px;border:0!important}
#dashboardView.cn-app #carriersPage .carrier-results-panel .carrier-section-title{margin:0!important;gap:12px}
#dashboardView.cn-app #carriersPage .carrier-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:158px;padding:16px!important;border-color:#e4eaf2!important}
#dashboardView.cn-app #carriersPage .carrier-empty-icon{display:grid;place-items:center;width:58px;height:58px;flex:0 0 58px;margin-bottom:14px;border-radius:50%;background:#eaf1fb}
#dashboardView.cn-app #carriersPage .carrier-empty-icon .ui-icon{width:30px;height:30px;color:var(--cn-green)}
#dashboardView.cn-app #carriersPage .carrier-empty-state h3{margin:0 0 7px!important;font-size:16px!important}
#dashboardView.cn-app #carriersPage .carrier-empty-state p{font-size:13px!important;color:#687b99!important}
@media(max-width:1000px){#dashboardView.cn-app #carriersPage .carrier-header-art{width:27%;height:110px}}
@media(max-width:600px){#dashboardView.cn-app #carriersPage .carrier-header-art{display:none}#dashboardView.cn-app #carriersPage .carrier-section-title{gap:10px;align-items:flex-start}#dashboardView.cn-app #carriersPage .carrier-section-icon{width:32px;height:32px;flex-basis:32px}#dashboardView.cn-app #carriersPage .carrier-results-panel .carrier-section-title{flex-wrap:wrap}#dashboardView.cn-app #carriersPage .carrier-empty-state{padding:24px 12px!important}#dashboardView.cn-app #carriersPage .carrier-empty-state h3{text-align:center}}
/* Reserve icon space after the shared input-padding rules. */
#dashboardView.cn-app #carriersPage #carrierFilterFields .carrier-input-icon>input,
#dashboardView.cn-app #carriersPage #carrierFilterFields .carrier-input-icon>select{padding:11px 34px 11px 44px!important;text-indent:0!important}

/* Keep the search-zone icon in its own column, never over the native select. */
#dashboardView.cn-app #carriersPage #carrierFilterFields .carrier-input-icon:has(> :is(#carrierRadius,#carrierAvailability)){display:flex;align-items:center;border:1px solid var(--cn-border)!important;border-radius:6px;background:#fff;min-height:46px;box-sizing:border-box}
#dashboardView.cn-app #carriersPage #carrierFilterFields .carrier-input-icon:has(> :is(#carrierRadius,#carrierAvailability))>.ui-icon{position:static!important;transform:none!important;flex:0 0 19px;width:19px;height:19px;margin-left:14px;margin-right:12px}
#dashboardView.cn-app #carriersPage #carrierFilterFields .carrier-input-icon>:is(#carrierRadius,#carrierAvailability){flex:1;width:0;min-width:0;border:0!important;padding:10px 28px 10px 0!important;background:transparent!important}

#dashboardView.cn-app #carriersPage #carrierFilterFields .carrier-input-icon>:is(#carrierRadius,#carrierAvailability),
#dashboardView.cn-app #carriersPage #carrierFilterFields .carrier-input-icon>:is(#carrierRadius,#carrierAvailability):focus,
#dashboardView.cn-app #carriersPage #carrierFilterFields .carrier-input-icon>:is(#carrierRadius,#carrierAvailability):focus-visible{border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important;margin:0!important;height:44px!important;min-height:44px!important}
#dashboardView.cn-app #carriersPage #carrierFilterFields .carrier-input-icon:has(> :is(#carrierRadius,#carrierAvailability)){overflow:hidden}
#dashboardView.cn-app #carriersPage #carrierFilterFields .carrier-input-icon:has(> :is(#carrierRadius,#carrierAvailability)):focus-within{outline:2px solid #1f600e40;outline-offset:2px;border-color:var(--cn-green)!important}
/* Green field and clear-filter icons, keeping the search button icon white. */
#dashboardView.cn-app #carriersPage #carrierFilterFields .carrier-input-icon>.ui-icon,
#dashboardView.cn-app #carriersPage #directoryVehicleSelector>summary .ui-icon,
#dashboardView.cn-app #carriersPage #carrierFilterChips button .ui-icon{color:var(--cn-green)!important}
