/* PDO Storage design system. All selectors belong to Storage; the SVG is untouched. */
.storage-workspace,.storage-followups,.storage-upload-card,.storage-modal-layer{--pk-blue:#214B9B;--pk-navy:#173A6C;--pk-bg:#F6F8FC;--pk-border:#DFE7F1;--pk-muted:#718198;color:var(--pk-navy);font-size:13px;line-height:1.5}
.storage-workspace *,.storage-followups *,.storage-upload-card *,.storage-modal-layer *{box-sizing:border-box}
.storage-heading{justify-content:center;text-align:center;margin:12px 0 20px}
.storage-heading>div{width:100%}.storage-heading h1{font-size:23px;color:#173A6C;letter-spacing:-.4px;margin:0}
.storage-workspace{padding:0;background:transparent;border:0;box-shadow:none}
.storage-toolbar{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:18px;flex-wrap:wrap}
.storage-admin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.storage-toolbar>.storage-admin-fields{flex:1;max-width:470px;min-width:270px}
.storage-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;font-weight:600;color:#536782;margin:0}
.storage-field input,.storage-field select,.storage-field textarea{width:100%;min-width:0;min-height:42px;border:1px solid #d5dfec;border-radius:8px;background:white;color:#173A6C;font:400 13px/1.5 'Segoe UI',Arial,sans-serif;padding:9px 11px;box-sizing:border-box}
.storage-field textarea{min-height:86px;resize:vertical}
.storage-field>.pdo-combo{width:100%}.storage-field .pdo-combo>input.pdo-combo-input{height:42px;min-height:42px;border-radius:8px;border-color:#d5dfec;font-size:13px}
.storage-field .pdo-combo::after{top:19px}
.storage-chips{display:grid;grid-template-columns:repeat(4,minmax(78px,1fr));gap:8px}
.storage-chips>span{background:#fff;border:1px solid var(--pk-border);border-radius:10px;padding:8px 13px;font-size:11px;color:var(--pk-muted);white-space:nowrap;min-width:86px}
.storage-chips b{display:block;font-size:19px;line-height:1.25;font-weight:650;color:var(--pk-navy);margin-bottom:1px;font-variant-numeric:tabular-nums}
.storage-workspace-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(310px,1fr);gap:18px;align-items:start}
.storage-map-column,.storage-right-panel{background:#fff;border:1px solid var(--pk-border);border-radius:12px;min-width:0;overflow:hidden}
.storage-map-column{padding:14px}.storage-right-panel{padding:18px}
.storage-map-header{display:flex;justify-content:space-between;align-items:center;gap:10px}
.storage-map-header h2,.storage-right-panel>h2,.storage-followup-head h2{font-size:15px;line-height:1.4;font-weight:650;color:var(--pk-navy);margin:0}
.storage-buttons{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:12px 0}.storage-map-header .storage-buttons{margin:0;flex-wrap:nowrap}
/* IDs keep the shared app button rules from overriding Storage component states. */
#main .storage-workspace button,#main .storage-followups button,#main .storage-upload-card button,#storageActionModal .storage-action-form button{font:600 12px/1.4 'Segoe UI',Arial,sans-serif;min-height:36px;padding:7px 12px;border:1px solid #d9e3ef;border-radius:8px;background:white;color:#214B9B;cursor:pointer;box-shadow:none;transform:none;transition:background-color .14s,border-color .14s,color .14s;touch-action:manipulation}
#main .storage-workspace button:hover:not(:disabled),#main .storage-followups button:hover:not(:disabled),#main .storage-upload-card button:hover:not(:disabled),#storageActionModal .storage-action-form button:hover:not(:disabled){background:#f1f5fc;border-color:#adc0df}
#main .storage-workspace button.primary,#main .storage-upload-card button.primary,#storageActionModal .storage-action-form button.primary{background:#214B9B;border-color:#214B9B;color:white}
#main .storage-workspace button.primary:hover:not(:disabled),#main .storage-upload-card button.primary:hover:not(:disabled),#storageActionModal .storage-action-form button.primary:hover:not(:disabled){background:#193e84;border-color:#193e84}
#main .storage-workspace button.storage-danger,#storageActionModal .storage-action-form button.storage-danger{background:#fffafa;color:#a83541;border-color:#eccbd0}
#main .storage-workspace button.storage-danger:hover:not(:disabled),#storageActionModal .storage-action-form button.storage-danger:hover:not(:disabled){background:#fff0f1;border-color:#dca4ac}
#main .storage-workspace button:active:not(:disabled),#main .storage-followups button:active:not(:disabled),#storageActionModal .storage-action-form button:active:not(:disabled){filter:brightness(.94)}
#main .storage-workspace button:disabled,#main .storage-followups button:disabled,#main .storage-upload-card button:disabled,#storageActionModal .storage-action-form button:disabled{opacity:.5;cursor:not-allowed}
#main .storage-workspace button:focus-visible,#main .storage-followups button:focus-visible,#storageActionModal .storage-action-form button:focus-visible,.storage-field :is(input,textarea,select):focus-visible{outline:2px solid #6f98db;outline-offset:3px}
.storage-vector g[data-slot]:focus{outline:none}
.storage-legend{display:flex;gap:16px;flex-wrap:wrap;color:var(--pk-muted);font-size:11px;margin:13px 0}
.storage-legend span{display:flex;gap:5px;align-items:center}.storage-legend i{width:10px;height:10px;border:1.5px solid #d90000;border-radius:3px;display:inline-block;background:#fff}
.storage-legend .is-progress{border-color:#df8212;background:#fcead2}.storage-legend .is-delivered{border-color:#768394;background:#e9edf1}.storage-legend .is-selected{border-color:#168a46;background:#def4e5}
.storage-map-viewport{height:clamp(360px,68vh,740px);overflow:auto;cursor:grab;border:1px solid #edf1f6;border-radius:8px;background:#fff;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbd7e7 transparent}
.storage-map-viewport.is-dragging{cursor:grabbing}.storage-map-stage{padding:5px;min-width:100%;width:max-content}.storage-vector{display:block;max-width:none;background:white;touch-action:pan-x pan-y}
.storage-vector g[data-slot]{cursor:pointer}.storage-vector .slot .body{fill:#fff;fill-opacity:0;stroke:#d90000;stroke-width:1.15}
.storage-vector .slot text{font:700 4.2px Arial,sans-serif;fill:#c90000;text-anchor:middle;dominant-baseline:middle;pointer-events:none;stroke:none}
.storage-vector .slot.inprogress .body{fill:#f6a944;fill-opacity:.18;stroke:#df8212;stroke-width:2.55}.storage-vector .slot.inprogress text{fill:#9a4b00}
.storage-vector .slot.delivered .body{fill:#94a3b8;fill-opacity:.17;stroke:#768394;stroke-width:2.55}.storage-vector .slot.delivered text{fill:#414d5d}
.storage-vector .slot.selected .body{fill:#22c55e;fill-opacity:.15;stroke:#168a46;stroke-width:2.9}.storage-vector .slot.selected text{fill:#166534}
.storage-selected-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:18px;font-weight:650;letter-spacing:-.25px;margin-top:18px;overflow-wrap:anywhere}
.storage-status{font-size:10px;font-weight:600;letter-spacing:0;white-space:nowrap;border-radius:6px;padding:4px 8px;flex-shrink:0;background:#f0f2f5;color:#65717e}
.storage-status.available{background:#edf8f0;color:#168a46}.storage-status.inprogress{background:#fff2df;color:#a05b12}
.storage-selected-title+.hint{margin:5px 0 0;font-size:12px;color:var(--pk-muted)}
.storage-detail-grid{display:grid;gap:8px;margin:18px 0;padding:13px 0;border-block:1px solid #edf1f6}
.storage-detail-grid>div{display:flex;justify-content:space-between;align-items:center;gap:12px}.storage-detail-grid small{font-size:12px;color:var(--pk-muted)}.storage-detail-grid strong{font-size:13px;font-weight:600;text-align:right}
.storage-current-section h3,.storage-history h3{font-size:12px;font-weight:650;color:var(--pk-navy);margin:0 0 9px}
.storage-current-info{background:#f8fafd;border:1px solid #edf1f6;border-radius:8px;padding:11px 12px;margin:0;font-size:12px;display:grid;gap:6px}
.storage-current-info>div{display:flex;justify-content:space-between;gap:15px;align-items:baseline}.storage-current-info dt{color:var(--pk-muted);font-weight:400}.storage-current-info dd{margin:0;text-align:right;max-width:65%;overflow-wrap:anywhere;text-transform:capitalize}.storage-empty{color:var(--pk-muted)}
.storage-slot-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.storage-slot-actions:empty{display:none}
#main .storage-slot-actions button.primary{flex:1}
.storage-history{border-top:1px solid var(--pk-border);padding-top:15px;margin-top:18px}
.storage-case{margin:8px 0}.storage-case-head{font-size:11px;color:#536782;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:10px 0 4px}.storage-case-head strong{font-weight:500}.storage-case-head small{color:var(--pk-muted)}
.storage-event{position:relative;padding-left:14px;margin-left:3px;border-left:1px solid #dce5f0}.storage-event:before{content:'';position:absolute;width:6px;height:6px;border-radius:50%;background:#8ca9d3;left:-3.5px;top:18px;border:1px solid white}
:is(#main .storage-workspace,#storageActionModal .storage-history-view) button.storage-event-title{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;border:0;border-radius:5px;padding:8px 0;min-height:0;background:transparent;color:var(--pk-navy)}
.storage-event-title strong{font-size:12px;font-weight:600}.storage-event-title small{font-size:10px;line-height:1.6;color:var(--pk-muted);display:block;margin-top:3px;font-weight:400}
.storage-event-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;background:#f8fafd;border-radius:8px;padding:10px;margin-bottom:8px}.storage-event-body>div{min-width:0;overflow-wrap:anywhere}.storage-event-body small{display:block;color:var(--pk-muted);font-size:10px}.storage-event-body strong{display:block;font-size:12px;font-weight:500;margin-top:2px}
.storage-event-body>.storage-link,.storage-event-correct{grid-column:1/-1}
:is(#main .storage-workspace,#storageActionModal .storage-history-view) .storage-link{border:0;background:transparent;text-align:left;padding:3px 0;min-height:28px;text-decoration:underline}
:is(#main .storage-workspace,#storageActionModal .storage-history-view) .storage-prev-toggle{width:100%;text-align:left;background:#f8fafd;margin-top:10px;font-size:11px}
.storage-linked-title{font-size:11px;color:#536782;margin-top:12px;font-weight:600}.storage-import-item{padding:8px;font-size:11px;background:#f8fafd;border-radius:6px;margin-top:5px}.storage-import-item small{display:block;color:var(--pk-muted)}
/* A single portaled modal; only its body scrolls, header and footer stay visible. */
body.storage-modal-open{overflow:hidden;overscroll-behavior:none;position:fixed;inset-inline:0;top:var(--storage-scroll-top,0);width:100%}
.storage-modal-layer[hidden],.storage-modal-message[hidden],.storage-message[hidden]{display:none}
.storage-modal-layer{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:22px;font-family:'Segoe UI',Arial,sans-serif}
.storage-modal-backdrop{position:absolute;inset:0;background:rgba(20,39,66,.36)}
.storage-action-form{position:relative;width:min(640px,100%);max-height:88vh;max-height:88dvh;display:flex;flex-direction:column;background:white;border:1px solid var(--pk-border);border-radius:14px;box-shadow:0 18px 55px #14294426;overflow:hidden;outline:none}
.storage-form-head{display:flex;justify-content:space-between;align-items:start;gap:15px;padding:19px 22px 16px;border-bottom:1px solid var(--pk-border);flex-shrink:0}
.storage-form-head h3{font-size:18px;line-height:1.4;color:var(--pk-navy);margin:0;font-weight:650;letter-spacing:-.2px}.storage-form-subtitle{font-size:12px;color:var(--pk-muted);margin:4px 0 0}
#storageActionModal .storage-modal-close{padding:0;width:30px;height:30px;min-height:30px;border:0;background:#f3f6fa;color:#647791;flex-shrink:0;font-size:14px}
.storage-action-fields{overflow-y:auto;overscroll-behavior:contain;min-height:0;display:grid;gap:13px;padding:18px 22px;scrollbar-width:thin;scrollbar-color:#cbd7e7 transparent}
.storage-action-fields>.storage-field:has(+.storage-segments){margin-bottom:-8px}
.storage-form-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.storage-segments{display:flex;gap:4px;padding:3px;border:1px solid #e4ebf4;background:#f3f6fa;border-radius:9px;width:100%;max-width:320px}
#storageActionModal .storage-segments button{flex:1;border:1px solid transparent;background:transparent;color:#62748d;min-height:33px;padding:6px 12px}
#storageActionModal .storage-segments button.is-active{background:#fff;color:#214B9B;border-color:#b9cce9;box-shadow:0 1px 2px #173a6c0a}
.storage-price{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 12px;border-radius:8px;background:#f6f8fc;font-size:12px;color:var(--pk-muted)}.storage-price strong{color:var(--pk-navy);font-size:14px;font-weight:650}.storage-price small{width:100%;font-size:10px}
.storage-file-field{display:grid;gap:6px;border:1px dashed #cedaea;border-radius:8px;padding:10px 12px;font-size:12px;color:#536782;font-weight:600}.storage-file-field small{font-weight:400;color:var(--pk-muted)}.storage-file-field input{font-size:12px;max-width:100%}.storage-file-field span{font-weight:400;font-size:11px;overflow-wrap:anywhere}
.storage-confirm{display:flex;align-items:center;gap:8px;color:#536782;font-size:12px}.storage-confirm input{width:16px;height:16px;accent-color:#214B9B}
.storage-unit-suggestions{max-height:140px;overflow-y:auto;display:grid;gap:3px}.storage-unit-suggestions:empty{display:none}#storageActionModal .storage-unit-suggestions button{text-align:left;background:#f8fafd;min-height:34px}
.storage-form-actions{display:flex;justify-content:space-between;gap:12px;padding:14px 22px;border-top:1px solid var(--pk-border);flex-shrink:0;background:#fff}
#storageActionModal .storage-form-actions button{min-height:42px;padding:9px 17px;font-size:13px}
#storageActionModal [aria-busy=true] [data-storage-save]{cursor:wait;opacity:.7}
.storage-modal-message,.storage-message{padding:10px 12px;border-radius:8px;background:#eef4ff;color:#214B9B;font-size:12px;line-height:1.5}.storage-message{margin-top:12px}.storage-action-form>.storage-modal-message{margin:12px 22px 0;flex-shrink:0}.storage-modal-message.is-error,.storage-message.is-error{background:#fff1f2;color:#a83541}
.storage-good{color:#26764a;font-size:11px}.storage-bad{color:#aa3644}.storage-note{font-size:12px;color:#61748c}
#storageActionModal .pdo-combo-popup{border-radius:8px;border-color:#d9e3ef;box-shadow:0 8px 24px #173a6c1a}
.storage-followups{padding:18px;margin-top:20px;border:1px solid var(--pk-border);border-radius:12px;background:white}
.storage-followup-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.storage-followup-head span{font-size:11px;color:var(--pk-muted)}
.storage-followup-tabs{display:flex;gap:18px;overflow-x:auto;border-bottom:1px solid var(--pk-border);margin-top:12px}
#main .storage-followups .storage-followup-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:10px 0;white-space:nowrap;color:var(--pk-muted)}
#main .storage-followups .storage-followup-tabs button.is-active{color:#214B9B;border-bottom-color:#214B9B}
.storage-followup-filters{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:12px;margin:16px 0}
.storage-followup-table{font-size:12px}.storage-followup-table th{white-space:nowrap}.storage-followup-table small{display:block;color:var(--pk-muted);font-size:11px;margin-top:4px}.storage-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;font-size:11px;color:var(--pk-muted)}
.storage-upload-card{margin-top:18px}.storage-admin-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.storage-mini-panel{padding:18px;border:1px solid var(--pk-border);border-radius:12px;min-width:0}.storage-mini-panel h3{font-size:15px;color:var(--pk-navy);margin-top:0}.storage-countline,.storage-match{font-size:12px;margin:12px 0}
@media(max-width:1100px){.storage-toolbar{gap:14px}.storage-toolbar>.storage-admin-fields{max-width:none}.storage-workspace-grid{grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr)}.storage-map-header{align-items:start;flex-wrap:wrap}}
@media(max-width:800px){.storage-workspace-grid{grid-template-columns:1fr}.storage-toolbar>.storage-admin-fields{min-width:100%}.storage-chips{width:100%}.storage-map-header{align-items:center}.storage-admin-columns{grid-template-columns:1fr}.storage-map-viewport{height:58vh}.storage-right-panel{padding:16px}}
@media(max-width:520px){.storage-heading{margin:10px 0 16px}.storage-heading h1{font-size:21px}.storage-chips{gap:6px}.storage-chips>span{min-width:0;padding:8px;font-size:10px}.storage-chips b{font-size:17px}.storage-map-column{padding:10px}.storage-map-header h2{font-size:14px}#main .storage-map-header button{padding:6px 8px;font-size:11px;min-height:32px}.storage-legend{gap:10px;font-size:10px}.storage-map-viewport{height:50vh;min-height:300px}.storage-followup-filters,.storage-form-two{grid-template-columns:1fr}.storage-followups{padding:14px}.storage-modal-layer{padding:10px}.storage-action-form{max-height:92dvh;border-radius:12px}.storage-form-head{padding:16px}.storage-action-fields{padding:16px}.storage-form-actions{padding:12px 16px}.storage-form-head h3{font-size:17px}.storage-field input,.storage-field select,.storage-field textarea,.storage-field .pdo-combo>input.pdo-combo-input{font-size:16px}.storage-toolbar{gap:12px}.storage-toolbar>.storage-admin-fields{min-width:0;width:100%}}
@media(prefers-reduced-motion:reduce){#main .storage-workspace button,#main .storage-followups button,#storageActionModal .storage-action-form button{transition:none}}
.storage-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #DFE7F1;
    border-radius: 8px;
    background: #F6F8FC;
}

.storage-contact-card > div {
    display: grid;
    gap: 3px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.storage-contact-card strong {
    font-size: 13px;
    font-weight: 600;
    color: #173A6C;
}

.storage-contact-card span {
    font-size: 12px;
    color: #718198;
    text-align: left;
}

#storageActionModal .storage-action-form .storage-contact-edit {
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    flex-shrink: 0;
    font-size: 18px;
}
.storage-contact-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.storage-contact-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.storage-contact-choice {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.storage-contact-choice .storage-field {
  margin: 0;
}

.storage-contact-toggle {
  flex-shrink: 0;
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .storage-contact-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .storage-contact-choice {
    flex-basis: 100%;
  }

  .storage-contact-toggle {
    margin-left: auto;
  }
}

.storage-delegated-box {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: #F6F8FC;
  border: 1px solid #DFE7F1;
  border-radius: 12px;
}

.storage-delegated-box h4 {
  margin: 0;
  color: #173A6C;
  font-size: 13px;
  font-weight: 600;
}

.storage-delegated-box .storage-file-field {
  min-width: 0;
  margin: 0;
  background: #fff;
  border-style: solid;
}

.storage-delegated-box .storage-confirm {
  margin: 0;
  align-items: flex-start;
}

.storage-delegated-box .storage-confirm input {
  flex-shrink: 0;
}
.storage-optional-attachment > summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #DFE7F1;
  border-radius: 10px;
  background: #fff;
  color: #214B9B;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}

.storage-optional-attachment > summary::-webkit-details-marker {
  display: none;
}

.storage-optional-attachment > summary:hover {
  background: #F6F8FC;
}

.storage-optional-attachment > summary:focus-visible {
  outline: 2px solid #214B9B;
  outline-offset: 3px;
}

.storage-optional-attachment[open] > summary {
  margin-bottom: 10px;
}
.storage-unit-control {
  display: block;
  position: relative;
  min-width: 0;
}

.storage-unit-control #storageUnitInput {
  padding-right: 105px;
}

#storageUnitStatus {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: #718198;
  font-size: 11px;
  font-weight: 400;
  pointer-events: none;
}
.storage-unit-control,
.storage-unit-control > .pdo-combo {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.storage-unit-control #storageUnitInput {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}