/* Shared brand accents for application controls and content, including dialogs. */
@layer cargonel-button-borders {
 /* Color existing outlines without adding borders to borderless controls. */
 :is(#dashboardView .dash-main,#modalRoot,#authView) :is(.cn-card,.cn-control,[class*="-card"],[class*="-panel"],input,select,textarea,.received-filters,.received-offer,.operations-list-search,.cn-search-field,.modal,.operations-reference-table,.received-stat,.ops-summary-card):not(:where(.danger,.cn-button--danger,[data-cn-state="danger"],[aria-invalid="true"],:user-invalid,.cmr-sheet *,.cmr-document *,.cmr-paper *,.invoice-paper *)) {
  border-color:var(--cn-green,#1f600e)!important;
 }
 /* Summary cards retain their state-colored top edge. */
 #dashboardView.cn-app #sentOffersPage.received-reference button.received-stat{border-color:var(--cn-green,#1f600e)!important;border-top-color:var(--offer-stat-accent)!important}
 #dashboardView.cn-app #operationsPage.operations-reference .operations-list-summary button.ops-summary-card{border-color:var(--cn-green,#1f600e)!important;border-top-color:var(--ops-stat-accent)!important}
 /* Every overflow menu uses the same brand green. */
 :is(#dashboardView,#modalRoot) :is(.ops-more,.documents-more,.cmr-kebab,.notification-more,.received-more>summary,.communication-more>summary,.fleet-more,.fleet-more>summary,[aria-label^="Más acciones"],[aria-label^="Más opciones"],button[onclick^="openOperationStatus("]) {
  color:var(--cn-green,#1f600e)!important;-webkit-text-fill-color:currentColor!important;
 }
 /* Utility icons share green; semantic states, summaries and filled actions keep their contrast. */
 :is(#dashboardView .dash-main,#dashboardView .dash-header,#modalRoot,#authView) .ui-icon:not(:where(
  .received-stat-icon .ui-icon,.ops-summary-icon .ui-icon,
  .cn-badge .ui-icon,[class*="status"] .ui-icon,[class*="badge"] .ui-icon,
  .danger .ui-icon,.cn-button--danger .ui-icon,.btn-danger .ui-icon,
  .cn-button:not(.cn-button--outline):not(.cn-button--ghost) .ui-icon,
  .side .ui-icon,.cmr-sheet .ui-icon,.cmr-document .ui-icon,.cmr-paper .ui-icon,.invoice-paper .ui-icon
 )){color:var(--cn-green,#1f600e)!important;stroke:currentColor!important}
 /* Map metrics retain the same semantic accents as other summary cards. */
 #dashboardView.cn-app #loadsMapPage .map-kpis .map-kpi{border-top-color:var(--map-stat-accent)!important}
 #dashboardView.cn-app #loadsMapPage .map-kpis .map-kpi .ui-icon{color:var(--map-stat-icon)!important;stroke:currentColor!important}
 /* My loads retain status accents while the filter buttons stay functional. */
 #dashboardView.cn-app #myLoadsPage .my-loads-status-grid button.my-load-filter-card{border-top-color:var(--load-stat-accent)!important}
 #dashboardView.cn-app #myLoadsPage .my-loads-status-grid button.my-load-filter-card>.ui-icon{color:var(--load-stat-icon)!important;stroke:currentColor!important}
 /* Account actions retain their semantic color in the shared header menu. */
 #dashboardView #accountMenu [data-account-action="profile"]{--account-action-color:var(--cn-green,#1f600e)}
 #dashboardView #accountMenu [data-account-action="settings"]{--account-action-color:var(--cn-blue,#072e7d)}
 #dashboardView #accountMenu [data-account-action="logout"]{--account-action-color:#bd2639}
 #dashboardView #accountMenu button[data-account-action],
 #dashboardView #accountMenu button[data-account-action] :is(span,.ui-icon,.ui-icon *){
  color:var(--account-action-color)!important;-webkit-text-fill-color:currentColor!important;
 }
 /* Small row and search icons are green even in utility buttons hydrated as primary. */
 #dashboardView :is(.ops-company,.operations-list-search,.ops-clear,.received-input-icon,.received-calendar-control,.documents-search,.documents-row-date) .ui-icon{
  color:var(--cn-green,#1f600e)!important;stroke:currentColor!important;
 }
}

/* Native date picker glyphs follow the utility icon accent. */
:is(#dashboardView .dash-main,#modalRoot,#authView) input:is([type="date"],[type="datetime-local"])::-webkit-calendar-picker-indicator{filter:invert(27%) sepia(65%) saturate(714%) hue-rotate(64deg) brightness(88%) contrast(101%)}
@media(max-width:600px){
 #dashboardView.cn-app #operationsPage.operations-reference .operations-reference-table tr{border-color:var(--cn-green,#1f600e)!important}
}

/* Counteroffer actions use a very pale orange in every list and dialog. */
@layer cargonel-button-borders {
 :is(#dashboardView,#modalRoot) button:is(
  [onclick^="openLoadProposal("][onclick*="'counter'"],
  [onclick^="openReceivedOfferDecision("][onclick*="'counter'"],
  [onclick^="submitLoadProposal("],
  [onclick^="submitReceivedOfferDecision("][onclick*="'counter'"]
 ) {background:#fff3e5!important;color:var(--cn-navy,#072e7d)!important;-webkit-text-fill-color:currentColor!important}
}

@layer cargonel-button-borders {
 :is(#dashboardView,#modalRoot) button.view-request-button{background:var(--cn-blue,#072e7d)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
}
/* Flag content is decorative: DOM text and country values stay unchanged. */
.cn-country-name::after{content:"\00a0" attr(data-country-flag);font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:max(14px,1em);font-weight:400;font-style:normal;line-height:1;vertical-align:-.04em}
@media print{.cn-country-name::after{content:none}}

.cn-country-input-icon>svg{display:none!important}
.cn-country-input-icon::after{content:attr(data-country-flag);font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:19px;font-weight:400;line-height:1}
