.pdf-export-list{display:grid;gap:12px}.pdf-export-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid #dfe6f0;border-radius:12px;background:#fafbfd}.pdf-export-item>div:first-child{min-width:0}.pdf-export-item>div>span{display:block;margin-top:6px;font-size:12px;color:#60738b;line-height:1.6}.pdf-export-item b{font-size:13px;overflow-wrap:anywhere}.pdf-export-item .participant-identity{margin-bottom:0}.pdf-export-item .report-pdf-links{flex-shrink:0;display:grid;gap:10px}[data-pdf-download][aria-busy="true"]{opacity:.6;cursor:wait}
@media(max-width:650px){.pdf-export-item{align-items:stretch;flex-direction:column}.pdf-export-item .report-pdf-links{display:flex;flex-wrap:wrap}}
.participant-tone-0{--participant-color:#64748b;--participant-tint:#f1f5f9}
.participant-tone-1{--participant-color:#174774;--participant-tint:#eaf2fb}
.participant-tone-2{--participant-color:#a5430c;--participant-tint:#fff1e8}
.participant-tone-3{--participant-color:#126052;--participant-tint:#e7f5f0}
.participant-tone-4{--participant-color:#654195;--participant-tint:#f2edfa}
.participant-tone-5{--participant-color:#9c355c;--participant-tint:#fbedf2}
.participant-tone-6{--participant-color:#176276;--participant-tint:#e8f5f8}
.participant-identity{display:grid;gap:12px;min-width:0;margin:10px 0 16px;text-align:left}
.participant-company{display:flex;align-items:center;gap:10px;min-width:0;text-align:left}
.participant-mark{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:var(--participant-tint);color:var(--participant-color);font-size:15px;font-weight:800;letter-spacing:.02em;border:1px solid color-mix(in srgb,var(--participant-color) 14%,transparent)}
.participant-mark.has-logo{background:white;padding:4px;overflow:hidden}.participant-mark.has-logo img{width:100%;height:100%;object-fit:contain;display:block}
.participant-copy{display:grid;gap:4px;min-width:0;line-height:1.45}.participant-copy strong{font-size:13px;color:var(--navy,#102d4f);overflow-wrap:anywhere}.participant-copy small{font-size:10px;color:#627389;line-height:1.5}
.participant-person{display:flex;align-items:center;gap:8px;min-width:0;color:#263e57}.participant-avatar{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border:1px solid #dce4ee;background:#f8fafc;border-radius:50%;font-size:10px;font-weight:700;color:#526781}.participant-avatar.has-photo{padding:0;overflow:hidden;background:#e7edf5}.participant-avatar .member-avatar{width:100%;height:100%;border-radius:50%}
.participant-person>span:last-child{display:grid;gap:2px;min-width:0}.participant-person small{font-size:10px;color:#738296}.participant-person b{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.report-participants{margin:22px 0 28px}.report-participants h2{font-size:17px}.report-participants .form-hint{margin:8px 0 0;max-width:680px}.report-company-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.report-company-card{font:inherit;text-align:left;color:var(--navy,#102d4f);background:white;border:1px solid #dce4ee;border-top:3px solid var(--participant-color);border-radius:13px;padding:16px;min-width:0;cursor:pointer;transition:background .15s,border-color .15s;display:flex;flex-direction:column;gap:12px}.report-company-card:hover,.report-company-card.selected{background:var(--participant-tint);border-color:var(--participant-color)}.report-company-card:focus-visible{outline:3px solid var(--orange,#f47721);outline-offset:3px}.report-company-project{font-size:11px;color:#68798c;overflow-wrap:anywhere}.report-company-count{display:flex;align-items:baseline;gap:5px;font-size:11px;flex-wrap:wrap;margin-top:auto}.report-company-count>b{font-size:23px;color:var(--participant-color)}.report-company-count>span{margin-left:auto;font-size:10px;color:#627389}
.report-daily-card{border-top:3px solid var(--participant-color,#64748b)}.report-daily-card>.participant-identity{padding-bottom:14px;border-bottom:1px solid #e7edf4;margin-top:0}.report-detail>.participant-identity{padding:16px;background:#f8fafc;border:1px solid #e5ebf3;border-radius:12px;grid-template-columns:1fr 1fr}
.report-contributors{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.report-contributor{flex:1;min-width:200px;padding:12px;border:1px solid #e5ebf3;border-radius:10px;background:#fafbfd}.report-contributor>small{display:block;margin-top:9px;color:#68798c;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.work-tasks-panel .participant-identity{min-width:170px;margin:0}.kanban-card .participant-identity{margin:14px 0}.report-current-task .participant-identity{margin-bottom:5px}.report-filters select{max-width:290px}.report-period-details>button{text-align:left;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:750px){.report-company-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-company-card{padding:12px}.report-company-count>span{width:100%;margin-left:0}.report-detail>.participant-identity{grid-template-columns:1fr}.report-filters select{max-width:none}}
@media(max-width:450px){.report-company-grid{grid-template-columns:1fr}.report-company-card{padding:14px}.report-company-count>span{width:auto;margin-left:auto}}
@media print{.report-company-card{break-inside:avoid}.participant-mark{print-color-adjust:exact}.report-participants .text-link{display:none}}
dialog.daily-report-modal{width:880px;max-width:calc(100vw - 28px)}
.report-pdf-links{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap}.report-history-entry{padding:14px 0;border-bottom:1px solid #dce4ee}.report-history-json{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font-size:11px;background:#f6f8fb;padding:12px}.report-card-actions{flex-wrap:wrap}
.report-access-banner{display:flex;align-items:center;gap:14px;padding:18px 22px;background:#eaf0f8;border:1px solid #d9e3f0;border-radius:14px;margin:0 0 20px;color:var(--navy)}
.report-access-banner>svg{width:24px;height:24px;flex-shrink:0}.report-access-banner b,.report-access-banner span{display:block}.report-access-banner span{font-size:12px;margin-top:5px;line-height:1.6;color:var(--muted)}
.report-filters{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:0 0 24px}.report-filters label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.report-filters input,.report-filters select{min-height:40px;border:1px solid var(--line,#dce3ed);border-radius:9px;padding:8px 12px;background:white;color:var(--ink)}.report-filters .text-link{padding:12px 0}
.report-section{margin:28px 0}.report-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.report-section-heading h2{font-size:17px;margin:0}.report-section-heading>span{color:var(--muted);font-size:11px}.report-section .metric-grid{margin-bottom:10px}.report-section .metric-value{font-size:23px}
.report-funding{display:flex;flex-wrap:wrap;align-items:center;gap:12px;background:var(--navy);color:white;padding:18px 22px;border-radius:12px}.report-funding b{font-size:23px;margin-left:auto}.report-funding small{width:100%;opacity:.75;line-height:1.6}.report-review-status{margin:5px 0 12px}.report-review-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.workforce-summary{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:15px}.workforce-summary span{font-size:12px;line-height:1.7;background:#eef3f9;padding:8px 12px;border-radius:8px}.workforce-summary b{display:block}
.report-current-task{padding:11px 0;border-bottom:1px solid #edf1f6}.report-current-task:first-child{padding-top:0}.report-current-task:last-child{border:0}.report-current-task b,.report-current-task small{display:block}.report-current-task b{font-size:13px}.report-current-task small{margin-top:5px;color:var(--muted);font-size:11px}
.report-daily-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.report-daily-card{padding:22px;min-width:0}.report-card-header,.report-card-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}.report-date{font-weight:700;color:var(--navy);font-size:13px}.report-daily-card h3{font-size:17px;margin:17px 0 10px}.report-work-summary{line-height:1.7;font-size:13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;min-height:44px}.report-card-stats{display:flex;gap:10px;flex-wrap:wrap;padding:14px 0;border-top:1px solid #edf1f6;margin-top:16px;font-size:12px;color:var(--navy)}.report-daily-card>small{color:var(--muted);font-size:11px}.report-card-actions{margin-top:18px}
.daily-editor-section{padding:18px 0;border-top:1px solid #e7edf4;margin-top:18px}.daily-editor-section h3,.report-detail h3{font-size:15px;color:var(--navy);margin:0 0 12px}.daily-weather-actions{display:flex;align-items:center;gap:15px;margin-bottom:12px}.daily-entry{display:grid;align-items:end;gap:10px;padding:12px;background:#f5f7fb;border:1px solid #e4eaf3;border-radius:10px;margin-bottom:10px}.daily-entry.attendance{grid-template-columns:minmax(0,1fr) 120px 34px}.daily-entry.machine{grid-template-columns:1fr 1fr}.daily-entry.machine>.icon-btn{justify-self:end;grid-column:2}.daily-entry.material{grid-template-columns:minmax(0,1fr) 95px 100px 34px}.daily-entry label{margin:0!important;font-size:11px}.daily-entry input,.daily-entry select{min-width:0;width:100%}.daily-entry .icon-btn{margin-bottom:3px}
.report-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:15px}.report-photo-grid figure{margin:0;min-width:0;border:1px solid #e1e8f1;border-radius:10px;padding:10px}.report-photo-grid img{width:100%;height:170px;object-fit:cover;border-radius:7px;background:#edf1f6}.report-photo-grid label{font-size:11px;margin-top:10px}.report-photo-grid figcaption{font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin-top:9px}.report-photo-grid .text-link{font-size:12px}.report-prewrap{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.report-detail h3{margin-top:25px}.report-detail .table-wrap{margin-bottom:18px}.daily-report-editor [hidden]{display:none!important}
@media(min-width:1500px){.report-daily-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.report-daily-grid{grid-template-columns:1fr}.report-section-heading{align-items:flex-start;flex-direction:column;gap:6px}.report-access-banner{padding:14px}.report-filters{gap:10px}.report-filters label{flex:1;min-width:130px}.report-filters input,.report-filters select{width:100%;min-width:0}.daily-entry.material{grid-template-columns:1fr 1fr}.daily-entry.material>label:first-child{grid-column:1/-1}.daily-entry.attendance{grid-template-columns:minmax(0,1fr) 80px 28px}.daily-entry{padding:10px;gap:8px}.report-photo-grid img{height:130px}.report-daily-card{padding:18px}}
@media print{.report-filters,.report-card-actions,.daily-weather-actions,.report-access-banner{display:none}.report-daily-grid{display:block}.report-daily-card,.report-section .panel{break-inside:avoid;margin-bottom:16px}.report-work-summary{-webkit-line-clamp:unset;display:block}.report-section{margin:15px 0}}
.report-period-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.report-period-tabs .btn{min-width:90px}
.daily-wbs-filter{display:flex!important;align-items:center;gap:9px;margin:12px 0!important;font-size:12px!important;cursor:pointer}.daily-wbs-filter input{width:18px!important;height:18px;min-height:18px!important;margin:0!important;flex-shrink:0;accent-color:var(--orange)}[data-wbs-work-picker]>label>select{min-height:44px;width:100%}[data-wbs-work-picker]>label>select:disabled{background:#eef2f7;color:#657589}
.daily-wbs-section{background:#f5f8fb;padding:18px;border:1px solid #e1e8f0;border-radius:12px}.daily-wbs-section .report-section-heading{margin:0 0 10px;gap:12px;align-items:center}.daily-wbs-section h3{margin:0}.daily-wbs-empty{padding:18px;border:1px dashed #cbd5e1;border-radius:8px;font-size:12px;line-height:1.7;color:var(--muted)}
.daily-entry.wbs-work{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr)) 32px;gap:10px;background:white;border:1px solid #e0e7ef;border-radius:10px;padding:14px;margin:14px 0}.daily-entry.wbs-work .wbs-work-select{grid-column:1/-1}.daily-entry.wbs-work .wbs-work-note{grid-column:1/5;grid-row:3}.daily-entry.wbs-work>.icon-btn{grid-column:5;grid-row:3;align-self:end}.daily-entry.wbs-work label{min-width:0;margin:0}.daily-entry.wbs-work input,.daily-entry.wbs-work select{min-width:0;width:100%}.daily-entry.wbs-work>label:nth-child(2){grid-column:1/3}
.report-period-card{padding:22px;margin:18px 0}.report-period-card h3{font-size:16px;line-height:1.6;margin:8px 0}.report-period-card .table-wrap{margin-top:16px}.report-period-card table{min-width:630px}.report-period-card td:first-child{min-width:260px;white-space:normal}.report-period-details{margin-top:18px}.report-period-details summary{cursor:pointer;color:var(--navy);font-size:12px}.report-period-details .text-link{display:block;text-align:left;padding:10px 0;font-size:12px;line-height:1.6}.report-detail .table-wrap{overflow:auto}.report-detail table{min-width:520px}
@media(max-width:600px){.daily-wbs-section{padding:12px}.daily-wbs-section .report-section-heading{align-items:flex-start;flex-direction:column}.daily-entry.wbs-work{grid-template-columns:1fr 1fr;padding:12px}.daily-entry.wbs-work .wbs-work-select,.daily-entry.wbs-work>label:nth-child(2),.daily-entry.wbs-work .wbs-work-note{grid-column:1/-1;grid-row:auto}.daily-entry.wbs-work>.icon-btn{grid-column:2;grid-row:auto;justify-self:end}.report-period-card{padding:16px}.report-period-card .report-section-heading{flex-wrap:wrap;gap:10px}.report-period-tabs .btn{min-width:80px}}

.period-workforce{border-top:1px solid #e1e8f0;border-bottom:1px solid #e1e8f0;padding:22px 0;margin:20px 0}.period-workforce h4{margin:20px 0 12px}.period-workforce-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.period-workforce-metrics>div{padding:16px;border-radius:10px;background:#f1f5fa;border:1px solid #e0e8f1}.period-workforce-metrics small{display:block;color:#62758d;font-size:12px}.period-workforce-metrics b{display:block;color:#173653;font-size:23px;margin-top:8px}.period-workforce td,.period-workforce th{white-space:normal}.period-workforce-total{background:#eaf0f7;font-weight:700}.period-workforce-total th{padding:12px;text-align:right}.period-workforce table{min-width:850px}@media(max-width:700px){.period-workforce-metrics{grid-template-columns:1fr}.period-workforce-metrics>div{display:flex;justify-content:space-between;align-items:center}.period-workforce-metrics b{font-size:20px;margin:0}}
.report-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0}
@media print{
 body:has(#modal[open].report-detail-modal)>:not(#modal){display:none!important}
 body:has(#modal[open].report-detail-modal){overflow:visible!important;height:auto!important;background:#fff}
 #modal[open].report-detail-modal{position:static!important;inset:auto!important;display:block!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;border:0!important;border-radius:0;box-shadow:none;font-size:10pt}
 #modal.report-detail-modal::backdrop{display:none!important}
 #modal.report-detail-modal .modal-head,#modal.report-detail-modal .modal-actions,#modal.report-detail-modal .report-detail-actions,#modal.report-detail-modal button,#modal.report-detail-modal .report-pdf-links,#modal.report-detail-modal .report-amendment-controls{display:none!important}
 #modal.report-detail-modal .modal-body{padding:0!important}
 #modal.report-detail-modal .table-wrap,#modal.report-detail-modal .template-table-scroll{overflow:visible!important}
 #modal.report-detail-modal table{width:100%!important;min-width:0!important;table-layout:fixed;font-size:8pt}
 #modal.report-detail-modal th,#modal.report-detail-modal td{min-width:0!important;padding:5px!important;overflow-wrap:anywhere;white-space:normal}
 #modal.report-detail-modal thead{display:table-header-group}
 #modal.report-detail-modal tr,#modal.report-detail-modal figure,#modal.report-detail-modal .report-letterhead{break-inside:avoid}
 #modal.report-detail-modal h3{break-after:avoid}
 #modal.report-detail-modal .report-template-section{padding:10px;margin:12px 0;break-inside:auto}
 #modal.report-detail-modal .report-photo-grid{grid-template-columns:1fr 1fr}
 #modal.report-detail-modal .report-photo-grid img{height:auto;max-height:80mm;object-fit:contain}
 #modal.report-detail-modal .report-brand-pair{padding:12px 16px}
 #modal.report-detail-modal .report-document-title,#modal.report-detail-modal .report-party-strip{padding:12px}
 #modal.report-detail-modal .report-document-title,#modal.report-detail-modal th,#modal.report-detail-modal .report-section-number{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
/* 5.52.0: person-hours from daily reports on the dashboard and attendance page */
.report-labor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.report-labor-grid>div{border:1px solid var(--border);border-left:4px solid #9aa9ba;border-radius:10px;padding:13px 15px;background:#f8fafc}.report-labor-grid strong{display:block;font-size:22px;line-height:1.2;color:var(--ink)}.report-labor-grid span{font-size:12px;color:var(--muted)}.report-labor-grid .is-approved{border-left-color:#1baf7a}.report-labor-grid .is-submitted{border-left-color:#2a78d6}.report-labor-grid .is-draft{border-left-color:#e0a33a}.dashboard-labor{margin-bottom:20px}.dashboard-labor .form-hint{margin:12px 0 0}.attendance-report-hours{margin-bottom:20px}
@media(max-width:720px){.report-labor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-labor-grid strong{font-size:19px}}
.daily-entry.machine{align-items:start}
.daily-entry.machine .machine-pick{display:flex;flex-direction:column;gap:6px;min-width:0}
.daily-entry.machine .machine-pick input{margin-top:0}
.daily-entry.machine .machine-work{grid-column:1/-1}
/* 5.56.0: works done and daily workforce/machinery totals on the reports page */
.report-performed{margin-top:22px}
.report-performed .form-hint{margin:0 0 12px}
.report-performed td small,.report-resources td small{display:block;color:var(--muted);font-size:11px;font-weight:500}
.report-performed-total small{color:#1b7d5a!important;font-weight:700!important}
.report-resources h3{margin:22px 0 10px}
.report-resource-metrics{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:16px}
.report-resource-days{max-height:520px;border:1px solid var(--border);border-radius:10px;background:#fff}
.report-resource-days thead th{position:sticky;top:0;z-index:1;background:#f6f8fb}
.report-resource-days tfoot td,.report-resource-days tfoot th{position:sticky;bottom:0;background:#eaf0f7}
@media(max-width:900px){.report-resource-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.report-resource-metrics{grid-template-columns:1fr}.report-resource-days{max-height:420px}}
@media(max-width:700px){
 .report-resources .period-workforce-metrics.report-resource-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .report-resource-metrics>div{display:block}
 .report-resource-metrics b{font-size:19px;margin-top:4px}
 .report-resource-days table{font-size:12px}
 .report-resource-days th,.report-resource-days td{white-space:nowrap;padding:10px 12px}
 .report-resource-days th:first-child,.report-resource-days td:first-child{position:sticky;left:0;z-index:2;background:#fff;box-shadow:1px 0 0 var(--border)}
 .report-resource-days thead th:first-child{z-index:3;background:#f6f8fb}
 .report-resource-days tfoot th:first-child{background:#eaf0f7;text-align:left}
 .report-card-table{display:block;min-width:0!important;width:100%}
 .report-card-table thead{display:none}
 .report-card-table tbody{display:grid;gap:10px}
 .report-card-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#fff}
 .report-card-table td{display:block;min-width:0;padding:0!important;border:0!important;white-space:normal}
 .report-card-table td.report-card-title{grid-column:1/-1;order:-1;font-size:14px}
 .report-card-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:3px;font-size:11px;font-weight:600;color:#5f6d80}
}
/* «Ажлын өдрийн дугаар засах» (5.85.0) */
.work-days-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 4px}
.work-days-scroll{overflow-x:auto}
.work-days-scroll table{width:100%;min-width:0}
.work-days-scroll td{vertical-align:middle}
.work-days-scroll td:first-child{min-width:0}
.work-days-scroll input{width:88px;max-width:100%;min-height:36px}
.work-day-meta{display:block;color:var(--muted,#667085);font-size:11px;overflow-wrap:anywhere}
.work-day-flag{display:block;color:var(--red,#b42318);font-weight:600;font-size:11px}
.work-day-dup td{background:color-mix(in srgb,var(--red,#b42318) 7%,transparent)}
@media(max-width:720px){.page-actions .btn.ghost.work-days-open{display:inline-flex}}
