/* View/edit language shared with Lugares habituales, in both account modes. */
#modalRoot .modal.cn-record{
 width:820px!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;
 box-sizing:border-box;padding:30px!important;border:1px solid var(--cn-border,#dfe7ef)!important;
 border-radius:16px!important;background:#fff!important;color:var(--cn-navy,#082e7c);overflow:auto;overscroll-behavior:contain;
}
.cn-record,.cn-record *{box-sizing:border-box}
#modalRoot .cn-record .modal-close{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:32px;height:32px;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--cn-navy,#082e7c)!important;font-size:28px!important;line-height:1;z-index:3}
#modalRoot .cn-record .modal-close:focus-visible{outline:2px solid var(--cn-green,#21620f);outline-offset:2px}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-head{display:flex!important;align-items:center!important;flex-wrap:wrap;gap:20px!important;margin:0 0 26px!important;padding:0 36px 26px 0!important;border:0!important;border-bottom:1px solid var(--cn-border,#dfe7ef)!important;background:transparent!important}
.cn-record .cn-record-copy{flex:1;min-width:0}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-emblem{display:grid!important;place-items:center;flex:0 0 64px;width:64px;height:64px;border-radius:50%!important;background:var(--cn-success-bg,#e8f6ee)!important;color:var(--cn-green,#21620f)!important}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-emblem .ui-icon{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:var(--cn-green,#21620f)!important}
body #modalRoot .cn-record .cn-record-head :is(h1,h2),body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record.cn-record-page .cn-record-head :is(h1,h2){margin:0!important;font-size:26px!important;line-height:1.25!important;font-weight:800;color:var(--cn-navy,#082e7c)!important;overflow-wrap:anywhere}
body #modalRoot .cn-record .cn-record-copy>p,body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record.cn-record-page .cn-record-copy>p{margin:8px 0 0!important;color:#617087!important;font-size:16px!important;line-height:1.5!important}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 28px!important;margin:24px 0 30px!important;min-width:0}
.cn-record .cn-record-grid>.wide{grid-column:1/-1}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-field{display:grid;align-content:start;gap:8px;min-width:0;padding:0!important;border:0!important;background:transparent!important;margin:0!important}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-label{display:block;font-size:16px!important;font-weight:700!important;line-height:1.4!important;margin:0 0 8px!important;color:var(--cn-navy,#082e7c)!important;min-width:0;overflow-wrap:anywhere}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-field>.cn-record-label{margin:0!important}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record label.cn-record-field{display:grid!important;gap:8px;margin:0!important}
body #modalRoot .cn-record .cn-record-value,body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record.cn-record-page .cn-record-value{
 display:flex!important;align-items:center;gap:16px;min-width:0;min-height:62px;margin:0!important;padding:16px 18px!important;
 border:1px solid var(--cn-border,#dfe7ef)!important;border-radius:10px!important;background:#f5f7fa!important;
 color:var(--cn-navy,#082e7c)!important;font-size:18px!important;font-weight:400!important;line-height:1.5!important;white-space:normal;
}
.cn-record .cn-record-value-text{display:block;min-width:0;overflow-wrap:anywhere;white-space:pre-line}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-field-icon{display:flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;color:var(--cn-green,#21620f)!important;pointer-events:none}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-field-icon .ui-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:inherit!important}
.cn-record .cn-record-control{position:relative;display:block;min-width:0;width:100%}
.cn-record .cn-record-control>.cn-record-field-icon{position:absolute;left:18px;top:31px;transform:translateY(-50%);z-index:1}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record :is(input,textarea,select).cn-record-input{width:100%;min-width:0;max-width:100%;height:62px!important;min-height:62px;padding:16px 18px!important;margin:0!important;border:1px solid var(--cn-border,#dfe7ef)!important;border-radius:10px!important;background-color:#f5f7fa!important;font-size:18px!important;font-weight:400!important;line-height:1.5!important;color:var(--cn-navy,#082e7c)!important;box-shadow:none!important}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-control>.cn-record-input{padding-left:58px!important}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record textarea.cn-record-input{height:auto!important;min-height:124px;resize:vertical}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-input:focus{outline:2px solid var(--cn-green,#21620f);outline-offset:2px}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-input:disabled{opacity:.75;cursor:not-allowed}
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-footer{display:flex!important;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px!important;margin:30px 0 0!important;padding:24px 0 0!important;border:0!important;border-top:1px solid var(--cn-border,#dfe7ef)!important;background:#fff!important}
body #modalRoot .cn-record .cn-record-footer button,body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record.cn-record-page .cn-record-footer button{flex:0 1 auto;width:auto;max-width:100%;min-width:160px;min-height:52px;padding:12px 20px!important;margin:0!important;border-radius:9px!important;font-size:16px!important;font-weight:750!important;line-height:1.35!important;white-space:normal}
body #modalRoot .cn-record .cn-record-footer .cn-record-primary{background:var(--cn-green,#21620f)!important;color:#fff!important;border-color:var(--cn-green,#21620f)!important}
#modalRoot .cn-record .load-edit-options{display:flex;flex-wrap:wrap;align-items:center;gap:8px 28px;margin-top:20px}
#modalRoot .cn-record .load-edit-options .compact-check{display:flex!important;align-items:center;gap:10px;min-height:44px;max-width:100%;margin:0!important;padding:0;font-size:15px!important;line-height:1.4;font-weight:700;cursor:pointer}
#modalRoot .cn-record .load-edit-options input[type=checkbox]{flex:0 0 20px;width:20px;min-width:20px;height:20px;min-height:20px;margin:0!important;padding:0!important;accent-color:var(--cn-green,#21620f)}
#modalRoot .cn-record .load-edit-options .compact-check>span{min-width:0}
/* Existing rich detail layouts keep their sections, tabs and all actions. */
#modalRoot .cn-record :is(.load-detail-body,.op-detail-content){padding:0!important;background:transparent!important}
#modalRoot .cn-record .op-detail-header{padding:0!important;background:transparent!important}
#modalRoot .cn-record .op-detail-kicker{margin:0 36px 18px 0}
#modalRoot .cn-record .op-detail-title-row>.op-detail-status{margin-left:84px}
#modalRoot .cn-record :is(.op-detail-layout,.op-detail-route-grid,.op-detail-aside){display:block!important}
#modalRoot .cn-record :is(.op-detail-card,.operation-document-option,.op-detail-tracking,.op-detail-history,.fleet-detail-section,.cmr-preview-grid>section){padding:0!important;margin:26px 0!important;border:0!important;background:#fff!important;box-shadow:none!important}
#modalRoot .cn-record :is(.op-detail-card,.fleet-detail-section,.load-detail-section,.cmr-preview-grid>section)>h3{font-size:18px!important;margin:0 0 16px!important}
#modalRoot .cn-record .operation-tabs{padding:0 0 18px!important;margin-bottom:24px!important}
#modalRoot .cn-record .op-detail-note{font-size:16px!important;line-height:1.5}
#modalRoot .cn-record .op-detail-price-card{padding:20px!important;border:1px solid var(--cn-border)!important;border-radius:10px!important;background:#f5f7fa!important}
#modalRoot .cn-record .op-detail-price-card dl{margin:20px 0 0}
#modalRoot .cn-record .cmr-preview-grid{display:block}
#modalRoot .cn-record .cmr-preview-grid section>div.cn-record-field{margin-bottom:20px!important}
#modalRoot .cn-record :is(.carrier-profile-details,.load-detail-points){grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
/* Pickup and delivery share rows so every stop card has the same dimensions. */
#modalRoot .cn-record .load-detail-stops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;grid-auto-rows:1fr;grid-auto-flow:row dense;gap:16px 28px;margin-top:22px}
#modalRoot .cn-record .load-detail-stops :is(.load-detail-stop-section,.load-detail-points){display:contents}
#modalRoot .cn-record .load-detail-stops .load-detail-stop-section>h3{grid-row:1;margin:0!important}
#modalRoot .cn-record .load-detail-pickups :is(h3,.load-detail-point){grid-column:1}
#modalRoot .cn-record .load-detail-deliveries :is(h3,.load-detail-point){grid-column:2}
#modalRoot .cn-record .load-detail-stops .load-detail-point{width:100%;min-height:100px}
#modalRoot .cn-record .load-detail-point{display:flex;align-items:flex-start;gap:10px;min-width:0}
#modalRoot .cn-record .load-detail-point>.ui-icon{flex:0 0 20px;width:20px;height:20px;color:var(--cn-green,#21620f)!important}
#modalRoot .cn-record .load-detail-point-content{min-width:0;overflow-wrap:anywhere}
#modalRoot .cn-record .carrier-profile-details section{padding:18px;border:1px solid var(--cn-border)!important;border-radius:10px;background:#f5f7fa}
#modalRoot .cn-record .carrier-profile-routes{grid-column:1/-1}
/* Equal columns and value boxes; longer content expands both boxes in its row. */
body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .load-detail-summary>.load-detail-item{display:flex!important;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
body #modalRoot .cn-record .load-detail-summary .cn-record-value{width:100%!important;max-width:100%;flex:1;align-self:stretch}
#modalRoot .cn-record .load-detail-payment-terms{grid-column:1}
#modalRoot .cn-record .load-detail-reference-help{margin:5px 0 0;font-size:12px;font-weight:400;line-height:1.4;color:#617087}
#modalRoot .cn-record .load-detail-price .price-tax-display{flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:4px 8px}
#modalRoot .cn-record .load-detail-price .price-tax-amount{white-space:nowrap}
#modalRoot .cn-record .load-detail-price .price-tax-label{font-weight:400;line-height:inherit}
#modalRoot .cn-record .load-detail-route{font-size:16px;color:#617087;margin:8px 0 0}
#modalRoot .cn-record :is(.load-detail-notes,.cn-record-note){padding:18px;border:1px solid var(--cn-border)!important;border-radius:10px;background:#f5f7fa;overflow-wrap:anywhere;white-space:pre-line;font-size:16px;line-height:1.5}
#modalRoot .cn-record .load-detail-note-line{min-height:1.5em;white-space:pre-wrap;overflow-wrap:anywhere}
#modalRoot .cn-record .load-detail-note-label{color:var(--cn-navy,#082e7c)!important;font-weight:700}
#modalRoot .cn-record .load-detail-note-value,
#modalRoot .cn-record .load-detail-payment-note .cn-record-value-text{color:var(--cn-green,#21620f)!important;font-weight:400;white-space:pre-wrap}
#modalRoot .cn-record .received-detail{padding:0}
#modalRoot .cn-record .invoice-facts>div{border:0!important;background:transparent!important}
.cn-record-page .vehicle-editor-head>button{order:3;margin-left:auto}
.cn-record-page .vehicle-editor-card{padding:30px!important;border-radius:16px!important}
.cn-record-page .loader-data-list{min-width:0}
.cn-record-page .loader-data-list>.cn-record-value{margin-bottom:20px!important}
.cn-record-page :is(.loader-edit-columns,.loader-edit-column){min-width:0}
.cn-record-page .loader-edit-column{display:grid;gap:20px}
.cn-record-page .cmr-form{min-width:0}
.cn-record-page .cmr-section{background:#fff!important;border-radius:12px!important;padding:24px!important;min-width:0}
.cn-record-page .cmr-fields .wide{grid-column:1/-1}
/* Conditional fields and enhanced native inputs must keep their hidden state. */

@media(max-width:600px){
 #modalRoot .modal-bg{padding:12px}
 #modalRoot .modal.cn-record{width:100%!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:20px!important;border-radius:14px!important}
 #modalRoot .cn-record .modal-close{top:10px;right:10px;width:32px;height:32px}
 body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-head{gap:12px!important;padding:0 22px 18px 0!important;margin-bottom:20px!important;align-items:flex-start!important}
 body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-emblem{flex-basis:40px;width:40px;height:40px}
 body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-emblem .ui-icon{width:24px;height:24px}
 body #modalRoot .cn-record .cn-record-head :is(h1,h2),body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record.cn-record-page .cn-record-head :is(h1,h2){font-size:20px!important;line-height:1.3!important}
 body #modalRoot .cn-record .cn-record-copy>p,body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record.cn-record-page .cn-record-copy>p{font-size:14px!important}
 body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px!important;margin:20px 0!important}
 body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-label{font-size:15px!important}
 body #modalRoot .cn-record .cn-record-value,body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record.cn-record-page .cn-record-value{min-height:52px;gap:12px;padding:12px!important;font-size:16px!important}
 body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record :is(input,textarea,select).cn-record-input{height:52px!important;min-height:52px;padding:12px!important;font-size:16px!important}
 body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-control>.cn-record-input{padding-left:48px!important}
 body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record textarea.cn-record-input{height:auto!important;min-height:110px}
 .cn-record .cn-record-control>.cn-record-field-icon{left:12px;top:26px}
 body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .cn-record-footer{padding-top:18px!important;margin-top:20px!important;gap:10px!important}
 body #modalRoot .cn-record .cn-record-footer button,body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record.cn-record-page .cn-record-footer button{width:100%;min-width:0;min-height:48px}
 #modalRoot .cn-record .op-detail-title-row{flex-direction:row!important}
 #modalRoot .cn-record .op-detail-title-row>.op-detail-status{margin-left:52px;max-width:100%;white-space:normal}
 #modalRoot .cn-record :is(.carrier-profile-details,.load-detail-points,.operation-document-options){grid-template-columns:minmax(0,1fr)!important}
 #modalRoot .cn-record .load-detail-stops{gap:12px}
 #modalRoot .cn-record .load-detail-stops .load-detail-stop-section>h3{font-size:15px!important;line-height:1.35}
 #modalRoot .cn-record .load-detail-stops .load-detail-point{flex-direction:column;gap:6px;padding:10px;min-height:120px;border-left-width:2px}
 #modalRoot .cn-record .load-detail-stops .load-detail-point-content{width:100%}
 #modalRoot .cn-record .load-detail-stops .load-detail-point b{font-size:12px;line-height:1.4}
 .cn-record-page :is(.vehicle-editor-card,.cmr-section){padding:18px!important}
 .cn-record-page .vehicle-editor-head>button{margin:0;width:100%}
 .cn-record-page .loader-edit-columns{grid-template-columns:minmax(0,1fr)!important}
}

body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record [hidden][hidden],body :is(#modalRoot,#dashboardView) :is(.modal,#vehicleEditorPage,#cmrEditorPage,#profilePage,#publishPage).cn-record .hidden.hidden{display:none!important}

/* Keep the CMR's sticky header opaque and its actions below it while scrolling. */
body #dashboardView #cmrEditorPage.cn-record.cmr-wizard-page{padding:0!important}
body #dashboardView #cmrEditorPage.cn-record.cmr-wizard-page .cmr-editor-head.cn-record-head{background:#f5f7fa!important}
body #dashboardView #cmrEditorPage.cn-record.cmr-direct-page .cmr-direct-actions{flex-wrap:wrap}
@media (min-width:901px){
 body #dashboardView #cmrEditorPage.cn-record.cmr-direct-page .cmr-direct-actions{top:91px!important}
}
