@media (width<=1024px){.expense-pivot-table{min-width:960px}}.monthly-summary-page .section-header{flex-wrap:wrap;align-items:flex-end;gap:1rem}.monthly-filters label{color:#555;flex-direction:column;gap:.25rem;font-size:.82rem;font-weight:600;display:flex}.monthly-filters select{border:1px solid var(--gray-200);border-radius:6px;min-width:120px;padding:.45rem .55rem;font-size:.95rem}.monthly-section{margin-top:2rem}.monthly-section h2{margin:0 0 .35rem;font-size:1.15rem}.monthly-section .section-desc{color:#666;margin:0 0 1rem;font-size:.88rem}.monthly-chart-wrap{background:var(--white);border:1px solid var(--gray-200);border-radius:10px;padding:1rem;overflow-x:auto}.monthly-chart-svg{width:100%;min-width:720px;height:auto;display:block}.monthly-chart-grid{stroke:var(--gray-200);stroke-width:1px}.monthly-chart-axis{fill:#666;font-size:11px}.monthly-bar.revenue{fill:#3182ce}.monthly-bar.expenses{fill:#ed8936}.monthly-line.gross-profit{stroke:#2f855a;stroke-width:2.5px}.monthly-line-point{fill:#2f855a;stroke:#fff;stroke-width:1.5px}.monthly-chart-legend{flex-wrap:wrap;gap:1rem;margin-top:.75rem;font-size:.85rem;display:flex}.legend-item{align-items:center;gap:.4rem;display:inline-flex}.legend-item:before{content:"";border-radius:3px;width:14px;height:14px;display:inline-block}.legend-item.revenue:before{background:#3182ce}.legend-item.expenses:before{background:#ed8936}.legend-item.gross-profit:before{border-top:3px solid #2f855a;border-radius:0;width:18px;height:0}@media (width<=768px){.monthly-chart-wrap{padding:.75rem}}.monthly-report-page .section-header{flex-wrap:wrap;align-items:flex-end;gap:1rem}.monthly-report-page .page-subtitle{color:#666;margin:.25rem 0 0;font-size:.92rem}.monthly-report-page .monthly-filters{flex-wrap:wrap;align-items:flex-end;gap:1rem;display:flex}.monthly-report-page .monthly-filters label{color:#555;flex-direction:column;gap:.25rem;font-size:.82rem;font-weight:600;display:flex}.monthly-report-page .monthly-filters select{border:1px solid var(--gray-200);border-radius:6px;min-width:120px;padding:.45rem .55rem;font-size:.95rem}.pl-toggle{flex-direction:row!important;align-items:center!important;gap:.45rem!important;font-weight:500!important}.pl-report-header{background:var(--white);border:1px solid var(--gray-200);border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.75rem;margin-top:1.25rem;padding:1rem 1.25rem;display:flex}.pl-company{letter-spacing:.08em;font-size:1.2rem;font-weight:700}.pl-report-meta{color:#555;flex-wrap:wrap;gap:1rem;font-size:.9rem;display:flex}.pl-unit{font-weight:600}.pl-table-wrap{border:1px solid var(--gray-200);background:var(--white);border-radius:10px;max-height:calc(100vh - 220px);margin-top:1rem;overflow:auto}.pl-table{border-collapse:separate;border-spacing:0;min-width:1850px}.pl-table th,.pl-table td{white-space:nowrap;vertical-align:top;border-bottom:1px solid var(--gray-200)}.pl-table thead th{z-index:3;padding:.6rem .75rem;font-size:.85rem;font-weight:700;position:sticky;top:0}.pl-table thead th.pl-col-label,.pl-table thead th.pl-col-total,.pl-table thead th.pl-col-ratio{color:#1a202c;background:#cbd5e0}.pl-col-label{text-align:left;min-width:220px}.pl-col-total,.pl-col-ratio{text-align:right;min-width:108px}.pl-col-month{text-align:right;min-width:118px}.pl-table thead th.pl-col-month{text-align:center;letter-spacing:.02em;border-left:1px solid #ffffff59;padding:.7rem .85rem;font-size:.95rem;font-weight:800}.pl-table thead th.pl-col-month-other{color:#2d3748;background:#e2e8f0}.pl-table thead th.pl-col-month-current{background:var(--blue-dark);color:#fff;font-weight:800;box-shadow:inset 0 -3px #ffffff40}.pl-col-month-clickable{padding:0}.pl-month-header-btn{width:100%;height:100%;color:inherit;font:inherit;font-weight:inherit;letter-spacing:inherit;cursor:pointer;text-align:center;background:0 0;border:none;margin:0;padding:.7rem .85rem;display:block}.pl-month-header-btn:hover{filter:brightness(1.05)}.pl-table thead th.pl-col-month-other .pl-month-header-btn:hover{background:#0000000f}.pl-table thead th.pl-col-month-current .pl-month-header-btn:hover{background:#ffffff1f}.pl-table thead th.pl-col-month-selected{outline-offset:-2px;outline:2px solid #f6ad55}.pl-table tbody td.pl-col-month-other{background:#f8fafc}.pl-table tbody td.pl-col-month-current{background:var(--blue-pale)}.pl-table tbody tr:hover td.pl-col-month-other{background:#edf2f7}.pl-table tbody tr:hover td.pl-col-month-current{background:#dceaf7}.sticky-col{z-index:2;background:var(--white);box-shadow:1px 0 0 var(--gray-200);position:sticky;left:0}.sticky-col-2{z-index:2;background:var(--white);box-shadow:1px 0 0 var(--gray-200);position:sticky;left:220px}.sticky-col-3{z-index:2;background:var(--white);box-shadow:1px 0 0 var(--gray-200);position:sticky;left:316px}.pl-table thead .sticky-col,.pl-table thead .sticky-col-2,.pl-table thead .sticky-col-3{z-index:4;color:#1a202c;background:#cbd5e0}.pl-row-header td{background:#edf2f7;font-weight:700}.pl-row-subtotal td,.pl-row-total td{background:#f0fff4}.pl-row-bold td{font-weight:700}.pl-indent-1 .pl-col-label{padding-left:1.5rem}.pl-amount{font-variant-numeric:tabular-nums;font-size:.92rem}.pl-month-ratio{color:#718096;margin-top:.15rem;font-size:.72rem}.pl-row-rate .pl-col-label{color:#555;font-style:italic}body.pl-drawer-open{overflow:hidden}.pl-drawer-root{z-index:200;pointer-events:none;position:fixed;inset:0}.pl-drawer-backdrop{cursor:pointer;pointer-events:auto;background:#11182773;border:none;position:absolute;inset:0}.pl-drawer{background:var(--white);pointer-events:auto;flex-direction:column;width:min(720px,100vw);height:100%;animation:.25s ease-out pl-drawer-slide-in;display:flex;position:absolute;top:0;right:0;transform:translate(0);box-shadow:-8px 0 32px #0000002e}@keyframes pl-drawer-slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}.pl-drawer-header{border-bottom:1px solid var(--gray-200);background:var(--blue-dark);color:#fff;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1rem 1.25rem;display:flex}.pl-drawer-title{margin:0;font-size:1.15rem;font-weight:700}.pl-drawer-subtitle{opacity:.85;margin:.35rem 0 0;font-size:.82rem}.pl-drawer-close{color:#fff;cursor:pointer;background:#ffffff26;border:none;border-radius:6px;flex-shrink:0;width:2.25rem;height:2.25rem;font-size:1.5rem;line-height:1}.pl-drawer-close:hover{background:#ffffff40}.pl-drawer-body{-webkit-overflow-scrolling:touch;flex:1;padding:1rem 1.25rem 1.5rem;overflow:auto}.pl-detail-section+.pl-detail-section{margin-top:1.75rem}.pl-detail-section-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.75rem;display:flex}.pl-detail-section-head h3{color:var(--blue-dark);margin:0;font-size:1.05rem}.pl-detail-subtotal{color:var(--blue-dark);font-size:.95rem;font-weight:700}.pl-detail-empty{background:var(--gray-100);color:#666;border-radius:8px;margin:0;padding:1rem;font-size:.9rem}.pl-detail-table-wrap{border-radius:8px;overflow-x:auto;box-shadow:0 1px 4px #00000014}.pl-detail-table{min-width:560px;font-size:.85rem}.pl-detail-table th,.pl-detail-table td{white-space:normal;word-break:break-word}.pl-detail-table .num{white-space:nowrap}@media (width<=768px){.pl-table-wrap{max-height:none}.pl-drawer{width:100vw}.pl-drawer-header{padding:.85rem 1rem}.pl-drawer-body{padding:.85rem .75rem 1.25rem}.pl-detail-table{min-width:520px;font-size:.8rem}.pl-detail-section-head{flex-direction:column;align-items:flex-start}}.sg-input-page .section-header{flex-wrap:wrap;align-items:flex-end;gap:1rem}.sg-input-page .page-subtitle{color:#666;margin:.25rem 0 0;font-size:.92rem}.sg-filters{flex-wrap:wrap;gap:1rem;display:flex}.sg-filters label{color:#555;flex-direction:column;gap:.25rem;font-size:.82rem;font-weight:600;display:flex}.sg-filters select{border:1px solid var(--gray-200);border-radius:6px;min-width:120px;padding:.45rem .55rem;font-size:.95rem}.sg-input-page .section-desc{color:#666;margin:0 0 1rem;font-size:.88rem}.sg-message{border-radius:6px;margin-bottom:1rem;padding:.75rem 1rem;font-size:.9rem}.sg-message.success{background:var(--green-pale);color:#1a5c1a;border:1px solid #b7ddb0}.sg-message.error{background:var(--red-pale);color:var(--red);border:1px solid #f7b4b4}.sg-summary-card{background:var(--white);border:1px solid var(--gray-200);border-radius:8px;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;padding:1rem 1.25rem;display:flex;box-shadow:0 1px 4px #0000000f}.sg-summary-card strong{color:var(--blue-dark);font-size:1.35rem}.sg-input-table .num-col{text-align:right;width:180px}.sg-amount-input,.sg-note-input{border:1px solid var(--gray-200);border-radius:5px;width:100%;padding:.45rem .55rem;font-family:inherit;font-size:.9rem}.sg-amount-input{text-align:right}.sg-actions{justify-content:flex-end;margin-top:1.25rem;display:flex}@media (width<=768px){.sg-input-table .num-col{width:120px}}.sg-entry-input-page .sg-entry-form-card{background:var(--white);border:1px solid var(--gray-200);border-radius:10px;flex-direction:column;gap:1rem;max-width:560px;margin-bottom:2rem;padding:1.25rem 1.5rem;display:flex;box-shadow:0 1px 4px #0000000f}.sg-entry-form-title{color:var(--blue-dark);margin:0 0 .25rem;font-size:1.05rem}.sg-entry-form-card label{flex-direction:column;gap:.35rem;display:flex}.sg-entry-form-card input,.sg-entry-form-card select,.sg-entry-form-card textarea{border:1px solid var(--gray-200);border-radius:6px;width:100%;padding:.55rem .65rem;font-family:inherit;font-size:.95rem}.sg-entry-form-card textarea{resize:vertical;min-height:72px}.sg-entry-form-actions{justify-content:flex-end;gap:.75rem;margin-top:.5rem;display:flex}.sg-entry-list-section{margin-top:1rem}.sg-entry-list-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.sg-entry-list-header h2{color:var(--blue-dark);margin:0;font-size:1.15rem}.sg-entry-month-total{min-width:220px;margin-bottom:0}.sg-entry-actions{white-space:nowrap;gap:.35rem;display:flex}@media (width<=768px){.sg-entry-form-card{max-width:none}.sg-entry-list-header{flex-direction:column;align-items:stretch}}.labor-summary-page .section-header{flex-wrap:wrap;align-items:flex-end;gap:1rem}.labor-summary-filters label select{min-width:140px}.labor-summary-kpi{color:#555;flex-wrap:wrap;gap:1rem;margin-top:1rem;font-size:.9rem;font-weight:600;display:flex}.labor-summary-table th,.labor-summary-table td{white-space:nowrap}.labor-project-worker-table{background:var(--white)}.labor-project-worker-list{gap:.5rem;margin-top:.75rem;display:grid}.labor-project-worker-item{flex-direction:column;gap:.15rem;font-size:.88rem;display:flex}.labor-project-worker-item span{color:#666}@media (width<=1024px){.labor-summary-table{min-width:880px}}.employee-management-page .employee-form-card{max-width:480px}.employee-form-actions{flex-wrap:wrap;gap:.75rem;margin-top:.25rem;display:flex}.employee-list-section{margin-top:.5rem}.employee-list-title{color:var(--blue-dark);margin:0 0 1rem;font-size:1.05rem}.employee-table .employee-actions{white-space:nowrap;text-align:right}.employee-table .employee-actions .btn{margin-left:.35rem}.employee-table tr.is-editing{background:#3b82f614}.employee-table .btn:disabled{opacity:.45;cursor:not-allowed}.project-list-pdf-capture{z-index:-1;pointer-events:none;position:fixed;top:0;left:-12000px}.project-list-pdf-doc{box-sizing:border-box;color:#444;background:#fff;width:794px;padding:28px 32px 32px;font-family:游ゴシック,Meiryo,Yu Gothic,sans-serif}.project-list-pdf-title{color:#1f4e79;letter-spacing:.04em;margin:0 0 10px;font-size:20px;font-weight:700}.project-list-pdf-meta{color:#555;flex-wrap:wrap;gap:18px;margin-bottom:18px;font-size:12px;display:flex}.project-list-pdf-table-wrap{border:1px solid #e8e9ef;border-radius:8px;overflow:hidden}.project-list-pdf-table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:11px}.project-list-pdf-table th,.project-list-pdf-table td{vertical-align:middle;word-break:break-word;border-bottom:1px solid #e8e9ef;padding:8px 6px}.project-list-pdf-table thead th{color:#fff;text-align:center;background:#1f4e79;font-weight:700}.project-list-pdf-table .col-label{text-align:left;width:18%}.project-list-pdf-table .num{text-align:right;white-space:nowrap}.project-list-pdf-table .text-success{color:#166534!important}.project-list-pdf-table .text-danger{color:#c00000!important}.project-list-pdf-rank{color:#334155;background:#e2e8f0;border-radius:999px;justify-content:center;align-items:center;min-width:2.5rem;padding:.15rem .45rem;font-size:10px;font-weight:800;display:inline-flex}.project-list-pdf-rank-gold{color:#78350f;background:linear-gradient(135deg,#fde68a 0%,#fbbf24 100%)}.project-list-pdf-rank-silver{color:#334155;background:linear-gradient(135deg,#f8fafc 0%,#cbd5e1 100%)}.project-list-pdf-rank-bronze{color:#7c2d12;background:linear-gradient(135deg,#fed7aa 0%,#fb923c 100%)}.project-list-print-actions{gap:.85rem;margin-bottom:1rem;display:grid}.project-list-print-row{flex-wrap:wrap;align-items:center;gap:.65rem;display:flex}.project-list-preview-section{border:1px solid var(--gray-200);background:var(--white);border-radius:10px;margin-bottom:1.25rem;padding:1rem 1rem 1.1rem}.project-list-preview-title{color:var(--blue-dark);margin:0 0 .35rem;font-size:1.05rem}.project-list-preview-desc{color:#666;margin:0 0 .85rem;font-size:.88rem}.project-list-preview-cards{gap:.75rem;margin:0;padding:0;list-style:none;display:grid}.project-list-preview-cards li{border:1px solid var(--gray-200);background:#fafafa;border-radius:8px;padding:.85rem .95rem}.project-list-preview-card-title{color:var(--blue-dark);margin-bottom:.55rem;font-weight:700}.project-list-preview-cards dl{gap:.4rem;display:grid}.project-list-preview-cards dl>div{justify-content:space-between;gap:1rem;font-size:.9rem;display:flex}.project-list-preview-cards dt{color:#666}.project-ranking-table .project-ranking-name-cell{gap:.35rem;display:grid}.project-ranking-labels{flex-wrap:wrap;gap:.35rem;display:flex}.project-rank-badge{color:#334155;background:#e2e8f0;border-radius:999px;justify-content:center;align-items:center;min-width:2.75rem;padding:.2rem .55rem;font-size:.78rem;font-weight:800;display:inline-flex}.project-rank-badge-gold{color:#78350f;background:linear-gradient(135deg,#fde68a 0%,#fbbf24 100%)}.project-rank-badge-silver{color:#334155;background:linear-gradient(135deg,#f8fafc 0%,#cbd5e1 100%)}.project-rank-badge-bronze{color:#7c2d12;background:linear-gradient(135deg,#fed7aa 0%,#fb923c 100%)}.project-category-top-badge{border-radius:999px;align-items:center;padding:.15rem .5rem;font-size:.72rem;font-weight:700;display:inline-flex}.project-category-top-badge-civil{color:#1e40af;background:#dbeafe}.project-category-top-badge-formwork{color:#9a3412;background:#ffedd5}.project-ranking-cards{gap:.85rem;margin:0;padding:0;list-style:none;display:grid}.project-ranking-cards li{border:1px solid var(--gray-200);background:#fafafa;border-radius:10px;padding:.9rem 1rem}.project-ranking-card-head{justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.5rem;display:flex}.project-ranking-card-title{margin-bottom:.45rem;font-weight:700}.project-ranking-card-meta{gap:.4rem;margin-top:.65rem;display:grid}.project-ranking-card-meta>div{justify-content:space-between;gap:1rem;font-size:.9rem;display:flex}.project-ranking-card-meta dt{color:#666}.cost-autocomplete{position:relative}.cost-autocomplete input{box-sizing:border-box;width:100%}.cost-autocomplete-list{z-index:40;background:var(--white);border:1px solid var(--gray-200);border-radius:8px;max-height:220px;margin:0;padding:.25rem 0;list-style:none;position:absolute;top:calc(100% + 2px);left:0;right:0;overflow-y:auto;box-shadow:0 8px 20px #0f172a1f}.cost-autocomplete-item{align-items:stretch;gap:0;display:flex}.cost-autocomplete-pick{text-align:left;min-height:40px;font:inherit;color:var(--gray-900);cursor:pointer;background:0 0;border:none;flex:1;padding:.45rem .65rem}.cost-autocomplete-pick:hover,.cost-autocomplete-pick:focus-visible{background:var(--blue-pale);outline:none}.cost-autocomplete-remove{border:none;border-left:1px solid var(--gray-200);color:#888;cursor:pointer;background:0 0;flex-shrink:0;width:40px;min-height:40px;font-size:1.1rem;line-height:1}.cost-autocomplete-remove:hover,.cost-autocomplete-remove:focus-visible{color:#b91c1c;background:#fef2f2;outline:none}.cost-entry-edit-row .cost-autocomplete-list{min-width:160px}.monthly-cashflow-pdf-capture{z-index:-1;pointer-events:none;position:fixed;top:0;left:-12000px}.monthly-cashflow-pdf{box-sizing:border-box;color:#444;background:#fff;width:1587px;padding:18px 22px 22px;font-family:游ゴシック,Meiryo,Yu Gothic,sans-serif}.monthly-cashflow-pdf-header{margin-bottom:14px}.monthly-cashflow-pdf-header-top{justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:8px;display:flex}.monthly-cashflow-pdf-company{color:#1f4e79;letter-spacing:.08em;font-size:22px;font-weight:700}.monthly-cashflow-pdf-export-date{color:#555;white-space:nowrap;font-size:13px}.monthly-cashflow-pdf-meta{color:#555;flex-wrap:wrap;gap:18px;font-size:13px;display:flex}.monthly-cashflow-pdf-meta strong{color:#1f4e79;font-weight:700}.monthly-cashflow-pdf-table-wrap{background:#fff;border:1px solid #e8e9ef;border-radius:8px;overflow:hidden}.monthly-cashflow-pdf-table{table-layout:fixed;border-collapse:collapse;border-spacing:0;width:100%}.monthly-cashflow-pdf-table th,.monthly-cashflow-pdf-table td{vertical-align:middle;white-space:nowrap;text-overflow:ellipsis;font-size:inherit;border-bottom:1px solid #e8e9ef;padding:5px 4px;line-height:1.25;overflow:hidden}.monthly-cashflow-pdf-table thead th{text-align:center;font-weight:800}.monthly-cashflow-pdf-table .pl-col-label{text-align:left;width:118px;font-weight:600}.monthly-cashflow-pdf-table .pl-col-total{text-align:right;width:92px;font-weight:700}.monthly-cashflow-pdf-table .pl-col-month{text-align:right}.monthly-cashflow-pdf-table thead th.pl-col-label,.monthly-cashflow-pdf-table thead th.pl-col-total{color:#1a202c;background:#cbd5e0}.monthly-cashflow-pdf-table thead th.pl-col-month-other{color:#2d3748;background:#e2e8f0}.monthly-cashflow-pdf-table thead th.pl-col-month-current{color:#fff;background:#1f4e79}.monthly-cashflow-pdf-table tbody td.pl-col-month-other{background:#f8fafc}.monthly-cashflow-pdf-table tbody td.pl-col-month-current{background:#ebf3fb}.monthly-cashflow-pdf-table tbody td.pl-col-label,.monthly-cashflow-pdf-table tbody td.pl-col-total{background:#fff}.monthly-cashflow-pdf-table .pl-row-bold td{font-weight:700}.monthly-cashflow-pdf-table .project-cashflow-row-extra td,.monthly-cashflow-pdf-table .project-cashflow-cell-extra{background:#fff7ed!important}.monthly-cashflow-pdf-table .text-success{color:#166534!important}.monthly-cashflow-pdf-table .text-danger{color:#c00000!important}.trend-bar-wrap{align-items:center;gap:.5rem;display:flex}.trend-bar-track{background:var(--gray-100);border-radius:999px;flex:1;min-width:80px;height:10px;overflow:hidden}.trend-bar-fill{background:var(--blue);border-radius:999px;height:100%;transition:width .2s}.trend-bar-fill.category{background:var(--blue-dark)}.trend-bar-wrap span{color:#666;white-space:nowrap;font-size:.82rem}.expense-summary-page .section-header{flex-wrap:wrap;align-items:flex-end;gap:1rem}.expense-filters{flex-wrap:wrap;gap:.75rem;display:flex}.expense-filters label{color:#555;flex-direction:column;gap:.25rem;font-size:.82rem;font-weight:600;display:flex}.expense-filters select{border:1px solid var(--gray-200);border-radius:6px;min-width:110px;padding:.45rem .55rem;font-size:.95rem}.expense-section{margin-top:2rem}.expense-section h2{margin:0 0 .35rem;font-size:1.15rem}.section-desc{color:#666;margin:0 0 1rem;font-size:.88rem}.expense-pivot-table th,.expense-pivot-table td{white-space:nowrap}.expense-pivot-table .total-cell{font-weight:700}.expense-card-list{gap:.75rem;display:grid}.expense-card{background:var(--white);border:1px solid var(--gray-200);border-radius:10px;padding:.9rem 1rem;box-shadow:0 1px 4px #0000000a}.expense-card-title{margin-bottom:.35rem;font-weight:700}.expense-card-amount{color:var(--blue-dark);font-size:1.15rem;font-weight:700}.expense-card-sub{color:#777;margin:.2rem 0 .65rem;font-size:.82rem}.expense-card-tags{flex-wrap:wrap;gap:.35rem;display:flex}.expense-card .trend-bar-wrap{margin-top:.5rem}@media (width<=1024px){.expense-pivot-table{min-width:960px}}.expense-tabs{flex-wrap:wrap;gap:.5rem;margin-top:1.25rem;display:flex}.expense-tab{border:1px solid var(--gray-200);background:var(--white);color:#444;cursor:pointer;border-radius:999px;padding:.45rem 1rem;font-size:.9rem;font-weight:600}.expense-tab.active{background:var(--blue-dark);border-color:var(--blue-dark);color:#fff}.expense-project-filters{margin-bottom:1rem}.expense-project-filters label{color:#555;flex-direction:column;gap:.25rem;font-size:.82rem;font-weight:600;display:flex}.expense-project-filters select{border:1px solid var(--gray-200);border-radius:6px;min-width:220px;padding:.45rem .55rem;font-size:.95rem}.expense-project-summary{color:#555;margin-bottom:.75rem;font-size:.9rem;font-weight:600}.expense-project-table .expense-project-col-name{min-width:220px}.expense-project-row{cursor:pointer}.expense-project-row:hover{background:#f8fafc}.expense-project-row.expanded{background:#edf2f7}.expense-project-toggle{color:#666;width:1rem;margin-right:.35rem;display:inline-block}.expense-project-code{color:#777;font-size:.78rem;font-weight:500;display:block}.expense-project-detail-row>td{background:#fafafa;padding:0}.expense-project-detail-wrap{padding:.75rem 1rem 1rem}.expense-project-detail-table{background:var(--white)}.expense-project-card-head{text-align:left;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:flex-start;gap:.75rem;width:100%;padding:0;display:flex}.expense-project-card .mobile-detail{margin-top:.75rem}.project-detail-page .ledger-section{margin-top:2rem}.project-detail-page .ledger-section .section-title{margin-bottom:1rem}.ledger-info-grid{background:var(--white);border:1px solid var(--gray-200);border-radius:10px;padding:1rem 1.25rem}.monthly-chart{background:var(--white);border:1px solid var(--gray-200);border-radius:10px;gap:.75rem;margin-bottom:1rem;padding:1rem 1.25rem;display:grid}.monthly-chart-row{grid-template-columns:88px 1fr 72px;align-items:center;gap:.75rem;display:grid}.monthly-chart-label,.monthly-chart-count{color:#555;font-size:.88rem}.monthly-chart-count{text-align:right;white-space:nowrap}.labor-detail-table .subcontract-cell{min-width:240px;font-size:.88rem;line-height:1.5}.ledger-card-list{gap:.75rem;display:grid}.ledger-card{background:var(--white);border:1px solid var(--gray-200);border-radius:10px;padding:.9rem 1rem}.ledger-card-top{justify-content:space-between;gap:.75rem;margin-bottom:.35rem;font-weight:700;display:flex}.ledger-card-body,.ledger-card-amount{color:var(--blue-dark);font-size:1rem}.ledger-card-amount{margin-bottom:.2rem;font-weight:700}.ledger-card-sub,.ledger-card-note{color:#666;margin-top:.35rem;font-size:.82rem;line-height:1.5}@media (width<=768px){.monthly-chart-row{grid-template-columns:1fr;gap:.35rem}.monthly-chart-count{text-align:left}}.project-sales-section .section-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.project-sales-year-filter{color:#555;flex-direction:column;gap:.25rem;font-size:.82rem;font-weight:600;display:flex}.project-sales-year-filter select{border:1px solid var(--gray-200);border-radius:6px;padding:.45rem .55rem;font-size:.95rem}.project-sales-total{background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);border:1px solid #bfdbfe;border-radius:12px;flex-direction:column;gap:.35rem;margin-bottom:1.25rem;padding:1.25rem 1.5rem;display:flex}.project-sales-total-label{color:#1e40af;font-size:.95rem;font-weight:600}.project-sales-total-value{color:var(--blue-dark);font-size:2rem;line-height:1.2}.project-sales-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem;display:grid}.project-sales-summary-card{border:1px solid #0000;border-radius:12px;flex-direction:column;gap:.35rem;padding:1rem 1.1rem;display:flex}.project-sales-summary-label{font-size:.88rem;font-weight:600}.project-sales-summary-card strong{font-size:1.45rem;line-height:1.2}.project-sales-summary-contract{color:#1e40af;background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);border-color:#bfdbfe}.project-sales-summary-extra{color:#c2410c;background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 100%);border-color:#fdba74}.project-sales-summary-total{color:#166534;background:linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%);border-color:#86efac}.project-sales-type-section{border:1px solid var(--gray-200);background:var(--white);border-radius:12px;margin-bottom:1.25rem;padding:1rem 1.1rem .5rem}.project-sales-type-extra{background:#fff7ed;border-color:#fdba74}.project-sales-type-head{border-bottom:1px solid #00000014;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.5rem;margin-bottom:.85rem;padding-bottom:.65rem;display:flex}.project-sales-type-head h3{margin:0;font-size:1.1rem}.project-sales-type-head span{font-size:.95rem;font-weight:700}.project-sales-type-contract .project-sales-type-head{color:#1e40af}.project-sales-type-extra .project-sales-type-head{color:#c2410c}.project-sales-form{margin-bottom:1.5rem}.project-sales-form-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;display:grid}.project-sales-note-field{grid-column:1/-1}.project-sales-month-block{margin-bottom:1.5rem}.project-sales-month-head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.5rem;margin-bottom:.75rem;display:flex}.project-sales-month-head h3,.project-sales-month-head h4{margin:0;font-size:1.05rem}.project-sales-month-head span{color:#555;font-size:.9rem;font-weight:600}.project-cashflow-table-wrap{margin-top:.5rem}@media (width<=900px){.project-sales-summary-cards{grid-template-columns:1fr}}.project-cashflow-table .pl-col-label{min-width:120px}.project-cashflow-table .pl-col-total{min-width:110px}.project-monthly-cashflow-section .section-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.project-cashflow-section-title{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.project-cashflow-summary-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:.85rem;margin-bottom:1.25rem;display:grid}.project-cashflow-summary-card{border:1px solid var(--gray-200);background:var(--white);border-radius:12px;flex-direction:column;gap:.35rem;padding:.9rem 1rem;display:flex}.project-cashflow-summary-label{color:#555;font-size:.82rem;font-weight:600}.project-cashflow-summary-card strong{font-size:1.2rem;line-height:1.2}.project-cashflow-summary-contract{color:#1e40af;background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);border-color:#bfdbfe}.project-cashflow-summary-extra{color:#c2410c;background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 100%);border-color:#fdba74}.project-cashflow-summary-total{color:#166534;background:linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%);border-color:#86efac}.project-cashflow-summary-remaining-positive{color:#1d4ed8;background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);border-color:#93c5fd}.project-cashflow-summary-remaining-negative{color:#b91c1c;background:linear-gradient(135deg,#fef2f2 0%,#fee2e2 100%);border-color:#fca5a5}.project-cashflow-row-extra td,.project-cashflow-cell-extra{background:#fff7ed}@media (width<=1100px){.project-cashflow-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.project-cashflow-summary-cards{grid-template-columns:1fr}}.cost-computed-amount{border:1px solid var(--gray-200);background:#f8fafc;border-radius:6px;padding:.55rem .65rem;font-size:1.05rem;font-weight:700;display:block}.project-expense-tabs{flex-wrap:wrap;gap:.5rem;margin-bottom:1rem;display:flex}.project-cost-monthly-view{gap:1.5rem;display:grid}.project-cost-month-section{border:1px solid var(--gray-200);background:var(--white);border-radius:10px;overflow:hidden}.project-cost-month-header{border-bottom:1px solid var(--gray-200);background:#f8fafc;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 1rem;display:flex}.project-cost-month-title{margin:0;font-size:1.05rem;font-weight:700}.project-cost-month-total{white-space:nowrap;font-size:1.05rem;font-weight:700}.project-cost-category-block{border-bottom:1px solid var(--gray-200);padding:.75rem 1rem 1rem}.project-cost-category-block:last-child{border-bottom:none}.project-cost-category-header{justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.65rem;display:flex}.project-cost-category-subtotal{white-space:nowrap;font-size:.92rem;font-weight:700}.project-cost-monthly-table{margin-top:.25rem}.project-cost-monthly-lines{gap:.65rem;margin:0;padding:0;list-style:none;display:grid}.project-cost-monthly-lines li{border:1px solid var(--gray-200);background:#fafafa;border-radius:8px;padding:.75rem .85rem}.project-cost-monthly-line-top{justify-content:space-between;gap:.75rem;font-size:.9rem;font-weight:600;display:flex}.project-cost-monthly-line-desc{margin-top:.35rem;font-weight:600}.project-cost-monthly-line-meta{color:#666;margin-top:.25rem;font-size:.85rem}.project-cost-monthly-line-actions,.project-cost-item-line-actions{margin-top:.65rem}.project-cost-monthly-line-editing,.project-cost-item-line-editing{background:#fffbeb;border-color:#fcd34d}.project-cost-item-line-meta{font-size:.9rem}.project-cost-item-detail-table{min-width:960px}.project-cost-monthly-table .cost-edit-actions-head,.project-cost-monthly-table .cost-edit-actions,.project-cost-item-detail-table .cost-edit-actions-head,.project-cost-item-detail-table .cost-edit-actions{white-space:nowrap;width:1%}.project-cost-item-summary-head{justify-content:flex-end;margin-bottom:1rem;display:flex}.project-cost-item-lines{gap:.75rem;margin:0;padding:0;list-style:none;display:grid}.project-cost-item-lines li{border:1px solid var(--gray-200);background:var(--white);border-radius:10px;gap:.35rem;padding:.85rem 1rem;display:grid}.project-cost-item-created-by{color:#666;font-size:.85rem}.item-analysis-filters{margin-bottom:1.25rem}.item-analysis-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:.85rem;margin-bottom:1.5rem;display:grid}.item-analysis-summary>div{border:1px solid var(--gray-200);background:var(--white);border-radius:12px;flex-direction:column;gap:.25rem;padding:.9rem 1rem;display:flex}.item-analysis-summary span{color:#666;font-size:.82rem;font-weight:600}.item-analysis-summary strong{font-size:1.05rem}.item-analysis-section{margin-bottom:1.5rem}.item-analysis-section h2{margin:0 0 .75rem;font-size:1.05rem}.mobile-form-grid{gap:.85rem;display:grid}@media (width<=1100px){.item-analysis-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.item-analysis-summary{grid-template-columns:1fr}}.cost-entry-edit-row{background:#fffbeb}.cost-entry-edit-row>td{vertical-align:middle}.cost-entry-edit-row .action-btns{white-space:nowrap;flex-wrap:nowrap}.cost-edit-input{box-sizing:border-box;border:1px solid var(--gray-200);border-radius:6px;width:100%;min-width:72px;padding:.35rem .45rem;font-size:.88rem}.cost-edit-input-num{min-width:64px}.cost-edit-amount{white-space:nowrap;font-weight:700}.cost-edit-amount-value{font-variant-numeric:tabular-nums;font-weight:700;display:inline-block}.cost-edit-readonly{color:#555;white-space:nowrap;background:#f8fafc}.project-cost-detail-table{min-width:1280px}.project-cost-detail-table .cost-edit-actions-head,.project-cost-detail-table .cost-edit-actions{white-space:nowrap;width:1%}.cost-card-editing{background:#fffbeb;border-color:#fcd34d}.cost-entry-edit-card{gap:.75rem;display:grid}.cost-entry-edit-card label{color:#555;flex-direction:column;gap:.25rem;font-size:.82rem;font-weight:600;display:flex}.cost-entry-edit-card input,.cost-entry-edit-card select{border:1px solid var(--gray-200);border-radius:6px;padding:.45rem .55rem;font-size:.95rem;font-weight:400}.project-detail-actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.project-modal-root{z-index:1200;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.project-modal-backdrop{cursor:pointer;background:#0f172a73;border:0;position:absolute;inset:0}.project-modal{background:var(--white);border-radius:12px;width:min(100%,420px);padding:1.25rem;position:relative;box-shadow:0 16px 40px #0f172a2e}.project-modal-title{margin:0 0 .35rem;font-size:1.15rem}.project-modal-desc{color:#666;margin:0 0 1rem;font-size:.9rem}.project-modal-form{gap:.75rem;display:grid}.project-modal-form label{color:#555;flex-direction:column;gap:.25rem;font-size:.82rem;font-weight:600;display:flex}.project-modal-form select,.project-modal-form input{border:1px solid var(--gray-200);border-radius:6px;padding:.45rem .55rem;font-size:.95rem}.project-modal-closing{border:1px solid var(--gray-200);border-radius:6px;margin:0;padding:.6rem .75rem}.project-modal-closing legend{color:#555;padding:0 .25rem;font-size:.82rem;font-weight:600}.project-modal-closing label{flex-direction:row;align-items:center;gap:.4rem;margin-top:.35rem;font-weight:500}.project-modal-closing label:first-of-type{margin-top:0}.project-modal-closing input[type=radio]{margin:0}.project-modal-actions{justify-content:flex-end;gap:.5rem;margin-top:1.25rem;display:flex}.mobile-layout{background:var(--gray-100);flex-direction:column;min-height:100dvh;display:flex}.mobile-header{background:var(--blue-dark);color:#fff;padding:.75rem 1rem;padding-top:max(.75rem, env(safe-area-inset-top));z-index:50;position:sticky;top:0;box-shadow:0 2px 8px #0003}.mobile-header-title{letter-spacing:.03em;font-size:1.05rem;font-weight:700}.mobile-header-sub{opacity:.85;margin-top:.15rem;font-size:.78rem}.mobile-main{padding:1rem;padding-bottom:max(5.5rem, calc(4.5rem + env(safe-area-inset-bottom)));flex:1;width:100%;max-width:480px;margin:0 auto}.mobile-bottom-nav{background:var(--white);border-top:1px solid var(--gray-200);padding-bottom:env(safe-area-inset-bottom);z-index:50;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -2px 12px #0000000f}.mobile-bottom-nav a{color:#888;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:.15rem;min-height:56px;padding:.5rem .2rem;font-size:.68rem;text-decoration:none;transition:color .15s;display:flex}.mobile-bottom-nav a .nav-icon{font-size:1.35rem;line-height:1}.mobile-bottom-nav a.active{color:var(--blue-dark);font-weight:600}.mobile-page-title{color:var(--blue-dark);margin-bottom:1rem;font-size:1.2rem;font-weight:700}.mobile-card{background:var(--white);border-radius:10px;margin-bottom:1rem;padding:1.1rem;box-shadow:0 1px 4px #00000014}.mobile-menu-grid{gap:.75rem;display:grid}.mobile-menu-btn{border:1px solid var(--gray-200);background:var(--white);width:100%;color:var(--gray-900);border-radius:10px;align-items:center;gap:1rem;min-height:64px;padding:1rem 1.1rem;font-size:1rem;font-weight:600;text-decoration:none;transition:border-color .15s,background .15s;display:flex;box-shadow:0 1px 3px #0000000f}.mobile-menu-btn:active{background:var(--blue-pale);border-color:var(--blue)}.mobile-menu-btn.disabled{opacity:.55;pointer-events:none}.mobile-menu-icon{text-align:center;flex-shrink:0;width:2.5rem;font-size:1.75rem}.mobile-menu-desc{color:#888;margin-top:.2rem;font-size:.78rem;font-weight:400}.mobile-form label{color:#555;flex-direction:column;gap:.35rem;margin-bottom:1rem;font-size:.88rem;display:flex}.mobile-form input,.mobile-form select,.mobile-form textarea{border:1px solid var(--gray-200);color:var(--gray-900);background:var(--white);border-radius:8px;min-height:48px;padding:.65rem .75rem;font-family:inherit;font-size:16px}.mobile-form input:focus,.mobile-form select:focus,.mobile-form textarea:focus{outline:2px solid var(--blue);outline-offset:1px}.mobile-form textarea{resize:vertical;min-height:80px}.mobile-field-label{color:#555;margin-bottom:.35rem;font-size:.88rem}.field-label-row{flex-wrap:wrap;align-items:center;gap:.4rem;display:inline-flex}.field-label-text{color:#444;font-weight:500}.field-badge{letter-spacing:.02em;border-radius:4px;padding:.2rem .45rem;font-size:.68rem;font-weight:700;line-height:1;display:inline-block}.field-badge-required{color:#c00000;background:#ffe0e0;border:1px solid #f0a0a0}.field-badge-optional{color:#64748b;background:#eef2f6;border:1px solid #cbd5e1}.form-required-notice{background:var(--blue-pale);border:1px solid var(--blue-light);color:var(--blue-dark);border-radius:8px;margin-bottom:1rem;padding:.65rem .85rem;font-size:.85rem;line-height:1.5}.form-required-notice p{flex-wrap:wrap;align-items:center;gap:.35rem;margin:0;display:flex}.mobile-time-row{align-items:flex-end;gap:.5rem;margin-bottom:.35rem;display:flex}.mobile-time-field{flex-direction:column;flex:1;gap:.25rem;margin-bottom:0;display:flex}.mobile-time-sublabel{color:#888;font-size:.78rem}.mobile-time-sep{color:#666;flex-shrink:0;padding-bottom:.65rem;font-weight:600}.mobile-time-summary{color:var(--blue-dark);background:var(--blue-pale);border-radius:6px;margin-bottom:1rem;padding:.5rem .65rem;font-size:.85rem}.mobile-time-summary.invalid{color:var(--red);background:var(--red-pale)}.mobile-section-divider{color:var(--blue-dark);align-items:center;gap:.75rem;margin:.5rem 0 1rem;font-size:.88rem;font-weight:600;display:flex}.mobile-section-divider:before,.mobile-section-divider:after{content:"";background:var(--gray-200);flex:1;height:1px}.subcontract-list{flex-direction:column;gap:.5rem;display:flex}.subcontract-block{margin-bottom:.25rem}.subcontract-inner-divider{margin-top:.75rem;margin-bottom:1rem}.subcontract-workers{margin-bottom:.5rem}.subcontract-worker-row{margin-bottom:.65rem!important}.subcontract-time-summary{margin-top:-.5rem}.receipt-actions{gap:.5rem;margin-bottom:.75rem;display:flex}.receipt-btn{flex:1;justify-content:center;min-height:48px;font-size:.88rem}.receipt-preview{background:var(--gray-100);border-radius:8px;flex-direction:column;align-items:center;gap:.5rem;margin-bottom:1rem;padding:.75rem;display:flex}.receipt-preview img{object-fit:contain;border-radius:6px;max-width:100%;max-height:200px}.receipt-hint{color:#888;margin:-.25rem 0 .65rem;font-size:.82rem}.receipt-hint-required{color:#c00000;font-weight:500}.form-hint{color:#888;text-align:center;flex-wrap:wrap;justify-content:center;align-items:center;gap:.35rem;margin-top:.5rem;font-size:.82rem;display:flex}.mobile-submit{width:100%;min-height:52px;margin-top:.5rem;font-size:1rem;font-weight:600}.mobile-success{background:var(--green-pale);color:#1a5c1a;border:1px solid #b7ddb0;border-radius:8px;margin-bottom:1rem;padding:.85rem 1rem;font-size:.9rem}.mobile-error{background:var(--red-pale);color:var(--red);border:1px solid #f7b4b4;border-radius:8px;margin-bottom:1rem;padding:.85rem 1rem;font-size:.9rem}.mobile-recent-title{color:var(--blue-dark);margin:1.25rem 0 .65rem;font-size:.9rem;font-weight:700}.mobile-recent-item{background:var(--white);border-radius:8px;justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:.5rem;padding:.75rem 1rem;font-size:.88rem;display:flex;box-shadow:0 1px 3px #0000000d}.mobile-recent-item strong{color:var(--blue-dark);margin-bottom:.2rem;display:block}.mobile-recent-meta{color:#888;font-size:.8rem}.mobile-recent-hours{white-space:nowrap;color:var(--blue-dark);font-weight:700}.mobile-coming{background:var(--gray-200);color:#666;border-radius:4px;margin-left:auto;padding:.15rem .45rem;font-size:.75rem}.auth-loading,.login-page{background:linear-gradient(160deg,#1e3a5f 0%,#2c5282 45%,#4a6fa5 100%);justify-content:center;align-items:center;min-height:100dvh;padding:1.5rem;display:flex}.auth-loading p{color:#fff;font-size:1rem}.login-card{background:var(--white,#fff);border-radius:12px;width:100%;max-width:420px;padding:1.75rem 1.5rem 1.5rem;box-shadow:0 12px 40px #00000040}.login-brand{text-align:center;margin-bottom:1.25rem}.login-brand-icon{margin-bottom:.35rem;font-size:2rem;display:block}.login-brand h1{color:var(--blue-dark,#1e3a5f);margin:0 0 .35rem;font-size:1.15rem}.login-brand p{color:#666;margin:0;font-size:.85rem}.login-tabs{background:var(--gray-100,#f3f4f6);border-radius:8px;gap:.35rem;margin-bottom:1rem;padding:.25rem;display:flex}.login-tabs button{cursor:pointer;color:#555;background:0 0;border:none;border-radius:6px;flex:1;padding:.55rem .75rem;font-size:.9rem;transition:background .15s,color .15s}.login-tabs button.active{color:var(--blue-dark,#1e3a5f);background:#fff;font-weight:600;box-shadow:0 1px 4px #00000014}.login-alert{border-radius:6px;margin-bottom:.85rem;padding:.65rem .85rem;font-size:.85rem}.login-alert.error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.login-alert.success{color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0}.login-form label{color:#333;margin-bottom:.85rem;font-size:.85rem;font-weight:600;display:block}.login-form input{border:1px solid var(--gray-200,#e5e7eb);box-sizing:border-box;border-radius:6px;width:100%;margin-top:.35rem;padding:.65rem .75rem;font-size:1rem;display:block}.login-form input:focus{outline:2px solid var(--blue,#3182ce);outline-offset:1px}.login-submit{background:var(--blue-dark,#1e3a5f);color:#fff;cursor:pointer;border:none;border-radius:6px;width:100%;margin-top:.5rem;padding:.75rem;font-size:1rem;font-weight:600}.login-submit:disabled{opacity:.65;cursor:not-allowed}.login-hint{color:#777;margin:.85rem 0 0;font-size:.78rem;line-height:1.5}.login-hint code{background:var(--gray-100,#f3f4f6);border-radius:4px;padding:.1rem .35rem;font-size:.76rem}.login-footer-link{text-align:center;margin:1rem 0 0;font-size:.88rem}.login-footer-link a{color:var(--blue,#3182ce);font-weight:600;text-decoration:none}.login-footer-link a:hover{text-decoration:underline}.header-user{align-items:center;gap:.75rem;margin-left:auto;display:flex}.header-user-name{color:#ffffffe6;white-space:nowrap;font-size:.85rem}.header-logout{color:#fff;cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #ffffff73;border-radius:4px;padding:.35rem .65rem;font-size:.8rem}.header-logout:hover{background:#ffffff1f}.header-nav-link-mobile{color:#ffffffe6!important}.mobile-header-row{justify-content:space-between;align-items:flex-start;gap:.75rem;display:flex}.mobile-logout{color:#fff;cursor:pointer;background:0 0;border:1px solid #ffffff73;border-radius:4px;flex-shrink:0;padding:.3rem .55rem;font-size:.72rem}@media (width<=768px){.header-user{border-top:1px solid #ffffff26;justify-content:space-between;width:100%;margin-top:.5rem;padding-top:.5rem}}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.desktop-only{display:block}.mobile-only{display:none}.header-inner{justify-content:space-between;align-items:center;gap:.75rem;width:100%;display:flex}.nav-toggle{cursor:pointer;background:#ffffff1f;border:none;border-radius:6px;flex-direction:column;flex-shrink:0;justify-content:center;gap:5px;width:44px;height:44px;padding:0;display:none}.nav-toggle-bar{background:#fff;border-radius:1px;width:22px;height:2px;margin:0 auto;transition:transform .2s,opacity .2s;display:block}.nav-backdrop{display:none}body.nav-open{overflow:hidden}.table-wrap{-webkit-overflow-scrolling:touch;position:relative}.table-scroll-hint:after{content:"";pointer-events:none;background:linear-gradient(270deg,#0000000f,#0000);border-radius:0 8px 8px 0;width:24px;position:absolute;top:0;bottom:0;right:0}.data-table{min-width:560px}.project-card-list{flex-direction:column;gap:.75rem}.project-card{background:var(--white);border-left:4px solid var(--blue);border-radius:8px;padding:1rem 1.1rem;box-shadow:0 1px 4px #00000014}.project-card-head{justify-content:space-between;align-items:flex-start;gap:.5rem;margin-bottom:.65rem;display:flex}.project-card-title{color:var(--blue-dark);font-size:1rem;font-weight:700;line-height:1.35}.project-card-title a{color:inherit;text-decoration:none}.project-card-code{color:#888;margin-top:.15rem;font-size:.8rem}.project-card-rows{gap:.35rem;font-size:.88rem;display:grid}.project-card-row{justify-content:space-between;align-items:baseline;gap:.75rem;display:flex}.project-card-row dt{color:#888;flex-shrink:0;font-size:.78rem}.project-card-row dd{text-align:right;font-variant-numeric:tabular-nums;margin:0}.project-card-actions{border-top:1px solid var(--gray-200);flex-wrap:wrap;gap:.5rem;margin-top:.85rem;padding-top:.75rem;display:flex}.project-card-actions .btn{flex:auto;justify-content:center;min-height:44px}.budget-card-list{flex-direction:column;gap:.5rem}.budget-card{background:var(--white);border-radius:8px;padding:.85rem 1rem;box-shadow:0 1px 4px #0000000f}.budget-card-label{color:var(--blue-dark);margin-bottom:.5rem;font-size:.9rem;font-weight:600}.budget-card-grid{grid-template-columns:1fr 1fr;gap:.35rem 1rem;font-size:.85rem;display:grid}.budget-card-grid span:first-child{color:#888}.budget-card-total{background:var(--yellow-pale);border:1px solid #e8d9a8}.cost-card-list{flex-direction:column;gap:.65rem}.cost-card{background:var(--white);border-radius:8px;padding:.9rem 1rem;box-shadow:0 1px 4px #00000014}.cost-card-top{justify-content:space-between;align-items:center;margin-bottom:.4rem;display:flex}.cost-card-desc{margin-bottom:.25rem;font-weight:600}.cost-card-meta{color:#666;font-size:.82rem}.cost-card-footer{border-top:1px solid var(--gray-200);justify-content:space-between;align-items:center;margin-top:.65rem;padding-top:.5rem;display:flex}@media (width<=1024px){.app-main{padding:1.25rem 1rem}.page-title{font-size:1.3rem}.kpi-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=768px){:root{font-size:15px}.desktop-only{display:none!important}.mobile-only{display:block}.project-card-list.mobile-only,.budget-card-list.mobile-only,.cost-card-list.mobile-only{display:flex}.app-header{flex-wrap:wrap;align-items:stretch;height:auto;min-height:52px;padding:0}.header-inner{min-height:52px;padding:.5rem .75rem}.brand-name{font-size:.95rem;line-height:1.25}.brand-icon{font-size:1.25rem}.nav-toggle{display:flex}.header-nav{background:var(--blue-dark);border-top:1px solid #ffffff1f;flex-direction:column;gap:0;width:100%;padding:0 .75rem .75rem;display:none}.header-nav.is-open{display:flex}.header-nav a{border-radius:6px;align-items:center;min-height:44px;padding:.85rem 1rem;font-size:1rem;display:flex}.header-admin-menu{width:100%}.header-admin-trigger{text-align:left;width:100%;min-height:44px;padding:.85rem 1rem}.header-admin-dropdown{box-shadow:none;background:#0000001f;margin:0 .5rem .5rem;position:static}.header-admin-dropdown a{color:#ffffffe6!important;padding-left:1.5rem!important}.nav-backdrop{z-index:99;cursor:pointer;background:#00000059;border:none;display:block;position:fixed;inset:52px 0 0}.app-main{padding:1rem .75rem;padding-bottom:max(1rem, env(safe-area-inset-bottom))}.page-head{flex-direction:column;align-items:stretch;gap:.75rem}.page-head .page-title{margin-bottom:.35rem}.page-head .btn,.page-head .btn-excel{justify-content:center;width:100%;min-height:44px}.section-header{flex-direction:column;align-items:stretch;gap:.65rem}.section-header .btn{justify-content:center;width:100%;min-height:44px}.kpi-grid{grid-template-columns:1fr;gap:.65rem;margin-bottom:1.25rem}.kpi-card{padding:1rem 1.1rem}.kpi-value{font-size:1.25rem}.info-grid{grid-template-columns:1fr;gap:.65rem;padding:1rem}.form-grid{grid-template-columns:1fr}.form-grid input,.form-grid select{min-height:44px;font-size:16px}.form-actions{flex-direction:column-reverse;align-items:stretch}.form-actions .btn{justify-content:center;width:100%;min-height:44px}.btn{min-height:40px}.btn-sm{min-height:40px;padding:.4rem .75rem}.action-btns{flex-wrap:wrap}.action-btns .btn{flex:calc(50% - .2rem);justify-content:center}.progress-wrap{flex-wrap:wrap;min-width:0}.empty-state{padding:2rem 1rem}.data-table th,.data-table td{padding:.5rem .65rem;font-size:.85rem}}@media (width<=380px){.brand-name{font-size:.85rem}.project-card-actions .btn{flex:100%}}@media (width>=769px){.app-header{padding:0 2rem}}*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--blue-dark:#1f4e79;--blue:#2e75b6;--blue-light:#d6e4f0;--blue-pale:#ebf3fb;--green:#70ad47;--green-pale:#e2efda;--red:#c00000;--red-pale:#ffe0e0;--yellow-pale:#fff2cc;--gray-100:#f5f6fa;--gray-200:#e8e9ef;--gray-700:#444;--gray-900:#111;--white:#fff;color:var(--gray-700);background:var(--gray-100);font-family:游ゴシック,Meiryo,Yu Gothic,sans-serif;font-size:14px}body{margin:0}.app-layout{flex-direction:column;min-height:100vh;display:flex}.app-header{background:var(--blue-dark);color:#fff;z-index:100;min-height:56px;padding:0 2rem;padding-top:env(safe-area-inset-top);flex-direction:column;align-items:stretch;display:flex;position:sticky;top:0;box-shadow:0 2px 8px #00000040}.header-brand{letter-spacing:.05em;align-items:center;gap:.5rem;min-width:0;font-size:1.05rem;font-weight:700;display:flex}.brand-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.brand-icon{flex-shrink:0;font-size:1.4rem}.header-nav{align-items:center;gap:1rem;display:flex}.header-nav a{color:#ffffffbf;border-radius:4px;padding:.3rem .8rem;font-size:.9rem;text-decoration:none;transition:background .15s}.header-nav a:hover,.header-nav a.active{color:#fff;background:#ffffff26}.header-admin-menu{position:relative}.header-admin-trigger{color:#ffffffbf;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:.3rem .8rem;font-family:inherit;font-size:.9rem;transition:background .15s}.header-admin-trigger:hover,.header-admin-trigger.active{color:#fff;background:#ffffff26}.header-admin-dropdown{z-index:120;background:#fff;border-radius:6px;min-width:160px;position:absolute;top:calc(100% + .35rem);left:0;overflow:hidden;box-shadow:0 8px 24px #0000002e}.header-admin-dropdown a{font-size:.9rem;display:block;color:var(--gray-700)!important;border-radius:0!important;padding:.65rem 1rem!important}.header-admin-dropdown a:hover,.header-admin-dropdown a.active{background:var(--blue-pale)!important;color:var(--blue-dark)!important}.app-main{width:100%;max-width:1280px;padding:2rem;padding-left:max(2rem, env(safe-area-inset-left));padding-right:max(2rem, env(safe-area-inset-right));flex:1;margin:0 auto}.page-title{color:var(--blue-dark);margin-bottom:1.25rem;font-size:1.5rem;font-weight:700}.page-head{justify-content:space-between;align-items:flex-start;margin-bottom:1.25rem;display:flex}.back-link{color:var(--blue);margin-bottom:.3rem;font-size:.85rem;text-decoration:none;display:block}.back-link:hover{text-decoration:underline}.section-title{color:var(--blue-dark);margin-bottom:.75rem;font-size:1.1rem;font-weight:700}.section-header{justify-content:space-between;align-items:center;margin-bottom:.75rem;display:flex}.project-code{color:#888;margin-left:.5rem;font-size:.85rem}.kpi-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem;display:grid}.kpi-card{background:var(--white);border-left:4px solid var(--blue);border-radius:8px;padding:1.25rem 1.5rem;box-shadow:0 1px 4px #00000014}.kpi-label{color:#888;margin-bottom:.3rem;font-size:.8rem}.kpi-value{color:var(--blue-dark);font-size:1.4rem;font-weight:700}.kpi-sub{color:#aaa;margin-top:.2rem;font-size:.8rem}.info-grid{background:var(--white);border-radius:8px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem 1.5rem;margin-bottom:1.5rem;padding:1.25rem 1.5rem;display:grid;box-shadow:0 1px 4px #00000014}.info-label{color:#888;margin-bottom:.2rem;font-size:.8rem;display:block}.table-wrap{border-radius:8px;overflow-x:auto;box-shadow:0 1px 4px #00000014}.data-table{border-collapse:collapse;background:var(--white);width:100%;font-size:.9rem}.data-table thead tr{background:var(--blue-dark)}.data-table th{color:#fff;text-align:left;white-space:nowrap;padding:.6rem 1rem;font-weight:600}.data-table td{border-bottom:1px solid var(--gray-200);vertical-align:middle;padding:.55rem 1rem}.data-table tbody tr:hover{background:var(--blue-pale)}.data-table tfoot td{border-top:2px solid var(--blue-dark);background:var(--yellow-pale);padding:.65rem 1rem}.progress-wrap{align-items:center;gap:.5rem;min-width:120px;display:flex}.progress-bar{background:var(--gray-200);border-radius:4px;flex:1;height:8px;overflow:hidden}.progress-fill{background:var(--blue);border-radius:4px;height:100%;transition:width .3s}.progress-fill.over{background:var(--red)}.badge{border-radius:100px;padding:.15rem .6rem;font-size:.75rem;font-weight:700;display:inline-block}.badge-received{color:#854d0e;background:#fef9c3}.badge-in_progress{color:#1e40af;background:#dbeafe}.badge-completed{color:#166534;background:#dcfce7}.badge-billed{color:#991b1b;background:#fee2e2}.badge-contract{color:#1e40af;background:#dbeafe}.badge-regular{color:#c2410c;background:#ffedd5}.profit-loss-filters{flex-wrap:wrap;align-items:flex-end;gap:1rem;margin-bottom:1rem;display:flex}.profit-loss-filters label{color:#555;flex-direction:column;gap:.25rem;font-size:.82rem;font-weight:600;display:flex}.profit-loss-filters select{border:1px solid var(--gray-200);border-radius:6px;min-width:120px;padding:.45rem .55rem;font-size:.95rem}.profit-loss-category-section{margin-top:2rem}.profit-loss-category-section h2{margin:0 0 1rem;font-size:1.15rem}.project-meta-selects{flex-wrap:wrap;gap:.5rem;margin-top:.5rem;display:flex}.project-status-filters{flex-wrap:wrap;gap:.5rem;margin-bottom:1.25rem;display:flex}.project-status-filters .filter-btn{border:1px solid var(--gray-200);background:var(--white);cursor:pointer;border-radius:100px;padding:.35rem .85rem;font-family:inherit;font-size:.85rem}.project-status-filters .filter-btn.active{background:var(--blue-dark);border-color:var(--blue-dark);color:#fff}.project-status-select{border:1px solid var(--gray-200);background:var(--white);border-radius:6px;margin-left:.5rem;padding:.25rem .5rem;font-family:inherit;font-size:.85rem}.cat-badge{border-radius:4px;padding:.1rem .5rem;font-size:.75rem;display:inline-block}.cat-labor{color:#7a4f00;background:#fff0cc}.cat-material{color:#166534;background:#dcfce7}.cat-subcontract{color:#5b21b6;background:#ede9fe}.cat-other{color:#475569;background:#f1f5f9}.btn{border:1px solid var(--gray-200);background:var(--white);cursor:pointer;color:var(--gray-700);border-radius:5px;align-items:center;gap:.35rem;padding:.45rem 1rem;font-family:inherit;font-size:.9rem;text-decoration:none;transition:background .15s;display:inline-flex}.btn:hover{background:var(--gray-100)}.btn-primary{background:var(--blue-dark);color:#fff;border-color:var(--blue-dark)}.btn-primary:hover{background:var(--blue);border-color:var(--blue)}.btn-sm{padding:.25rem .65rem;font-size:.8rem}.btn-danger{color:var(--red);border-color:#f7b4b4}.btn-danger:hover{background:var(--red-pale)}.btn-excel{color:#1a5c1a;background:var(--green-pale);border-color:#b7ddb0}.btn-excel:hover{background:#d0edca}.form-card{background:var(--white);border-radius:8px;margin-bottom:1.5rem;padding:1.5rem;box-shadow:0 1px 4px #00000014}.form-section-title{color:var(--blue-dark);border-bottom:2px solid var(--blue-light);margin-bottom:.75rem;padding-bottom:.4rem;font-size:.95rem;font-weight:700}.form-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;display:grid}.form-grid label{color:#555;flex-direction:column;gap:.3rem;font-size:.85rem;display:flex}.form-grid input,.form-grid select{border:1px solid var(--gray-200);color:var(--gray-900);background:var(--white);border-radius:5px;padding:.45rem .7rem;font-family:inherit;font-size:.9rem}.form-grid input:focus,.form-grid select:focus{outline:2px solid var(--blue);outline-offset:1px}.form-actions{justify-content:flex-end;gap:.75rem;margin-top:1.25rem;display:flex}.form-error{color:var(--red);margin-top:.5rem;font-size:.85rem}.required{color:var(--red)}.action-btns{gap:.35rem;display:flex}.num{text-align:right;font-variant-numeric:tabular-nums}.text-danger{color:var(--red)!important}.text-success{color:#166534!important}.loading{text-align:center;color:#888;padding:3rem}.empty-state{background:var(--white);text-align:center;color:#aaa;border-radius:8px;padding:3rem}.empty-state a{color:var(--blue)}
