.cost-note{padding:14px 18px;border:1px solid #eadcc6;border-radius:12px;background:#fffaf2;color:#68583f;font-size:12px;line-height:1.7;margin:16px 0}.cost-note[hidden]{display:none}.estimate-modal{width:min(1260px,96vw);max-width:1260px}.estimate-editor{font-size:13px}.estimate-editor h3{font-size:15px;color:var(--navy);margin:0 0 16px}.estimate-section{border:1px solid var(--border);border-radius:14px;padding:20px;margin-top:18px;background:white}.estimate-source-picker{display:grid;grid-template-columns:170px minmax(180px,1fr) 200px auto;gap:12px;align-items:end}.estimate-source-picker .btn,.estimate-charge-picker .btn{min-height:42px;white-space:nowrap;margin-bottom:14px}.estimate-table-wrap{overflow-x:auto;margin-top:16px;border:1px solid var(--border);border-radius:10px}.estimate-table{width:100%;border-collapse:collapse;min-width:980px}.estimate-table th{text-align:left;background:#f4f6fa;color:var(--muted);padding:12px 10px;font-size:11px;white-space:nowrap}.estimate-table td{padding:12px 10px;border-top:1px solid var(--border);vertical-align:middle}.estimate-table td:first-child{min-width:190px;max-width:300px;overflow-wrap:anywhere}.estimate-table input,.estimate-table select{margin:0;min-width:70px;width:100%;font-size:12px;padding:9px}.estimate-table input[type=number],.estimate-table input[data-number-input]{text-align:right;min-width:110px}.estimate-table small,.estimate-charge small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.estimate-table tfoot{font-weight:700;background:#f4f6fa}.estimate-table .finance-number{white-space:nowrap}.estimate-charge-picker{display:flex;gap:12px;align-items:start}.estimate-charge-picker select{max-width:430px}.estimate-charge{display:grid;grid-template-columns:minmax(160px,1fr) 155px 140px minmax(200px,1.2fr) 34px;gap:12px;align-items:center;padding:16px 0;border-top:1px solid var(--border)}.estimate-charge label{margin-bottom:0;font-size:11px}.estimate-charge input,.estimate-charge select{margin-bottom:0}.estimate-bottom{display:grid;grid-template-columns:1fr 1.2fr;gap:20px;align-items:start}.estimate-summary-row{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid var(--border);align-items:center}.estimate-summary-row span{overflow-wrap:anywhere}.estimate-summary-row strong{white-space:nowrap;font-variant-numeric:tabular-nums}.estimate-summary-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.estimate-summary-row.subtotal{font-weight:700;background:#f4f6fa;padding:14px 10px;margin:0 -10px}.estimate-summary-row.grand-total{background:var(--navy);color:white;border-radius:10px;border:0;padding:18px 14px;margin:16px -10px 0;font-size:15px}.estimate-modal .modal-actions{position:sticky;bottom:0;background:white;border-top:1px solid var(--border);z-index:2}.estimate-modal input:invalid:focus{border-color:var(--red)}.estimate-editor .form-error{color:var(--red)}
@media(max-width:1000px){.estimate-source-picker{grid-template-columns:1fr 1fr}.estimate-charge{grid-template-columns:1fr 1fr}.estimate-charge>div{grid-column:1 / -1}.estimate-charge>.icon-btn{justify-self:end}.estimate-bottom{grid-template-columns:1fr}.estimate-section{padding:16px}}
@media(max-width:600px){.estimate-modal{width:100%;max-width:100%;max-height:100dvh;border-radius:0}.estimate-source-picker{grid-template-columns:1fr}.estimate-source-picker .btn{width:100%}.estimate-charge-picker{flex-direction:column;gap:0}.estimate-charge-picker select,.estimate-charge-picker .btn{max-width:none;width:100%}.estimate-charge{grid-template-columns:1fr}.estimate-charge label{min-width:0}.estimate-summary-row{font-size:11px}.estimate-summary-row.grand-total{font-size:13px}.estimate-section{padding:12px}.estimate-table-wrap{margin-right:-4px;margin-left:-4px}}

.estimate-source-picker [hidden]{display:none!important}.estimate-table input[data-line-field="name"]{min-width:190px}
.cost-nav{display:grid;gap:10px;margin:0 0 22px}.cost-nav .finance-tabs{margin:0}.finance-tabs button[aria-pressed=true]{background:var(--navy);color:#fff;box-shadow:0 3px 9px #102d4f20}.cost-parts{display:flex;flex-wrap:wrap;gap:8px}.cost-parts button{border:1px solid var(--border);background:#fff;color:var(--ink);font:inherit;font-size:13px;font-weight:600;border-radius:999px;padding:8px 15px;cursor:pointer}.cost-parts button[aria-pressed=true]{border-color:var(--orange);background:var(--orange-pale);color:#9a4510}@media(max-width:760px){.cost-steps{display:grid;grid-template-columns:1fr 1fr}.cost-steps button{white-space:normal}.cost-parts button{flex:1 1 auto}}
.cost-dashboard { margin: 20px 0; }
.cost-dashboard-controls { display:flex; flex-wrap:wrap; gap:16px; margin-bottom:20px; }
.cost-dashboard-controls label { flex:1; min-width:180px; }
.cost-chart { width:100%; max-height:340px; margin-top:16px; font:12px sans-serif; }
.cost-chart-key { display:flex; gap:24px; justify-content:center; }
.cost-risk { padding:12px 16px; border-left:4px solid #059669; background:#ecfdf5; }
.cost-risk.warning { border-color:#b45309; background:#fffbeb; }
.cost-risk.danger { border-color:#dc2626; background:#fef2f2; }
.cost-dashboard-table { overflow-x:auto; margin-top:16px; }
.cost-dashboard-table td { white-space:nowrap; }
@media(max-width:600px) { .cost-dashboard-controls { display:block; } .cost-dashboard .progress-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .cost-dashboard .progress-stat b { font-size:17px; overflow-wrap:anywhere; } }
/* Зардлын удирдлага → Дашбоард (5.77.0) */
.cost-overview{margin-top:18px}.co-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px 20px;margin-bottom:16px}.co-controls label{min-width:220px;margin:0}.co-project b{display:block;font-size:15px;color:var(--navy)}
.co-views{display:flex;flex-wrap:wrap;gap:6px;flex:1;justify-content:flex-end}.co-views button{white-space:nowrap;border:1px solid var(--border);background:#fff;border-radius:999px;padding:8px 14px;font:inherit;font-size:12px;font-weight:600;color:var(--ink);cursor:pointer}.co-views button[aria-selected="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.co-status{padding:10px 14px;border-radius:10px;background:var(--blue-bg);color:var(--navy);font-size:12px;margin:0 0 14px}
.co-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-bottom:16px}.co-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px 16px;min-width:0;border-top:3px solid var(--border)}.co-card span{display:block;font-size:11px;color:var(--muted);font-weight:600}.co-card b{display:block;font-size:19px;color:var(--navy);margin:6px 0 4px;overflow-wrap:anywhere}.co-card small{display:block;font-size:11px;color:var(--muted);line-height:1.5}.co-card.good{border-top-color:var(--green)}.co-card.bad{border-top-color:var(--red)}.co-card.bad b{color:var(--red)}
.co-evm .co-card span{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px;color:var(--ink)}
.co-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;margin-bottom:16px}.co-panel{margin-bottom:16px}
.co-ladder{display:grid;gap:12px}.co-ladder-row{display:grid;grid-template-columns:130px minmax(0,1fr) 150px;gap:12px;align-items:center;font-size:12px}.co-ladder-row b{text-align:right;color:var(--navy)}
.co-bar{display:flex;height:16px;border-radius:8px;background:#eef2f6;overflow:hidden}.co-share{height:22px;margin-bottom:10px}
.co-seg{display:inline-block;height:100%}.co-seg.budget{background:var(--navy)}.co-seg.cash{background:var(--green)}.co-seg.barter{background:var(--orange)}.co-seg.actual{background:var(--red)}.co-seg.committed{background:repeating-linear-gradient(45deg,#e7a64a 0 6px,#f3c98a 6px 12px)}.co-seg.paid{background:var(--blue)}
.co-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:11px;color:var(--muted);margin:10px 0 0}.co-legend span{display:inline-flex;align-items:center;gap:6px}.co-legend i{display:inline-block;width:12px;height:12px;border-radius:3px}
.co-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.co-chip{display:inline-flex;flex-direction:column;padding:8px 12px;border-radius:10px;background:#f4f6fa;font-weight:700;color:var(--navy);font-size:14px;min-width:84px}.co-chip small{font-size:10px;color:var(--muted);font-weight:600}.co-chip.good{background:var(--green-bg)}.co-chip.bad{background:var(--red-bg);color:var(--red)}
.cost-risk.info{border-color:var(--blue);background:var(--blue-bg)}
.co-gauge{display:grid;grid-template-columns:150px minmax(0,1fr) 60px;gap:12px;align-items:center;margin-bottom:12px;font-size:12px}.co-gauge b{text-align:right}.co-gauge-track{position:relative;height:10px;border-radius:5px;background:linear-gradient(90deg,#fde2e1 0 45%,#fff3d6 45% 50%,#e3f4ec 50%)}.co-gauge-track em{position:absolute;left:50%;top:-4px;bottom:-4px;width:2px;background:var(--navy)}.co-gauge-track i{position:absolute;top:-3px;width:16px;height:16px;margin-left:-8px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 3px #0003;background:var(--green)}.co-gauge-track i.warn{background:#e7a64a}.co-gauge-track i.bad{background:var(--red)}.co-gauge-track i.none{display:none}
.co-mini{display:inline-block;width:70px;height:8px;border-radius:4px;background:#eef2f6;overflow:hidden;vertical-align:middle;margin-right:8px}.co-mini i{display:block;height:100%;background:var(--green)}.co-mini i.bad{background:var(--red)}
.co-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.co-step{border-top:4px solid var(--border)}.co-step.done{border-top-color:var(--green)}.co-step.partial{border-top-color:var(--orange)}.co-step.todo{border-top-color:var(--red)}.co-step .panel-body{padding-top:16px}.co-step h3{font-size:15px;color:var(--navy);margin:4px 0 8px}.co-output{font-size:12px;color:var(--muted);margin:10px 0}.co-step ul{list-style:none;padding:0;margin:0 0 12px;font-size:12px;display:grid;gap:6px}.co-step li{display:flex;gap:8px}.co-step li span{font-weight:700}.co-step li.ok span{color:var(--green)}.co-step li.no{color:var(--muted)}
@media(max-width:1100px){.co-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.co-grid{grid-template-columns:1fr}}
@media(max-width:600px){.co-controls{display:block}.co-views{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;margin:12px -16px 0;padding:0 16px 4px;scrollbar-width:none}.co-views button{padding:7px 12px;flex:0 0 auto}.co-controls label{min-width:0;width:100%}.co-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.co-card{padding:11px 12px}.co-card b{font-size:15px}.co-ladder-row{grid-template-columns:1fr auto;gap:4px 10px}.co-ladder-row .co-bar{grid-column:1/-1;grid-row:2}.co-gauge{grid-template-columns:1fr 50px}.co-gauge-track{grid-column:1/-1;grid-row:2}.co-steps{grid-template-columns:1fr}}
/* Төсвийн тооцоо: НӨАТ-тай үнэ, санхүүжилтийн хувь, файлаас таних (5.78.0) */
.estimate-vat-included{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:11px;color:var(--muted);white-space:nowrap}.estimate-vat-included input{width:auto;min-width:0;margin:0}
.estimate-table td small,.estimate-table tfoot small{display:block;color:var(--muted);font-size:11px;margin-top:4px;font-weight:400}
.estimate-summary-row.note span,.estimate-summary-row.note strong{color:var(--muted);font-size:12px;font-weight:500}
.estimate-financing-summary{margin-top:12px;padding-top:10px;border-top:1px dashed var(--border)}.estimate-financing-summary>b{display:block;font-size:12px;color:var(--navy);margin-bottom:4px}
.estimate-financing-amounts{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--ink);margin:4px 0 0}
.estimate-import{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-bottom:12px}.estimate-import .form-hint{margin:0;flex:1;min-width:220px}.estimate-import-pick{cursor:pointer}
.estimate-import-preview{border:1px solid #cfe3d9;background:#f6fbf8;border-radius:12px;padding:14px 16px;margin-bottom:14px}.estimate-import-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;margin-bottom:8px}.estimate-import-head span{color:var(--green);font-weight:600;font-size:12px}
.estimate-import-facts{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12px;margin-bottom:8px}.estimate-import-facts .ok{color:var(--green);font-weight:600}.estimate-import-facts .bad{color:var(--red);font-weight:600}
.estimate-import-groups{margin:4px 0 8px;padding-left:18px;font-size:12px;columns:2;column-gap:24px}
@media(max-width:700px){.estimate-import-groups{columns:1}}
.estimate-bottom:has(.estimate-financing)>.estimate-section:last-child{grid-column:2;grid-row:1 / span 2}.estimate-bottom>.estimate-financing{grid-column:1}
@media(max-width:1000px){.estimate-bottom:has(.estimate-financing)>.estimate-section:last-child,.estimate-bottom>.estimate-financing{grid-column:auto;grid-row:auto}}
/* Дашбоардын схемүүд (5.79.0) */
.co-figure{margin:0;display:grid;gap:10px}.co-figure figcaption{font-size:12px;color:var(--muted);line-height:1.6;max-width:90ch}
.co-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.co-scroll svg{display:block;width:100%;min-width:760px;height:auto}
.co-dg text{font-family:inherit;fill:var(--ink)}.co-dg .title{font-size:14px;font-weight:700;fill:var(--navy)}.co-dg .tag{font-size:10.5px;font-weight:600;letter-spacing:.04em;fill:var(--muted)}.co-dg .small{font-size:11.5px;fill:var(--muted)}.co-dg .lbl{font-size:11.5px;font-weight:600}
.co-dg .box{fill:#fff;stroke:var(--border);stroke-width:1.4}.co-dg .boxsoft{fill:#f4f6fa;stroke:var(--border);stroke-width:1.2}.co-dg .key{fill:var(--blue-bg);stroke:var(--navy);stroke-width:1.6}
.co-dg .flow{fill:none;stroke:var(--navy);stroke-width:1.8}.co-dg .cash{fill:none;stroke:var(--green);stroke-width:2.4}.co-dg .barter{fill:none;stroke:var(--orange);stroke-width:2.4}.co-dg .retain{fill:none;stroke:#b98a1e;stroke-width:2.2;stroke-dasharray:7 5}.co-dg .back{fill:none;stroke:var(--muted);stroke-width:1.6;stroke-dasharray:5 5}
.co-dg .hcash{fill:var(--green)}.co-dg .hbarter{fill:var(--orange)}.co-dg .hretain{fill:#b98a1e}.co-dg .hnavy{fill:var(--navy)}.co-dg .hmuted{fill:var(--muted)}
.co-dg .tcash{fill:var(--green)}.co-dg .tbarter{fill:var(--orange)}.co-dg .tretain{fill:#9a7314}.co-dg .tnavy{fill:var(--navy)}.co-dg .tmuted{fill:var(--muted)}
.co-cycle{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;counter-reset:co-step}
.co-cycle li{counter-increment:co-step;border:1px solid var(--border);border-radius:12px;padding:12px 14px;display:grid;gap:5px;align-content:start;min-width:0}
.co-cycle li::before{content:counter(co-step);font-size:12px;font-weight:700;color:#fff;background:var(--navy);width:24px;height:24px;border-radius:50%;display:grid;place-items:center}
.co-cycle h3{font-size:14px;color:var(--navy);margin:0}.co-cycle p{font-size:12.5px;color:var(--muted);margin:0;line-height:1.55}.co-cycle em{font-style:normal;font-size:11.5px;font-weight:700;color:var(--orange)}
.co-formulas{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin-bottom:16px}
.co-formula{background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px 14px;display:grid;gap:5px;min-width:0}.co-formula h3{font-size:14px;color:var(--navy);margin:0}
.co-formula code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px;color:var(--ink);overflow-wrap:anywhere}.co-formula p{font-size:12px;color:var(--muted);margin:0}
.co-swipe{display:none;margin:0;font-size:11.5px;color:var(--muted)}@media(max-width:820px){.co-swipe{display:block}}
