.demo-panel,.demo-client-placeholder{border-left:4px solid #ffd42d}.demo-module-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 22px}.demo-module-header h4{margin:4px 0 6px;font-size:18px}.demo-module-header .eyebrow{color:#6ae4d0}.demo-module-header p:not(.eyebrow){margin:0;color:#a9bfba;font-size:14px}.demo-module-actions,.demo-toolbar,.demo-record-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.demo-panel button,.demo-panel input,.demo-panel select,.demo-panel textarea{font:inherit}.demo-panel button{cursor:pointer;border:1px solid #2b5953;background:#102c2a;color:#a6f8e8;border-radius:7px;padding:9px 13px;font-size:13px;font-weight:700}.demo-panel button:hover{background:#19443e}.demo-panel button:disabled{opacity:.5;cursor:not-allowed}.demo-panel .demo-primary{background:#24ac98;border-color:#24ac98;color:#031e18}.demo-panel .demo-primary:hover{background:#59ccb6}.demo-workspace{border-top:1px solid #294642;padding:24px;background:#071312}.demo-workspace-heading{display:flex;gap:12px;justify-content:space-between;align-items:start;margin-bottom:20px}.demo-workspace-heading h4{margin:0 0 5px;font-size:20px}.demo-workspace-heading p{margin:0;color:#a6bdb7}.demo-panel fieldset{border:1px solid #2b4842;padding:20px;border-radius:9px;margin:0 0 20px;min-width:0}.demo-panel legend{font-size:15px;font-weight:750;color:#a3f1df;padding:0 8px}.demo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.demo-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:#cbded9;font-size:13px;font-weight:650}.demo-field input,.demo-field select,.demo-field textarea,.demo-product-search input,.demo-product-search select,.demo-toolbar input,.demo-column-filters input,.demo-column-filters select{width:100%;min-width:0;padding:10px 11px;border:1px solid #36534d;border-radius:6px;background:#0d1c1a;color:#f1fcf9;outline:none;min-height:40px;line-height:1.4}.demo-panel input:focus,.demo-panel select:focus,.demo-panel textarea:focus,.demo-panel button:focus-visible{outline:2px solid #67e1ca;outline-offset:2px}.demo-panel [aria-invalid=true]{border-color:#fa7c7c!important;box-shadow:0 0 0 1px #fa7c7c}.demo-panel textarea{resize:vertical;min-height:80px}.demo-span-2{grid-column:span 2}.demo-span-3{grid-column:1/-1}.demo-field small,.demo-help{font-size:12px;font-weight:400;line-height:1.5;color:#a3b9b2}.demo-panel .demo-field-error{color:#ffa3a3!important;display:block;font-size:12px;line-height:1.5;min-height:0}.demo-field-error:empty{display:none}.demo-field-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.demo-panel .demo-text-button{padding:4px 0;border:0;background:none;color:#83e9d2;font-size:12px;text-align:left;white-space:nowrap}.demo-checkboxes{display:flex;flex-wrap:wrap;gap:10px 18px;padding:12px;border:1px solid #2c4a43;border-radius:6px;background:#0b201a}.demo-check{display:flex;align-items:flex-start;gap:8px;color:#c8ded4;font-size:13px;line-height:1.5}.demo-check input{width:17px;height:17px;margin:2px 0 0;accent-color:#36bea2;flex-shrink:0}.demo-date-field{display:flex;gap:8px}.demo-date-field input{color-scheme:dark}.demo-date-field button{flex-shrink:0}.demo-date-field svg{width:18px;height:18px;display:block}.demo-warning{margin:12px 0;padding:14px 16px;border:1px solid #dc9e55;border-left:4px solid #efab55;border-radius:6px;background:#342515;color:#ffe1ab;line-height:1.5;font-size:13px}.demo-warning strong{display:block;margin-bottom:4px}.demo-warning .demo-check{margin-top:12px;color:#ffe3b8}.demo-product-search{display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(200px,1.3fr) auto;gap:10px;align-items:end}.demo-product-search label{font-size:13px;color:#c3d8d0;display:flex;flex-direction:column;gap:6px}.demo-panel .demo-table-wrap{overflow:auto;border:1px solid #2c4942;border-radius:7px;margin:14px 0;max-width:100%}.demo-panel table{width:100%;border-collapse:collapse;table-layout:auto}.demo-panel th{background:#112e29;color:#d1f9ee;padding:10px 12px;text-align:left;font-size:12px;white-space:normal;border-bottom:1px solid #395c51}.demo-panel td{padding:12px;border-bottom:1px solid #2c433c;font-size:13px;vertical-align:top;color:#d0dfd7}.demo-panel tbody tr:last-child td{border-bottom:0}.demo-panel td small{display:block;color:#9aaea5;font-size:11px;margin-top:5px}.demo-product-table{min-width:1080px}.demo-product-table th:first-child{min-width:190px}.demo-product-table td:nth-child(3){min-width:165px}.demo-product-table td:nth-child(3) input{background:#0c2019;border:1px solid #3a5e4f;border-radius:5px;color:#fff;width:95px;padding:9px;text-align:right}.demo-product-table td:nth-child(6){min-width:160px}.demo-sku{font-family:ui-monospace,monospace!important;white-space:nowrap}.demo-calculated{font-weight:750;color:#8cedc9!important;font-size:16px!important}.demo-invalid-row{background:#32191c}.demo-invalid-row .demo-calculated{color:#ff9da4!important}.demo-panel .demo-suggestion{margin-top:7px;background:#562e20;border-color:#ce7d54;color:#ffdcc2;padding:6px 8px;font-size:11px}.demo-panel .demo-remove{border-color:#784541;color:#ffbdb6;background:transparent;font-size:20px;line-height:1;padding:5px 9px}.demo-empty{padding:25px;text-align:center;border:1px dashed #385548;border-radius:7px;color:#a9bdb2;font-size:14px;margin-top:14px}.demo-status{padding:12px 14px;background:#102a21;border:1px solid #385c46;border-radius:6px;font-size:13px;color:#c9ebd5;margin:12px 0}.demo-status[data-type=error]{background:#341d21;border-color:#954d56;color:#ffc0c7}.demo-status[data-type=success]{border-color:#379766;background:#0e3021;color:#b8f3ce}.demo-form-footer{display:flex;align-items:start;justify-content:space-between;gap:24px;margin-top:22px}.demo-form-footer div{max-width:760px;font-size:13px;color:#bcd0c4;line-height:1.5}.demo-form-footer small{display:block;font-size:11px;color:#9fb2a7;margin-top:7px;overflow-wrap:anywhere}.demo-form-footer button{flex-shrink:0;padding:13px 19px}.demo-toolbar input{width:min(450px,100%)}.demo-toolbar .demo-check{margin-left:auto}.demo-history-table{min-width:4800px}.demo-history-table th,.demo-history-table td{min-width:170px;max-width:320px}.demo-history-table th:first-child,.demo-history-table td:first-child{position:sticky;left:0;z-index:2;background:#10241b;min-width:175px;width:175px}.demo-history-table thead{position:sticky;top:0;z-index:3}.demo-history-table th:nth-child(6),.demo-history-table td:nth-child(6){min-width:300px}.demo-history-table td div+div{margin-top:8px;border-top:1px dotted #3b5143;padding-top:8px}.demo-history-actions button{margin:0 4px 6px 0;padding:6px 8px;font-size:12px}.demo-panel .demo-danger-button{color:#ffb7b7;border-color:#834941;background:#39221d}.demo-history-wrap{max-height:640px}.demo-column-filters th{padding:6px}.demo-column-filters input,.demo-column-filters select{padding:6px;font-size:12px;min-height:32px}.demo-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#b9cabc;margin-top:14px}.demo-deleted-row{opacity:.65}.demo-panel dialog{background:#0b1c17;color:#d5e9dc;border:1px solid #3a6250;border-radius:12px;padding:24px;box-shadow:0 20px 90px #0009;max-width:min(90vw,560px);max-height:88vh;overflow:auto}.demo-panel dialog::backdrop{background:#00150dcc;backdrop-filter:blur(4px)}.demo-panel dialog h3{font-size:23px;margin:0 0 15px}.demo-panel dialog p{font-size:14px;line-height:1.6}.demo-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.demo-panel .demo-record-dialog{max-width:min(94vw,1250px);width:1250px}.demo-record-heading{display:flex;justify-content:space-between;gap:15px;align-items:start}.demo-record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.demo-record-grid div{padding:10px 12px;background:#10251b;border:1px solid #2b4737;border-radius:6px;overflow-wrap:anywhere}.demo-record-grid dt{font-size:11px;color:#9fbda8;margin-bottom:6px}.demo-record-grid dd{margin:0;font-size:14px;color:#e0f2e4}.demo-mail-log{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.demo-mail-log li{padding:10px;border:1px solid #375042;border-radius:5px;font-size:12px;overflow-wrap:anywhere}.demo-mail-log span,.demo-mail-log small{display:block;margin-top:5px;color:#a9c1b0}.demo-client-placeholder .demo-module-header{padding:20px 22px}.demo-coming-soon{font-size:12px;color:#b5c7bf;border:1px solid #465c52;padding:7px 10px;border-radius:6px;white-space:nowrap}.demo-panel [hidden],.demo-client-placeholder [hidden]{display:none!important}
@media(max-width:1100px){.demo-module-header{align-items:flex-start;flex-direction:column;gap:14px}.demo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-span-3{grid-column:1/-1}.demo-product-search{grid-template-columns:minmax(180px,1fr) auto}.demo-form-footer{flex-direction:column;gap:15px}.demo-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.demo-workspace{padding:15px}.demo-panel fieldset{padding:14px}.demo-grid{grid-template-columns:1fr}.demo-span-2{grid-column:auto}.demo-module-header h4{font-size:17px;line-height:1.4}.demo-module-actions{width:100%}.demo-module-actions button{flex:1}.demo-product-search{grid-template-columns:1fr}.demo-form-footer button{width:100%}.demo-toolbar .demo-check{margin-left:0}.demo-panel dialog{padding:18px;max-width:94vw}.demo-record-grid,.demo-mail-log{grid-template-columns:1fr}.demo-dialog-actions{flex-wrap:wrap}.demo-pagination{flex-wrap:wrap}.demo-client-placeholder .demo-module-header{gap:12px}.demo-panel td,.demo-panel th{font-size:12px}}
/* The existing dashboard has a 1280px minimum. Open the new workspace at device width on phones. */
@media(max-width:650px){html.demo-workspace-open,html.demo-workspace-open body{min-width:0;width:100%;overflow-x:clip}html.demo-workspace-open .app-shell{grid-template-columns:minmax(0,1fr)}html.demo-workspace-open .sidebar,html.demo-workspace-open .main-panel>.topbar,html.demo-workspace-open #semaforo>:not(.sales-scoreboard-stack),html.demo-workspace-open .sales-scoreboard-stack>article:not(#demoRequestsPanel){display:none}html.demo-workspace-open .main-panel{padding:0}html.demo-workspace-open .sales-scoreboard-stack,html.demo-workspace-open #demoRequestsPanel{min-width:0;max-width:100%}html.demo-workspace-open #demoRequestsPanel{border-radius:0;border-left:0}html.demo-workspace-open #demoRequestsPanel>.demo-module-header{padding:15px}.demo-panel .demo-workspace-heading h4{font-size:18px}.demo-panel .demo-field-title{flex-wrap:wrap}}
.demo-date-control{width:100%;max-width:340px;align-self:start}.demo-date-control>label{min-height:22px;display:flex;align-items:center}.demo-date-control .demo-text-button{align-self:flex-start;white-space:normal}.demo-date-warning{margin:2px 0 0;padding:10px 12px;font-size:12px}.demo-date-warning .demo-text-button{display:block;margin-top:7px;color:#ffdea8}.demo-panel #demoEarlyDateDialog{width:520px}.demo-panel #demoEarlyDateDialog input{color-scheme:dark;max-width:280px}.demo-panel #demoEarlyDateDialog .demo-dialog-actions{align-items:center}.demo-panel #demoEarlyDateConfirm{white-space:normal;line-height:1.4}.demo-panel #demoEarlyDateExplanation{color:#b8cec4}.demo-panel #demoEarlyDateRisk{line-height:1.6}
@media(max-width:650px){.demo-date-control{max-width:none}.demo-panel #demoEarlyDateDialog{width:94vw}.demo-panel #demoEarlyDateDialog .demo-dialog-actions{flex-direction:column-reverse;align-items:stretch}}
/* Keep the module within the portal column, including while a history table is open. */
.sales-scoreboard-stack{min-width:0;grid-template-columns:minmax(0,1fr)}.demo-panel,.demo-workspace{min-width:0;max-width:100%}.demo-panel>.demo-module-header{flex-direction:column;align-items:flex-start;gap:12px}.demo-panel>.demo-module-header .demo-module-actions{justify-content:flex-start}.demo-panel .demo-table-wrap{min-width:0;width:100%}.demo-history-toolbar{justify-content:flex-start;gap:8px}.demo-history-toolbar #demoHistorySearch{width:min(470px,100%)}.demo-panel .demo-history-table{min-width:0;width:100%;table-layout:fixed}.demo-history-table th,.demo-history-table td{min-width:0;max-width:none;overflow-wrap:anywhere}.demo-history-table th:first-child,.demo-history-table td:first-child{position:static;min-width:0;width:25%}.demo-history-table td:first-child{background:transparent}.demo-history-table th:nth-child(2){width:18%}.demo-history-table th:nth-child(3){width:29%}.demo-history-table th:nth-child(4){width:12%}.demo-history-table th:nth-child(5){width:16%}.demo-history-table td div+div{border:0;margin:0;padding:0}.demo-agency-name{display:block;font-size:14px;line-height:1.4;margin:4px 0}.demo-history-table .demo-folio-link{font-size:12px;padding:0;white-space:normal}.demo-history-table td small{line-height:1.45}.demo-history-table .demo-product-summary{display:flex;align-items:flex-start;gap:10px;margin:0 0 10px}.demo-product-summary>strong{font-size:12px;white-space:nowrap;color:#99e8ce;min-width:48px}.demo-product-summary>span{font-size:12px;line-height:1.4;min-width:0}.demo-product-summary small{margin-top:3px}.demo-mail-status{display:inline-block;padding:5px 7px;border:1px solid #826d33;border-radius:5px;color:#ffe3a1;background:#3a301b;font-size:11px;line-height:1.4}.demo-mail-status[data-status=sent]{color:#a9f1cb;border-color:#2a7750;background:#113921}.demo-mail-status[data-status=error]{color:#ffb8b8;border-color:#9b5555;background:#421f22}.demo-early-badge{color:#eac17e!important}.demo-history-actions button{margin:0 4px 6px 0}.demo-history-options{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.demo-history-options #demoIncludeDeletedLabel{margin-left:auto;align-items:center;font-weight:400}.demo-panel .demo-check input[type=checkbox]{width:17px;min-width:17px;height:17px;min-height:17px}.demo-filter-panel{margin-top:12px;padding:16px;border:1px solid #2b5147;border-radius:8px;background:#0e241e}.demo-filter-panel p{margin:0 0 12px;font-size:13px;color:#a7c5b7}.demo-filter-builder{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;align-items:end;gap:12px}.demo-filter-chips{display:flex;flex-wrap:wrap;gap:6px}.demo-panel .demo-filter-chips button{padding:5px 9px;border-radius:20px;font-size:11px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}.demo-filter-chips button span{padding-left:5px;font-size:15px}.demo-panel #demoClearFilters{font-size:12px}.demo-panel #demoApplyFilter{min-height:40px}
@media(max-width:900px){.demo-filter-builder{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.demo-filter-builder button{grid-column:1/-1;justify-self:start}.demo-history-table td,.demo-history-table th{padding:10px 8px}.demo-history-table .demo-product-summary{flex-direction:column;gap:3px}.demo-history-table .demo-history-actions button{padding:5px;font-size:11px}}
@media(max-width:650px){.demo-panel .demo-history-table,.demo-history-table tbody,.demo-history-table tr,.demo-history-table td{display:block;width:100%;min-width:0}.demo-history-table thead{display:none}.demo-history-table tr{padding:8px;border-bottom:1px solid #365047}.demo-history-table td{border:0;padding:8px}.demo-history-table td:first-child{width:100%}.demo-history-table td::before{content:attr(data-label);display:block;color:#7ab49e;font-size:10px;text-transform:uppercase;margin-bottom:5px;font-weight:700}.demo-history-table .demo-product-summary{flex-direction:row;gap:10px}.demo-history-options #demoIncludeDeletedLabel{margin-left:0}.demo-filter-builder{grid-template-columns:minmax(0,1fr)}.demo-history-toolbar #demoHistorySearch{width:100%}.demo-history-toolbar button{flex:1}.demo-filter-builder button{justify-self:stretch;width:100%}.demo-panel>.demo-module-header .demo-module-actions{width:100%}}

/* Let the Demo workspace fit the device; the host shell otherwise forces 1280px. */
html.demo-workspace-open,html.demo-workspace-open body{min-width:0;width:100%;overflow-x:clip}
html.demo-workspace-open .main-panel{min-width:0;max-width:100%}
@media(min-width:801px){html.demo-workspace-open .app-shell{grid-template-columns:320px minmax(0,1fr)}}
/* Compact, visible document and deletion actions in the six-column history. */
.demo-panel .demo-history-table th:first-child,.demo-panel .demo-history-table td:first-child{width:23%}
.demo-panel .demo-history-table th:nth-child(2){width:14%}
.demo-panel .demo-history-table th:nth-child(3){width:23%}
.demo-panel .demo-history-table th:nth-child(4){width:12%}
.demo-panel .demo-history-table th:nth-child(5){width:12%}
.demo-panel .demo-history-table th:nth-child(6),.demo-panel .demo-history-table td:nth-child(6){width:16%;min-width:0}
.demo-panel .demo-history-table td.demo-history-actions{padding-left:8px;padding-right:8px}
.demo-panel .demo-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.demo-panel .demo-row-document-actions{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.demo-panel .demo-history-actions button{margin:0;min-height:32px}
.demo-panel .demo-history-actions .demo-record-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:32px;padding:4px}
.demo-panel .demo-history-actions svg{width:17px;height:17px;flex:none}
.demo-panel .demo-history-actions .demo-delete-record{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 9px;white-space:nowrap;font-size:12px}
.demo-panel .demo-row-action-status{font-size:11px;line-height:1.5;color:#a9dfd0;overflow-wrap:anywhere}
.demo-panel .demo-row-action-status[data-type=error]{color:#ffb9b9}
@media(max-width:650px){
 .demo-panel .demo-history-table td:first-child,.demo-panel .demo-history-table td:nth-child(6){width:100%}
 .demo-panel .demo-row-actions{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px}
 .demo-panel .demo-history-actions .demo-record-icon{width:42px;height:42px}
 .demo-panel .demo-history-actions .demo-delete-record{min-height:42px}
 .demo-panel .demo-row-action-status{flex-basis:100%}
}
