:root{color:#172033;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#eef2f5;font-family:Inter,Segoe UI,Arial,sans-serif}*{box-sizing:border-box}body{margin:0}button,a,input{font:inherit}.app-shell{grid-template-columns:280px 1fr;min-height:100vh;display:grid}.sidebar{background:#fff;border-right:1px solid #d8dee8;padding:24px 18px}.brand{align-items:center;gap:12px;margin-bottom:28px;display:flex}.brand-mark{color:#fff;background:#25324a;border-radius:8px;place-items:center;width:48px;height:48px;font-weight:800;display:grid}.brand strong,.brand small,.nav-item span,.nav-item small{display:block}.brand small{color:#667085;margin-top:2px}.nav-list{gap:8px;display:grid}.nav-item{color:#1f2937;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;padding:12px}.nav-item:hover{background:#f3f6f8;border-color:#dce3ea}.nav-item.active{background:#eef5f3;border-color:#b7d7cd}.nav-item span{font-weight:700}.nav-item small{color:#667085;margin-top:3px;line-height:1.35}.workspace{padding:28px}.topbar{justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:24px;display:flex}h1,h2,p{margin:0}h1{font-size:28px;line-height:1.2}.topbar p{color:#5f6b7a;margin-top:6px}.health-link{color:#fff;white-space:nowrap;background:#1f7a64;border-radius:8px;padding:10px 14px;font-weight:700;text-decoration:none}.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px;display:grid}.summary-grid article,.panel{background:#fff;border:1px solid #d8dee8;border-radius:8px}.summary-grid article{padding:18px}.summary-grid span{color:#667085;margin-bottom:8px;display:block}.summary-grid strong{font-size:18px}.status-banner{z-index:20;background:#fff;border:1px solid;border-radius:8px;gap:4px;width:min(460px,100vw - 48px);padding:14px 16px;line-height:1.4;display:grid;position:fixed;top:24px;right:24px;box-shadow:0 18px 45px #1720332e}.status-banner strong{font-size:14px}.status-banner span{color:#243041}.status-banner.success{background:#eef8f3;border-color:#9ac8b6}.status-banner.success strong{color:#17614f}.status-banner.error{background:#fff1f1;border-color:#e5a6a6}.status-banner.error strong{color:#a33a3a}.panel{padding:22px}.panel-header{justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;display:flex}.panel h2,.panel-header h2{margin:0;font-size:20px}.panel-subtitle{color:#667085;margin-top:5px;font-size:13px}.content-grid{grid-template-columns:minmax(280px,360px) minmax(0,1fr);align-items:start;gap:18px;display:grid}.sheets-grid{grid-template-columns:minmax(300px,380px) minmax(0,1fr)}.stacked-panels{gap:18px;display:grid}.record-form{gap:14px;display:grid}.record-form label{color:#344054;gap:7px;font-weight:700;display:grid}.record-form input,.record-form select,.search-input{color:#172033;background:#fff;border:1px solid #cfd7e2;border-radius:8px;width:100%;min-height:42px;padding:9px 11px}.record-form input:focus,.record-form select:focus,.search-input:focus{border-color:#1f7a64;outline:2px solid #b7d7cd}.primary-button{color:#fff;cursor:pointer;background:#1f7a64;border:0;border-radius:8px;min-height:44px;font-weight:800}.primary-button:disabled{cursor:wait;opacity:.65}.secondary-button{color:#17614f;cursor:pointer;background:#fff;border:1px solid #b7d7cd;border-radius:8px;min-height:38px;padding:8px 12px;font-weight:800}.secondary-button:hover{background:#eef8f3}.secondary-button:disabled{cursor:wait;opacity:.65}.icon-button{color:#243041;cursor:pointer;background:#fff;border:1px solid #d8dee8;border-radius:8px;min-height:32px;padding:6px 10px;font-size:13px;font-weight:800}.icon-button:hover{background:#f6f8fb}.icon-button.danger{color:#a33a3a;border-color:#e5a6a6}.icon-button.danger:hover{background:#fff1f1}.icon-button:disabled{cursor:wait;opacity:.65}.form-message,.empty-state{color:#5f6b7a;line-height:1.45}.records-panel{overflow:hidden}.records-header{align-items:center}.search-input{max-width:240px}.records-table{border:1px solid #e1e6ee;border-radius:8px;min-width:0;display:grid;overflow:hidden}.records-row{border-top:1px solid #e1e6ee;align-items:center;gap:12px;min-width:0;min-height:48px;padding:10px 12px;display:grid}.products-row{grid-template-columns:100px minmax(180px,1fr) 130px 130px 120px 100px minmax(230px,auto)}.materials-row{grid-template-columns:minmax(120px,160px) minmax(180px,1fr) 90px 110px minmax(320px,auto)}.materials-form-stack{gap:20px;display:grid}.material-price-form{border-top:1px solid #e1e6ee;gap:12px;padding-top:20px;display:grid}.supplies-row{grid-template-columns:minmax(190px,240px) minmax(220px,1fr) 90px 130px}.cost-row{grid-template-columns:minmax(180px,1fr) 130px 130px}.records-row:first-child{border-top:0}.records-row-head{color:#667085;background:#f6f8fb;font-size:13px;font-weight:800}.records-row span,.records-row strong{overflow-wrap:anywhere;word-break:break-word;min-width:0}.records-row small{color:#667085;margin-top:3px;font-size:12px;font-weight:700;display:block}.compact-button{min-height:32px;padding:6px 9px;font-size:13px}.products-toolbar,.row-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.products-toolbar{justify-content:flex-end}.checkbox-filter{color:#344054;white-space:nowrap;align-items:center;gap:7px;font-size:13px;font-weight:800;display:flex}.checkbox-filter input{accent-color:#1f7a64;width:16px;height:16px}.status-pill{color:#1f7a64;background:#eef5f3;border-radius:999px;place-items:center;min-height:28px;padding:4px 9px;font-size:13px;font-weight:800;display:inline-grid}.selected-product-card{background:#f4fbf8;border:1px solid #d8e8e3;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.selected-product-card span,.selected-product-card small{color:#667085;font-size:12px;font-weight:800;display:block}.selected-product-card strong{color:#172033;margin-top:4px;font-size:16px;display:block}.sheet-list{gap:14px;display:grid}.sheet-card{background:#fbfcfd;border:1px solid #e1e6ee;border-radius:8px;gap:14px;padding:16px;display:grid}.sheet-card-detail{background:#fff}.sheet-card header{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.sheet-card header strong,.sheet-card header span,.sheet-card header small{display:block}.sheet-card header span{color:#5f6b7a;margin-top:3px}.sheet-competence{color:#1f7a64;margin-top:6px;font-weight:800}.sheet-badges{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.sheet-detail-hero{grid-template-columns:minmax(280px,430px) minmax(280px,1fr);align-items:stretch;gap:14px;display:grid}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.product-photo{background:#fbfcfd;border:1px solid #e1e6ee;border-radius:8px;grid-template-rows:auto minmax(180px,1fr);gap:8px;min-height:230px;margin:0;padding:10px;display:grid}.product-photo figcaption{color:#344054;text-transform:uppercase;font-size:13px;font-weight:800}.product-photo img,.product-photo div{object-fit:contain;background:#fff;border:1px solid #edf1f6;border-radius:6px;width:100%;height:100%;min-height:180px}.product-photo div{color:#667085;place-items:center;font-weight:700;display:grid}.sheet-identity{background:#fbfcfd;border:1px solid #e1e6ee;border-radius:8px;padding:14px}.sheet-identity h3,.detail-table-block h3{text-transform:uppercase;margin:0 0 12px;font-size:16px}.sheet-identity dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;display:grid}.sheet-identity div{background:#fff;border:1px solid #e1e6ee;border-radius:8px;padding:9px 10px}.sheet-identity dt{color:#667085;text-transform:uppercase;font-size:12px;font-weight:800}.sheet-identity dd{margin:4px 0 0;font-weight:800}.sheet-metrics{background:#fff;border:1px solid #e1e6ee;border-radius:8px;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:12px;display:grid}.sheet-metrics span,.sheet-metrics strong{font-size:14px}.sheet-items{gap:8px;display:grid}.sheet-items div{background:#fff;border:1px solid #e1e6ee;border-radius:8px;grid-template-columns:minmax(0,1fr) 100px auto;align-items:center;gap:10px;padding:9px 10px;display:grid}.sheet-items span{color:#5f6b7a}.sheet-pending{background:#fff8e6;border:1px solid #e8c36a;border-radius:8px;gap:8px;padding:12px;display:grid}.sheet-pending strong{color:#8a5b00}.sheet-pending ul{color:#5f4b19;margin:0;padding-left:18px;line-height:1.45}.sheet-detail-grid{gap:14px;display:grid}.detail-table-block{gap:8px;display:grid}.detail-table{background:#fff;border:1px solid #e1e6ee;border-radius:8px;display:grid;overflow:hidden}.detail-table>div{border-top:1px solid #e1e6ee;align-items:center;gap:8px;min-height:42px;padding:8px 10px;display:grid}.detail-table>div:first-child{border-top:0}.detail-table-head{color:#667085;text-transform:uppercase;background:#f6f8fb;font-size:12px;font-weight:800}.material-detail-table>div,.supply-detail-table>div{grid-template-columns:58px minmax(240px,1fr) 90px 110px 110px}.operation-detail-table>div{grid-template-columns:58px minmax(240px,1fr) 110px 110px 80px 80px 90px}.editing-detail .material-detail-table>div,.editing-detail .supply-detail-table>div{grid-template-columns:58px minmax(220px,1fr) 90px 110px 110px 150px}.editing-detail .operation-detail-table>div{grid-template-columns:58px minmax(220px,1fr) 110px 110px 80px 80px 90px 150px}.detail-table span,.detail-table strong{overflow-wrap:anywhere;min-width:0}.detail-table input{border:1px solid #cfd7e2;border-radius:6px;width:100%;min-width:0;min-height:32px;padding:6px 8px}.inline-actions{flex-wrap:wrap;gap:6px;display:flex}.sheet-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.catalog-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.catalog-columns h3{margin:0 0 10px;font-size:16px}.catalog-pill{background:#fbfcfd;border:1px solid #e1e6ee;border-radius:8px;margin-bottom:8px;padding:10px 12px;font-weight:700;display:block}.two-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.panel-divider{background:#e1e6ee;height:1px;margin:4px 0}.active-sheet-editor{gap:18px}.editor-section{border-top:1px solid #e1e6ee;gap:12px;padding-top:16px;display:grid}.editor-section h3{color:#172033;margin:0;font-size:15px}.focused-sheet-toolbar{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.version-tabs{flex-wrap:wrap;gap:6px;display:flex}.version-tabs button{color:#344054;cursor:pointer;background:#fff;border:1px solid #d8dee8;border-radius:8px;min-height:38px;padding:7px 10px;font-weight:800}.version-tabs button.active{color:#17614f;background:#eef8f3;border-color:#1f7a64}.cost-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:16px;display:grid}.cost-summary article{background:#fbfcfd;border:1px solid #e1e6ee;border-radius:8px;padding:12px}.cost-summary span{color:#667085;margin-bottom:7px;font-size:13px;display:block}.cost-summary strong{font-size:16px}.import-panel{max-width:1180px}.import-summary{margin-bottom:16px}.import-list{gap:12px;display:grid}.import-toolbar{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.import-toolbar select{color:#172033;background:#fff;border:1px solid #cfd7e2;border-radius:8px;min-height:42px;padding:9px 11px}.import-upload-button{align-items:center;display:inline-flex}.import-upload-button input{display:none}.import-upload-button:has(input:disabled){cursor:wait;opacity:.65}.import-card{background:#fbfcfd;border:1px solid #e1e6ee;border-radius:8px;gap:12px;padding:14px;display:grid}.import-card header{justify-content:space-between;gap:12px;display:flex}.import-card header strong,.import-card header span,.import-card header small{display:block}.import-card header span,.import-card header small{color:#5f6b7a;margin-top:3px}.import-metrics{grid-template-columns:repeat(7,minmax(0,1fr))}.status-pill.warning{color:#8a5b00;background:#fff8e6}.status-pill.success{color:#17614f;background:#eef8f3}@media (width<=820px){.app-shell{grid-template-columns:1fr}.sidebar{border-bottom:1px solid #d8dee8;border-right:0}.summary-grid,.content-grid,.sheet-metrics,.sheet-items div,.sheet-detail-hero,.photo-grid,.sheet-identity dl,.detail-table>div,.catalog-columns,.cost-summary,.two-columns{grid-template-columns:1fr}.records-header{flex-direction:column;align-items:stretch}.search-input{max-width:none}.records-row{grid-template-columns:1fr;gap:6px}.records-row-head{display:none}.topbar{flex-direction:column}}@media print{:root,body{background:#fff}.sidebar,.topbar,.summary-grid,.stacked-panels,.records-header,.status-banner,.sheet-actions,.icon-button,.sheet-pending{display:none!important}.app-shell,.workspace,.content-grid,.sheets-grid,.records-panel,.sheet-list{background:#fff;border:0;min-height:auto;margin:0;padding:0;display:block}.panel,.sheet-card{box-shadow:none;background:#fff;border:0}.sheet-list .sheet-card{display:none}.sheet-list .sheet-card.print-target,.sheet-list .sheet-card:first-child{display:grid}.printing-selected .sheet-list .sheet-card:first-child{display:none}.printing-selected .sheet-list .sheet-card.print-target{display:grid}.sheet-card{break-inside:avoid;gap:10px;padding:0}.sheet-card header,.sheet-metrics,.sheet-items div{border-color:#111827}.sheet-card header{border:1px solid #111827;padding:10px}.sheet-metrics{border-radius:0;grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-items div{border-radius:0;grid-template-columns:minmax(0,1fr) 110px}.status-pill{color:#111827;background:#fff;border:1px solid #111827}}
