/* Common, contained presentation for every soirée screen and its dialogs. */
body main #content .crm-soiree-workspace{font-family:Arial,Helvetica,sans-serif!important;color:#263b52;padding:18px!important;min-width:0}
body main #content .crm-soiree-workspace :is(h2,h3,h4){font-family:Arial,Helvetica,sans-serif!important;color:#263b52;letter-spacing:normal;margin:0 0 10px;line-height:1.35}
body main #content .crm-soiree-workspace h2{font-size:22px!important}body main #content .crm-soiree-workspace h3{font-size:17px!important}body main #content .crm-soiree-workspace h4{font-size:15px!important}
body main #content .crm-soiree-workspace p{line-height:1.55;font-size:14px;margin:8px 0;color:#50627a}
body main #content .crm-soiree-workspace .crm-soiree-compact-head{background:linear-gradient(100deg,#fff2f8,#f8f7fc)!important;border:1px solid #eadce7!important;border-left:4px solid var(--crm-accent,#eb008b)!important;border-radius:12px!important;padding:12px 14px!important;margin-bottom:10px!important;gap:12px;min-width:0}
body main #content .crm-soiree-title{display:block!important;min-width:0}body main #content .crm-soiree-title h3{font-size:20px!important;margin:0 0 5px!important}body main #content .crm-soiree-title>span{font-size:13px!important}
body main #content .crm-soiree-workspace :is(button,.button),#editor .crm-soiree-dialog :is(button,.button){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 11px;font:600 13px/1.3 Arial,Helvetica,sans-serif!important;border-radius:9px;max-width:100%;box-shadow:none}
body main #content .crm-soiree-workspace button.quiet,#editor .crm-soiree-dialog button.quiet{background:#fff;color:#455b76;border:1px solid #ced8e6}
body main #content .crm-soiree-workspace button:not(.quiet),#editor .crm-soiree-dialog button[type=submit]{color:#fff;background:var(--crm-accent,#eb008b);border:1px solid var(--crm-accent,#eb008b)}
body main #content .crm-soiree-workspace :is(button,.button)>svg,#editor .crm-soiree-dialog button>svg{width:18px;height:18px;min-width:18px;margin:0;flex:none;display:block}
body main #content .crm-soiree-actions{gap:8px;margin:8px 0;align-items:center}body main #content .crm-soiree-card>.crm-soiree-actions{padding-top:8px;margin-bottom:0}
body main #content .crm-soiree-workspace .crm-soiree-card{background:#fff;border:1px solid #dce3ed;border-top:3px solid #d58ab1;border-radius:13px;padding:16px;min-width:0;box-shadow:none}
body main #content .crm-soiree-workspace .crm-soiree-heading{margin-bottom:10px;gap:10px;align-items:center}body main #content .crm-soiree-heading h3{margin:0!important}
body main #content .crm-soiree-workspace .crm-soiree-card p{font-size:14px}body main #content .crm-soiree-workspace .crm-soiree-grid{gap:14px;align-items:start}
body main #content .crm-soiree-workspace .table-wrap{max-width:100%;overflow:auto;border:1px solid #dce3ed;border-radius:11px;background:#fff;margin:12px 0}
body main #content .crm-soiree-workspace table{width:100%;margin:0;border-collapse:collapse;font:14px/1.45 Arial,Helvetica,sans-serif!important;table-layout:auto}
body main #content .crm-soiree-workspace table :is(th,td){padding:11px 12px;border-bottom:1px solid #e8edf3;white-space:normal;vertical-align:middle;font-size:14px;overflow-wrap:break-word}
body main #content .crm-soiree-workspace thead th{background:#edf2f9;color:#455b76;font-weight:600;white-space:nowrap}body main #content .crm-soiree-workspace table small{font-size:12px;color:#64748b}
body main #content .crm-soiree-workspace tbody tr:last-child :is(th,td){border-bottom:0}body main #content .crm-soiree-workspace table .crm-soiree-actions{flex-wrap:nowrap;margin:0}
body main #content .crm-soiree-workspace .sb-icon-button{width:34px;min-width:34px;min-height:34px;padding:7px;color:#b22c5f!important;border-color:#eacbd7!important}
body main #content .crm-soiree-workspace .crm-soiree-empty{font-size:14px;padding:23px;margin:0;color:#63728a}
body main #content .crm-soiree-workspace .crm-soiree-check-row{min-height:42px;gap:8px;border-bottom:1px solid #eef1f6;padding:5px 0;font-size:14px}body main #content .crm-soiree-check-row select{min-width:125px}
body main #content .crm-soiree-workspace :is(.crm-soiree-check,.crm-soiree-pick label){font-size:14px;line-height:1.4;gap:9px}
body main #content .crm-soiree-workspace input[type=checkbox],#editor .crm-soiree-dialog input[type=checkbox]{width:17px!important;min-width:17px;height:17px!important;min-height:17px!important;margin:0;flex:none;accent-color:var(--crm-accent,#eb008b)}
body main #content .crm-soiree-workspace .sd-metric.featured{background:#fff0f7!important;border:1px solid #f0c8dd;border-left:4px solid var(--crm-accent,#eb008b);color:#293e56!important}
body main #content .crm-soiree-workspace .sd-metric.featured :is(header,p,small){color:#455b74!important}body main #content .crm-soiree-workspace .sd-metric.featured :is(svg,strong){color:var(--crm-accent,#eb008b)!important}
body main #content .crm-soiree-workspace .sd-card{box-shadow:none;border-color:#dce3ed;border-top:3px solid #e1a0c0}body main #content .crm-soiree-workspace .soiree-dashboard-board .sd-card-head h3{font-size:17px!important}
body main #content .crm-soiree-workspace .soiree-dashboard-board :is(.sd-domain-title,.sd-legend,.sd-card,.sd-link){font-size:13px}body main #content .crm-soiree-workspace .sd-overview{align-items:start}
body main #content .crm-soiree-workspace :is(.ez-top h3,.ez-card-title h3){font-size:17px!important}body main #content .crm-soiree-workspace .ez-start{padding:16px;gap:16px;border-radius:13px}
body main #content .crm-soiree-workspace .ez-format-grid button{font-size:13px!important;background:white!important;color:#455b76!important;border:1px solid #dce3ed!important}
body main #content .crm-soiree-workspace .ez-format-grid button.active{color:var(--crm-accent,#eb008b)!important;background:#fff0f7!important;border-color:#de86b5!important}
body main #content .crm-soiree-workspace .ez-card{padding:16px;border-radius:12px}body main #content .crm-soiree-workspace .ez-line{font-size:14px}
#editor:has(.crm-soiree-dialog){width:min(950px,calc(100vw - 28px));max-width:950px}#editor .crm-soiree-dialog{font:14px/1.5 Arial,Helvetica,sans-serif;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
#editor .crm-soiree-dialog>label{font-size:14px;color:#455b74;min-width:0}#editor .crm-soiree-dialog input:not([type=checkbox]),#editor .crm-soiree-dialog select{font:14px Arial,Helvetica,sans-serif;min-height:40px;padding:9px 10px;min-width:0;max-width:100%;width:100%;margin-top:5px}
#editor .crm-soiree-dialog textarea{font:14px/1.5 Arial,Helvetica,sans-serif;min-height:85px;max-width:100%;width:100%;padding:10px}#editor .crm-soiree-dialog .full{grid-column:1/-1}
#editor .crm-soiree-dialog .crm-soiree-actions{justify-content:flex-end;border-top:1px solid #e8edf4;padding-top:14px;margin-bottom:0}#editor .crm-soiree-dialog>p{margin:0;font-size:13px}
#editor .crm-soiree-dialog .crm-soiree-pick{padding:12px;grid-column:1/-1}#editor .crm-soiree-dialog .crm-soiree-pick label{font-size:14px;margin:8px 0}
.sb-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0}.sb-heading h3{margin:0!important}.sb-heading p{font-size:13px!important;margin:4px 0 0!important}
.sb-totals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:15px 0}.sb-totals article{border:1px solid #dce3ed;border-top:3px solid var(--crm-accent,#eb008b);border-radius:12px;background:#fff;padding:13px 15px;min-width:0}.sb-totals article.purple{border-top-color:#8863c5}.sb-totals article.blue{border-top-color:#5989c1}.sb-totals article.green{border-top-color:#429e80}.sb-totals span{display:block;font-size:13px;color:#50637b}.sb-totals strong{display:block;font-size:24px;line-height:1.4;color:var(--crm-accent,#eb008b);margin-top:5px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.sb-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:#52677f;margin:10px 0 17px}.sb-meta a{display:inline-flex;align-items:center;gap:7px;color:#685084;font-size:12px;text-decoration:none}.sb-meta svg{width:15px;height:15px}
.sb-mode{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.sb-table{min-width:950px}.sb-table th:first-child{min-width:240px;width:30%;text-align:left}.sb-table th:first-child>strong{display:block;color:#263b52;font-size:14px;font-weight:600}.sb-table th:first-child small{display:block;margin-top:4px;font-weight:400}.sb-category{display:block;font-size:11px;text-transform:none;font-weight:600;color:#7f5680;margin-bottom:4px}.sb-table :is(td,tfoot th){font-variant-numeric:tabular-nums;white-space:nowrap!important;text-align:right}.sb-table .sb-amount{color:var(--crm-accent,#eb008b);font-weight:700}.sb-table tfoot :is(th,td){background:#f5f1fa;font-weight:700;border-top:2px solid #dcc7e0}.sb-missing{font-size:12px;font-weight:500;color:#926311;white-space:nowrap}.sb-totals .sb-missing{font-size:15px;color:#926311;line-height:1.5;padding-top:4px}.sb-table-wrap{scrollbar-width:thin}.sb-add-bottom{display:flex;justify-content:flex-end}.sb-comparisons{margin-top:20px;border-top:1px solid #e5eaf2;padding-top:14px;color:#52647b;font-size:13px}.sb-comparisons summary{cursor:pointer;font-weight:600}
.sb-phases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sb-phase{margin:0;border:1px solid #ddd8e9;border-top:3px solid var(--crm-accent,#eb008b);border-radius:12px;min-width:0;padding:13px}.sb-phase+fieldset{border-top-color:#4b9a84}.sb-phase legend{padding:0 6px;color:#374e68;font-size:14px;font-weight:600}.sb-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sb-fields label{font-size:13px;color:#4b627b;min-width:0}.sb-preview{margin-top:12px;display:grid;gap:7px;font-size:13px}.sb-preview>span{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 0;color:#52677e}.sb-preview b{font-size:14px;color:#344c66;font-variant-numeric:tabular-nums}.sb-preview .sb-preview-ttc{border-top:1px solid #ead9e4;margin-top:3px;padding-top:9px}.sb-preview-ttc b{color:var(--crm-accent,#eb008b);font-size:17px}.sb-vat{max-width:200px}
@media(max-width:1000px){.sb-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.sb-heading{align-items:flex-start;flex-wrap:wrap}body main #content .crm-soiree-workspace .crm-soiree-compact-head{flex-wrap:wrap}.sb-table{min-width:900px}}
@media(max-width:650px){body main #content .crm-soiree-workspace{padding:12px!important}.sb-totals{gap:8px}.sb-totals article{padding:11px}.sb-totals strong{font-size:20px}.sb-meta{align-items:flex-start;flex-direction:column}.sb-phases,#editor .crm-soiree-dialog{grid-template-columns:1fr}.sb-fields{grid-template-columns:1fr 1fr}.sb-heading .crm-soiree-actions{flex-wrap:wrap}body main #content .crm-soiree-workspace .crm-soiree-compact-head{padding:10px!important}.sb-vat{max-width:none}.crm-soiree-scan{align-items:stretch}}
.sb-template-list{display:grid;gap:7px;max-height:48vh;overflow:auto}.sb-template-list label{display:flex;align-items:center;gap:12px;padding:9px;border:1px solid #e1dce9;border-radius:8px}.sb-template-list time{min-width:65px;font-variant-numeric:tabular-nums;color:var(--crm-accent,#eb008b);font-weight:600}
body main #content .crm-soiree-workspace .sb-table tbody th{background:transparent;letter-spacing:normal;font-weight:400}
body main #content .crm-soiree-workspace button.crm-budget-proof{display:inline-flex;min-height:24px;padding:3px 7px;margin-top:5px;background:#fffaf0;border:1px solid #e9d29e;color:#805616;font-size:11px!important;font-weight:400!important}
body main #content .crm-soiree-workspace button.crm-budget-proof>span{width:7px;height:7px;min-width:7px;background:#d79415;border-radius:50%;margin-right:1px}
body main #content .crm-soiree-workspace .sd-metric.featured{border-left-width:1px}
body main #content .crm-soiree-workspace .crm-soiree-livebar strong{font:600 13px Arial,Helvetica,sans-serif}
body main #content .crm-soiree-workspace [data-scp-export]{display:flex;gap:8px;align-items:center}
/* Colour identifies each domain without sacrificing contrast. */
body main #content .soiree-dashboard-board .sd-metric{border-top:4px solid var(--crm-accent,#eb008b)!important;background:linear-gradient(120deg,#fff 42%,#fff0f7)!important}
body main #content .soiree-dashboard-board .sd-metric.featured{background:linear-gradient(120deg,#fff2f8,#f9dceb)!important;border-color:#eeaaca!important;border-top-color:var(--crm-accent,#eb008b)!important}
body main #content .soiree-dashboard-board .sd-metric.green{border-top-color:#28a385!important;background:linear-gradient(120deg,#fff 32%,#e7f7ef)!important}
body main #content .soiree-dashboard-board .sd-metric.gold{border-top-color:#8b5bd2!important;background:linear-gradient(120deg,#fff 32%,#f2eaff)!important}
body main #content .soiree-dashboard-board .sd-metric.blue{border-top-color:#527fce!important;background:linear-gradient(120deg,#fff 32%,#eaf1ff)!important}
body main #content .soiree-dashboard-board .sd-metric.green>strong{color:#23856f!important}body main #content .soiree-dashboard-board .sd-metric.gold>strong{color:#7541ba!important}body main #content .soiree-dashboard-board .sd-metric.blue>strong{color:#396db8!important}
body main #content .soiree-dashboard-board .sd-card{border-top-width:4px!important;background:#fff!important}.soiree-dashboard-board .sd-overview>.sd-card:nth-child(1){border-top-color:var(--crm-accent,#eb008b)!important}.soiree-dashboard-board .sd-overview>.sd-card:nth-child(2){border-top-color:#5480cc!important}.soiree-dashboard-board .sd-overview>.sd-card:nth-child(3){border-top-color:#8b5bd2!important}
body main #content .soiree-dashboard-board .sd-overview>.sd-card:nth-child(1) .sd-card-head{background:#fff0f7;border-radius:9px;padding:8px}.soiree-dashboard-board .sd-overview>.sd-card:nth-child(2) .sd-card-head{background:#edf3ff;border-radius:9px;padding:8px}.soiree-dashboard-board .sd-overview>.sd-card:nth-child(3) .sd-card-head{background:#f3edfc;border-radius:9px;padding:8px}
.sb-totals article.pink{background:linear-gradient(110deg,#fff,#ffeaf4)}.sb-totals article.purple{background:linear-gradient(110deg,#fff,#f1eafd)}.sb-totals article.blue{background:linear-gradient(110deg,#fff,#eaf2ff)}.sb-totals article.green{background:linear-gradient(110deg,#fff,#e5f6ee)}.sb-totals article{border-top-width:4px}
body main #content .crm-soiree-workspace .ez-card{background:linear-gradient(140deg,#fff 65%,#fff2f8)}body main #content .crm-soiree-workspace .ez-card:nth-child(2){background:linear-gradient(140deg,#fff 65%,#edf8f3)}body main #content .crm-soiree-workspace .ez-card:nth-child(3){background:linear-gradient(140deg,#fff 65%,#eef3ff)}body main #content .crm-soiree-workspace .ez-card:nth-child(4){background:linear-gradient(140deg,#fff 65%,#f4edfc)}
body main #content .crm-soiree-workspace .crm-soiree-livebar{background:#f4f1f9;color:#4c5c73;border:1px solid #ded6e8;border-radius:10px;padding:10px 13px;font-size:13px;margin:12px 0}
body main #content .crm-soiree-workspace .crm-soiree-livebar strong{color:#68508b}body main #content .crm-soiree-workspace .crm-soiree-livebar strong.late{color:#ad2860}
body main #content .crm-soiree-workspace .op-roadbook>article{padding:14px;border:1px solid #dce3ed;border-left:3px solid var(--crm-accent,#eb008b);border-radius:11px;margin-bottom:10px;gap:16px;background:#fff;box-shadow:none;grid-template-columns:180px minmax(0,1fr) auto}
body main #content .crm-soiree-workspace .op-roadbook-time>strong{font-size:25px;line-height:1.3;letter-spacing:0;font-variant-numeric:tabular-nums}body main #content .crm-soiree-workspace .op-roadbook :is(small,summary){font-size:12px}
@media(max-width:800px){body main #content .crm-soiree-workspace .op-roadbook>article{grid-template-columns:135px minmax(0,1fr)}body main #content .crm-soiree-workspace .op-roadbook>article>.crm-soiree-actions{grid-column:1/-1;justify-content:flex-end}}

@media(max-width:1000px){body main #content .soiree-dashboard-board .sd-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

.sb-totals article small{display:block;margin-top:3px;font-size:11px;color:#66748b;font-weight:400}
.sb-providers{margin:14px 0 18px}.sb-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 14px}.sb-provider-grid article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:#f8f6fc;border:1px solid #e8e0f2;border-left:3px solid #9161d2;border-radius:8px;font-size:13px;min-width:0}.sb-provider-grid article>span{color:#374b64;overflow-wrap:anywhere}.sb-provider-grid article>div{display:flex;gap:10px;flex-shrink:0;align-items:center}.sb-provider-grid strong{color:var(--crm-accent,#eb008b);white-space:nowrap;font-size:14px;font-variant-numeric:tabular-nums}.sb-provider-grid article>div>span{font-size:11px;color:#66748b}.sb-provider-grid article>div>span strong{display:block}
@media(max-width:750px){.sb-provider-grid{grid-template-columns:1fr}}

.sb-provider-grid article{display:flex;flex-direction:column;align-items:stretch;gap:7px}.sb-provider-grid .sb-provider-main{display:flex;justify-content:space-between;gap:10px;align-items:center;min-width:0}.sb-provider-main>span{font-weight:600;color:#374b64;overflow-wrap:anywhere}.sb-provider-grid .sb-provider-amounts{display:flex;gap:12px;flex-shrink:0}.sb-provider-grid .sb-provider-payment{display:flex;justify-content:space-between;gap:10px;align-items:center}.sb-provider-grid article small{color:#66748b;font-size:11px}.sb-provider-grid .sb-provider-payment button{font-size:12px!important;padding:5px 8px!important;min-height:28px!important}.sb-provider-grid .sb-provider-payment button svg{width:14px!important;height:14px!important;min-width:14px!important}.sb-payment-status{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:#7541ba}.sb-payment-status:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}.sb-payment-status.paid{color:#168766}.sb-payment-status.partial{color:var(--crm-accent,#eb008b)}.sb-payment-status.unknown{color:#b43b5e}
.sb-payment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;background:#f7f3fc;border-radius:10px;padding:13px}.sb-payment-summary>span{font-size:12px;color:#536981}.sb-payment-summary strong{display:block;margin-top:5px;color:var(--crm-accent,#eb008b);font-size:19px;font-variant-numeric:tabular-nums}.sb-payment-rows{display:grid;gap:12px;max-height:44vh;overflow:auto}.sb-payment-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;border:1px solid #e7dfef;border-radius:10px;padding:12px}.sb-payment-row label{font-size:13px;color:#4b627b}.sb-payment-row .sb-payment-note{grid-column:1/-1}.sb-payment-row button{margin-bottom:1px}
@media(max-width:650px){.sb-payment-summary{gap:6px;padding:9px}.sb-payment-summary strong{font-size:16px}.sb-payment-row{grid-template-columns:1fr 1fr auto;padding:9px}}

/* Category subtotals remain with their own draggable detail rows. */
.sb-table .sb-category-band th{padding:11px 14px!important;background:#f5effb!important;border-left:4px solid var(--crm-accent,#eb008b);border-bottom:1px solid #e7d9ef;text-align:left!important;white-space:normal!important}
.sb-category-band th>div{display:flex;justify-content:space-between;align-items:center;gap:16px}
.sb-category-band th>div>span{font-size:14px;font-weight:700;color:#334861}
.sb-category-band th>div>strong{font-size:15px;font-weight:700;color:var(--crm-accent,#eb008b);font-variant-numeric:tabular-nums;white-space:nowrap}
.sb-category-band strong span{margin:0 7px;color:#8c739a;font-weight:400}
.sb-table tbody:nth-of-type(3n+2) .sb-category-band th{background:#eef4ff!important;border-left-color:#5489c5}
.sb-table tbody:nth-of-type(3n) .sb-category-band th{background:#eff9f4!important;border-left-color:#319779}
.sb-table tbody+tbody .sb-category-band th{border-top:10px solid #fff}

body main #content .crm-soiree-workspace .sb-row-actions{gap:6px}
body main #content .crm-soiree-workspace .sb-row-action{width:32px;min-width:32px;height:32px;min-height:32px;padding:5px;flex:none;border-radius:8px;color:#72539e;border:1px solid #dcd0eb;background:#fff}
body main #content .crm-soiree-workspace .sb-row-action>svg{width:20px;height:20px;min-width:20px;stroke-width:1.6}
body main #content .crm-soiree-workspace .sb-row-file{color:#416f9f;border-color:#cbd9e8}
body main #content .crm-soiree-workspace .sb-row-trash{color:#bd2c63;border-color:#edc9d7}
body main #content .crm-soiree-workspace .sb-row-action:hover{background:#faf4fc}

/* Align the column labels with the numeric columns. */
body main #content .crm-soiree-workspace .sb-table thead th:not(:first-child){text-align:center}
body main #content .budget-page .budget-table thead th:not(:first-child){text-align:center}
body main #content .crm-soiree-workspace .sb-table:has(>thead>tr>th:nth-child(8)) tbody tr:not(.sb-category-band)>td:is(:nth-child(2),:nth-child(5)),
body main #content .budget-page .budget-table:not(.budget-table-compare) tbody tr:not(.budget-section-row)>td:is(:nth-child(3),:nth-child(6)){text-align:center}
