#inventory-item-panel-mounting .configuration-operation-editor{gap:8px;}
#inventory-item-panel-mounting .configuration-operation-editor .mounting-settings{display:grid;grid-template-columns:minmax(200px,420px) 100px;gap:8px 12px;margin:0;}
#inventory-item-panel-mounting .mounting-settings>div{min-width:0;}
.mounting-role-toolbar{display:grid;gap:6px;min-width:0;}
.mounting-role-toolbar>[data-mounting-selected-phase]{color:var(--ink-soft);font-size:11px;line-height:1.4;}
.mounting-role-buttons{display:flex;flex-wrap:wrap;gap:5px;}
.mounting-role-buttons>.btn{width:auto;min-height:27px;padding:3px 10px;}
.mounting-services-editor,.mounting-service-blocks{display:grid;gap:8px;min-width:0;}
#inventory-item-panel-mounting .mounting-services-editor{padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);box-shadow:none;}
#inventory-item-panel-mounting .mounting-services-editor>.inventory-item-box-title{margin:0;}
.mounting-service-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;}
#inventory-item-panel-mounting .mounting-service-tabs{display:flex;flex:0 1 auto;flex-wrap:nowrap;gap:5px;min-width:0;overflow-x:auto;margin:0;}
#inventory-item-panel-mounting .mounting-service-tabs>.btn{flex:none;min-width:0;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
:is(.mounting-service-navigation,.mounting-service-controls)>.btn{flex:none;width:auto;min-height:27px;padding:3px 10px;}
#inventory-item-panel-mounting .mounting-service-block[hidden]{display:none;}
#inventory-item-panel-mounting .mounting-service-block{margin:0;min-width:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;}
#inventory-item-panel-mounting .mounting-service-block .mounting-service-phases-heading>[data-action="mounting-remove-service"]{flex:none;width:24px;min-width:0;height:24px;min-height:0;padding:4px;margin:0;border:1px solid var(--line);background:var(--surface);color:var(--ink-soft);}
.mounting-phase-sections{display:grid;gap:8px;min-width:0;}
#inventory-item-panel-mounting .mounting-phase-section{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:0;padding:0;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;}
#inventory-item-panel-mounting .mounting-phase-section.is-selected{border-color:var(--accent);}
.mounting-phase-section-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;min-width:0;}
.mounting-phase-section-name{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;}
#inventory-item-panel-mounting .mounting-phase-section .configuration-operation-enabled{display:flex;align-items:center;gap:6px;margin:0;min-width:0;}
#inventory-item-panel-mounting .mounting-phase-section-title{margin:0;font-family:inherit;font-size:12.5px;font-weight:750;line-height:1.4;color:var(--ink);text-transform:none;letter-spacing:0;overflow-wrap:anywhere;}
#inventory-item-panel-mounting .mounting-phase-section-head :is(input[type="radio"],input[type="checkbox"]){flex:none;width:14px;height:14px;min-height:0;margin:0;accent-color:var(--accent);}
.mounting-phase-section-name>small{font-size:10px;line-height:1.4;font-weight:500;color:var(--ink-soft);}
.mounting-phase-summary{display:flex;flex-wrap:wrap;gap:12px;margin-left:auto;text-align:right;}
#inventory-item-panel-mounting .mounting-phase-summary :is(.configuration-operation-cost,.configuration-operation-price){display:grid;gap:1px;min-height:0;padding:0;background:transparent;white-space:nowrap;}
#inventory-item-panel-mounting .mounting-phase-summary small{font-size:9.5px;color:var(--ink-soft);}
#inventory-item-panel-mounting .mounting-phase-summary b{font-size:11px;color:var(--ink);}
#inventory-item-panel-mounting .mounting-phase-table-frame{display:block;min-width:0;max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:8px;box-shadow:none;}
#inventory-item-panel-mounting .mounting-phase-table{width:100%;min-width:864px;margin:0;border:0;border-collapse:collapse;table-layout:fixed;box-shadow:none;}
.mounting-phase-table .phase-role-col{width:220px;}
.mounting-phase-table .phase-people-col{width:70px;}
.mounting-phase-table .phase-hours-col{width:75px;}
.mounting-phase-table .phase-total-col{width:95px;}
.mounting-phase-table .phase-actions-col{width:34px;}
#inventory-item-panel-mounting .mounting-role-actions .icon-btn{width:22px;min-width:0;height:22px;min-height:0;margin:0;padding:3px;}
#inventory-item-panel-mounting .mounting-role-actions .icon-btn svg{width:14px;height:14px;}
#inventory-item-panel-mounting .mounting-phase-table :is(th,td){overflow:hidden;padding:5px 6px;border:0;border-bottom:1px solid var(--line);vertical-align:middle;font-size:11px;}
#inventory-item-panel-mounting .mounting-phase-table th{height:29px;background:var(--paper);color:var(--ink-soft);font-weight:750;white-space:nowrap;text-overflow:ellipsis;}
#inventory-item-panel-mounting .mounting-phase-table tbody tr:last-child td{border-bottom:0;}
#inventory-item-panel-mounting .mounting-phase-section.is-disabled .mounting-phase-section-head{opacity:.6;}
#inventory-item-panel-mounting .mounting-phase-table :is(input:not([type="hidden"]),select:not(.nova-select-native),.nova-select-trigger){width:100%;min-width:0;max-width:none;margin:0;}
#inventory-item-panel-mounting .mounting-phase-table .nova-select{width:100%;min-width:0;}
.mounting-role-total{font-weight:700;text-align:right;white-space:nowrap;text-overflow:ellipsis;}
#inventory-item-panel-mounting .mounting-phase-shared-fields{display:flex;align-items:flex-end;flex-wrap:wrap;gap:6px 12px;min-width:0;}
#inventory-item-panel-mounting .mounting-phase-notes{display:grid;flex:1 1 240px;gap:3px;min-width:0;max-width:560px;margin:0;font-size:10px;}
#inventory-item-panel-mounting .mounting-phase-shared-fields input{min-width:0;margin:0;}
.mounting-phase-equipment{display:flex;align-items:center;gap:6px;min-width:0;margin:0;font-size:10px;}
.mounting-phase-equipment>span{min-width:0;max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
#inventory-item-panel-mounting .mounting-phase-equipment>input{flex:0 0 65px;width:65px;}
dialog.mounting-service-dialog{width:380px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);}
.mounting-service-dialog::backdrop{background:rgba(16,24,39,.38);}
.mounting-service-dialog form{margin:0;}
.mounting-service-dialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;}
.mounting-service-dialog h2{margin:0;font-family:inherit;font-size:12.5px;font-weight:750;line-height:1.4;}
.mounting-service-dialog header p{margin:3px 0 0;color:var(--ink-soft);font-size:11px;overflow-wrap:anywhere;}
.mounting-service-dialog footer{display:flex;justify-content:flex-end;gap:6px;margin-top:14px;}
.mounting-service-dialog footer>.btn{width:auto;}
@media(max-width:760px){#inventory-item-panel-mounting .configuration-operation-editor .mounting-settings{grid-template-columns:minmax(0,1fr);}#inventory-item-panel-mounting .mounting-settings>div:last-child{max-width:110px;}}


dialog.mounting-service-dialog{width:460px;}
.mounting-service-search{display:grid;gap:4px;margin:12px 0 8px;font-size:11px;}
#inventory-mounting-service-dialog .mounting-service-search input{width:100%;min-width:0;max-width:none;height:30px;margin:0;font:inherit;}
.mounting-service-choices{display:grid;gap:4px;max-height:min(300px,45dvh);overflow:auto;}
.mounting-service-choice{display:flex;align-items:center;gap:9px;min-width:0;margin:0;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);cursor:pointer;}
.mounting-service-choice[hidden],.mounting-service-no-results[hidden]{display:none;}
.mounting-service-choice:has(input:checked){border-color:var(--accent);background:var(--accent-soft);}
#inventory-mounting-service-dialog .mounting-service-choice input{flex:none;width:14px;height:14px;margin:0;accent-color:var(--accent);}
.mounting-service-choice>span{display:grid;gap:2px;min-width:0;}
.mounting-service-choice :is(b,small){overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.mounting-service-choice b{font-size:12px;font-weight:700;}
.mounting-service-choice small,.mounting-service-no-results{font-size:11px;color:var(--ink-soft);}

.mounting-service-phases{display:grid;gap:8px;min-width:0;}
.mounting-service-phases[hidden]{display:none;}

#inventory-item-panel-mounting .mounting-services-editor :is(.mounting-service-tabs,.mounting-service-blocks,.mounting-services-note)[hidden]{display:none;}

#inventory-item-panel-mounting .mounting-phase-section-title>label{display:inline;margin:0;font:inherit;color:inherit;letter-spacing:inherit;text-transform:none;}

#inventory-item-panel-mounting .mounting-phase-section:last-child{border-bottom:0;}
.mounting-phase-section-head{cursor:pointer;min-height:42px;padding:4px 0;list-style:none;}
.mounting-phase-section-head::-webkit-details-marker{display:none;}
.mounting-phase-chevron{border:0;background:transparent;width:12px;height:16px;transform:rotate(-90deg);}
.mounting-phase-details[open] .mounting-phase-chevron{transform:none;}
.mounting-phase-content{display:grid;gap:7px;min-width:0;padding:4px 0 10px;}
.mounting-phase-section-name>[data-mounting-role-count]{color:var(--ink-faint);}
#inventory-item-panel-mounting .mounting-phase-details:not([open])>.mounting-phase-content{display:none;}
#inventory-item-panel-mounting :is(.mounting-phase-table-frame,tr)[hidden]{display:none;}
.mounting-phase-summary>.btn{width:auto;min-height:26px;padding:3px 8px;}
.mounting-phase-notes-box{flex:1 1 240px;max-width:560px;min-width:0;}
.mounting-phase-notes-box>summary,.mounting-phase-equipment-box>summary,.mounting-service-settings>summary{font-size:11px;color:var(--ink-soft);cursor:pointer;}
#inventory-item-panel-mounting .mounting-phase-notes-box>input{width:100%;margin-top:4px;}
.mounting-phase-equipment-box>label{display:flex;align-items:center;gap:6px;font-size:10px;margin-top:4px;}
#inventory-item-panel-mounting .mounting-phase-equipment-box input{width:65px;}
.mounting-service-settings .mounting-settings{padding-top:6px;}
.mounting-role-choices{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px;}
.mounting-role-choices>.btn{width:auto;}
@media(max-width:600px){.mounting-phase-summary{gap:8px;}.mounting-phase-section-head{gap:3px;}.mounting-phase-section-name{gap:4px;}.mounting-phase-section-name>small{font-size:9px;}}
.inventory-service-prices{min-width:0;}
.inventory-service-prices>summary{font-size:12px;font-weight:700;cursor:pointer;}
.inventory-service-pricing-block{display:grid;gap:6px;min-width:0;margin-top:8px;}
#inventoryItemForm .inventory-service-pricing-block h4{margin:0;font-family:inherit;font-size:12.5px;font-weight:750;line-height:1.4;letter-spacing:0;text-transform:none;}
.inventory-service-price-behavior{display:grid;gap:4px;max-width:340px;}
.inventory-service-price-table-frame{min-width:0;overflow:auto;border:1px solid var(--line);border-radius:8px;}
.inventory-service-price-table{width:100%;min-width:490px;margin:0;border:0;border-collapse:collapse;table-layout:fixed;}
.inventory-service-price-table :is(th,td){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.inventory-service-price-table th:first-child{width:48%;}
.inventory-service-price-table td>small{display:block;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:var(--ink-soft);}
.inventory-service-price-table :is(input,.nova-select-trigger){width:100%;min-width:0;height:28px;font-size:11px;}

#inventory-item-panel-mounting .mounting-phase-table{min-width:864px;}
.mounting-phase-table .phase-role-col{width:240px;}
.mounting-phase-table .phase-people-col,.mounting-phase-table .phase-hours-col{width:76px;}
.mounting-phase-table .phase-total-col{width:auto;}
#inventory-item-panel-mounting .mounting-phase-table th:nth-child(n+4){text-align:right;}
#inventory-item-panel-mounting .mounting-phase-summary [hidden],#inventory-item-panel-mounting [data-mounting-role-count][hidden]{display:none;}
.inventory-service-price-table input{max-width:140px;}

.mounting-role-help{margin:6px 0 0;font-size:10.5px;line-height:1.5;color:var(--ink-soft);}

.mounting-phase-table .phase-hourly-cost-col,.mounting-phase-table .phase-hourly-price-col{width:140px;}
.mounting-role-rate{text-align:right;white-space:nowrap;text-overflow:ellipsis;}
.mounting-phase-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px 8px;}
.mounting-phase-actions>.btn{width:auto;}

#inventory-item-panel-mounting .mounting-phase-section{--mounting-phase-indent:48px;}
#inventory-item-panel-mounting .mounting-phase-section-name{gap:10px;}
#inventory-item-panel-mounting .mounting-phase-section-name>.mounting-phase-chevron{width:14px;flex:0 0 14px;}
#inventory-item-panel-mounting .mounting-phase-content{padding-left:var(--mounting-phase-indent);}
#inventory-item-panel-mounting .mounting-service-metadata[hidden]{display:none;}
#inventory-item-panel-mounting .mounting-service-footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:0;padding:0;border:0;}

/* Values follow the article offer preview; labels follow standard table headings. */
#inventory-item-panel-mounting .mounting-services-editor{--mounting-value-font-size:12px;--mounting-label-font-size:10.5px;}
#inventory-item-panel-mounting .mounting-services-editor :is(.mounting-phase-table td,.mounting-phase-summary b,.configuration-operation-total b){font-size:var(--mounting-value-font-size);font-weight:650;}
#inventory-item-panel-mounting .mounting-services-editor :is(.mounting-phase-table th,.mounting-phase-summary small,.configuration-operation-total small){font-size:var(--mounting-label-font-size);font-weight:700;letter-spacing:.035em;text-transform:uppercase;}
#inventory-item-panel-mounting .mounting-services-editor :is(.mounting-phase-notes-box>summary,.mounting-phase-equipment-box>summary){font-size:var(--mounting-value-font-size);font-weight:650;}
#inventory-item-panel-mounting .mounting-services-editor [data-mounting-role-count]{font-size:var(--mounting-label-font-size);}

#inventory-item-panel-mounting .mounting-service-phases-heading{display:flex;align-items:center;gap:8px;min-width:0;}
#inventory-item-panel-mounting .mounting-service-phases-heading>.mounting-service-phases-title{min-width:0;margin:0;overflow-wrap:anywhere;}

.mounting-role-feedback{min-width:0;max-width:100%;padding:3px 7px;border-radius:5px;color:#42745b;background:color-mix(in srgb,currentColor 10%,var(--surface));font-size:11px;font-weight:650;line-height:1.4;overflow-wrap:anywhere;}
.mounting-role-feedback:empty{display:none;}
body.appearance-professional-dark .mounting-role-feedback{color:#67C98F;}


/* One integrated role bar for each service; the currently expanded phase is the destination. */
#inventory-item-panel-mounting .mounting-service-block{container-type:inline-size;container-name:mounting-service;}
#inventory-item-panel-mounting .mounting-role-toolbar{display:grid;grid-template-columns:minmax(180px,220px) minmax(0,1fr) 70px 96px max-content;grid-template-rows:auto minmax(var(--control-height),auto);gap:4px 10px;align-items:center;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);}
#inventory-item-panel-mounting .mounting-role-toolbar[hidden]{display:none;}
#inventory-item-panel-mounting .mounting-role-target{grid-column:1;grid-row:2;min-width:0;}
#inventory-item-panel-mounting .mounting-role-target h5{margin:0;font-family:inherit;font-size:12.5px;font-weight:750;line-height:1.4;}
#inventory-item-panel-mounting .mounting-role-target [data-role-target]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--ink-soft);line-height:1.4;}
#inventory-item-panel-mounting .mounting-role-toolbar .mounting-role-choices{grid-column:2;grid-row:2;min-width:0;flex-wrap:nowrap;overflow-x:auto;margin:0;padding:2px;}
#inventory-item-panel-mounting .mounting-role-toolbar .mounting-role-choices>.btn{flex:none;white-space:nowrap;}
#inventory-item-panel-mounting .mounting-role-toolbar [data-role-choice][aria-pressed="true"]{color:#fff;background:var(--accent);border-color:var(--accent);}
#inventory-item-panel-mounting .mounting-role-toolbar-fields{display:contents;}
#inventory-item-panel-mounting .mounting-role-toolbar-fields>label{display:grid;grid-template-rows:subgrid;grid-row:1 / span 2;align-items:center;gap:4px;min-width:0;margin:0;font-size:11px;}
#inventory-item-panel-mounting .mounting-role-toolbar-fields>label:first-child{grid-column:3;}
#inventory-item-panel-mounting .mounting-role-toolbar-fields>label:last-child{grid-column:4;}
#inventory-item-panel-mounting .mounting-role-toolbar-fields input{width:100%;min-width:0;}
#inventory-item-panel-mounting .mounting-role-toolbar [data-action="mounting-add-selected-roles"]{grid-column:5;grid-row:2;width:auto;white-space:nowrap;}
@container mounting-service (max-width:820px){
  #inventory-item-panel-mounting .mounting-role-toolbar{grid-template-columns:70px 96px minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:8px;}
  #inventory-item-panel-mounting .mounting-role-target{grid-column:1 / -1;grid-row:1;}
  #inventory-item-panel-mounting .mounting-role-toolbar .mounting-role-choices{grid-column:1 / -1;grid-row:2;}
  #inventory-item-panel-mounting .mounting-role-toolbar-fields>label{grid-row:3 / span 2;}
  #inventory-item-panel-mounting .mounting-role-toolbar-fields>label:first-child{grid-column:1;}
  #inventory-item-panel-mounting .mounting-role-toolbar-fields>label:last-child{grid-column:2;}
  #inventory-item-panel-mounting .mounting-role-toolbar [data-action="mounting-add-selected-roles"]{grid-column:3;grid-row:4;justify-self:end;}
}
@container mounting-service (max-width:330px){
  #inventory-item-panel-mounting .mounting-role-toolbar{grid-template-columns:70px 96px minmax(0,1fr);}
  #inventory-item-panel-mounting .mounting-role-toolbar [data-action="mounting-add-selected-roles"]{grid-column:1 / -1;grid-row:5;}
}

#inventory-item-panel-mounting .mounting-service-controls{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;}
#inventory-item-panel-mounting .mounting-services-grand-total{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-width:0;}
#inventory-item-panel-mounting .mounting-services-grand-total[hidden]{display:none;}
#inventory-item-panel-mounting .mounting-services-grand-total small{color:var(--ink-soft);font-size:11px;font-weight:650;white-space:nowrap;}
#inventory-item-panel-mounting .mounting-services-grand-total b{color:var(--accent);font-size:var(--mounting-value-font-size);font-weight:750;white-space:nowrap;}

/* Price of all mounting services; the add control remains below the service tabs. */
#inventory-item-panel-mounting .mounting-service-controls{flex-wrap:wrap;align-items:flex-start;gap:8px 12px;}
#inventory-item-panel-mounting .mounting-service-controls>[data-action="mounting-add-service"]{flex:none;width:26px;height:26px;min-height:26px;padding:5px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--accent);}
#inventory-item-panel-mounting .mounting-service-controls>[data-action="mounting-add-service"] svg{width:14px;height:14px;}
#inventory-item-panel-mounting .mounting-services-grand-total{min-height:26px;}
.mounting-services-customer-pricing{display:contents;}
.mounting-services-customer-total{min-height:26px;align-self:start;display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-width:0;}
.mounting-services-customer-total small{color:var(--ink-soft);font-size:11px;font-weight:650;}
.mounting-services-customer-total b{color:var(--accent);font-size:var(--mounting-value-font-size);font-weight:750;white-space:nowrap;}
.mounting-services-price-fields{display:flex;flex-wrap:wrap;align-items:end;gap:6px;min-width:0;}
.mounting-services-price-row{display:flex;flex:1 0 100%;flex-wrap:wrap;align-items:end;gap:6px 12px;min-width:0;max-width:100%;}
.mounting-services-price-row>.mounting-services-price-fields{flex:0 1 auto;max-width:100%;}
.mounting-services-price-fields label{display:grid;gap:3px;margin:0;min-width:0;}
.mounting-services-price-fields label>span{font-size:10px;color:var(--ink-soft);}
.mounting-services-price-mode{width:205px;max-width:100%;}
.mounting-services-price-value{width:112px;max-width:100%;}
.mounting-services-price-fields :is(input,select){width:100%;min-width:0;}
.mounting-services-price-note,.mounting-services-price-error{font-size:10px;color:var(--ink-soft);}
.mounting-services-price-row>.mounting-services-price-note{flex:1 1 220px;min-width:0;margin:0;padding-bottom:6px;white-space:normal;overflow:visible;overflow-wrap:anywhere;}
.mounting-services-price-error{color:var(--danger,#b42318);}
.mounting-services-customer-pricing [hidden]{display:none;}
@media(max-width:700px){.mounting-services-price-row>.mounting-services-price-fields{flex:1 1 205px;}.mounting-services-price-mode{flex:1 1 180px;}.mounting-services-price-value{flex:0 1 112px;}}
