/* Dedicated dispatcher tracker; no QC/logistics selectors. */
body.workspace-shell-active #dashboard-view .dashboard-main-panel:has(.supplier-outbound-shell) { padding-inline:0!important; }
#dashboard-view .panel-content:has(> .supplier-outbound-shell) { padding:0; overflow:auto; }
.supplier-outbound-shell { width:98%; margin:0 auto; padding:32px 0 48px; color:var(--text-main,#242624); }
.supplier-outbound-shell [hidden] { display:none!important; }
.supplier-outbound-shell button, .outbound-modal button { min-height:34px; padding:7px 12px; border:1px solid #d9ded9; border-radius:6px; background:#fff; color:inherit; font:inherit; font-size:13px; cursor:pointer; }
.supplier-outbound-shell button:disabled, .outbound-modal button:disabled { opacity:.45; cursor:default; }
.supplier-outbound-shell button:hover:not(:disabled), .outbound-modal button:hover:not(:disabled) { background:#f2f5f1; }
.supplier-outbound-shell button:focus-visible, .outbound-modal button:focus-visible, .outbound-table-scroll:focus-visible { outline:2px solid #487762; outline-offset:2px; }
.supplier-outbound-shell .outbound-primary, .outbound-modal .outbound-primary { background:#30473c; border-color:#30473c; color:#fff; }
.supplier-outbound-shell .outbound-primary:hover:not(:disabled), .outbound-modal .outbound-primary:hover:not(:disabled) { background:#3b5949; }
.outbound-header { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-bottom:25px; }
.outbound-header-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; flex-shrink:0; max-width:100%; margin-left:auto; }
.outbound-header-actions button { white-space:nowrap; }
.outbound-header h1 { font-size:clamp(24px,2.2vw,34px); line-height:1.2; margin:6px 0 10px; letter-spacing:-.6px; font-weight:600; overflow-wrap:anywhere; }
.outbound-header p { font-size:14px; color:#667168; margin:0; }
.outbound-eyebrow { color:#718074; font-size:11px!important; letter-spacing:.08em; text-transform:uppercase; }
.outbound-project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); grid-auto-rows:1fr; align-items:stretch; gap:18px; }
.outbound-project-card { border:1px solid #dce2dc; border-radius:8px; background:#fff; padding:17px 20px; }
.outbound-project-card:hover { border-color:#9eafa0; }
.outbound-project-card[draggable="true"] { cursor:grab; }
.outbound-project-card.is-dragging { opacity:.45; }
.outbound-project-content { min-width:0; }
.outbound-folder-card.is-drop-target { border-color:#487762; background:#e0eddf; box-shadow:inset 0 0 0 1px #487762; }
.outbound-folder-card .outbound-eyebrow i { color:#6b856f; margin-right:4px; }
.supplier-outbound-shell .outbound-folder-back.is-drop-target { background:#e0eddf; border-radius:6px; box-shadow:inset 0 0 0 2px #487762; }
.outbound-folder-hint { color:#778277; font-size:12px; line-height:1.5; }
.outbound-folder-heading { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:10px; margin-bottom:8px; }
.outbound-folder-heading h2 { min-width:0; margin:0; font-size:18px; overflow-wrap:anywhere; }
.outbound-folder-heading > div { display:flex; gap:7px; }
.outbound-folder-heading .outbound-directory-heading { align-items:center; flex-wrap:wrap; min-width:0; }
.outbound-directory-heading > span { color:#7a857a; }
.outbound-folder-hint { margin:0 0 15px; }
.outbound-card-controls { display:flex; align-items:center; gap:8px; }
.outbound-card-grip { color:#9aa69a; font-size:12px; }
.outbound-project-card :is(.outbound-card-move,.outbound-card-rename) { display:flex; align-items:center; justify-content:center; width:28px; min-height:28px; padding:0; border:0; color:#6b856f; background:transparent; }
.outbound-card-folder { display:block; margin-top:12px; color:#7a857a; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.outbound-card-top { display:flex; justify-content:space-between; align-items:center; }
.outbound-project-card .outbound-card-delete { padding:0; width:28px; min-height:28px; border:0; font-size:22px; color:#859086; }
.outbound-project-card .outbound-card-open { display:block; width:100%; text-align:left; border:0; padding:10px 0 0; background:transparent!important; }
.outbound-card-open h2 { font-size:20px; font-weight:600; margin:0 0 9px; overflow-wrap:anywhere; }
.outbound-card-open p { font-size:13px; color:#6d786f; margin:0; overflow-wrap:anywhere; }
.outbound-card-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:28px; padding-top:12px; border-top:1px solid #edf0eb; color:#758077; font-size:11px; }
.supplier-outbound-shell .outbound-back { flex-shrink:0; border:0; padding:0; margin:0; background:transparent; color:#68786c; white-space:nowrap; }
.supplier-outbound-shell.outbound-detail { padding-top:12px; }
.outbound-detail .outbound-header { align-items:center; flex-wrap:wrap; gap:8px 20px; padding-bottom:10px; border-bottom:1px solid #dfe4dd; }
.outbound-project-heading { display:flex; align-items:center; flex:1; flex-wrap:wrap; gap:4px 16px; min-width:0; }
.outbound-detail .outbound-header h1 { min-width:0; max-width:100%; font-size:20px; line-height:1.3; margin:0; letter-spacing:-.2px; }
.outbound-project-heading p { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.outbound-detail .outbound-header .outbound-danger { flex-shrink:0; margin-left:auto; }
.supplier-outbound-shell .outbound-danger { color:#a2463b; }
.outbound-toolbar { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin:20px 0 9px; font-size:12px; }
.outbound-detail .outbound-toolbar { margin:10px 0 6px; }
.outbound-toolbar-actions { display:flex; flex-wrap:wrap; gap:8px; margin-right:auto; }
.outbound-import-control { display:flex; position:relative; }
.supplier-outbound-shell .outbound-import-toggle { display:flex; align-items:center; padding:0; }
.outbound-import-label { padding:7px 12px; }
.outbound-import-arrow { width:30px; padding:7px 0; border-left:1px solid #d9ded9; text-align:center; }
.outbound-import-menu { position:absolute; top:calc(100% + 5px); left:0; min-width:170px; padding:4px; border:1px solid #d9ded9; border-radius:6px; background:#fff; box-shadow:0 6px 22px #27372718; z-index:10; }
.outbound-import-menu button { display:block; width:100%; text-align:left; border:0!important; }
#outbound-save-status { color:#50715b; }
#outbound-save-status.is-unsaved { color:#a2463b; }
.outbound-table-hint { font-size:12px; color:#778277; margin:0 0 15px; }
.outbound-detail .outbound-table-hint { margin-bottom:8px; }
.outbound-table-scroll { width:100%; max-height:calc(100dvh - 280px); overflow:auto; border:1px solid #dce2d9; border-radius:7px; background:#fff; }
.outbound-detail .outbound-table-scroll { max-height:calc(100dvh - 240px); }
.outbound-table { width:100%; min-width:950px; table-layout:fixed; border-collapse:separate; border-spacing:0; font-size:12px; line-height:1.35; }
.outbound-table th { position:sticky; top:0; z-index:2; font-weight:600; text-align:center; vertical-align:middle; color:#4e5f51; background:#f1f4ef; padding:10px 5px; border-bottom:1px solid #d5ded2; border-right:1px solid #e3e8df; overflow-wrap:anywhere; }
.outbound-table td { vertical-align:top; padding:0; border-bottom:1px solid #e9ede5; border-right:1px solid #edf0e9; overflow-wrap:anywhere; }
.outbound-table tr:last-child td { border-bottom:0; }
.outbound-table tr:hover td { background:#fafcf8; }
.outbound-table .outbound-row-index { vertical-align:middle; padding:4px 3px; color:#7a857a; text-align:center; white-space:nowrap; }
.outbound-table :is(textarea,select) { display:block; width:100%; min-width:0; min-height:28px; box-sizing:border-box; padding:4px 5px; margin:0; color:inherit; font:inherit; line-height:1.4; }
.outbound-table textarea { max-height:140px; resize:none; overflow:hidden; overflow-wrap:anywhere; }
.outbound-table select { height:28px; cursor:pointer; text-overflow:ellipsis; }
.outbound-table .outbound-links-cell { vertical-align:middle; }
.outbound-table .outbound-contacts-cell { vertical-align:middle; }
.outbound-contacts, .outbound-links { display:flex; align-items:center; gap:2px; height:28px; padding:0 3px; box-sizing:border-box; min-width:0; }
.outbound-contact-icons, .outbound-link-icons { display:flex; align-items:center; gap:2px; min-width:0; overflow-x:auto; scrollbar-width:none; }
.outbound-contact-icons::-webkit-scrollbar, .outbound-link-icons::-webkit-scrollbar { display:none; }
.outbound-table :is(.outbound-contact-icon,.outbound-contact-add,.outbound-contact-discard,.outbound-link-icon,.outbound-link-add,.outbound-link-discard) { display:flex; align-items:center; justify-content:center; flex:0 0 24px; width:24px; height:24px; min-height:24px; padding:0!important; border:0!important; border-radius:4px!important; font-size:12px; color:#426650; background:transparent!important; }
.outbound-table :is(.outbound-contact-add,.outbound-contact-discard,.outbound-link-add,.outbound-link-discard) { font-size:19px; }
.outbound-table :is(.outbound-contact-add,.outbound-link-add) { margin-left:auto; }
.outbound-table :is(.outbound-contact-discard,.outbound-link-discard) { color:#a2463b; }
.outbound-table :is(.outbound-contact-icon,.outbound-contact-add,.outbound-contact-discard,.outbound-link-icon,.outbound-link-add,.outbound-link-discard):hover:not(:disabled) { background:#e8f0e7!important; }
:is(.outbound-contacts,.outbound-links)[aria-invalid="true"] { box-shadow:inset 0 -2px #bd6659; }
.outbound-cell-preview { position:fixed; z-index:10020; width:min(320px,calc(100vw - 16px)); max-height:min(360px,65dvh); overflow:auto; box-sizing:border-box; padding:12px 14px; border:1px solid #d9e2d5; border-radius:7px; background:#fff; color:#28372c; box-shadow:0 8px 28px #27372726; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.outbound-cell-preview strong { display:block; font-size:13px; }
.outbound-cell-preview dl { display:grid; grid-template-columns:auto minmax(0,1fr); gap:5px 12px; margin:8px 0; }
.outbound-cell-preview dt { color:#6a786b; }
.outbound-cell-preview dd { margin:0; white-space:pre-wrap; user-select:text; }
.outbound-cell-preview small { color:#748075; }
/* Override the global workspace !important control borders, as in QC cells. */
body.workspace-shell-active .outbound-table :is(textarea,select) { min-height:28px; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
body.workspace-shell-active .outbound-table :is(textarea,select):focus-visible { outline:2px solid #8aa78d!important; outline-offset:-2px; }
body.workspace-shell-active .outbound-table :is(textarea,select)[aria-invalid="true"] { box-shadow:inset 0 -2px #bd6659!important; }
.outbound-table .outbound-updated { vertical-align:middle; padding:4px 5px; color:#7a857a; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.outbound-table .outbound-select { vertical-align:middle; text-align:center; padding:0; }
/* Checkboxes must not inherit the shared 42px text-input minimum. */
.outbound-table .outbound-select input[type="checkbox"] { display:block; width:14px; min-width:14px; height:14px; min-height:14px; max-height:14px; padding:0; margin:0 auto; accent-color:#42664e; }
.outbound-table .outbound-actions { vertical-align:middle; }
.outbound-actions details { position:relative; }
.outbound-actions summary { display:block; height:28px; box-sizing:border-box; cursor:pointer; list-style:none; text-align:center; padding:4px 0; color:#6b796b; }
.outbound-actions summary::-webkit-details-marker { display:none; }
.outbound-actions details[open] summary { background:#edf2e9; }
.outbound-row-menu { position:absolute; right:0; top:100%; width:150px; z-index:5; border:1px solid #dae2d5; border-radius:6px; padding:4px; background:#fff; box-shadow:0 6px 22px #27372718; }
.outbound-row-menu button { width:100%; text-align:left; border:0; }
.outbound-link-preview { display:flex; flex-wrap:wrap; gap:8px 16px; }
.outbound-link-preview .outbound-open-link { color:#42715c; font-size:12px; }
.outbound-notice { display:flex; align-items:center; gap:15px; margin:0 0 20px; padding:15px; border:1px solid #e3d8bc; border-radius:6px; background:#faf7ee; font-size:13px; }
.outbound-empty { padding:40px!important; text-align:center; color:#829080; font-size:14px; }
.outbound-pagination { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:25px; font-size:13px; }
.outbound-modal { position:fixed; inset:0; margin:auto; width:min(600px,calc(100vw - 32px)); height:fit-content; max-height:85dvh; padding:24px; color:#28372c; border:1px solid #d8e0d5; border-radius:10px; overflow:auto; }
.outbound-modal::backdrop { background:#1f302955; }
.outbound-modal header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.outbound-modal h2 { font-size:21px; margin:0; }
.outbound-modal p { font-size:13px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.outbound-modal label { display:block; margin:14px 0; font-size:13px; font-weight:500; }
.outbound-modal input, .outbound-modal textarea, .outbound-modal select { display:block; width:100%; box-sizing:border-box; margin-top:6px; border:1px solid #ccd7c7; border-radius:5px; padding:10px; font:inherit; font-weight:400; }
.outbound-modal input:focus, .outbound-modal textarea:focus, .outbound-modal select:focus { outline:2px solid #8aaa8e; outline-offset:1px; }
.outbound-modal [hidden] { display:none!important; }
.outbound-modal footer { display:flex; justify-content:flex-end; gap:9px; margin-top:22px; }
.outbound-modal-error { color:#a2463b; }
dialog.outbound-link-modal { width:min(480px,calc(100vw - 32px)); box-sizing:border-box; }
dialog.outbound-contact-modal { width:min(520px,calc(100vw - 32px)); box-sizing:border-box; }
.outbound-contact-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
.outbound-contact-form label:last-child { grid-column:1/-1; }
.outbound-contact-modal .outbound-contact-delete { color:#a2463b; margin-top:4px; }
.outbound-link-modal .outbound-link-delete { color:#a2463b; margin-top:8px; }
.outbound-contact-modal textarea { min-height:80px; max-height:160px; resize:vertical; }
dialog.outbound-ai-chat-modal { width:min(760px,calc(100vw - 32px)); box-sizing:border-box; }
dialog.outbound-prompt-modal { width:min(760px,calc(100vw - 32px)); box-sizing:border-box; }
.outbound-prompt-text { max-height:55dvh; overflow:auto; padding:14px; border:1px solid #e3e8df; border-radius:5px; background:#f5f7f3; white-space:pre-wrap; overflow-wrap:anywhere; user-select:text; font-size:13px; line-height:1.7; }
.outbound-prompt-text:focus-visible { outline:2px solid #8aaa8e; outline-offset:1px; }
.outbound-prompt-modal [role="status"]:empty { display:none; }
.outbound-ai-chat-modal .outbound-ai-json-field { height:clamp(220px,32dvh,360px); min-height:160px; max-height:50dvh; resize:vertical; overflow:auto; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:12px; line-height:1.5; }
.outbound-ai-prompt { margin-top:16px; border-top:1px solid #e3e8df; padding-top:12px; }
.outbound-ai-prompt summary { cursor:pointer; font-size:13px; color:#50715b; }
.outbound-ai-prompt button { margin-top:12px; }
.outbound-ai-prompt pre { max-height:240px; overflow:auto; padding:12px; background:#f5f7f3; border:1px solid #e3e8df; border-radius:5px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; line-height:1.6; }
.outbound-ai-prompt [role="status"]:empty { display:none; }
.outbound-link-modal textarea { height:120px; min-height:120px; max-height:240px; resize:vertical; overflow:auto; overflow-wrap:anywhere; }
/* Match Bridge's shared typed-delete presentation while keeping native modality. */
dialog.outbound-delete-modal { position:fixed; inset:0; margin:auto; width:min(560px,calc(100vw - 32px)); max-width:560px; height:fit-content; max-height:85dvh; box-sizing:border-box; padding:2.5rem; border-color:var(--bridge-ui-line,#d8e0d5); background:var(--bridge-ui-surface,#fff); box-shadow:var(--bridge-ui-shadow-float,0 20px 25px -5px #0000001a); text-align:center; }
.outbound-delete-modal::backdrop { background:rgba(16,17,20,.42); backdrop-filter:blur(10px); }
.outbound-delete-modal h2 { font-size:1.25rem; margin:0 0 1rem; }
.outbound-delete-modal p { font-size:.95rem; margin:0 0 1.5rem; }
.outbound-delete-modal .outbound-delete-phrase-label { margin:.8rem 0 .45rem; color:#0f172a; font-weight:600; }
.outbound-delete-phrase { padding:.75rem .9rem; border:1px solid #d7dde4; border-radius:10px; background:#f8fafc; color:#0f172a; font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; font-size:.9rem; white-space:pre-wrap; overflow-wrap:anywhere; }
.outbound-delete-field { margin-top:1rem; text-align:left; }
.outbound-delete-modal .outbound-delete-field label { margin:0 0 .5rem; font-size:inherit; font-weight:600; }
.outbound-delete-modal .outbound-delete-field input { padding:.72rem .78rem; font-size:.95rem; }
.outbound-delete-modal .outbound-delete-instruction { margin:.45rem 0 0; color:#475569; font-size:.84rem; }
.outbound-delete-modal footer { gap:.75rem; flex-wrap:wrap; margin-top:1.4rem; }
.outbound-delete-modal footer button { min-height:40px; padding:.68rem 1.22rem; }
.outbound-delete-modal .outbound-delete-submit { border-color:#b42318!important; background:#b42318!important; color:#fff!important; }
.outbound-delete-modal .outbound-delete-submit:hover:not(:disabled) { border-color:#912018!important; background:#912018!important; }
.outbound-delete-modal .outbound-modal-error { margin:.75rem 0 0; color:#a2463b; text-align:left; }
.outbound-delete-modal .outbound-modal-error:empty { display:none; }
.outbound-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media (min-width:1600px) { .outbound-table { font-size:13px; } }
@media (max-width:900px) { .supplier-outbound-shell { padding-top:22px; } .outbound-header { align-items:flex-start; gap:12px; } .outbound-table-scroll { max-height:calc(100dvh - 310px); } .outbound-detail .outbound-table-scroll { max-height:calc(100dvh - 280px); } }
@media (max-width:600px) { .outbound-header { flex-wrap:wrap; } .outbound-detail .outbound-header { gap:6px 12px; } .outbound-project-heading { flex-basis:calc(100% - 140px); } .outbound-project-grid { grid-template-columns:1fr; } .outbound-modal { padding:18px; } dialog.outbound-delete-modal { padding:24px; } }
@media (max-width:420px) { .outbound-contact-form { grid-template-columns:1fr; } }
