*{margin:0;padding:0;box-sizing:border-box}body{font-family:Yu Gothic,Hiragino Sans,sans-serif;font-size:14px;background:#f4f6f9;color:#333}.container{max-width:1600px;min-width:1600px;margin:30px auto;padding:0 20px}h1{font-size:17px;color:#0b3062;font-weight:600;line-height:34px}div.h1{display:flex;gap:10px;margin-bottom:6px}div.h1 svg{font-size:24px;color:#2563eb}.btn-create{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 14px;border-radius:6px;background:#2563eb;color:#fff;font-size:14px;font-weight:600;text-decoration:none}.btn-create:hover{opacity:.9}.search-box{background:#fff;padding:20px 40px 5px;border:2px solid #08d;border-radius:14px;margin-bottom:25px;box-shadow:0 2px 6px #0003}.form-row{display:flex;gap:15px;flex-wrap:wrap;margin-bottom:15px}.form-group{display:flex;flex-direction:column;margin-right:18px}.form-group label{margin-bottom:4px;font-size:13px;font-weight:600;color:#111}.form-group input,.form-group select{height:38px;padding:0 12px;border:1px solid #dcdcdc;border-radius:6px}input[type=number]{text-align:right}.date-range{display:flex;align-items:center;gap:10px}.keyword{flex:1}.keyword input{width:100%}.btn-search{height:38px;padding:0 40px;border:none;border-radius:6px;background:#2563eb;color:#fff;cursor:pointer;margin-top:24px}.btn-search:hover{opacity:.9}.btn-clear{height:38px;padding:0 28px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#334155;cursor:pointer;margin-top:24px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.btn-clear:hover{background:#f8fafc}.index-page .search-box .search-row-main{flex-wrap:nowrap;align-items:flex-end;gap:10px}.index-page .search-box .search-row-main .form-group{margin-right:8px}.index-page .search-box .search-row-main .status-select{width:180px}.index-page .search-box .search-actions{display:flex;align-items:center;gap:10px}.form-group .radio{display:flex;margin-top:12px}.form-group .radio label{margin-right:18px}.form-group .radio input{margin-right:6px;height:auto}.table-wrapper{background:#fff;overflow:auto;margin-bottom:25px;border-radius:14px;box-shadow:0 2px 6px #0006}.index-page table{width:100%;border-spacing:0;border-collapse:separate;width:1560px}.index-page thead{background:#eaebed;color:#111}.index-page th{padding:11px;text-align:left;white-space:nowrap;vertical-align:middle;border-bottom:1px solid #ccc;border-right:1px solid #ccc}.index-page td{padding:10px 8px;text-align:left;white-space:nowrap;vertical-align:middle;border-bottom:1px solid #ccc;border-right:1px solid #ccc}.index-page tbody tr td:first-child{border-left:2px solid #08d}.index-page tbody tr td:last-child{border-right:2px solid #08d}.index-page table tr th:nth-child(1),.index-page table tr td:nth-child(1){border-right:none}.index-page table tr th:nth-child(2),.index-page table tr td:nth-child(2){border-left:1px solid #ccc}.index-page table tr th{border-top:2px solid #08d}.index-page table tr:last-child td{border-bottom:2px solid #08d}.index-page table tr th:first-child{border-top:2px solid #08d;border-left:2px solid #08d;border-top-left-radius:14px}.index-page table tr th:last-child{border-top:2px solid #08d;border-right:2px solid #08d;border-top-right-radius:14px}.index-page table tr:last-child td:first-child{border-bottom:2px solid #08d;border-left:2px solid #08d;border-bottom-left-radius:14px}.index-page table tr:last-child td:last-child{border-bottom:2px solid #08d;border-right:2px solid #08d;border-bottom-right-radius:14px}.index-page table tr.child{background:#fff}.index-page table tr.child td:nth-child(1),.index-page table tr.child-last td:nth-child(1){border-bottom:none}.index-page table tr.child td:nth-child(2),.index-page table tr.child-last td:nth-child(2),.index-page table tr.child td:nth-child(4),.index-page table tr.child-last td:nth-child(4){padding-left:30px;background-image:url(/image/child.png);background-position:left top;background-repeat:no-repeat}.index-page table tr.child td:nth-child(11),.index-page table tr.child-last td:nth-child(11){border-right:none;border-bottom:none}.index-page table tr.child td:last-child,.index-page table tr.child-last td:last-child{border-bottom:none}.index-page table tr.child-last td:nth-child(2){border-bottom-left-radius:8px}.index-page table tr.child-last td:nth-child(10){border-bottom-right-radius:8px}.index-page table tr.spac td{border-right:2px solid #08d}.index-page table tr.collapsed-with-children td{border-bottom:2px solid #08d}.index-page table tr.collapsed-with-children:not(.collapsed-with-children-bottom) td{border-bottom:none}.index-page table tr.collapsed-with-children-bottom td:first-child{border-bottom-left-radius:14px}.index-page table tr.collapsed-with-children-bottom td:last-child{border-bottom-right-radius:14px}.index-page table tr td:nth-child(1){text-align:center}.index-page table tr td:nth-child(2){font-weight:600}.index-page table tr.child td:nth-child(2),.index-page table tr.child-last td:nth-child(2),.index-page table tr.child td:nth-child(4),.index-page table tr.child-last td:nth-child(4){border-right:none}.index-page table tr td:nth-child(6),.index-page table tr td:nth-child(9),.index-page table tr td:nth-child(11){text-align:right;font-weight:600}.index-page table tr.child td:nth-child(6),.index-page table tr.child-last td:nth-child(6),.index-page table tr.child td:nth-child(9),.index-page table tr.child-last td:nth-child(9){text-align:right}.index-page table tr.child td:nth-child(8),.index-page table tr.child-last td:nth-child(8){text-align:left}.index-page tr.comp{background:#eafeef}.index-page tr.comp td:nth-child(9){background:#cbffd8}.index-page tr.comp td:nth-child(2) .fa-circle-check{color:#16a34a}.index-page tr.warning{background:#fff7de}.index-page tr.warning td:nth-child(9){background:#ffefb0}.index-page tr.warning svg{color:#f69e0a}.index-page tr.warning td:nth-child(12) svg,.index-page tr.warning td:nth-child(12) i{color:#fff}.index-page tr.alert{background:#ffe8e5}.index-page tr.alert td:nth-child(9){background:#ffcece}.index-page tr.alert td:nth-child(2),.index-page tr.alert td:nth-child(11){color:#9c0005}.index-page td.supplier-due-alert{color:#9c0005;font-weight:700}.index-page thead th table{width:100%}.index-page thead th table tr td{padding:0!important;margin:0!important;all:revert!important}.index-page thead th table tr td.arrow{text-align:right!important;font-size:9px!important;line-height:12px!important;color:#666!important}.pagination-wrap{display:flex;justify-content:center;align-items:center;margin:8px 0 28px;padding:10px 0}.custom-pagination-nav{width:100%;display:flex;justify-content:center}.custom-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}.custom-pagination .page-item{display:inline-flex;align-items:center;justify-content:center;list-style:none}.custom-pagination .page-link,.custom-pagination .page-item.disabled .page-link,.custom-pagination .page-item.active .page-link{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:38px;padding:0 14px;border-radius:999px;border:1px solid #dbeafe;background:#eff6ff;color:#1d4ed8;text-decoration:none;font-size:13px;font-weight:600;line-height:1;transition:all .2s ease;box-shadow:0 1px 2px #2563eb14}.custom-pagination .page-link:hover{background:#dbeafe;border-color:#93c5fd;transform:translateY(-1px)}.custom-pagination .page-item.active .page-link{background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:#1d4ed8;color:#fff;box-shadow:0 8px 16px #2563eb33}.custom-pagination .page-item.disabled .page-link{background:#f3f4f6;border-color:#e5e7eb;color:#9ca3af;cursor:default;pointer-events:none;box-shadow:none}.summary-header{display:flex;align-items:center;gap:12px;margin-bottom:8px}.summary-scope{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 12px;border-radius:999px;background:#dbeafe;border:1px solid #93c5fd;color:#1d4ed8;font-size:12px;font-weight:700;letter-spacing:.04em}.summary-count{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 12px;border-radius:999px;background:#ecfeff;border:1px solid #a5f3fc;color:#0f766e;font-size:12px;font-weight:700;letter-spacing:.02em}.summary-box{background:#ddeaff;padding:20px 20px 5px 40px;border:2px solid #08d;border-radius:14px;box-shadow:0 2px 6px #0003}.summary-box .form-row{display:flex;justify-content:space-between}.summary-box .form-row .summary{display:flex;justify-content:start}.summary-box .form-row .form-group{margin-right:48px}.summary-box .money p{font-size:24px;font-weight:600;color:#1460c7}.summary-box .money,.summary-box .money p{text-align:right}.status{font-weight:700;font-size:13px}.status.paid{color:#16a34a}.status.partial{color:#f59e0b}.status.unpaid{color:#dc2626}.status.overdue{color:#b91c1c}.btn-edit{border:none;background:#2563eb;color:#fff;padding:8px 16px;border-radius:6px;cursor:pointer}.btn-edit:hover{opacity:.9}.row-actions{display:flex;align-items:center;gap:2px;justify-content:center}.row-actions form{margin:0}.action-icon{width:32px;height:32px;border:none;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;text-decoration:none;transition:opacity .2s ease}.action-icon:hover{opacity:.9}.action-detail{background:#2563eb}.action-delete{background:#dc2626}.page-container.form-page{width:min(1600px,calc(100vw - 24px));min-width:0;max-width:1600px;margin:30px auto}.form-page .card{background:#fff;border:2px solid #0d6efd;border-radius:14px;width:100%;min-width:0;padding:20px;margin-bottom:20px;box-shadow:0 2px 6px #0003;overflow-x:auto}.form-page .card .flex{display:flex;gap:15px}.form-page .card .flex .radio{display:flex;margin-top:4px}.form-page .card .flex .radio label{margin-right:18px}.form-page .card .flex .radio input{margin-right:6px;height:auto}.form-page .card-header{display:flex;justify-content:space-between;align-items:center}.form-page .project-sticky-header{position:sticky;top:10px;z-index:20;background:#fff;padding-bottom:8px}.form-page .sticky-head-card{overflow:visible}.form-page .status-badges{margin-top:8px;display:flex;flex-wrap:wrap;gap:8px}.form-page .meta-badge,.form-page .status-chip{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700}.form-page .meta-badge{background:#eef2ff;color:#1e3a8a}.form-page .status-chip.status-paid{background:#dcfce7;color:#166534}.form-page .status-chip.status-partial{background:#fef3c7;color:#92400e}.form-page .status-chip.status-unpaid{background:#fee2e2;color:#991b1b}.form-page .status-chip.status-overdue{background:#fecaca;color:#7f1d1d}.form-page .sticky-actions{display:flex;gap:8px;align-items:flex-start}.form-page .alert-box{margin-bottom:16px;padding:12px 14px;border:1px solid #fca5a5;border-radius:10px;background:#fef2f2;color:#991b1b}.form-page .alert-box ul{margin:0;padding-left:18px}.form-page .section-title{font-size:17px;font-weight:600;color:#0b3062;margin-bottom:5px}.form-page .form-row{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:0}.form-page .form-left{display:flex;flex-wrap:wrap;margin-bottom:5px}.form-page .form-group{display:flex;flex-direction:column;margin-right:8px}.form-page .form-group label{margin-bottom:4px;font-size:13px;font-weight:600;color:#111}.form-page .form-group input,.form-page .form-group select{height:38px;padding:0 12px;border:1px solid #dcdcdc;border-radius:6px}.form-page .form-group .radio{display:flex;align-items:center;gap:18px;margin-top:8px}.form-page .form-group .radio label{display:inline-flex;align-items:center;margin:0}.form-page .form-group .radio input[type=radio]{width:auto;height:auto;min-height:0;padding:0;margin:0 6px 0 0;border:0}.form-page .detail-table{width:100%;min-width:1380px;border-collapse:collapse;table-layout:fixed}.form-page .detail-table th{background:#eaebed;color:#111;padding:11px;border:1px solid #cbd5e1;text-align:center}.form-page .detail-table td{padding:0 4px;line-height:46px;border:1px solid #dbe2ea}.form-page .detail-table td input,.form-page .detail-table td select{display:block;width:100%;height:100%;min-height:42px;margin:0;padding:0 10px;box-sizing:border-box;border:none}.form-page .detail-table td input.js-money-input{text-align:right}.form-page .attachment-card{overflow:visible}.form-page .attachment-header{align-items:center;justify-content:space-between}.form-page .attachment-upload-button{gap:6px;margin-top:0}.form-page .attachment-grid{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}.form-page .attachment-item{position:relative;width:180px;padding:8px;border:1px solid #dbe2ea;border-radius:8px;background:#f8fafc}.form-page .attachment-thumbnail{display:block;height:132px;overflow:hidden;border-radius:5px;background:#eef2f7}.form-page .attachment-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}.form-page .attachment-details{display:flex;flex-direction:column;gap:3px;min-width:0;padding:8px 2px 2px}.form-page .attachment-name{overflow:hidden;color:#1e3a8a;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.form-page .attachment-size{color:#64748b;font-size:11px}.form-page .attachment-delete-button{position:absolute;top:14px;right:14px;width:30px;height:30px;opacity:.92}.form-page .attachment-empty,.form-page .attachment-note{color:#64748b;font-size:13px}.form-page .attachment-note{margin-top:12px}.form-page .status-paid{background:#e8f7ea}.form-page .status-warning{background:#fff7d6}.form-page .status-danger{background:#ffe7e7}.form-page .btn-primary,.form-page .btn-secondary,.form-page .btn-danger,.form-page .btn-add{border-radius:6px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.form-page .btn-primary{background:#2563eb;color:#fff;border:none;padding:8px 16px;height:37px}.form-page .btn-secondary{background:#fff;color:#334155;border:1px solid #cbd5e1;padding:8px 16px;height:37px}.form-page .btn-danger{background:#dc2626;color:#fff;border:none;padding:8px 16px;height:37px}.form-page .btn-add{margin-top:10px;background:#fff;border:2px solid #2563eb;color:#2563eb;padding:8px 16px}.form-page .alert-badge{padding:10px 18px;border-radius:999px;font-weight:700}.form-page .alert-badge.danger{background:#ffe4e4;color:#b91c1c}.form-page .inline-form{display:flex;gap:8px;align-items:center}.form-page .btn-icon{width:34px;height:34px;padding:0}.form-page .form-actions{margin-top:16px;display:flex;gap:10px}.form-page .row-actions{justify-content:flex-end;gap:8px}.form-page .money{text-align:right;font-weight:600}.form-page .sticky-summary{position:sticky;bottom:8px;z-index:25;display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px;background:#fff;border:2px solid #0d6efd;border-radius:14px;box-shadow:0 6px 18px #00000029;padding:12px;margin-bottom:12px}.form-page .sticky-summary .summary-item{background:#f7f9fc;border-radius:10px;padding:8px 10px}.form-page .sticky-summary .summary-item label{display:block;font-size:12px;color:#64748b;margin-bottom:3px}.form-page .sticky-summary .summary-item span{font-size:20px;font-weight:700;color:#0f172a}.form-page .save-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background:#ffffffb8;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}.form-page .save-overlay.is-visible{display:flex;align-items:center;justify-content:center}.form-page .save-overlay-content{display:flex;align-items:center;gap:10px;background:#fff;border:2px solid #0d6efd;border-radius:12px;padding:14px 18px;box-shadow:0 8px 18px #00000026;color:#0f172a;font-weight:600}.form-page .save-spinner{width:20px;height:20px;border-radius:50%;border:3px solid #bfdbfe;border-top-color:#2563eb;animation:save-spin .8s linear infinite}@keyframes save-spin{to{transform:rotate(360deg)}}@media (max-width:1200px){.summary-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:768px){.summary-grid{grid-template-columns:1fr}.form-row{flex-direction:column}.form-page .card-header,.form-page .sticky-actions{flex-direction:column;align-items:flex-start}.form-page .sticky-summary{grid-template-columns:1fr 1fr}.btn-search{width:100%;margin-top:0}}
