/* Standalone reference layout, scoped to the operational consignment form. */
.portal-drawer #frm_Cons.cons-editor .cons-editor-error-notice {position:fixed;bottom:24px;left:24px;z-index:10001;float:none!important;width:360px;max-width:calc(100vw - 48px);box-sizing:border-box;padding:14px 18px;border:1px solid #efb4b4;border-inline-start:4px solid #bc3434;border-radius:8px;background:#fff2f2;color:#922828;font-size:13px;line-height:1.8;box-shadow:0 4px 16px #0f172a18;pointer-events:none}
.portal-drawer #frm_Cons.cons-editor {color:#334155;padding:16px;background:#f5f7fa}
.cons-editor-heading {text-align:start;margin-bottom:20px}
.portal-drawer #frm_Cons.cons-editor .cons-editor-layout,
.portal-drawer #frm_Cons.cons-editor .cons-editor-layout div {float:none!important;box-sizing:border-box}
.cons-editor-heading small,.cons-editor-heading p {color:#64748b;font-size:12px}
.cons-editor-heading h2 {font-size:24px;color:#1e293b;margin:10px 0 4px}
.portal-drawer #frm_Cons.cons-editor > .portal-cons-tabs,
.portal-drawer #frm_Cons.cons-editor > #cons-panel-preview {display:none!important}
.cons-editor-layout {display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:16px;direction:rtl}
.cons-editor-main {display:grid;gap:14px;min-width:0}
.cons-editor-parties {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.portal-drawer #frm_Cons.cons-editor .cons-editor-layout fieldset {padding:16px!important;border:1px solid #dde5ec!important;border-radius:8px!important;box-shadow:0 1px 3px #0f172a06!important;background:#fff;min-width:0}
.portal-drawer #frm_Cons.cons-editor .cons-editor-layout legend {display:flex!important;align-items:center;gap:9px;font-size:14px!important;color:#25364a;padding:0 0 12px!important;margin-bottom:14px!important;border-bottom:1px solid #e5eaf0;width:100%;box-sizing:border-box}
.cons-editor-step {display:inline-grid;place-items:center;background:#147d83;color:white;border-radius:50%;width:25px;height:25px;font-size:12px;flex-shrink:0}
.portal-drawer #frm_Cons.cons-editor :is(#SenderSection,#ReceiverSection) {display:block;width:100%}
.portal-drawer #frm_Cons.cons-editor :is(#SenderSection,#ReceiverSection)>tbody {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.portal-drawer #frm_Cons.cons-editor :is(#SenderSection,#ReceiverSection)>tbody>tr {display:flex;flex-direction:column;min-width:0}
.portal-drawer #frm_Cons.cons-editor :is(#SenderSection,#ReceiverSection)>tbody>tr:has(textarea),
.portal-drawer #frm_Cons.cons-editor :is(#SenderSection,#ReceiverSection)>tbody>tr:has([colspan]) {grid-column:1/-1}
.portal-drawer #frm_Cons.cons-editor :is(#SenderSection,#ReceiverSection) td {display:block;width:100%!important;padding:0!important;white-space:normal;box-sizing:border-box;font-size:12px}
.portal-drawer #frm_Cons.cons-editor :is(#SenderSection,#ReceiverSection) td:first-child:not([colspan]) {margin-bottom:5px;color:#526477}
.portal-drawer #frm_Cons.cons-editor :is(#SenderSection,#ReceiverSection) input:not([type=hidden]),
.portal-drawer #frm_Cons.cons-editor :is(#SenderSection,#ReceiverSection) textarea {width:100%!important;box-sizing:border-box}
.portal-drawer #frm_Cons.cons-editor :is(#SenderSection,#ReceiverSection) td:has(>img) {position:relative;padding-inline-end:20px!important}
.portal-drawer #frm_Cons.cons-editor :is(#SenderSection,#ReceiverSection) td>img {position:absolute;inset-inline-end:0;top:12px}
.portal-drawer #frm_Cons.cons-editor input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]),
.portal-drawer #frm_Cons.cons-editor select {min-height:40px;border-radius:7px;font-size:13px}
.portal-drawer #frm_Cons.cons-editor textarea {border-radius:7px;font-size:13px;min-height:80px}
.cons-editor-rail {position:sticky;top:16px;background:white;border:1px solid #dde5ec;border-radius:8px;padding:18px;box-shadow:0 4px 16px #0f172a0e;min-width:0}
.cons-editor-rail h3 {margin:0 -18px 16px;padding:0 18px 16px;border-bottom:1px solid #e5eaf0;font-size:15px}
.cons-editor-rail dl {margin:0;display:grid;gap:16px}
.cons-editor-rail dl>div {display:flex;justify-content:space-between;gap:12px;font-size:12px}
.cons-editor-rail dt,.cons-editor-rail p {color:#64748b}
.cons-editor-rail dd {margin:0;font-weight:bold;overflow-wrap:anywhere;text-align:end}
.cons-editor-total {margin-top:22px;padding:20px 0;border-block:1px solid #e5eaf0;display:grid;gap:12px;font-size:12px}
.cons-editor-total strong {font-size:26px;color:#147d83;direction:ltr;text-align:end}
.cons-editor-rail p {font-size:12px;line-height:1.8}
.cons-editor-action {display:block;width:100%;min-height:42px;margin-top:10px;border:1px solid #dce5eb;border-radius:7px;background:white;color:#334155;font:inherit;cursor:pointer}
.cons-editor-action.cons-editor-save {background:#147d83;color:white;border-color:#147d83}
.cons-editor-action:disabled {opacity:.5;cursor:not-allowed}
.cons-editor-shipment {background:#fff;border:1px solid #dde5ec;border-radius:8px;padding:16px;min-width:0}
.cons-editor-shipment>h3 {display:flex;align-items:center;gap:9px;font-size:14px;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid #e5eaf0}
.cons-editor-shipment-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;clear:both}
.portal-drawer #frm_Cons.cons-editor .cons-editor-shipment fieldset {border:0!important;box-shadow:none!important;padding:0!important}
.portal-drawer #frm_Cons.cons-editor .cons-editor-shipment fieldset>table {width:100%!important;table-layout:fixed}
.portal-drawer #frm_Cons.cons-editor .cons-editor-shipment fieldset td {white-space:normal;overflow-wrap:anywhere}
.portal-drawer #frm_Cons.cons-editor .cons-editor-shipment input,
.portal-drawer #frm_Cons.cons-editor .cons-editor-shipment select {max-width:100%;box-sizing:border-box}
.cons-editor-detail-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;clear:both}
.cons-editor-detail-grid>div {min-width:0}
.cons-editor-number label,.cons-editor-tracking label {display:block;margin-bottom:8px;text-align:start}
.portal-drawer #frm_Cons.cons-editor .cons-editor-detail-grid>.cons-editor-tracking {display:contents}
.portal-drawer #frm_Cons.cons-editor .cons-editor-tracking>div:has(>input) {display:flex;align-items:center;gap:8px;margin:0!important;min-width:0}
.portal-drawer #frm_Cons.cons-editor .cons-editor-tracking>.cons-reference {display:block!important}
.portal-drawer #frm_Cons.cons-editor .cons-editor-tracking #ThirdRow {flex:none;white-space:nowrap;font-size:0}
.portal-drawer #frm_Cons.cons-editor .cons-editor-tracking #ThirdRow>div {display:inline-block;vertical-align:middle}
.portal-drawer #frm_Cons.cons-editor .cons-editor-tracking input {width:100%!important;min-width:0;flex:1}
.portal-drawer #frm_Cons.cons-editor .cons-editor-tracking select {width:110px!important;flex:0 0 110px}
.portal-drawer #frm_Cons.cons-editor .cons-editor-detail-grid>.cons-schedule {grid-column:1/-1;display:grid!important;grid-template-columns:minmax(300px,1.5fr) repeat(2,minmax(0,1fr));gap:14px;align-items:center}
.portal-drawer #frm_Cons.cons-editor .cons-editor-detail-grid .cons-schedule-time {grid-template-columns:95px 100px minmax(100px,1fr);gap:6px}
.portal-drawer #frm_Cons.cons-editor .cons-editor-detail-grid .cons-agent-pair {width:100%;table-layout:fixed}
.portal-drawer #frm_Cons.cons-editor .cons-editor-detail-grid .cons-agent-pair td {white-space:normal!important;overflow-wrap:anywhere}
.portal-drawer #frm_Cons.cons-editor .cons-editor-detail-grid .cons-agent-pair input {max-width:100%;box-sizing:border-box}
.cons-editor-notes {grid-column:1/-1}
.portal-drawer #frm_Cons.cons-editor .cons-editor-notes>div {width:100%!important;height:auto!important}
.portal-drawer #frm_Cons.cons-editor .cons-editor-notes textarea {width:100%!important;height:90px!important;box-sizing:border-box}
@media(max-width:1100px){.cons-editor-shipment-columns {grid-template-columns:1fr}.portal-drawer #frm_Cons.cons-editor .cons-editor-detail-grid>.cons-schedule {grid-template-columns:1fr 1fr}.portal-drawer #frm_Cons.cons-editor .cons-editor-detail-grid .cons-schedule-time {grid-column:1/-1}}
@media(max-width:600px){.cons-editor-detail-grid {grid-template-columns:1fr}.portal-drawer #frm_Cons.cons-editor .cons-editor-detail-grid .cons-schedule-time {grid-template-columns:1fr 1fr}.portal-drawer #frm_Cons.cons-editor .cons-editor-detail-grid .cons-schedule-time label {grid-column:1/-1}}
@media(max-width:1100px){.cons-editor-layout {grid-template-columns:minmax(0,1fr) 250px}.cons-editor-parties {grid-template-columns:1fr}}
@media(max-width:800px){.cons-editor-layout {grid-template-columns:1fr}.cons-editor-rail {position:static}.portal-drawer #frm_Cons.cons-editor {padding:8px}}
@media(max-width:480px){.portal-drawer #frm_Cons.cons-editor :is(#SenderSection,#ReceiverSection)>tbody {grid-template-columns:1fr}}
