/* V118B manual-only pending dispatch */
.v118b-team-full,
.v118-pending-hint {
  display: block;
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 11px 13px;
  border: 1px solid #f0c36a;
  border-radius: 9px;
  background: #fff8e6;
  color: #8a5a00;
  font-size: 12px;
  line-height: 1.55;
}

#v118-strong-alert {
  position: fixed;
  z-index: 18000;
  top: 76px;
  right: 24px;
  width: min(430px, calc(100vw - 32px));
  border: 2px solid #dc2626;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(127, 29, 29, .24);
  overflow: hidden;
  animation: v118Pulse 1.6s ease-in-out infinite;
}
@keyframes v118Pulse {
  0%, 100% { box-shadow: 0 18px 48px rgba(127, 29, 29, .20); }
  50% { box-shadow: 0 18px 58px rgba(220, 38, 38, .38); }
}
.v118-alert-head { display:flex; align-items:center; gap:12px; padding:14px 16px; background:#fff1f2; color:#991b1b; }
.v118-alert-head strong,.v118-alert-head small { display:block; }
.v118-alert-head small { margin-top:3px; color:#b91c1c; }
.v118-alert-icon { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#dc2626; color:#fff; font-weight:900; font-size:22px; }
.v118-alert-body { display:grid; grid-template-columns:1fr 1fr; gap:1px; background:#e5e7eb; border-top:1px solid #fecdd3; border-bottom:1px solid #e5e7eb; }
.v118-alert-body>div { padding:10px 12px; background:#fff; }
.v118-alert-body span,.v118-alert-body b { display:block; }
.v118-alert-body span { color:#64748b; font-size:11px; }
.v118-alert-body b { margin-top:3px; color:#0f172a; font-size:13px; word-break:break-word; }
#v118-alert-ack { width:calc(100% - 28px); margin:12px 14px 14px; min-height:40px; border:0; border-radius:9px; background:#dc2626; color:#fff; font-weight:800; cursor:pointer; }
#v118-alert-ack:disabled { opacity:.6; cursor:default; }

#v118-pending-panel { position:fixed; z-index:1300; top:0; right:0; bottom:0; overflow:auto; background:#f4f7fb; }
.v118-pending-page { padding:22px 24px 32px; }
.v118-pending-title { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom:16px; }
.v118-pending-title h2 { margin:0; font-size:21px; color:#10233d; }
.v118-pending-title p { margin:5px 0 0; color:#73849c; font-size:12px; }
.v118-pending-actions { display:flex; gap:8px; }
.v118-pending-actions button { min-height:38px; padding:0 13px; border:1px solid #cfdae8; border-radius:9px; background:#fff; color:#17365d; font-weight:700; cursor:pointer; }
#v118-pending-close { width:38px; padding:0; font-size:20px; }
.v118-capacity-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.v118-capacity-cards>div { padding:13px 15px; border:1px solid #d8e1ed; border-radius:10px; background:#fff; }
.v118-capacity-cards span { display:block; color:#718096; font-size:12px; }
.v118-capacity-cards b { display:block; margin-top:5px; color:#10233d; font-size:22px; }
.v118-pending-table-wrap { border:1px solid #d5dfeb; border-radius:10px; background:#fff; overflow:auto; }
.v118-pending-table-wrap table { width:100%; min-width:1080px; border-collapse:collapse; }
.v118-pending-table-wrap th,.v118-pending-table-wrap td { padding:11px 12px; border-right:1px solid #dbe3ee; border-bottom:1px solid #dbe3ee; text-align:left; font-size:13px; }
.v118-pending-table-wrap th { background:#f4f7fb; color:#10233d; font-weight:800; white-space:nowrap; }
.v118-pending-table-wrap td:last-child,.v118-pending-table-wrap th:last-child { border-right:0; }
.v118-empty { text-align:center!important; color:#8493a8; height:90px; }
.v118-pending-loading { padding:32px; color:#53657e; }
.v118b-row-assign { border:1px solid #b9cbe1; border-radius:7px; background:#fff; color:#163b68; min-height:32px; padding:0 10px; font-weight:700; cursor:pointer; white-space:nowrap; }
.v118b-row-assign:hover { background:#eef5fd; }
.v118b-pool-message { margin:-2px 0 12px; padding:10px 12px; border-radius:8px; border:1px solid #b9d8c4; background:#f0fbf4; color:#166534; font-size:13px; }
.v118b-pool-message.error { border-color:#fecaca; background:#fff1f2; color:#991b1b; }

#v118b-assign-modal { position:fixed; z-index:19000; inset:0; display:grid; place-items:center; padding:24px; background:rgba(15,35,61,.38); }
.v118b-modal-card { width:min(620px,calc(100vw - 32px)); max-height:calc(100vh - 48px); overflow:auto; border:1px solid #d4deeb; border-radius:14px; background:#fff; box-shadow:0 24px 80px rgba(15,35,61,.28); padding:20px; }
.v118b-modal-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:14px; }
.v118b-modal-head h3 { margin:0; color:#10233d; font-size:20px; }
.v118b-modal-head p { margin:5px 0 0; color:#6d7f96; font-size:12px; line-height:1.5; }
#v118b-assign-close { width:36px; height:36px; border:1px solid #d4deeb; border-radius:8px; background:#fff; color:#17365d; font-size:20px; cursor:pointer; }
.v118b-customer-summary { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:14px; }
.v118b-customer-summary>div { padding:10px 12px; border:1px solid #e0e7f0; border-radius:8px; background:#f8fafc; }
.v118b-customer-summary span,.v118b-customer-summary b { display:block; }
.v118b-customer-summary span { color:#75859a; font-size:11px; }
.v118b-customer-summary b { margin-top:3px; color:#10233d; font-size:13px; }
.v118b-legacy-target { margin:0 0 14px; padding:9px 11px; border-radius:8px; background:#f8fafc; color:#607189; font-size:12px; }
.v118b-field { display:block; margin-top:12px; }
.v118b-field>span { display:block; margin-bottom:6px; color:#17365d; font-size:13px; font-weight:800; }
.v118b-field select { width:100%; min-height:42px; border:1px solid #cbd6e5; border-radius:8px; background:#fff; color:#10233d; padding:0 10px; }
.v118b-field select:focus { outline:2px solid rgba(37,99,235,.15); border-color:#5c8fd1; }
.v118b-no-capacity { margin-top:12px; padding:10px 12px; border:1px solid #f0c36a; border-radius:8px; background:#fff8e6; color:#8a5a00; font-size:12px; }
.v118b-assign-error { min-height:20px; margin-top:10px; color:#b42318; font-size:12px; }
.v118b-modal-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:6px; }
.v118b-modal-actions button { min-height:39px; padding:0 16px; border-radius:8px; font-weight:800; cursor:pointer; }
.v118b-modal-actions .secondary { border:1px solid #ccd7e5; background:#fff; color:#17365d; }
.v118b-modal-actions .primary { border:1px solid #1d4ed8; background:#1d4ed8; color:#fff; }
.v118b-modal-actions .primary:disabled { opacity:.45; cursor:default; }

@media (max-width:900px) {
  #v118-pending-panel { left:0!important; }
  .v118-capacity-cards { grid-template-columns:1fr 1fr; }
  .v118-alert-body,.v118b-customer-summary { grid-template-columns:1fr; }
}

/* V118D_PENDING_POOL_SECURE_WORKFLOW */
.v118-pending-table-wrap th,
.v118-pending-table-wrap td {
  text-align: center;
  vertical-align: middle;
}
.v118-pending-table-wrap td .v118b-row-assign {
  margin-inline: auto;
}
.v118d-customer-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.v118d-customer-link:hover { color:#163b68; }

.v118d-unlock-page { min-height:100%; }
.v118d-unlock-shell {
  display:grid;
  place-items:center;
  min-height:calc(100vh - 150px);
  padding:24px;
}
.v118d-unlock-card {
  width:min(620px,100%);
  padding:48px 56px;
  border:1px solid #d8e1ed;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 32px rgba(15,35,61,.06);
  text-align:center;
}
.v118d-lock-icon {
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  margin:0 auto 14px;
  border:3px solid #17365d;
  border-radius:12px;
  color:#17365d;
  font-size:30px;
  font-weight:900;
}
.v118d-unlock-card h3 { margin:0; color:#10233d; font-size:20px; }
.v118d-unlock-card p { margin:8px 0 24px; color:#75859a; font-size:13px; }
.v118d-unlock-card input {
  width:100%;
  min-height:46px;
  border:1px solid #cbd6e5;
  border-radius:9px;
  padding:0 14px;
  font-size:14px;
  color:#10233d;
  box-sizing:border-box;
}
.v118d-unlock-card input:focus { outline:2px solid rgba(37,99,235,.15); border-color:#5c8fd1; }
.v118d-unlock-error { min-height:24px; padding:6px 0 2px; color:#b42318; font-size:12px; text-align:left; }
#v118d-unlock-submit {
  width:100%;
  min-height:46px;
  border:1px solid #1d4ed8;
  border-radius:9px;
  background:#1d4ed8;
  color:#fff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}
#v118d-unlock-submit:disabled { opacity:.6; cursor:default; }

#v118d-customer-detail-modal,
#v118d-assignment-success-modal {
  position:fixed;
  z-index:19500;
  inset:0;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(15,35,61,.44);
}
.v118d-detail-card,
.v118d-success-card {
  width:min(720px,calc(100vw - 32px));
  max-height:calc(100vh - 48px);
  overflow:auto;
  border:1px solid #d4deeb;
  border-radius:14px;
  background:#fff;
  box-shadow:0 24px 80px rgba(15,35,61,.30);
  padding:20px;
}
#v118d-detail-close,
#v118d-success-close {
  width:36px;
  height:36px;
  border:1px solid #d4deeb;
  border-radius:8px;
  background:#fff;
  color:#17365d;
  font-size:20px;
  cursor:pointer;
}
.v118d-detail-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  border:1px solid #dce5ef;
  border-radius:10px;
  overflow:hidden;
  background:#e4ebf3;
  gap:1px;
}
.v118d-detail-grid>div { min-width:0; padding:11px 13px; background:#fff; }
.v118d-detail-grid span,.v118d-detail-grid b { display:block; }
.v118d-detail-grid span { color:#75859a; font-size:11px; }
.v118d-detail-grid b { margin-top:4px; color:#10233d; font-size:13px; font-weight:700; }
.v118d-detail-wide { grid-column:1 / -1; }
.v118d-break { overflow-wrap:anywhere; word-break:break-word; }
.v118d-detail-actions,
.v118d-success-actions {
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:16px;
}
.v118d-action-spacer { flex:1; }
.v118d-detail-actions button,
.v118d-success-actions button {
  min-height:40px;
  padding:0 16px;
  border-radius:8px;
  font-weight:800;
  cursor:pointer;
}
.v118d-detail-actions .secondary,
.v118d-success-actions .secondary { border:1px solid #cbd6e5; background:#fff; color:#17365d; }
.v118d-detail-actions .primary,
.v118d-success-actions .primary { border:1px solid #1d4ed8; background:#1d4ed8; color:#fff; }
.v118d-success-actions .strong { border-color:#1d4ed8; color:#1d4ed8; }
.v118d-success-title { display:flex; align-items:center; gap:11px; }
.v118d-success-title h3 { margin:0; }
.v118d-success-title p { margin:4px 0 0; }
.v118d-success-icon {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#16a34a;
  color:#fff;
  font-weight:900;
}
.v118d-copy-label { display:block; margin-top:16px; }
.v118d-copy-label>span { display:block; margin-bottom:7px; color:#17365d; font-size:13px; font-weight:800; }
#v118d-copy-text {
  width:100%;
  min-height:190px;
  resize:vertical;
  box-sizing:border-box;
  border:1px solid #cbd6e5;
  border-radius:9px;
  background:#f8fafc;
  padding:12px 13px;
  color:#10233d;
  font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.v118d-copy-status { min-height:22px; padding-top:6px; color:#166534; font-size:12px; }
.v118c-admin-override-note { line-height:1.55; }

@media (max-width:900px) {
  .v118d-unlock-card { padding:34px 22px; }
  .v118d-detail-grid { grid-template-columns:1fr; }
  .v118d-detail-wide { grid-column:auto; }
  .v118d-detail-actions,.v118d-success-actions { flex-wrap:wrap; }
  .v118d-action-spacer { display:none; }
}
