.service-matrix-dialog{width:min(1240px,96vw);max-width:96vw;height:92dvh;max-height:92dvh;padding:0;margin:auto;border:1px solid #9cb6ab;border-radius:16px;overflow:hidden;color:#173b30;background:#f8fbf9}.service-matrix-dialog[open]{display:flex;flex-direction:column}.service-matrix-dialog::backdrop{background:#122d27b3;backdrop-filter:blur(2px)}.matrix-header{display:flex;justify-content:space-between;gap:16px;flex:none;padding:18px 22px;background:white;border-bottom:1px solid #cddfd5}.matrix-header h2{font-size:22px;margin:0 0 5px}.matrix-header p{font-size:13px;margin:0 0 5px;max-width:850px}.matrix-header small{font-size:12px}.matrix-header>button{align-self:flex-start;min-width:44px;min-height:44px;font-size:23px;padding:4px}.matrix-body{flex:1;min-height:0;overflow:auto;padding:8px 22px 20px;overscroll-behavior:contain}.matrix-section h3{font-size:15px;margin:15px 0 8px}.matrix-table-wrap{overflow:auto;border:1px solid #c9dcd1;border-radius:9px;background:white}.matrix-table-wrap table{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto;margin:0}.matrix-table-wrap th,.matrix-table-wrap td{padding:5px;border-right:1px solid #e1ebe5;border-bottom:1px solid #e1ebe5;text-align:center;min-width:106px}.matrix-table-wrap th:first-child{position:sticky;left:0;z-index:2;background:#edf5ef;min-width:180px;width:220px;max-width:220px;text-align:left;padding:10px;font-size:13px}.matrix-table-wrap thead th{background:#edf5ef;font-size:12px;white-space:normal}.matrix-table-wrap tbody th{font-weight:600}.matrix-choice{display:grid;grid-template-columns:auto 1fr;gap:4px 6px;align-items:center;min-height:58px;border:1px solid #d4e1d9;border-radius:7px;padding:8px;cursor:pointer;margin:0!important;text-align:left;font-size:12px;background:#fff}.matrix-choice+.matrix-choice{margin-top:5px!important}.matrix-choice input{appearance:auto;display:inline-block;width:18px;height:18px;min-width:18px;padding:0;margin:0;accent-color:#24644e}.matrix-choice small{grid-column:2;font-size:11px;line-height:1.25}.matrix-choice.is-selected{background:#e0f1e5;border-color:#24644e;box-shadow:inset 0 0 0 1px #24644e}.matrix-choice:focus-within{outline:3px solid #377abc;outline-offset:1px}.matrix-unavailable{opacity:.6;cursor:not-allowed}.matrix-missing{display:block;width:100%;min-height:58px;border:0;background:#f4f6f4;color:#76837c;padding:8px;font-size:16px}.matrix-missing small{display:block;font-size:10px}.matrix-detail-note{font-size:12px;line-height:1.5;color:#536d61}.matrix-footer{flex:none;background:#fff;border-top:1px solid #bdd4c8;padding:12px 22px}.matrix-footer-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.matrix-actions{display:flex;gap:8px}.matrix-actions button{min-height:44px;font-size:13px}.matrix-footer #matrixSelected{font-size:12px;line-height:1.4;max-height:48px;overflow:auto;margin-bottom:8px}.matrix-footer #matrixError{font-size:12px;margin-bottom:5px}.matrix-footer #matrixError:empty{display:none}#matrixTotals strong,#matrixTotals span{display:block}#matrixTotals strong{font-size:23px}#matrixTotals span{font-size:12px;margin-top:3px}.quick-services-button{width:100%;text-align:left;background:#e8f3ed;border:1px solid #6d9d83;color:#1b573e;padding:13px;margin:10px 0;font-weight:650}.quick-services-button small{display:block;font-weight:400;margin-top:3px}@media(max-width:700px){.service-matrix-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.matrix-header{padding:12px;gap:8px}.matrix-header h2{font-size:19px}.matrix-header p{font-size:12px}.matrix-header small{font-size:11px}.matrix-body{padding:0 10px 15px}.matrix-table-wrap th:first-child{min-width:125px;width:125px;max-width:125px;font-size:12px}.matrix-table-wrap th,.matrix-table-wrap td{min-width:100px}.matrix-choice{min-height:64px}.matrix-footer{padding:10px 12px max(10px,env(safe-area-inset-bottom))}.matrix-footer-row{display:block}.matrix-actions{margin-top:9px}.matrix-actions button{flex:1;font-size:13px;min-height:46px;padding:8px}.matrix-footer #matrixSelected{max-height:34px;font-size:11px}#matrixTotals{display:flex;gap:12px;align-items:baseline}#matrixTotals strong{font-size:22px}#matrixTotals span{font-size:11px}}
/* Complete live catalogue, grouped without blank/unconfigured cells or pagination. */
.matrix-payment{display:grid;grid-template-columns:repeat(2,minmax(0,180px)) 1fr;gap:6px 12px;align-items:end;margin:4px 0 8px}.matrix-payment label{display:grid;gap:2px;margin:0;font-size:12px}.matrix-payment input{width:100%;min-height:36px;font-size:16px}.matrix-payment p{margin:0;font-size:12px}.matrix-payment small{grid-column:1/-1;font-size:11px}.matrix-actions{flex-wrap:wrap}.matrix-actions #matrixPay{background:#18543d;color:#fff}
@media(max-width:760px){.matrix-payment{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}.matrix-payment p{grid-column:1/-1}.matrix-actions #matrixPay{flex-basis:100%}}
.service-matrix-dialog{width:min(1680px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
.matrix-header{padding:10px 16px;align-items:center;gap:10px}.matrix-header h2{font-size:20px;margin:0 0 3px}.matrix-header p{font-size:12px;margin:0}.matrix-header>button{min-height:36px;min-width:36px;font-size:23px;align-self:center}.matrix-fit-note{display:block;color:#8a5721;font-size:11px!important;margin-top:4px}
.matrix-body{padding:10px 16px;overflow:auto}.matrix-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;align-items:start}.matrix-section{min-width:0}.matrix-section h3{font-size:12px;margin:0 0 5px;color:#567565}.matrix-options-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.matrix-choice{grid-template-columns:18px minmax(0,1fr);gap:1px 5px;min-height:72px;padding:6px;font-size:12px;line-height:1.2;align-content:center}.matrix-choice+.matrix-choice{margin-top:0!important}.matrix-choice input{grid-column:1;grid-row:1/4;align-self:center}.matrix-choice strong{grid-column:2;grid-row:1;font-size:12px;font-weight:600;overflow-wrap:normal}.matrix-choice span{grid-column:2;grid-row:2;font-size:12px;color:#204d3c;font-variant-numeric:tabular-nums}.matrix-choice small{grid-column:2;grid-row:3;font-size:11px;color:#667d70}
.matrix-extras{margin-top:10px;border:1px solid #cadbce;background:#eff5ef;border-radius:8px;padding:7px 9px}.matrix-extras-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px}.matrix-extras-heading label{display:flex;align-items:center;gap:6px;margin:0;font-size:11px}.matrix-extras-heading select{max-width:300px;font-size:12px;padding:5px;min-height:30px}.matrix-extras>small{display:block;font-size:10px;margin-top:3px}#matrixExtrasOptions{display:flex;gap:10px;flex-wrap:wrap;margin-top:5px}.matrix-extra-choice{display:flex;align-items:center;gap:7px;margin:0;cursor:pointer;min-height:32px;font-size:12px}.matrix-extra-choice input{width:18px;height:18px;padding:0;margin:0;accent-color:#24644e}
.matrix-footer{padding:8px 16px}.matrix-footer #matrixSelected{font-size:10px;max-height:none;overflow:visible;margin-bottom:5px}.matrix-footer-row{gap:10px}.matrix-actions button{min-height:38px;font-size:12px;padding:7px 12px}#matrixTotals{display:flex;align-items:baseline;gap:12px}#matrixTotals strong{font-size:22px}#matrixTotals span{font-size:12px;margin:0}.matrix-footer #matrixError{padding:6px;margin:3px 0;font-size:11px}
@media(min-width:761px) and (max-width:1199px){.matrix-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.matrix-choice{min-height:64px}.matrix-header{padding:8px 12px}.matrix-body{padding:8px 12px}}
@media(max-width:760px){.service-matrix-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}.matrix-header{padding:10px 12px}.matrix-header h2{font-size:18px}.matrix-header p{font-size:11px}.matrix-header>button{min-height:44px;min-width:44px}.matrix-body{padding:10px 12px}.matrix-catalog{grid-template-columns:1fr;gap:14px}.matrix-section h3{font-size:13px}.matrix-options-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.matrix-choice{min-height:80px;padding:8px;font-size:13px}.matrix-choice strong,.matrix-choice span{font-size:13px}.matrix-choice small{font-size:12px}.matrix-choice input{width:20px;height:20px}.matrix-extras-heading label{width:100%}.matrix-extras-heading select{min-width:0;width:100%;font-size:16px;min-height:44px}.matrix-extra-choice{min-height:44px}.matrix-extras>small{font-size:11px}.matrix-footer{padding:8px 12px max(8px,env(safe-area-inset-bottom))}.matrix-footer-row{display:block}.matrix-actions{margin-top:7px}.matrix-actions button{min-height:44px;font-size:13px;flex:1}.matrix-footer #matrixSelected{font-size:10px}#matrixTotals strong{font-size:21px}#matrixTotals span{font-size:12px}}
/* Content-sized desktop window with a real outside-click gutter. */
@media(min-width:761px){
 .service-matrix-dialog{width:min(1360px,calc(100vw - 80px));max-width:calc(100vw - 80px);height:auto;max-height:calc(100dvh - 80px)}
 .matrix-body{flex:0 1 auto}.matrix-choice{min-height:60px;padding:5px;line-height:1.15}.matrix-choice strong,.matrix-choice span{font-size:12px}.matrix-choice small{font-size:11px}
 .matrix-extras{display:grid;grid-template-columns:auto 1fr;column-gap:15px;row-gap:3px;margin-top:8px;padding:6px 8px}.matrix-extras-heading{gap:8px}.matrix-extras-heading select{max-width:230px;padding:4px;min-height:30px}#matrixExtrasOptions{margin:0;gap:12px;align-items:center}.matrix-extra-choice{min-height:32px;font-size:11px}.matrix-extras>small{grid-column:1/-1;margin:0}
 .matrix-header{padding:8px 14px}.matrix-header h2{font-size:19px}.matrix-footer{padding:7px 14px}.matrix-footer #matrixSelected{font-size:10px}.matrix-actions button{min-height:36px}
}
@media(min-width:761px){.service-matrix-dialog{height:fit-content}}
/* Compact single-employee and optional-room staging; never a multi-order allocator. */
.matrix-resources{margin-bottom:8px;border-bottom:1px solid #cadbce;padding-bottom:6px;display:grid;grid-template-columns:1.3fr 1fr;gap:6px 12px;font-size:11px}
.matrix-resource-options{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.matrix-resource-options label{display:flex;align-items:center;gap:4px;min-height:32px;margin:0;padding:4px 6px;border:1px solid #cddfd5;border-radius:5px;background:white;cursor:pointer}.matrix-resource-options input{width:15px;height:15px;margin:0;padding:0;accent-color:#24644e}.matrix-resource-options span{font-size:11px;line-height:1.2}.matrix-resource-options small{display:block;font-size:9px;max-width:95px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.matrix-resource-options .is-selected{background:#e0f1e5;border-color:#24644e}.matrix-resources>small,.matrix-resources>p{grid-column:1/-1;margin:0;font-size:10px}.matrix-resources>p:empty{display:none}.matrix-resources>p{color:#8a5721}
@media(min-width:1200px){.matrix-choice{min-height:52px}.matrix-catalog{gap:6px 10px}.matrix-options-grid{gap:4px}.matrix-body{padding-top:6px;padding-bottom:6px}}
@media(max-width:760px){.matrix-resources{grid-template-columns:1fr}.matrix-resource-options label{min-height:44px;padding:6px}.matrix-resource-options span{font-size:13px}.matrix-resource-options small{font-size:10px}.matrix-resource-options input{width:18px;height:18px}}
@media(min-width:1200px){.matrix-resources{grid-template-columns:1fr 1fr}.matrix-resource-options{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}.matrix-resources>div:nth-child(2) .matrix-resource-options{grid-template-columns:repeat(7,minmax(0,1fr))}.matrix-resource-options label{min-width:0;min-height:36px;padding:3px;gap:3px}.matrix-resource-options input{min-height:0;width:13px;height:13px;min-width:13px}.matrix-resource-options span{min-width:0}.matrix-resource-options small{max-width:100%;font-size:9px}.matrix-resource-options label:has(input:disabled){opacity:.65}}
@media(min-width:1200px){.matrix-choice{grid-template-columns:16px minmax(0,1fr) auto;min-height:46px}.matrix-choice input{grid-row:1/3;min-height:0;width:16px;height:16px;min-width:16px}.matrix-choice strong{grid-column:2/4;grid-row:1}.matrix-choice span{grid-column:2;grid-row:2}.matrix-choice small{grid-column:3;grid-row:2;white-space:nowrap}.matrix-extras{margin-top:5px}.matrix-resource-options label{min-height:32px}}
.matrix-booking-fields{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;padding:10px;border:1px solid #c9c3db;border-radius:8px;background:#f8f6fc;grid-column:1/-1}
.matrix-booking-fields label{display:grid;gap:3px;font-size:14px}.matrix-booking-fields input,.matrix-booking-fields select{min-width:0;width:100%;font-size:14px}.matrix-booking-fields .matrix-time-intent{display:flex;align-items:center;grid-column:1/-1}.matrix-booking-fields input[type=checkbox]{width:auto}.matrix-booking-fields small{grid-column:1/-1;font-size:12px}
@media(max-width:650px){.matrix-booking-fields{grid-template-columns:repeat(2,minmax(110px,1fr));}}
