/* Scoped workspace: compact records with room around the working surface. */
.erp-ui .content:has(.cw){padding:36px 44px 96px!important;background:#f3f6f8;overflow:visible;}
.cw,.cw-dialog{--cw-brand:#24695c;--cw-border:#dce5e9;--cw-ink:#263d48;--cw-muted:#647982;color:var(--cw-ink);font-family:inherit;font-size:16px;line-height:1.55;}
.cw{max-width:1570px;margin:0 auto;}
.cw *,.cw-dialog *{box-sizing:border-box;}
.cw button,.cw-dialog button{font:inherit;font-size:14px;font-weight:600;min-height:36px;padding:6px 12px;background:white;color:var(--cw-ink);border:1px solid var(--cw-border);border-radius:6px;cursor:pointer;box-shadow:none;white-space:nowrap;}
.cw button:hover,.cw-dialog button:hover{background:#eef5f3;border-color:#9ebdb4;}
.cw button:disabled,.cw-dialog button:disabled{opacity:.5;cursor:not-allowed;}
.cw .cw-primary,.cw-dialog .cw-primary{background:var(--cw-brand);border-color:var(--cw-brand);color:white;}
.cw :is(input,select,textarea),.cw-dialog :is(input,select,textarea){font:inherit;font-size:14px;line-height:1.5;min-width:0;width:100%;height:38px;border:1px solid #cfdbdf;border-radius:6px;padding:7px 10px;color:var(--cw-ink);background:white;box-shadow:none;}
.cw input[type=checkbox],.cw-dialog input[type=checkbox]{width:17px;height:17px;padding:0;accent-color:var(--cw-brand);vertical-align:middle;}
.cw :is(input,select,textarea):disabled{background:#f5f7f8;color:#667b85;}
.cw :is(button,input,select,textarea,a):focus-visible,.cw-dialog :is(button,input,select,textarea,a):focus-visible{outline:3px solid #75afa0;outline-offset:2px;}
.cw :is(h1,h2,h3,p),.cw-dialog :is(h2,h3,p){margin:0;}
.cw h1{font-size:28px;letter-spacing:-.8px;line-height:1.5;}
.cw h2,.cw-dialog h2{font-size:18px;line-height:1.5;}
.cw h3,.cw-dialog h3{font-size:16px;}
.cw small,.cw-dialog small{font-size:12px;color:var(--cw-muted);}
.cw-page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:16px;}
.cw-page-head p{font-size:13px;color:var(--cw-brand);}
.cw-page-head p span{color:var(--cw-muted);}
.cw-demo{background:#fff9e9;border:1px solid #e9dcba;color:#756437;font-size:12px;padding:10px 14px;border-radius:6px;margin-bottom:20px;}
.cw-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start;}
.cw-list{background:white;border:1px solid var(--cw-border);border-radius:10px;overflow:hidden;position:sticky;top:20px;}
.cw-search{display:block;padding:18px 14px 10px;}
.cw-search span{display:block;font-size:14px;font-weight:700;margin-bottom:8px;}
.cw-search input{font-size:13px;}
.cw-filters{display:flex;gap:4px;flex-wrap:wrap;padding:0 14px 10px;}
.cw-filters button{font-size:12px;padding:4px 8px;min-height:30px;}
.cw-filters button[aria-pressed=true]{color:var(--cw-brand);background:#eaf4ef;border-color:#aac8bd;}
.cw .cw-count{font-size:12px;color:var(--cw-muted);padding:0 14px 12px;}
.cw .cw-person{display:block;text-align:left;width:100%;border:0;border-top:1px solid #eef2f4;border-radius:0;padding:16px;white-space:normal;}
.cw-person strong{display:flex;justify-content:space-between;gap:5px;font-size:15px;}
.cw-person strong span{font-size:12px;color:var(--cw-brand);}
.cw-person small{display:block;margin-top:4px;}
.cw .cw-person.selected{background:#edf5f2;box-shadow:inset 3px 0 var(--cw-brand);}
.cw-list footer{font-size:12px;color:var(--cw-muted);padding:16px;border-top:1px solid var(--cw-border);}
.cw-work{min-width:0;container-type:inline-size;}
.cw-customer-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;margin:0 0 18px;}
.cw-customer-head h2{font-size:23px;letter-spacing:-.5px;}
.cw-customer-head h2 span{font-weight:500;}
.cw-customer-head>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.cw-save-status{font-size:12px;color:var(--cw-muted);}
.cw-error{font-size:13px;color:#b33b35;}
.cw-return,.cw-history-banner{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;border:1px solid #b9d7ca;border-left:4px solid var(--cw-brand);padding:14px 16px;border-radius:7px;background:#eaf5ef;margin-bottom:16px;}
.cw-return strong{color:var(--cw-brand);font-size:15px;}
.cw-return span{font-size:14px;margin-left:14px;}
.cw-history-banner{background:#fff7e7;border-color:#e3c88e;}
.cw-history-list{margin-bottom:16px;}
.cw-history-list button{width:100%;display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between;padding:16px;}
.cw-card{background:white;border:1px solid var(--cw-border);border-radius:10px;margin-bottom:24px;min-width:0;overflow:hidden;}
.cw-card>header{padding:18px 22px;border-bottom:1px solid var(--cw-border);display:flex;align-items:center;justify-content:space-between;gap:12px;}
.cw-card>header h2{display:flex;align-items:center;gap:10px;}
.cw-card>header b{display:inline-grid;place-items:center;background:#edf5f2;color:var(--cw-brand);border-radius:6px;width:28px;height:28px;font-size:14px;}
.cw-fields{border:0;padding:20px 22px;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.cw-fields>.cw-field:last-child{grid-column:1/-1;max-width:650px;}
.cw-field{display:grid;gap:6px;min-width:0;font-size:14px;}
.cw-field>span{color:#516973;font-weight:600;}
.cw-table-wrap{overflow-x:auto;max-width:100%;}
.cw table{width:100%;border-collapse:collapse;font-size:14px;table-layout:auto;}
.cw th{font-size:12px;font-weight:600;color:var(--cw-muted);background:#f7f9fa;text-align:left;padding:11px 14px;white-space:nowrap;border-bottom:1px solid var(--cw-border);}
.cw td{padding:12px 14px;border-bottom:1px solid #eef2f4;vertical-align:middle;line-height:1.5;}
.cw table input:not([type=checkbox]){min-width:100px;}
.cw table input[type=date]{min-width:142px;}
.cw table select{min-width:78px;}
.cw-number{text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums;}
.cw-row-actions{display:flex;gap:4px;}
.cw-row-actions button{font-size:12px;padding:4px 7px;min-height:30px;}
.cw .cancelled{color:#7e8c91;background:#fafbfc;}
.cw .cancelled td:nth-child(2){text-decoration:line-through;}
.cw-block{display:block;}
.cw-recommend{padding:20px 22px;background:#fcfdfd;border-top:1px solid var(--cw-border);}
.cw-recommend>header{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px;}
.cw-recommend>header p{font-size:12px;color:var(--cw-muted);margin-top:4px;}
.cw-recommend>header>div:last-child{display:flex;gap:8px;}
.cw-recommend-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.cw-recommend-grid>div{padding:13px;border:1px solid var(--cw-border);border-radius:7px;background:white;}
.cw-recommend-grid>div.due{border-color:#73b49c;background:#edf7f1;}
.cw-recommend-grid header{display:flex;justify-content:space-between;gap:8px;align-items:center;}
.cw-recommend-grid header span{font-size:12px;color:var(--cw-brand);}
.cw-recommend-grid p{font-size:14px;margin:8px 0 4px;font-variant-numeric:tabular-nums;}
.cw-recommend-grid small{display:block;min-height:36px;line-height:1.5;}
.cw-recommend-grid button{margin-top:8px;font-size:12px;min-height:28px;padding:3px 8px;background:transparent;}
.cw .cw-link{border:0;background:transparent;color:var(--cw-brand);padding-left:0;margin-top:12px;}
.cw-copy{display:flex;align-items:center;gap:16px;margin-top:16px;padding:14px;background:#edf4f8;border-radius:6px;font-size:14px;}
.cw-contract-heading{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.cw-contract-heading strong{font-size:16px;}
.cw-contract-heading span{font-size:12px;color:var(--cw-muted);margin-left:12px;}
.cw-contract-heading label{font-size:13px;}
.cw-subhead{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 22px;background:#fcfdfd;border-top:1px solid #eef2f4;}
.cw-subhead small{margin-left:8px;font-weight:400;}
.cw-totals{display:flex;justify-content:flex-end;gap:24px;flex-wrap:wrap;padding:16px 22px;background:#f0f6f4;}
.cw-totals span{font-size:13px;color:var(--cw-muted);}
.cw-totals strong{font-size:16px;color:var(--cw-ink);margin-left:8px;}
.cw-badge{display:inline-block;background:#edf4f3;color:#326f61;border-radius:5px;padding:3px 7px;font-size:12px;white-space:nowrap;}
.cw-badge.warning{background:#fff1e7;color:#a25424;}
.cw-audit{padding:16px 22px;border-top:1px solid var(--cw-border);font-size:14px;}
.cw-audit summary{cursor:pointer;color:var(--cw-muted);}
.cw-audit p{padding:12px 0;border-bottom:1px solid #eef2f4;}
.cw-shoots{min-width:760px;}
.cw-shoot-memo{min-width:210px;white-space:pre-wrap;}
.cw-footnote{font-size:12px;color:var(--cw-muted);padding:12px 22px;}
.cw-memos>article{padding:20px 22px;border-bottom:1px solid #edf1f3;}
.cw-memos header{display:flex;justify-content:space-between;gap:12px;align-items:center;}
.cw-memos header>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.cw-memos header strong{font-size:14px;}
.cw-memos time{font-size:12px;color:var(--cw-muted);}
.cw-memos p{font-size:16px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:12px;}
.cw-memos header button{font-size:12px;min-height:28px;color:#98564d;}
.cw-compose{padding:22px;background:#fafcfc;}
.cw-compose textarea{height:150px;min-height:150px;resize:vertical;font-size:16px;}
.cw-compose footer{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:14px;}
.cw-compose footer label{font-size:14px;}
.cw-compose footer span{font-size:12px;color:var(--cw-muted);margin-left:auto;}
.cw-bottom-note{font-size:12px;color:var(--cw-muted);padding:8px 0 64px;}
.cw-empty{padding:28px 22px;color:var(--cw-muted);font-size:14px;}
.cw-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.cw-dialog{position:fixed;inset:0;width:min(650px,calc(100vw - 32px));max-height:88vh;margin:auto;border:1px solid #cfdbdf;border-radius:12px;padding:0;background:white;box-shadow:0 20px 70px #18394433;}
.cw-dialog::backdrop{background:#102c3c66;}
.cw-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid var(--cw-border);position:sticky;top:0;background:white;z-index:1;}
.cw-dialog>form,.cw-dialog-body{padding:24px;}
.cw-dialog form>.cw-field,.cw-dialog-body>.cw-field{margin-bottom:16px;}
.cw-dialog textarea{min-height:90px;resize:vertical;height:auto;}
.cw-dialog-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;}
/* Compact vertical ledger entry, using the price workspace palette and scale. */
.cw-dialog:has(.cw-finance-form){width:min(420px,calc(100vw - 32px));border-radius:8px;font-family:Pretendard,"Noto Sans KR",Arial,sans-serif;font-size:14px;overflow-y:auto;}
.cw-dialog:has(.cw-finance-form)>header{padding:14px 18px;background:#f3f7f7;}
.cw-dialog:has(.cw-finance-form) h2{font-size:18px;font-weight:600;}
.cw-dialog .cw-finance-form{padding:18px;}
.cw-finance-form .cw-dialog-grid{grid-template-columns:minmax(0,1fr);gap:14px;}
.cw-dialog .cw-finance-form .cw-field{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin-bottom:14px;}
.cw-dialog .cw-finance-form .cw-dialog-grid .cw-field{margin-bottom:0;}
.cw-dialog .cw-finance-form .cw-field>span{font-size:14px;font-weight:500;color:#647982;}
.cw-dialog .cw-finance-form :is(input,select,textarea){font-size:14px;font-weight:400;border-radius:5px;text-align:left;}
.cw-dialog .cw-finance-form input[name=amount]{background:#edf6f3;border-color:#b9d5cc;color:#24695c;font-weight:600;}
.cw-dialog .cw-finance-form textarea{min-height:76px;}
.cw-dialog .cw-finance-form .cw-footnote{font-size:13px;line-height:1.5;color:#647982;}
.cw-dialog .cw-finance-form .cw-form-footer{margin-top:18px;padding-top:14px;}
.cw-form-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--cw-border);margin-top:24px;padding-top:18px;}
.cw-dialog p{margin-bottom:16px;font-size:14px;}
.cw-dialog .cw-footnote{padding:0;}
.cw-dialog fieldset{border:1px solid var(--cw-border);padding:14px;border-radius:6px;}
.cw-check{display:flex;align-items:center;gap:10px;font-size:14px;padding:6px;}
.cw-image-preview{display:block;max-width:100%;max-height:200px;object-fit:contain;margin:12px 0;}
.cw-reminder{border:1px solid var(--cw-border);padding:14px;border-radius:6px;margin:12px 0;}
/* Dense working layout: preserve the visual language, reduce framing space. */
.erp-ui .content:has(.cw){padding:20px 28px 64px!important;}
.cw-page-head{margin-bottom:8px;}
.cw-page-head>div{display:flex;align-items:baseline;gap:16px;}
.cw h1{font-size:23px;}
.cw h2{font-size:16px;}
.cw h3{font-size:14px;}
.cw .cw-demo{padding:5px 10px;margin-bottom:8px;}
.cw-layout{display:block!important;}
.cw-list{position:relative;top:auto;display:block!important;overflow:visible;margin-bottom:8px;border-radius:6px;z-index:4;}
.cw-list>summary{padding:5px 12px;font-size:14px;cursor:pointer;color:var(--cw-brand);font-weight:600;}
.cw-list>summary span{font-size:12px;font-weight:400;color:var(--cw-muted);margin-left:16px;}
.cw-list-body{position:absolute;left:0;top:100%;width:min(340px,100%);max-height:65vh;overflow:auto;background:white;border:1px solid var(--cw-border);box-shadow:0 12px 28px #163a4020;border-radius:6px;}
.cw .cw-person{padding:10px 14px;}
.cw-customer-head{margin-bottom:8px;gap:8px;}
.cw-customer-head h2{font-size:19px;}
.cw-return,.cw-history-banner{padding:5px 12px;margin-bottom:8px;gap:8px;}
.cw button{min-height:30px;padding:4px 9px;}
.cw :is(input,select){height:32px;padding:4px 7px;}
.cw-record-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:10px;align-items:start;margin-bottom:10px;}
.cw-card{margin-bottom:0;border-radius:8px;}
.cw-card>header{padding:7px 12px;gap:8px;}
.cw-card>header b{width:23px;height:23px;}
.cw-card-3,.cw-card-4{grid-column:1/-1;}
.cw-fields{padding:10px 12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;}
.cw-fields>.cw-field:last-child{grid-column:auto;max-width:none;}
.cw-field{gap:3px;}
.cw-fields .cw-field{grid-template-columns:76px minmax(0,1fr);align-items:center;}
.cw th{padding:5px 8px;}
.cw td{padding:5px 8px;}
.cw .cw-children{table-layout:fixed;}
.cw .cw-children :is(input,select){min-width:0;width:100%;}
.cw-children th:nth-child(1){width:13%;}
.cw-children th:nth-child(2){width:18%;}
.cw-children th:nth-child(3){width:13%;}
.cw-children th:nth-child(4),.cw-children th:nth-child(5){width:28%;}
.cw-children td{padding:5px 4px;}
.cw-row-actions{flex-wrap:wrap;gap:2px;}
.cw-row-actions button{min-height:25px;padding:2px 5px;}
.cw-contract-heading{padding:6px 12px;gap:6px;}
.cw-contract-heading strong{font-size:14px;}
.cw-contract-heading span{margin-left:7px;}
.cw-subhead{padding:4px 12px;}
.cw-totals{padding:7px 12px;justify-content:space-between;gap:6px;}
.cw-totals strong{font-size:14px;margin-left:5px;}
.cw-audit{padding:5px 12px;font-size:12px;}
.cw-payment-detail{max-width:180px;}
.cw-payment-detail summary{cursor:pointer;font-size:14px;}
.cw-payment-detail p{font-size:12px;color:var(--cw-muted);}
.cw-recommend{grid-column:1/-1;padding:8px 12px;border:1px solid var(--cw-border);border-radius:8px;background:white;}
.cw-recommend>header{margin-bottom:5px;gap:8px;}
.cw-recommend>header>div:last-child{display:flex;gap:6px;}
.cw-recommend select{width:auto;max-width:180px;font-size:12px;height:28px;}
.cw-timing-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;}
.cw .cw-timing-row button{border:0;border-right:1px solid var(--cw-border);border-radius:0;padding:3px 8px;text-align:left;white-space:normal;background:transparent;}
.cw .cw-timing-row button:last-child{border-right:0;}
.cw-timing-row strong{display:block;font-size:14px;color:var(--cw-brand);}
.cw-timing-row span{display:block;font-size:14px;font-weight:400;font-variant-numeric:tabular-nums;}
.cw .cw-timing-row .due{background:#edf7f1;border-radius:5px;}
.cw-shoots{min-width:0;}
.cw-shoot-memo{min-width:180px;width:32%;}
.cw-footnote{padding:5px 12px;}
.cw-card-4 table{table-layout:fixed;}
.cw-card-4 th:nth-child(1){width:30%;}
.cw-card-4 th:nth-child(2){width:8%;}
.cw-card-4 th:nth-child(3){width:22%;}
.cw-card-5{margin-top:10px;}
.cw-memos>article{padding:12px 16px;}
.cw-memos p{margin-top:6px;line-height:1.7;}
.cw-empty{padding:12px;}
@container(max-width:1080px){.cw-timing-row{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:6px;}}
@media(max-width:650px){.cw .cw-fields{grid-template-columns:1fr;}.cw .cw-timing-row{grid-template-columns:repeat(2,minmax(0,1fr));}.cw-list>summary span{display:none;}.cw-page-head>div{display:block;}.cw .cw-children{min-width:540px;}.cw-shoots{min-width:700px;}.cw-card-4 table{min-width:520px;}}
@container(max-width:900px){.cw-fields{grid-template-columns:repeat(2,minmax(0,1fr));}.cw-recommend-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:1250px){.erp-ui .content:has(.cw){padding:28px 24px 80px!important;}.cw-layout{grid-template-columns:200px minmax(0,1fr);gap:18px;}}
@media(max-width:1000px){.cw-layout{grid-template-columns:1fr;}.cw-list{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}.cw-search,.cw-filters,.cw-count,.cw-list footer{grid-column:1/-1;}.cw-person{border-right:1px solid var(--cw-border)!important;}}
@media(max-width:650px){.erp-ui .content:has(.cw){padding:20px 12px 60px!important;}.cw-recommend-grid{grid-template-columns:1fr;}.cw-fields{grid-template-columns:1fr;}.cw-customer-head h2{font-size:20px;}.cw-return span{display:block;margin:4px 0 0;}.cw-card>header{padding:16px;}.cw-dialog-grid{grid-template-columns:1fr;}.cw-recommend>header>div:last-child{flex-wrap:wrap;}.cw-totals{justify-content:flex-start;gap:10px;}.cw-copy{flex-wrap:wrap;}}
/* Customer review: paired identity and timing, separate accounting ledgers. */
.cw .cw-search-bar{display:flex;align-items:center;gap:12px;padding:10px 14px;}
.cw-search-bar label{font-size:15px;font-weight:700;white-space:nowrap;}
.cw .cw-search-bar input{height:38px;max-width:560px;flex:1;}
.cw .cw-search-bar button{height:38px;min-width:72px;}
.cw .cw-search-bar .cw-new-customer-button{margin-left:auto;min-width:112px;}
.cw .cw-list{position:relative;}
.cw .cw-list-body{width:min(420px,100%);z-index:5;}
.cw-result-heading{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;}
.cw .cw-identity{display:flex;align-items:center;gap:10px;}
.cw .cw-identity{flex-wrap:wrap;}
.cw .cw-identity h2{white-space:nowrap;display:inline;line-height:1.5;}
.cw .cw-identity h2 span{display:inline!important;}
.cw .cw-record-grid{grid-template-columns:minmax(0,1.5fr) minmax(350px,1fr);align-items:start;}
.cw-card-1,.cw-card-2{grid-column:auto;}
.cw-card-3,.cw-card-4,.cw-card-5{grid-column:1/-1;}
.cw .cw-card-5{margin-top:0;width:fit-content;max-width:100%;}
.cw .cw-card-6{margin-top:10px;}
.cw-timing-controls{display:flex;gap:8px;padding:6px 12px;}
.cw .cw-timing-controls select{height:30px;}
.cw .cw-timing-list{display:flex;flex-direction:column;}
.cw .cw-timing-list button{display:grid;grid-template-columns:52px minmax(0,1fr) 54px;gap:7px;align-items:center;text-align:left;white-space:normal;border:0;border-top:1px solid #eef2f4;border-radius:0;padding:4px 12px;min-height:30px;font-weight:400;}
.cw-timing-list strong{color:var(--cw-brand);font-weight:600;}
.cw-timing-list span{font-variant-numeric:tabular-nums;font-size:14px;}
.cw-timing-list small{text-align:right;}
.cw .cw-timing-list .due{background:#edf7f1;}
.cw-timing-footer{padding:4px 12px;border-top:1px solid var(--cw-border);text-align:right;}
.cw .cw-timing-footer button{border:0;min-height:26px;color:var(--cw-brand);}
.cw-ledgers{display:grid;grid-template-columns:1fr 1.1fr;}
.cw-ledgers>section{min-width:0;}
.cw-ledgers>section+section{border-left:1px solid #baccc6;}
.cw .cw-ledgers .cw-subhead{background:#f3f7f6;border-top:1px solid var(--cw-border);border-bottom:1px solid var(--cw-border);padding:6px 12px;}
.cw .cw-ledgers th{background:#fff;border-bottom:1px solid var(--cw-border);}
.cw .cw-ledgers td{border-bottom:1px solid #e7edeb;padding:7px 8px;}
.cw-ledgers td:nth-child(1){white-space:nowrap;}
.cw .cw-totals{justify-content:flex-start;gap:0;border-top:1px solid var(--cw-border);padding:7px 0;}
.cw-totals>span{padding:0 18px;border-right:1px solid #cfddd6;}
.cw-totals>span:last-child{border-right:0;}
.cw .cw-card-4 table{table-layout:auto;}
.cw .cw-card-4 th:nth-child(n){width:auto;}
.cw .cw-card-5 table{width:auto;table-layout:auto;}
.cw-card-5 th:nth-child(1){min-width:220px;}
.cw-card-5 th:nth-child(2){width:60px;}
.cw-card-5 th:nth-child(3){width:130px;}
.cw-card-5 th:nth-child(4){width:165px;}
.cw .cw-card-5 input{width:11em;min-width:0;}
.cw .cw-card-5 select{width:120px;}
.cw-dialog .cw-concept-picker{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:4px;max-height:240px;overflow:auto;}
.cw-concept-picker small{grid-column:1/-1;}
.cw-catalog-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:12px;}
.cw-catalog-add{display:flex;gap:8px;padding:12px;}
.cw-catalog-items>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px;border-top:1px solid var(--cw-border);font-size:14px;}
.cw-catalog-editor>p{font-size:13px;}
@container(max-width:970px){.cw .cw-record-grid{grid-template-columns:1fr;}.cw .cw-card-1,.cw .cw-card-2{grid-column:1/-1;}.cw-ledgers{grid-template-columns:1fr;}.cw-ledgers>section+section{border-left:0;border-top:1px solid #baccc6;}}
@media(max-width:650px){.cw .cw-search-bar{gap:6px;padding:8px;}.cw-search-bar label{font-size:14px;}.cw .cw-identity{gap:6px;}.cw .cw-identity h2{font-size:16px;}.cw-catalog-grid{grid-template-columns:1fr;}.cw .cw-timing-list button{grid-template-columns:48px minmax(0,1fr) 54px;}.cw-card-5 table{min-width:560px;}}
.cw .cw-card-1,.cw .cw-card-2{align-self:stretch;}
.cw .cw-card-2{display:flex;flex-direction:column;}
.cw .cw-card-2 .cw-timing-list{flex:1;justify-content:space-evenly;}
.cw .cw-timing-list>div{display:grid;grid-template-columns:52px minmax(0,1fr) 78px;gap:8px;align-items:center;padding:4px 12px;min-height:30px;border-top:1px solid #eef2f4;font-size:14px;}
.cw .cw-timing-list>div:first-child{border-top:0;}
.cw .cw-timing-list>div.due{background:#edf7f1;}
.cw .cw-timing-list .cw-badge{font-size:12px;text-align:center;}
.cw .cw-ledgers{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);}
.cw .cw-ledgers tfoot :is(td,th){background:#f0f6f4;border-top:1px solid #b8cdc5;border-bottom:0;padding:9px 8px;font-size:14px;}
.cw .cw-payment-table :is(td,th){white-space:nowrap;}
.cw .cw-payment-table{table-layout:fixed;}
.cw .cw-payment-table :is(th,td):nth-child(1){width:102px;}
.cw .cw-payment-table :is(th,td):nth-child(2),.cw .cw-payment-table :is(th,td):nth-child(3){width:96px;}
.cw .cw-payment-table :is(th,td):nth-child(4){width:92px;}
.cw .cw-payment-table :is(th,td):nth-child(6){width:50px;}
.cw .cw-children :is(th,td):last-child{width:50px;text-align:center;}
.cw .cw-child-delete{min-height:25px;padding:2px 5px;color:#98564d;}
.cw .cw-payment-table button{min-height:25px;padding:2px 5px;}
.cw .cw-ledgers .cw-row-actions{flex-wrap:nowrap;}
@container(max-width:1100px){.cw .cw-ledgers{grid-template-columns:1fr;}.cw .cw-ledgers>section+section{border-left:0;border-top:1px solid var(--cw-border);}}
@media(max-width:650px){.cw .cw-card-2>header{flex-wrap:wrap;}.cw .cw-timing-list>div{grid-template-columns:46px minmax(0,1fr) 76px;gap:5px;}}
.cw .cw-customer-head{padding:18px 18px;margin:12px 0;border:1px solid #c8d9d2;border-left:5px solid var(--cw-brand);border-radius:8px;background:white;min-height:88px;}
.cw .cw-identity h2{font-size:27px;font-weight:750;letter-spacing:-.7px;}
.cw-status-pills{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.cw .cw-status-chip{display:inline-flex;align-items:center;gap:4px;min-height:29px;padding:4px 9px;border:1px solid #bad0c8;border-radius:6px;background:#edf6f3;color:#24695c;font-size:13px;font-weight:700;line-height:1;white-space:nowrap;}
.cw .cw-status-chip b{font-size:15px;line-height:1;}
.cw .cw-status-chip small{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:9px;background:rgba(255,255,255,.72);font-size:11px;}
.cw .cw-return-chip{border-color:#e7a25d;background:#fff1df;color:#a6500d;box-shadow:0 1px 0 rgba(138,67,7,.12);cursor:pointer;}
.cw .cw-return-chip:hover,.cw .cw-return-chip:focus-visible{background:#ffe5c4;border-color:#cd731e;box-shadow:0 0 0 3px rgba(226,133,50,.18);}
.cw .cw-new-chip{background:#f3f5f5;color:#697773;border-color:#d8dfdd;}
.cw .cw-production-chip{background:#e8f4f0;color:#24695c;border-color:#b7d4ca;}
.cw .cw-status-dot{display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#7c8996;vertical-align:middle;}
.cw .cw-status-dot-done{background:#24695c;}
.cw .cw-status-dot-booked{background:#287fbb;}
.cw .cw-status-dot-working{background:#8b65b1;}
.cw .cw-status-dot-attention{background:#c18322;}
.cw .cw-status-dot-cancelled{background:#9a9fa7;}
.cw .cw-status-control{display:inline-flex;align-items:center;gap:7px;max-width:100%;vertical-align:middle;}
.cw .cw-status-control select{min-width:0;flex:1 1 auto;}
.cw .cw-fields .cw-field{grid-template-columns:134px minmax(0,1fr);}
.cw .cw-source-note-row{grid-column:1/-1;display:grid;grid-template-columns:270px minmax(0,1fr);gap:12px;align-items:center;}
.cw .cw-source-note-row .cw-visit-source{grid-template-columns:134px minmax(0,1fr);}
.cw .cw-source-note-row .cw-visit-source select{width:100%;max-width:100%;}
.cw .cw-source-note-row .cw-special-note{grid-template-columns:92px minmax(0,1fr);}
.cw :is(input:not([type=checkbox]):not([type=file]),select){text-align:center;text-align-last:center;}
.cw .cw-shoots td.cw-shoot-memo{padding:0 30px;}
.cw .cw-shoots th:nth-child(6){padding-left:30px;padding-right:30px;}
.cw .cw-shoots td:nth-child(5) select{width:80px;min-width:0;text-align:center;text-align-last:center;padding-left:3px;padding-right:3px;}
.cw .cw-timing-list>div{grid-template-columns:45px minmax(0,1fr) 70px 50px;gap:5px;}
.cw .cw-timing-list>div>button{font-size:12px;padding:2px 6px;min-height:26px;}
.cw-dialog .cw-history-list>button{width:100%;display:flex;justify-content:space-between;gap:10px;padding:12px;flex-wrap:wrap;margin-bottom:6px;}
.cw .cw-compose{padding:10px 14px;border-bottom:1px solid var(--cw-border);}
.cw .cw-compose textarea{height:75px;min-height:75px;font-size:14px;}
.cw-compose-main{display:grid;grid-template-columns:minmax(0,1fr) 75px;gap:8px;align-items:stretch;}
.cw .cw-record-button{width:75px;height:75px;padding:0;border-radius:6px;font-size:15px;}
.cw .cw-memo-ledger>article{display:grid;grid-template-columns:95px 100px minmax(0,1fr) 45px;align-items:start;gap:10px;padding:8px 14px;}
.cw .cw-memo-ledger time{font-size:15px;font-weight:800;color:var(--cw-ink);padding-top:2px;}
.cw .cw-memo-ledger strong{font-size:13px;font-weight:500;color:var(--cw-muted);padding-top:3px;overflow-wrap:anywhere;}
.cw .cw-memo-ledger p{margin:0;font-size:15px;line-height:1.65;white-space:break-spaces;overflow-wrap:anywhere;}
.cw .cw-memo-ledger article>button{min-height:26px;font-size:12px;padding:2px 5px;color:#98564d;}
@media(max-width:650px){.cw .cw-identity h2{font-size:21px;white-space:normal;}.cw .cw-memo-ledger>article{grid-template-columns:85px minmax(0,1fr) 42px;}.cw .cw-memo-ledger article>div{grid-column:1/-1;grid-row:2;}.cw .cw-fields .cw-field{grid-template-columns:1fr;}.cw .cw-source-note-row{grid-template-columns:1fr;}.cw .cw-source-note-row .cw-visit-source,.cw .cw-source-note-row .cw-special-note{grid-template-columns:1fr;}.cw .cw-timing-list>div{grid-template-columns:42px minmax(0,1fr) 62px 46px;}}
.cw-dialog:has(.cw-new-customer-form){width:min(980px,calc(100vw - 32px));}
.cw-new-customer-form{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.45fr);gap:0;padding:0!important;}
.cw-new-customer-paste{padding:22px;border-right:1px solid var(--cw-border);background:#f7faf9;}
.cw-new-customer-paste h3{margin:0 0 4px;font-size:15px;}
.cw-new-customer-paste p{margin:0 0 14px;font-size:12px;color:var(--cw-muted);}
.cw-dialog .cw-new-customer-paste textarea{min-height:220px;height:220px;resize:vertical;background:#fff;white-space:pre-wrap;text-align:left;}
.cw-paste-actions{display:flex;align-items:center;gap:10px;margin-top:10px;}
.cw-paste-actions span{font-size:11px;line-height:1.45;color:var(--cw-muted);}
.cw-new-customer-image{position:relative;margin-top:12px;padding:8px;border:1px solid var(--cw-border);border-radius:6px;background:#fff;}
.cw-new-customer-image img{display:block;width:100%;max-height:210px;object-fit:contain;}
.cw-new-customer-image button{position:absolute;top:12px;right:12px;min-height:28px;padding:2px 7px;background:#fff;}
.cw-new-customer-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;padding:22px;align-content:start;}
.cw-new-customer-grid .cw-field{display:grid;gap:4px;}
.cw-new-customer-grid .cw-field>span{font-size:12px;color:var(--cw-muted);}
.cw-new-customer-grid .cw-new-wide{grid-column:1/-1;}
.cw-new-customer-form>.cw-form-footer{grid-column:1/-1;margin:0;padding:14px 22px;border-top:1px solid var(--cw-border);}
@media(max-width:760px){.cw-new-customer-form{grid-template-columns:1fr;}.cw-new-customer-paste{border-right:0;border-bottom:1px solid var(--cw-border);}.cw-new-customer-grid{grid-template-columns:1fr;}.cw-new-customer-grid .cw-new-wide{grid-column:auto;}.cw .cw-search-bar{flex-wrap:wrap;}.cw .cw-search-bar input{max-width:none;}.cw .cw-search-bar .cw-new-customer-button{margin-left:0;}}
.cw .cw-shoots .cw-inline-shoot-memo{width:100%;min-width:100px;min-height:29px;height:29px;max-height:120px;padding:4px 2px;border:0!important;border-bottom:1px solid #c9d8de!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font:400 14px/1.5 Pretendard,sans-serif;text-align:left!important;resize:vertical;}
.cw .cw-shoots .cw-inline-shoot-memo:focus{outline:none;border-bottom-color:#278e83!important;box-shadow:0 1px 0 #278e83!important;}
.cw .cw-shoots input[type=datetime-local]{width:100%;min-width:175px;}
.cw .cw-inline-concepts{position:relative;min-width:130px;}.cw .cw-inline-concepts summary{cursor:pointer;border:1px solid #cbdde5;border-radius:5px;padding:5px 8px;font-size:14px;list-style:revert;}.cw .cw-inline-concepts>div{padding:8px;background:#f6fafb;border:1px solid #dae6eb;border-radius:5px;max-height:200px;overflow:auto;}.cw .cw-inline-concepts label{display:flex;align-items:center;gap:7px;padding:5px;font-size:14px;}.cw .cw-inline-concepts input[type=checkbox]{width:15px;min-width:15px;height:15px;}.cw-inline-error{padding:10px;color:#ae4439;background:#fff2ee;}
.cw .cw-card-1 :is(.cw-fields,.cw-children) input:not([type="date"]):not([type="checkbox"]):not([type="radio"]){border:0!important;border-bottom:1px solid #c9d8de!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
.cw .cw-card-1 :is(.cw-fields,.cw-children) input:not([type="date"]):not([type="checkbox"]):not([type="radio"]):focus{outline:none;border-bottom-color:#278e83!important;box-shadow:0 1px 0 #278e83!important;}

/* Shared schedule-summary visual language, without changing the record layout. */
.cw .cw-record-grid>.cw-card{--record-accent:#287567;--record-tint:#edf6f3;border-color:#dce5e9;border-radius:8px;}
.cw .cw-record-grid>.cw-card-2{--record-accent:#397b9e;--record-tint:#edf5fa;}
.cw .cw-record-grid>.cw-card-3{--record-accent:#766097;--record-tint:#f3eff8;}
.cw .cw-record-grid>.cw-card-4{--record-accent:#397b9e;--record-tint:#edf5fa;}
.cw .cw-record-grid>.cw-card-5{--record-accent:#956b32;--record-tint:#faf4e9;}
.cw .cw-record-grid>.cw-card-6{--record-accent:#627680;--record-tint:#f0f4f6;}
.cw .cw-record-grid>.cw-card>header{background:linear-gradient(100deg,var(--record-tint),#fff 85%);border-bottom:1px solid #e1e9ed;}
.cw .cw-record-grid>.cw-card>header h2{color:#263d48;font:500 14px/1.5 Pretendard,sans-serif;}
.cw .cw-record-grid>.cw-card>header h2::before{content:"";width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:var(--record-accent);}
.cw .cw-record-grid>.cw-card>header h2>b{background:var(--record-tint);color:var(--record-accent);font-weight:500;border-radius:4px;}
.cw .cw-record-grid table thead th{background:#f5f8f9;color:#657c85;font-weight:500;}
.cw .cw-record-grid table tbody td{border-bottom-color:#e7edef;}
.cw .cw-record-grid table tbody tr:hover{background:#f7fafb;}
.cw .cw-customer-head{background:linear-gradient(105deg,#edf6f3,#fff 75%);border-color:#d3e3de;border-left-width:3px;}
.cw .cw-status-chip{font-size:14px;font-weight:400;border-radius:4px;}
.cw .cw-return-chip{background:linear-gradient(110deg,#fff0dd,#fff8ee);color:#98531d;}
.cw .cw-production-chip{background:linear-gradient(110deg,#e8f4f0,#f5faf8);color:#24695c;}
