/* Shared resource workspace surfaces retain application theme tokens. */
.resource-editor{padding:20px;overflow:visible}.resource-section-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.resource-section-header h3{margin:0 0 5px}.resource-section-header p{margin:0;color:var(--text-muted);font-size:12px;line-height:1.6}.resource-section-header>.btn{flex:none}.resource-plan-rows{display:grid;gap:12px}.resource-row,.resource-fact,.resource-choice{border:1px solid var(--border);border-radius:12px;background:var(--card);min-width:0}.resource-row{padding:16px}.resource-row-title{display:flex;align-items:center;gap:10px;margin-bottom:14px}.resource-row-title>div{flex:1;min-width:0}.resource-row-title small,.resource-choice small,.resource-issue-row small{display:block;color:var(--text-muted);font-size:11px;margin-top:4px}.resource-row-fields{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(150px,1fr) minmax(180px,1.4fr) minmax(120px,.9fr);gap:12px;align-items:start}.resource-row-fields .field>span,.resource-comment>span,.resource-form-grid .field>span,.resource-modal-body>.field>span{display:block;font-size:12px;color:var(--text-muted);margin-bottom:6px}.resource-row-fields .field{margin:0}.resource-row-total{display:grid;gap:6px;text-align:right;line-height:1.6}.resource-row-total>span{font-size:12px;color:var(--text-muted)}.resource-row-total>b{padding:8px 0;font-variant-numeric:tabular-nums}.resource-comment{margin:12px 0 0}.resource-plan-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;font-size:12px}.resource-plan-footer b{display:block;font-size:17px;text-align:right;margin-top:4px}.resource-empty{padding:28px 18px;text-align:center;border:1px dashed var(--border);border-radius:10px;color:var(--text-muted);font-size:13px}.resource-facts{border-top:1px solid var(--border);padding-top:22px;margin-top:10px}.resource-fact-grid{display:grid;gap:12px}.resource-fact{padding:16px}.resource-fact-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.resource-fact-metrics>span{font-size:11px;color:var(--text-muted)}.resource-fact-metrics strong{display:block;color:var(--text);font-size:13px;margin-top:5px;font-variant-numeric:tabular-nums}.resource-fact-actions{display:flex;gap:8px;flex-wrap:wrap}.resource-modal{width:min(860px,calc(100vw - 32px));max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden}.resource-modal-body{padding:20px;overflow-y:auto;min-height:0}.resource-modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--border);flex:none}.resource-picker-tabs,.resource-picker-filters{display:flex;gap:10px;align-items:center;margin-bottom:16px}.resource-picker-tabs>.btn{flex:1}.resource-picker-filters>input{flex:1;min-width:140px}.resource-picker-filters>select{width:190px}.resource-choice{margin:10px 0;overflow:hidden}.resource-choice-main{display:flex;width:100%;align-items:center;gap:14px;border:0;text-align:left;padding:16px;background:transparent;color:var(--text);cursor:pointer}.resource-choice-main:hover{background:var(--bg)}.resource-choice-main>span:first-child{flex:1;min-width:0;overflow-wrap:break-word}.resource-choice-main>span:nth-child(2){text-align:right;flex:none}.resource-choice details{padding:0 16px 12px}.resource-choice summary{color:var(--text-muted);font-size:12px;cursor:pointer}.resource-lots>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;padding:10px 0;border-bottom:1px solid var(--border);font-size:12px}.resource-lots small{font-size:10px;overflow-wrap:anywhere}.resource-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.resource-error{color:var(--danger,#e11d48);padding:10px 0;font-size:13px;line-height:1.6}.resource-issue-row{display:grid;grid-template-columns:20px minmax(0,1fr) 120px;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border)}.resource-expense-line{display:grid;grid-template-columns:minmax(0,1fr) 170px;align-items:center;gap:14px;margin:12px 0}.resource-modal input:not([type=checkbox]),.resource-modal select{min-height:38px;width:100%;min-width:0}.resource-modal input[type=checkbox]{width:18px;height:18px;accent-color:var(--primary,#ef0017)}
.project-nav-groups{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:8px}.project-nav-group{display:flex;justify-content:center;align-items:center;gap:6px;padding:11px 8px;border:1px solid var(--border);border-radius:9px;background:var(--card);color:var(--text-muted);font:inherit;font-size:12px;font-weight:700;cursor:pointer}.project-nav-group.active{background:var(--bg);color:var(--text);border-color:var(--primary,#ef0017)}.project-nav-group .material-icons-round{font-size:17px}.project-tabs.resource-project-tabs{display:flex!important;flex-wrap:wrap!important;gap:6px;padding:8px;margin:0 0 20px}.resource-project-tabs .project-tab-btn{flex:1;min-width:130px;border:1px solid var(--border);border-radius:7px;justify-content:center}.resource-project-tabs .project-tab-btn[hidden]{display:none!important}.project-closure-check.warning{border-color:var(--border);background:var(--bg)}.project-closure-check.warning .material-icons-round{color:#c27803}.resource-violations{padding:15px 18px;border:1px solid #c2780360;background:#c278030c;border-radius:12px;margin:14px 0;line-height:1.6}.resource-violations p{margin:6px 0;white-space:pre-wrap}.resource-violations small{display:block;color:var(--text-muted)}.resource-control-badge{display:inline-flex;gap:6px;align-items:center;padding:5px 9px;border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:8px;cursor:pointer;white-space:nowrap;font:inherit;font-size:11px}.resource-control-badge .material-icons-round{font-size:15px}.resource-control-badge.warn{border-color:#c2780360;color:#b06c00}
@media(max-width:1000px){.resource-row-fields{grid-template-columns:1fr 1fr}.resource-fact-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-row-total{text-align:left}.project-nav-group{font-size:11px;padding:10px 5px;gap:4px}}
@media(max-width:600px){.resource-editor{padding:14px}.resource-section-header{align-items:flex-start;flex-direction:column}.resource-section-header>.btn{width:100%}.resource-row{padding:12px}.resource-row-fields{gap:10px}.resource-plan-footer{align-items:stretch;flex-direction:column}.resource-plan-footer b{text-align:left}.resource-modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.resource-modal-body{padding:14px}.resource-picker-filters{flex-wrap:wrap}.resource-picker-filters>input{flex-basis:100%}.resource-picker-filters>select{flex:1;width:auto}.resource-choice-main{gap:10px;padding:13px}.resource-choice-main>span:nth-child(2){font-size:11px}.resource-form-grid{grid-template-columns:1fr}.resource-issue-row{grid-template-columns:20px minmax(0,1fr) 85px;gap:8px}.resource-expense-line{grid-template-columns:1fr 120px}.project-nav-groups{grid-template-columns:repeat(3,minmax(0,1fr))}.resource-project-tabs .project-tab-btn{min-width:110px;font-size:11px}.resource-lots>div{grid-template-columns:minmax(0,1fr) auto}.resource-lots>div>span:last-child{grid-column:1/-1;text-align:right}}

.resource-section-header{height:auto;background:transparent;border:0;padding:0;flex-shrink:0}.resource-row[hidden],.resource-form-grid [hidden],.resource-empty[hidden]{display:none!important}

/* Equal label tracks keep paired inputs aligned, including multiline captions. */
.resource-row-fields>.field{display:grid;grid-template-rows:minmax(34px,auto) 40px;gap:4px;align-content:start;min-width:0}.resource-row-fields>.field>span{margin:0;line-height:1.4;align-self:end}.resource-row-fields>.field>input,.resource-row-fields>.field>select{height:40px;min-width:0;width:100%;margin:0}.resource-row-fields .resource-row-total{padding-top:0}.resource-row-fields .resource-row-total>span{min-height:34px;display:flex;align-items:end}.resource-section-header{position:static;box-shadow:none;backdrop-filter:none}
/* Dedicated specification permission: same controls and spacing in either theme. */
.specification-save-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid var(--border)}
.specification-save-bar .hint{flex:1 1 240px;margin:0}
.specification-save-bar .resource-error{flex-basis:100%}
.specification-project-summary{padding:4px 4px 16px;overflow-wrap:anywhere}
@media(max-width:600px){.specification-save-bar>.btn{width:100%;white-space:normal}.specification-save-bar{gap:10px}}
.resource-row-fields{align-items:end!important}
.resource-row-fields>.field{align-self:end!important}
@media(max-width:600px){
  .resource-row-fields>.field:has([data-resource-contract]){grid-column:1/-1}
  .resource-row-fields>.resource-row-total{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}
  .resource-row-fields>.resource-row-total>b{padding:0}
  .resource-editor{padding:16px}
}

/* 151: compact editor and batch catalog selection. */
.resource-row{padding:12px}.resource-plan-rows{gap:8px}.resource-row-title{margin-bottom:9px;gap:8px}.resource-row-title>b,.resource-row-title>div{overflow-wrap:anywhere}.resource-row-title>.btn-act{flex:none}.resource-comment{margin-top:8px}.resource-row-fields>.field{grid-template-rows:minmax(24px,auto) 38px}.resource-row-fields>.field>input,.resource-row-fields>.field>select{height:38px}.resource-row-fields .resource-row-total>span{min-height:24px}.resource-large .resource-row{content-visibility:auto;contain-intrinsic-size:auto 190px}.resource-facts-details{margin-top:16px;border-top:1px solid var(--border)}.resource-facts-details>summary{padding:16px 0;cursor:pointer;font-size:13px;font-weight:700}.resource-facts-details .resource-facts{border:0;margin:0;padding:0}.resource-choice-line{display:flex;align-items:center;gap:10px;padding:4px 12px}.resource-choice-line>.resource-choice-main{padding:10px 0;flex:1;min-width:0}.resource-choice-line>input[type=checkbox]{flex:none}.resource-choice.selected{border-color:var(--primary,#ef0017);box-shadow:inset 3px 0 var(--primary,#ef0017)}.resource-pick-qty{width:74px;flex:none;font-size:11px;color:var(--text-muted)}.resource-pick-qty>span{display:block;margin-bottom:4px}.resource-pick-qty input{height:36px!important;min-height:36px!important;text-align:right}.resource-modal-footer>[data-resource-selection-count]{margin-right:auto;align-self:center;font-size:12px;color:var(--text-muted)}.resource-modal-footer[hidden]{display:none!important}.resource-bulk-options{display:flex;align-items:end;gap:16px;margin-bottom:12px}.resource-bulk-options>.hint{flex:1;margin:0;font-size:12px}.resource-bulk-options>.field{flex:1;margin:0;font-size:12px;min-width:0}.resource-bulk-options>.field>span{display:block;margin-bottom:6px;color:var(--text-muted)}.resource-picker-more{display:block;margin:14px auto}.resource-catalog-access{font-size:11px;line-height:1.5;color:var(--text-muted);max-width:180px}.resource-picker-filters{flex-wrap:wrap}.resource-picker-filters>.icon{width:38px;flex:none}.resource-choice details{padding-bottom:8px}.resource-choice-main small{overflow-wrap:anywhere}
@media(max-width:600px){.resource-row-title{flex-wrap:wrap}.resource-row-title>div{flex-basis:calc(100% - 36px)}.resource-row-title>.btn-act:first-of-type{margin-left:auto}.resource-choice-line{padding:6px 9px;gap:7px;flex-wrap:wrap}.resource-choice-line>.resource-choice-main{gap:6px}.resource-choice-main>span:nth-child(2){max-width:95px}.resource-pick-qty{margin-left:25px;width:calc(100% - 25px);display:flex;align-items:center;gap:10px}.resource-pick-qty>span{margin:0}.resource-pick-qty input{max-width:100px;margin-left:auto}.resource-bulk-options{display:block}.resource-bulk-options>.field{margin-top:10px}.resource-modal-footer{flex-wrap:wrap;padding:12px}.resource-modal-footer>[data-resource-selection-count]{flex-basis:100%}.resource-modal-footer>.btn{flex:1;white-space:normal}.resource-catalog-access{max-width:none;flex-basis:100%}}

.operation-register-vat{display:block;font-size:11px;font-weight:400;color:var(--muted);white-space:nowrap}
