.phase1-page{padding:20px 22px 36px;color:#213047}.phase1-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 20px}.phase1-head h2{font-size:21px;line-height:1.4;margin:0 0 6px}.phase1-head p{color:#65758b;font-size:13px;margin:0;line-height:1.55}.phase1-page button,.phase1-form button,.phase1-mobile-form button{border:1px solid #cdd9e7;background:#fff;color:#2461aa;border-radius:7px;padding:9px 15px;font:inherit;cursor:pointer;white-space:nowrap}.phase1-page button.is-primary,.phase1-mobile-form button.is-primary{background:#176bc4;border-color:#176bc4;color:#fff}.phase1-tabs{display:flex;gap:4px;border-bottom:1px solid #e2e8f0;margin:-4px 0 20px;overflow-x:auto}.phase1-tabs a{display:block;padding:11px 17px;color:#5f7187;text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent}.phase1-tabs a.is-active{color:#176bc4;border-bottom-color:#176bc4;font-weight:650}.phase1-records{display:grid;grid-template-columns:repeat(auto-fit,minmax(295px,1fr));gap:14px}.phase1-record{background:#fff;border:1px solid #e0e8f1;border-radius:10px;padding:16px 18px;min-width:0;box-shadow:0 2px 9px rgba(24,64,112,.04)}.phase1-record header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}.phase1-record header strong{font-size:15px;overflow-wrap:anywhere}.phase1-tag{font-size:12px;background:#f3f6fa;color:#66758a;padding:3px 8px;border-radius:4px;white-space:nowrap}.phase1-tag.is-confirmed{background:#e9f7ef;color:#238650}.phase1-record dl{margin:0}.phase1-record dl>div{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-top:1px solid #f0f3f7;font-size:13px}.phase1-record dt{color:#69798d;flex:none}.phase1-record dd{margin:0;text-align:right;overflow-wrap:anywhere}.phase1-record small{display:block;margin-top:9px;color:#7b8b9f}.phase1-empty{grid-column:1/-1;background:#fff;border:1px dashed #cad9e9;border-radius:10px;padding:35px;text-align:center;color:#6d7e92}.phase1-source-link{background:#edf6ff;border:1px solid #d1e7fa;border-radius:8px;padding:12px 15px;display:flex;gap:13px;align-items:center;margin-bottom:16px;font-size:13px;color:#536b85}.phase1-source-link b{color:#1d65ad;white-space:nowrap}.phase1-form{font-size:14px;color:#2a3e54}.phase1-source{background:#f4f8fc;border:1px solid #dbe7f2;border-radius:9px;padding:15px 17px;margin-bottom:16px}.phase1-source h3{font-size:15px;margin:0 0 5px}.phase1-source p{margin:0 0 11px;color:#697c90;font-size:13px;line-height:1.5}.phase1-source label{display:block;margin-bottom:10px}.phase1-source input[type=file]{display:block;width:100%;max-width:100%;margin-top:7px}.phase1-source button{margin-right:9px}.phase1-source small{color:#71849a;font-size:12px}.phase1-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.phase1-field{display:flex;flex-direction:column;gap:6px;min-width:0}.phase1-field span{font-weight:600}.phase1-field input,.phase1-field select{width:100%;box-sizing:border-box;border:1px solid #cedbe9;border-radius:6px;padding:9px 10px;min-height:38px;background:#fff;color:#263e59;font:inherit}.phase1-field input:focus,.phase1-field select:focus{outline:2px solid #b6d8fb;border-color:#438dd9}.phase1-field small{min-height:14px;color:#d44444;font-size:12px}.phase1-review{background:#fff8e9;border-left:3px solid #e7a837;padding:10px 13px;margin-top:16px}.phase1-review p{margin:4px 0 0;color:#795f36;font-size:12px}.phase1-confirm{display:flex;align-items:flex-start;gap:8px;margin-top:18px;line-height:1.5}.phase1-confirm input{margin-top:3px}.phase1-mobile{padding:15px 15px 110px}.phase1-mobile .phase1-head h2{font-size:18px}.phase1-mobile-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:16px}.phase1-mobile-actions button{width:100%}.phase1-mobile .phase1-records{grid-template-columns:1fr;gap:10px}.phase1-mobile .phase1-record{padding:13px}.phase1-mobile-form{position:absolute;inset:0;z-index:1000;display:flex;flex-direction:column;background:#f5f8fc;overflow:hidden}.phase1-mobile-form-head{flex:none;height:51px;display:flex;align-items:center;gap:12px;background:#086acb;color:#fff;padding:0 14px}.phase1-mobile-form-head button{border:0;color:#fff;background:transparent;padding:2px;font-size:30px;line-height:1}.phase1-mobile-form-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:15px 14px 24px}.phase1-mobile-form-foot{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#fff;border-top:1px solid #e3e9f2;padding:9px 12px 12px}.phase1-mobile-form-foot button{width:100%}.phase1-mobile-form .phase1-form-grid{grid-template-columns:1fr;gap:9px}.phase1-mobile-form .phase1-field input,.phase1-mobile-form .phase1-field select{min-height:43px}.phase1-mobile-form .phase1-source input[type=file]{font-size:12px}@media(max-width:650px){.phase1-page:not(.phase1-mobile){padding:15px}.phase1-head{flex-direction:column;gap:12px}.phase1-form-grid{grid-template-columns:1fr}}
.phase1-record>button{margin-top:12px;padding:6px 10px;font-size:12px}.phase1-next{margin:16px 0}.phase1-next a{color:#176bc4}.phase1-detail{padding:2px 4px 15px;color:#30445d}.phase1-detail>p{color:#647992;font-size:13px}.phase1-detail h3{font-size:15px;margin:20px 0 8px}.phase1-detail dl{margin:0;border:1px solid #e5ebf2;border-radius:8px;overflow:hidden}.phase1-detail dl>div{display:grid;grid-template-columns:145px minmax(0,1fr);border-bottom:1px solid #e5ebf2}.phase1-detail dl>div:last-child{border-bottom:0}.phase1-detail dt,.phase1-detail dd{padding:9px 11px;margin:0;overflow-wrap:anywhere}.phase1-detail dt{background:#f7f9fc;color:#647992}
.phase1-mobile-form .phase1-source{padding:11px 12px;margin-bottom:10px}.phase1-mobile-form .phase1-source p{margin-bottom:8px}.phase1-mobile-form .phase1-form-grid{gap:10px}.phase1-mobile-form .phase1-field{margin:0;padding:0;gap:5px}.phase1-mobile-form .phase1-field small:empty{display:none}
.phase1-unit-ledger{overflow:hidden;border:1px solid #e0e8f1;border-radius:10px;background:#fff;box-shadow:0 2px 9px rgba(24,64,112,.04)}
.phase1-unit-scroll{overflow-x:auto}
.phase1-unit-ledger table{width:100%;min-width:1020px;border-collapse:collapse;text-align:left}
.phase1-unit-ledger th{padding:13px 15px;border-bottom:1px solid #e4ebf2;background:#f7f9fc;color:#61738a;font-size:12px;font-weight:600;white-space:nowrap}
.phase1-unit-ledger td{padding:14px 15px;border-bottom:1px solid #edf1f5;color:#30445d;font-size:13px;vertical-align:middle}
.phase1-unit-ledger tbody tr:last-child td{border-bottom:0}
.phase1-unit-ledger tbody tr:hover{background:#f8fbff}
.phase1-unit-ledger td strong{font-weight:650;white-space:nowrap}
.phase1-unit-ledger td:nth-child(2),.phase1-unit-ledger td:nth-child(4){min-width:160px}
.phase1-unit-ledger td:nth-child(3){white-space:nowrap}
.phase1-unit-ledger td button{padding:6px 8px;border:0;background:transparent;color:#176bc4;font-size:12px}
.phase1-unit-ledger footer{padding:11px 15px;border-top:1px solid #e4ebf2;color:#74849a;font-size:12px}
@media(max-width:1000px){
  .phase1-unit-ledger table{min-width:0;table-layout:fixed}
  .phase1-unit-ledger :is(th,td):nth-child(3),.phase1-unit-ledger :is(th,td):nth-child(5){display:none}
  .phase1-unit-ledger :is(th,td){padding:11px 9px;overflow-wrap:anywhere}
  .phase1-unit-ledger :is(th,td):nth-child(1){width:17%}
  .phase1-unit-ledger :is(th,td):nth-child(2){width:24%;min-width:0}
  .phase1-unit-ledger :is(th,td):nth-child(4){width:28%;min-width:0}
  .phase1-unit-ledger :is(th,td):nth-child(6){width:13%}
  .phase1-unit-ledger :is(th,td):nth-child(7){width:18%}
}
.phase1-flat-ledger{overflow:hidden;border:1px solid #e0e8f1;border-radius:10px;background:#fff;box-shadow:0 2px 9px rgba(24,64,112,.04)}
.phase1-flat-scroll{overflow-x:auto}
.phase1-flat-ledger table{width:100%;min-width:1100px;border-collapse:collapse;text-align:left}
.phase1-flat-ledger th{padding:13px 15px;border-bottom:1px solid #e4ebf2;background:#f7f9fc;color:#61738a;font-size:12px;font-weight:600;white-space:nowrap}
.phase1-flat-ledger td{padding:14px 15px;border-bottom:1px solid #edf1f5;color:#30445d;font-size:13px;vertical-align:middle}
.phase1-flat-ledger tbody tr:last-child td{border-bottom:0}
.phase1-flat-ledger tbody tr:hover{background:#f8fbff}
.phase1-flat-ledger td strong{font-weight:650;white-space:nowrap}
.phase1-flat-ledger td button{padding:6px 8px;border:0;background:transparent;color:#176bc4;font-size:12px}
.phase1-flat-ledger footer{padding:11px 15px;border-top:1px solid #e4ebf2;color:#74849a;font-size:12px}
.phase1-entry-status{display:inline-block;padding:3px 8px;border-radius:4px;background:#e9f7ef;color:#238650;white-space:nowrap;font-size:12px}
.phase1-entry-status.is-blocked{background:#fff1f0;color:#c74840}
.phase1-person-ledger td small{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c74840;margin-top:4px}
@media(max-width:1450px){
  .phase1-flat-ledger table{min-width:0;table-layout:fixed}
  .phase1-flat-ledger :is(th,td){padding:11px 9px;overflow-wrap:anywhere}
  .phase1-person-ledger :is(th,td):nth-child(1),.phase1-person-ledger :is(th,td):nth-child(4),.phase1-person-ledger :is(th,td):nth-child(7),.phase1-person-ledger :is(th,td):nth-child(8){display:none}
  .phase1-person-ledger :is(th,td):nth-child(2){width:15%}
  .phase1-person-ledger :is(th,td):nth-child(3){width:36%}
  .phase1-person-ledger :is(th,td):nth-child(5){width:22%}
  .phase1-person-ledger :is(th,td):nth-child(6){width:27%}
  .phase1-person-ledger td small{max-width:none;white-space:normal;overflow:visible}
  .phase1-contract-ledger :is(th,td):nth-child(4),.phase1-contract-ledger :is(th,td):nth-child(5),.phase1-contract-ledger :is(th,td):nth-child(7){display:none}
  .phase1-contract-ledger :is(th,td):nth-child(1){width:25%}
  .phase1-contract-ledger :is(th,td):nth-child(2){width:30%}
  .phase1-contract-ledger :is(th,td):nth-child(3){width:30%}
  .phase1-contract-ledger :is(th,td):nth-child(6){width:15%}
}

/* Keep record actions reachable on narrow desktop screens. */
.phase1-flat-ledger table{min-width:950px;table-layout:auto}
.phase1-person-ledger :is(th,td),.phase1-contract-ledger :is(th,td){display:table-cell!important;width:auto!important}
.phase1-flat-ledger :is(th,td):last-child{position:sticky;right:0;background:#fff;min-width:88px;box-shadow:-3px 0 4px #2437460a}
[data-phase1-page="W45"] .phase1-flat-ledger :is(th,td):last-child{min-width:190px;white-space:nowrap}
[data-phase1-page="W45"] .phase1-flat-ledger td a{display:inline-block;margin-left:10px;color:#176bc4;font-size:12px;text-decoration:none}
[data-phase1-page="W45"] .phase1-flat-ledger td a:hover{text-decoration:underline}
.phase1-subsection-title{font-size:16px;line-height:1.5;margin:22px 0 10px;color:#213047}
.phase1-mobile .phase1-flat-ledger table{min-width:0}
.phase1-mobile .phase1-flat-ledger thead{display:none}
.phase1-mobile .phase1-flat-ledger :is(table,tbody,tr,td){display:block}
.phase1-mobile .phase1-flat-ledger tr{padding:12px;border-bottom:8px solid #f3f6f9}
.phase1-mobile .phase1-flat-ledger td{padding:8px 4px;border:0;position:static;box-shadow:none}
.phase1-mobile .phase1-flat-ledger td[data-label]{display:grid;grid-template-columns:90px 1fr;gap:12px}
.phase1-mobile .phase1-flat-ledger td[data-label]::before{content:attr(data-label);color:#64748b}
.phase1-mobile .phase1-flat-ledger td button{min-height:44px}
.phase1-source pre,[data-receipt-source] pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:250px;overflow:auto}

.phase1-entry-status.is-pending{background:#fff5e7;color:#96580d}
.phase1-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}

.phase1-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
