/* Mis cargas: presentation only, scoped to this page. */
#dashboardView #myLoadsPage{max-width:1600px;margin-inline:auto;padding:24px;font-family:var(--cn-font);color:var(--cn-navy)}
#dashboardView #myLoadsPage .my-loads-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}
#dashboardView #myLoadsPage .my-loads-head h1{font-size:34px!important;line-height:1.15;margin:0;letter-spacing:-.6px}
#dashboardView #myLoadsPage .my-loads-head p{font-size:14px!important;line-height:1.5;margin:4px 0 0;color:#617087}
#dashboardView #myLoadsPage .my-loads-head .btn{min-height:46px;padding:12px 26px!important;background:var(--cn-green)!important;color:white!important;border-radius:9px!important;font-size:14px!important;flex-shrink:0}
#dashboardView #myLoadsPage .my-loads-status-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-bottom:16px}
#dashboardView #myLoadsPage .my-load-filter-card{display:grid!important;grid-template-columns:26px minmax(0,1fr);gap:12px;align-items:center;min-width:0;min-height:76px;padding:14px!important;background:white!important;border:1px solid var(--cn-border)!important;border-radius:10px!important;box-shadow:var(--cn-shadow)!important;color:var(--cn-navy)!important;text-align:left}
#dashboardView #myLoadsPage .my-load-filter-card::before{display:none}
#dashboardView #myLoadsPage .my-load-filter-card span{font-size:12px!important;line-height:1.3;white-space:normal;letter-spacing:normal}
#dashboardView #myLoadsPage .my-load-filter-card b{display:block;font-size:24px!important;line-height:1.1;margin-top:5px;color:var(--cn-navy)}
#dashboardView #myLoadsPage .my-load-filter-card .ui-icon{width:26px;height:26px;color:var(--cn-green)!important}
#dashboardView #myLoadsPage .my-load-filter-card.active{background:#eef9ef!important;border-color:var(--cn-green)!important}
#dashboardView #myLoadsPage .my-loads-panel{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible}
#dashboardView #myLoadsPage .my-loads-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);gap:12px;align-items:center;padding:14px;margin-bottom:16px;background:white;border:1px solid var(--cn-border)!important;border-radius:12px;box-shadow:var(--cn-shadow)}
#dashboardView #myLoadsPage .my-loads-toolbar>*{min-width:0;width:100%;margin:0}
#dashboardView #myLoadsPage .my-loads-toolbar :is(input,select,summary){width:100%;min-width:0;box-sizing:border-box;height:42px!important;min-height:42px;padding:10px 12px!important;border:1px solid var(--cn-border)!important;border-radius:8px!important;background:white;font-size:13px!important}
#dashboardView #myLoadsPage .my-loads-cards{display:grid;gap:14px}
#dashboardView #myLoadsPage .my-load-card{display:grid;grid-template-columns:minmax(0,3fr) minmax(160px,1fr) minmax(210px,1.05fr);grid-template-areas:'main state price' 'actions actions actions';gap:12px 16px;min-height:0;padding:14px!important;border:1px solid var(--cn-border)!important;border-radius:12px!important;background:white!important;box-shadow:var(--cn-shadow)!important}
#dashboardView #myLoadsPage .my-load-card>div{min-width:0;padding:0;border:0}
#dashboardView #myLoadsPage .my-load-main{grid-area:main;display:grid;align-content:space-between;gap:15px}
#dashboardView #myLoadsPage .my-load-badges{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#dashboardView #myLoadsPage .my-load-badges>span{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:7px;font-size:12px;line-height:1.4}
#dashboardView #myLoadsPage .my-load-vehicle{background:#e7f1fd;color:var(--cn-navy);font-weight:700}
#dashboardView #myLoadsPage .my-load-modality{background:#f1f5fa;color:var(--cn-navy)}
#dashboardView #myLoadsPage .my-load-badges .ui-icon{width:21px;height:21px;flex:0 0 21px}
#dashboardView #myLoadsPage .my-load-route{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);align-items:center;gap:12px;min-height:40px}
#dashboardView #myLoadsPage .my-load-route-line{display:flex;align-items:center;gap:10px;min-width:0;margin:0;font-size:20px;line-height:1.3;font-weight:700;overflow-wrap:anywhere}
#dashboardView #myLoadsPage .my-load-route-line::after{display:none}
#dashboardView #myLoadsPage .my-load-route-arrow{font-size:28px;text-align:center}
#dashboardView #myLoadsPage .my-load-facts{display:flex;align-items:center;flex-wrap:wrap;gap:8px 0;padding-left:32px;font-size:12px;line-height:1.4;color:var(--cn-navy)}
#dashboardView #myLoadsPage .my-load-fact{display:flex;align-items:center;gap:8px;min-width:0;padding:0 12px;border-right:1px solid var(--cn-border)!important;overflow-wrap:anywhere}
#dashboardView #myLoadsPage .my-load-fact:first-child{padding-left:0}#dashboardView #myLoadsPage .my-load-fact:last-child{border:0!important;padding-right:0}
#dashboardView #myLoadsPage .my-load-fact .ui-icon{width:18px;height:18px;flex:0 0 18px;color:var(--cn-navy)}
#dashboardView #myLoadsPage .my-load-ref{margin:0;font-size:12px;color:var(--cn-navy)}
#dashboardView #myLoadsPage .my-load-state-col{grid-area:state;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;padding:8px 0 0 16px!important;border-left:1px solid var(--cn-border)!important}
#dashboardView #myLoadsPage .load-status{display:inline-flex;max-width:100%;padding:6px 9px;border-radius:6px;font-size:12px;line-height:1.4;font-weight:700;background:var(--cn-info-bg);color:var(--cn-navy);white-space:normal}
#dashboardView #myLoadsPage .load-status.published,#dashboardView #myLoadsPage .load-status.delivered{background:var(--cn-success-bg);color:var(--cn-green)}
#dashboardView #myLoadsPage .load-status.negotiation{background:var(--cn-warning-bg);color:var(--cn-warning)}
#dashboardView #myLoadsPage .load-status.cancelled{background:var(--cn-danger-bg);color:var(--cn-danger)}
#dashboardView #myLoadsPage .my-load-state-note{font-size:12px;line-height:1.5;color:#617087}
#dashboardView #myLoadsPage .my-load-price-panel{grid-area:price;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;padding:16px!important;border-radius:8px;background:#eefaf0;color:var(--cn-green)}
#dashboardView #myLoadsPage .my-load-price-panel:empty{display:none}
#dashboardView #myLoadsPage .my-load-price-panel small{font-size:12px;line-height:1.4}
#dashboardView #myLoadsPage .my-load-price-panel .my-load-price-caption{color:#617087}
#dashboardView #myLoadsPage .my-load-price{width:100%;min-width:0}
#dashboardView #myLoadsPage .price-tax-display{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;color:var(--cn-green)}
#dashboardView #myLoadsPage .price-tax-amount{font-size:26px!important;line-height:1.2;font-weight:700;color:var(--cn-green);overflow-wrap:anywhere}
#dashboardView #myLoadsPage .my-load-price-panel .price-tax-display select{box-sizing:border-box;max-width:100%;min-width:0;width:auto!important;min-height:36px;height:auto!important;margin:0;padding:7px 28px 7px 10px!important;border:1px solid #c8ddc4!important;border-radius:7px!important;background-color:#fff!important;color:var(--cn-green)!important;font-size:14px!important;font-weight:600;line-height:1.4;box-shadow:none!important}
#dashboardView #myLoadsPage .my-load-price-panel .price-tax-display select:focus-visible{outline:2px solid var(--cn-green)!important;outline-offset:2px}
#dashboardView #myLoadsPage .price-tax-label{max-width:100%;min-width:0;font-size:14px!important;font-weight:600;line-height:1.4;color:var(--cn-green)!important;overflow-wrap:anywhere}
#dashboardView #myLoadsPage .my-load-actions-col{grid-area:actions;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-content:start}
#dashboardView #myLoadsPage .my-load-actions-col button{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;width:100%;min-height:44px;padding:10px 12px!important;border:1px solid var(--cn-border)!important;border-radius:7px!important;background:white!important;color:var(--cn-navy)!important;-webkit-text-fill-color:currentColor;white-space:normal;font:600 14px/1.3 var(--cn-font)!important;box-shadow:none!important}
#dashboardView #myLoadsPage .my-load-actions-col .ui-icon{width:21px;height:21px;flex:0 0 21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#dashboardView #myLoadsPage .my-load-actions-col .my-load-primary{background:var(--cn-green)!important;border-color:var(--cn-green)!important;color:white!important}
#dashboardView #myLoadsPage .my-load-actions-col .my-load-delete{background:#fff1f3!important;border-color:#f1cbd0!important;color:var(--cn-danger)!important}
#dashboardView #myLoadsPage button:focus-visible{outline:3px solid #1f600e55;outline-offset:3px}
#dashboardView #myLoadsPage .my-loads-footer{margin-top:16px;font-size:12px;line-height:1.5;color:#617087}
#dashboardView #myLoadsPage .my-loads-empty{padding:32px 20px;min-height:240px;background:white;border:1px solid var(--cn-border);border-radius:12px}
@media(max-width:1200px){
 #dashboardView #myLoadsPage .my-loads-status-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 #dashboardView #myLoadsPage .my-load-card{grid-template-columns:minmax(0,1fr) 210px;grid-template-areas:'main price' 'state price' 'actions actions'}
 #dashboardView #myLoadsPage .my-load-state-col{padding:0!important;border:0!important;flex-direction:row;align-items:center;flex-wrap:wrap}
}
@media(max-width:760px){
 #dashboardView #myLoadsPage{padding:16px}
 #dashboardView #myLoadsPage .my-loads-head{flex-direction:column;align-items:stretch;gap:14px}
 #dashboardView #myLoadsPage .my-loads-head h1{font-size:28px!important}
 #dashboardView #myLoadsPage .my-loads-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #dashboardView #myLoadsPage .my-loads-toolbar{grid-template-columns:minmax(0,1fr);padding:12px}
 #dashboardView #myLoadsPage .my-loads-toolbar :is(input,select,summary){font-size:16px!important}
 #dashboardView #myLoadsPage .my-load-card{grid-template-columns:minmax(0,1fr);grid-template-areas:'main' 'state' 'price' 'actions';gap:16px}
 #dashboardView #myLoadsPage .my-load-route{grid-template-columns:minmax(0,1fr);gap:12px}
 #dashboardView #myLoadsPage .my-load-route-line{grid-column:1;font-size:18px}
 #dashboardView #myLoadsPage .my-load-facts{padding-left:0;gap:10px;flex-direction:column;align-items:flex-start;font-size:14px}
 #dashboardView #myLoadsPage .my-load-fact{padding:0;border:0!important}
 #dashboardView #myLoadsPage .my-load-ref{font-size:14px}
 #dashboardView #myLoadsPage .my-load-price-panel .price-tax-display select{min-height:44px;font-size:16px!important}
 #dashboardView #myLoadsPage .my-load-actions-col{grid-template-columns:repeat(2,minmax(0,1fr))}
 #dashboardView #myLoadsPage .my-load-actions-col button{gap:6px;padding:10px 6px!important}
}

#dashboardView #myLoadsPage .my-load-search-control{position:relative}
#dashboardView #myLoadsPage .my-load-search-control>.ui-icon{position:absolute;left:12px;top:12px;width:18px;height:18px;pointer-events:none;color:var(--cn-navy)}
#dashboardView #myLoadsPage .my-load-search-control input{padding-left:38px!important}
#dashboardView #myLoadsPage .load-status.published::before{content:'✓';display:inline-grid;place-items:center;width:13px;height:13px;margin:2px 5px 0 0;border-radius:50%;background:var(--cn-green);color:white;font-size:10px}
#dashboardView #myLoadsPage .my-load-filter-card>.ui-icon{display:block!important;visibility:visible!important}
#dashboardView #myLoadsPage .my-load-filter-card span{font-weight:400!important}
#dashboardView #myLoadsPage .my-load-filter-card b{font-weight:700!important}
#dashboardView #myLoadsPage .my-load-price-panel .price-tax-display select{color:var(--cn-green)!important;-webkit-text-fill-color:var(--cn-green)!important}

#dashboardView #myLoadsPage .my-load-route .ui-icon{display:block;width:24px;height:24px;flex:0 0 24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#dashboardView #myLoadsPage .my-load-origin-icon{color:var(--cn-green)}
#dashboardView #myLoadsPage .my-load-destination-icon,#dashboardView #myLoadsPage .my-load-route-arrow{color:var(--cn-navy)}
#dashboardView #myLoadsPage .my-load-route-arrow{display:flex;justify-content:center}
@media(max-width:760px){#dashboardView #myLoadsPage .my-load-route-arrow{display:none}}

/* Origin/destination reference: labelled endpoints and dotted connector. */
#dashboardView #myLoadsPage .my-load-route{grid-template-columns:minmax(0,1fr) minmax(60px,.35fr) minmax(0,1fr);gap:14px;padding:16px;border:1px solid var(--cn-border)!important;border-radius:12px;background:white;box-shadow:0 3px 12px #173b6706}
#dashboardView #myLoadsPage .my-load-route-line{gap:12px;font-size:18px;line-height:1.3}
#dashboardView #myLoadsPage .my-load-route-emblem{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:#eef4fc;color:var(--cn-navy)}
#dashboardView #myLoadsPage .my-load-route-emblem.origin{background:#eff9f0;color:var(--cn-green)}
#dashboardView #myLoadsPage .my-load-route-emblem .ui-icon{width:26px;height:26px}
#dashboardView #myLoadsPage .my-load-route-copy{display:grid;gap:6px;min-width:0}
#dashboardView #myLoadsPage .my-load-route-copy small{font-size:10px!important;font-weight:700;letter-spacing:1px;line-height:1.3;color:#8b96a8}
#dashboardView #myLoadsPage .my-load-route-arrow{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);align-items:center;justify-items:center;gap:6px;position:relative;min-width:0;width:100%;align-self:center}
#dashboardView #myLoadsPage .my-load-route-arrow::before,#dashboardView #myLoadsPage .my-load-route-arrow::after{content:'';display:block;width:100%;height:4px;border:0!important;background:radial-gradient(circle,#bcc9dd 1.5px,transparent 1.8px) center/8px 4px repeat-x}
#dashboardView #myLoadsPage .my-load-route-arrow .ui-icon{box-sizing:border-box;flex:0 0 30px;width:30px;height:30px;padding:6px;border-radius:50%;background:#eef4fc}
@media(max-width:1400px) and (min-width:761px){#dashboardView #myLoadsPage .my-load-route{gap:8px;padding:12px;grid-template-columns:minmax(0,1fr) 80px minmax(0,1fr)}#dashboardView #myLoadsPage .my-load-route-line{font-size:18px;gap:8px}#dashboardView #myLoadsPage .my-load-route-emblem{flex-basis:36px;width:36px;height:36px}#dashboardView #myLoadsPage .my-load-route-emblem .ui-icon{width:23px;height:23px}}
@media(max-width:760px){#dashboardView #myLoadsPage .my-load-route{grid-template-columns:minmax(0,1fr);padding:14px;gap:14px}#dashboardView #myLoadsPage .my-load-route-arrow{display:none}#dashboardView #myLoadsPage .my-load-route-line{font-size:18px}#dashboardView #myLoadsPage .my-load-route-emblem{flex-basis:42px;width:42px;height:42px}}

/* Single elongated arrow between the two endpoints. */
#dashboardView #myLoadsPage .my-load-route-arrow{display:flex;align-items:center;justify-content:center;gap:0}
#dashboardView #myLoadsPage .my-load-route-arrow::before,#dashboardView #myLoadsPage .my-load-route-arrow::after{display:none!important;content:none!important}
#dashboardView #myLoadsPage .my-load-route-arrow .ui-icon{width:64px;height:24px;max-width:100%;flex:0 1 64px;padding:0;border-radius:0;background:transparent;stroke-width:2}
@media(max-width:760px){#dashboardView #myLoadsPage .my-load-route-arrow{display:none}}
/* Requested action hierarchy: edit is primary; viewing actions are outlined. */
#dashboardView #myLoadsPage .my-load-actions-col button:is([onclick^="viewMyLoad("],[onclick^="openOffersReceived("]){background:#fff!important;border-color:#c8ddc4!important;color:var(--cn-green)!important;-webkit-text-fill-color:var(--cn-green)!important}
#dashboardView #myLoadsPage .my-load-actions-col button[onclick^="editMyLoad("]{background:var(--cn-green)!important;border-color:var(--cn-green)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}

/* Status filters use the same summary-card design as Offers and Operations. */
#dashboardView.cn-app #myLoadsPage .my-loads-status-grid{grid-template-columns:repeat(7,minmax(132px,1fr));gap:8px;margin-bottom:16px;overflow-x:auto;padding:3px 3px 8px;margin-inline:-3px;scroll-snap-type:x proximity;scroll-padding-inline:3px;scrollbar-width:thin}
#dashboardView.cn-app #myLoadsPage .my-loads-status-grid button.my-load-filter-card{display:flex!important;align-items:center;justify-content:flex-start!important;box-sizing:border-box;gap:8px;min-height:82px;height:auto;padding:10px!important;scroll-snap-align:start;border:1px solid var(--cn-green)!important;border-top:3px solid var(--load-stat-accent)!important;border-radius:10px!important;background:#fff!important;box-shadow:0 3px 7px #102b5210!important;white-space:normal;transition:box-shadow .15s}
#dashboardView.cn-app #myLoadsPage .my-load-filter-card:nth-child(1){--load-stat-accent:#1485e5;--load-stat-icon:#0755cf;--load-stat-tint:#eaf2ff}
#dashboardView.cn-app #myLoadsPage .my-load-filter-card:nth-child(2),
#dashboardView.cn-app #myLoadsPage .my-load-filter-card:nth-child(6){--load-stat-accent:#19ad43;--load-stat-icon:#15854c;--load-stat-tint:#e8f6ec}
#dashboardView.cn-app #myLoadsPage .my-load-filter-card:nth-child(3){--load-stat-accent:#e7810a;--load-stat-icon:#df7a09;--load-stat-tint:#fff3e7}
#dashboardView.cn-app #myLoadsPage .my-load-filter-card:nth-child(4){--load-stat-accent:#8714df;--load-stat-icon:#8714df;--load-stat-tint:#f4e8fd}
#dashboardView.cn-app #myLoadsPage .my-load-filter-card:nth-child(5){--load-stat-accent:#1485e5;--load-stat-icon:#0755cf;--load-stat-tint:#eaf2ff}
#dashboardView.cn-app #myLoadsPage .my-load-filter-card:nth-child(7){--load-stat-accent:#e52642;--load-stat-icon:#d8203a;--load-stat-tint:#ffebee}
#dashboardView.cn-app #myLoadsPage .my-loads-status-grid button.my-load-filter-card>.ui-icon{box-sizing:border-box;flex:0 0 34px;width:34px!important;height:34px!important;padding:7px;border-radius:7px;background:var(--load-stat-tint)!important}
#dashboardView.cn-app #myLoadsPage .my-loads-status-grid button.my-load-filter-card>span{min-width:0;font-size:12px!important;line-height:1.3;font-weight:700!important;color:var(--load-stat-accent)!important;overflow-wrap:normal}
#dashboardView.cn-app #myLoadsPage .my-loads-status-grid button.my-load-filter-card:first-child>span{color:#072e7d!important}
#dashboardView.cn-app #myLoadsPage .my-loads-status-grid button.my-load-filter-card b{font-size:24px!important;line-height:1.1;margin-top:4px;color:#072e7d!important}
#dashboardView.cn-app #myLoadsPage .my-loads-status-grid button.my-load-filter-card:hover{box-shadow:0 5px 12px #102b5220!important}
#dashboardView.cn-app #myLoadsPage .my-loads-status-grid button.my-load-filter-card.active{box-shadow:0 3px 7px #102b5210,inset 0 0 0 1px var(--load-stat-accent)!important}
#dashboardView.cn-app #myLoadsPage .my-loads-status-grid button.my-load-filter-card:focus-visible{outline:3px solid var(--load-stat-accent);outline-offset:3px}

/* Search and combined filters below the compact status row. */
#dashboardView.cn-app #myLoadsPage .my-loads-toolbar{display:block;padding:0;margin-bottom:20px;border:0!important;border-radius:0;background:transparent;box-shadow:none}
#dashboardView.cn-app #myLoadsPage .my-loads-toolbar .my-load-search-control{width:100%;margin-bottom:16px}
#dashboardView.cn-app #myLoadsPage .my-loads-toolbar .my-load-search-control>.ui-icon{left:14px;top:13px;width:20px;height:20px}
#dashboardView.cn-app #myLoadsPage .my-loads-toolbar .my-load-search-control input{height:46px!important;padding-left:46px!important;font-size:13px!important}
#dashboardView.cn-app #myLoadsPage .my-loads-filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:18px;align-items:end}
#dashboardView.cn-app #myLoadsPage .my-loads-filter-fields label{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;font-size:12px!important;font-weight:700!important;color:#072e7d}
#dashboardView.cn-app #myLoadsPage .my-loads-filter-fields :is(input,select){height:44px!important;min-height:44px;margin:0;background:#fff;font-size:13px!important;color:#072e7d}
#dashboardView.cn-app #myLoadsPage button.my-loads-clear{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 18px!important;border:1px solid var(--cn-green)!important;border-radius:8px;background:#fff!important;color:#072e7d!important;font-size:12px!important;font-weight:700;white-space:nowrap}
#dashboardView.cn-app #myLoadsPage .my-loads-clear .ui-icon{width:18px;height:18px;flex:0 0 18px}
#dashboardView.cn-app #myLoadsPage .my-loads-date-error{margin:8px 0 0;font-size:12px;color:#bd2639}
#dashboardView.cn-app #myLoadsPage .my-loads-date-error:empty{display:none}
@media(max-width:1000px){#dashboardView.cn-app #myLoadsPage .my-loads-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 #dashboardView.cn-app #myLoadsPage .my-loads-filter-fields{gap:12px}
 #dashboardView.cn-app #myLoadsPage .my-loads-filter-fields label:first-child,#dashboardView.cn-app #myLoadsPage button.my-loads-clear{grid-column:1/-1}
 #dashboardView.cn-app #myLoadsPage .my-loads-toolbar .my-load-search-control input,#dashboardView.cn-app #myLoadsPage .my-loads-filter-fields :is(input,select){font-size:16px!important}
}
