.company-list-heading{align-items:center}
.company-list-card{padding:0;overflow:hidden}
.company-list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 20px;border-bottom:1px solid var(--line)}
.company-list-toolbar>div:first-child{display:flex;align-items:baseline;gap:12px;white-space:nowrap}
.company-list-toolbar strong{font-size:17px;color:var(--navy)}
.company-list-toolbar span{font-size:13px;color:var(--muted)}
.company-list-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px}
.company-list-filters label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700;color:#506273}
.company-list-filters select,.company-list-filters input{min-height:40px;border:1px solid #cad5df;border-radius:8px;background:#fff;padding:8px 11px;color:var(--text);font-size:14px}
.company-list-filters select{min-width:135px}.company-list-search input{min-width:200px}
.company-list-filters :is(select,input):focus-visible,.company-name-link:focus-visible{outline:3px solid #b88b38;outline-offset:2px}
.company-list-scroll{overflow-x:auto}
.company-list-scroll table{min-width:850px}
.company-list-scroll th{font-size:13px;white-space:nowrap;padding:13px 16px}
.company-list-scroll td{padding:15px 16px;border-bottom:1px solid #e7edf2;font-size:14px;vertical-align:middle}
.company-list-scroll tbody tr:last-child td{border-bottom:0}
.company-list-scroll tbody tr:hover{background:#f9fbfd}
.company-list-scroll td small{display:block;color:#728394;font-size:12px;margin-top:4px;line-height:1.45}
.company-name-link{display:inline-flex;align-items:center;gap:6px;padding:4px 0;border:0;background:none;color:#102b46;font-size:15px;font-weight:800;line-height:1.35;text-align:left;cursor:pointer}
.company-name-link:hover{color:#a4711d;text-decoration:underline;text-underline-offset:3px}
.company-name-link span{font-size:13px;color:#ad843a}
.company-region-chip{display:inline-block;background:#eef3f8;border-radius:6px;padding:4px 8px;color:#29516f;font-weight:700;font-size:12px}
.company-list-empty{text-align:center;color:var(--muted);padding:44px 16px!important}
@media(max-width:1000px){.company-list-toolbar{align-items:stretch;flex-direction:column}.company-list-filters{width:100%}.company-list-filters label{flex:1 1 140px}.company-list-filters select,.company-list-filters input{width:100%;min-width:0}}
@media(max-width:760px){.company-list-heading{align-items:flex-start;gap:12px}.company-list-heading h1{font-size:22px}.company-list-heading .primary{white-space:nowrap}.company-list-card{background:transparent;border:0;box-shadow:none}.company-list-toolbar{padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:12px}.company-list-filters{gap:9px}.company-list-filters label{flex:1 1 calc(50% - 9px)}.company-list-filters .company-list-search{flex-basis:100%}.company-list-scroll{overflow:visible}.company-list-scroll table{min-width:0;border-collapse:separate;border-spacing:0 10px}.company-list-scroll thead{display:none}.company-list-scroll tbody tr{display:grid;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow)}.company-list-scroll tbody tr:hover{background:#fff}.company-list-scroll td{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;width:100%;padding:7px 0;border:0;font-size:13px;text-align:right}.company-list-scroll td::before{content:attr(data-label);color:#6c7c8d;font-weight:700;text-align:left;white-space:nowrap}.company-list-scroll td:first-child{display:block;text-align:left;border-bottom:1px solid #e7edf2;padding:2px 0 10px;margin-bottom:4px}.company-list-scroll td:first-child::before{display:none}.company-list-scroll td small{margin-top:2px}.company-list-scroll td .company-region-chip{margin-left:auto}.company-list-scroll td[data-label="지역"]{display:block;text-align:right}.company-list-scroll td[data-label="지역"]::before{float:left}.company-list-scroll .company-list-empty{display:block;text-align:center}.company-list-scroll .company-list-empty::before{display:none}}

/* Customer workspace: readable desktop list and existing mobile cards. */
#companyListView .company-list-heading{margin-bottom:18px;gap:16px}
.company-list-eyebrow{display:block;font-size:10px;letter-spacing:1.6px;font-weight:800;color:#26856e;margin-bottom:7px}
#companyListView .company-list-heading h1{font-size:28px;letter-spacing:-.8px;margin:0}
#companyListView .company-list-heading p{font-size:13px;line-height:1.6;margin-top:8px}
.company-list-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.company-list-actions button{min-height:40px;white-space:nowrap}
.company-list-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.company-list-summary>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 12px;padding:16px 20px;background:#ffffffd9;border:1px solid #dce7e5;border-radius:12px;box-shadow:0 3px 12px #183c2f04}
.company-list-summary span{font-size:13px;font-weight:700;color:#516974}.company-list-summary strong{grid-column:2;grid-row:1 / 3;font-size:30px;font-weight:800;color:#183d4c;line-height:1;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.company-list-summary small{font-size:11px;color:#80919b}.company-list-summary>div:nth-child(2){border-top:3px solid #25836c}.company-list-summary>div:nth-child(3){border-top:3px solid #8aa9bd}
#companyListView .company-list-card{padding:0;border:1px solid #dce5e9;border-radius:14px;box-shadow:0 8px 28px #1d3f4c07}
#companyListView .company-list-toolbar{flex-direction:column;align-items:stretch;gap:14px;padding:18px 20px;background:#fff}
#companyListView .company-list-toolbar>div:first-child{justify-content:space-between}
#companyListView .company-list-toolbar strong{font-size:15px}#companyListView .company-list-toolbar span{font-size:12px}
#companyListView .company-list-filters{display:grid;grid-template-columns:140px 140px 160px minmax(220px,1fr);gap:12px;align-items:end}
#companyListView .company-list-filters label{font-size:11px;color:#6b7f8a;gap:6px}
#companyListView .company-list-filters select,#companyListView .company-list-filters input{width:100%;min-width:0;max-width:none;min-height:40px;font-size:13px;background:#f8fafb;border-color:#dce4e9;border-radius:8px}
#companyListView .company-list-scroll table{width:100%;min-width:1090px;table-layout:fixed}
#companyListView .company-list-scroll th{background:#f4f7f9;color:#6b7e8d;font-size:11px;font-weight:700;padding:12px 14px;border-top:0}
#companyListView .company-list-scroll td{font-size:13px;padding:14px;line-height:1.5;border-color:#edf1f4;overflow-wrap:anywhere}
#companyListView .company-list-scroll th:nth-child(1){width:22%}#companyListView .company-list-scroll th:nth-child(2){width:12%}#companyListView .company-list-scroll th:nth-child(3){width:19%}#companyListView .company-list-scroll th:nth-child(4){width:12%}#companyListView .company-list-scroll th:nth-child(5){width:7%}#companyListView .company-list-scroll th:nth-child(6){width:10%}#companyListView .company-list-scroll th:nth-child(7){width:12%}#companyListView .company-list-scroll th:nth-child(8){width:6%}
#companyListView .company-list-scroll td:nth-child(2),#companyListView .company-list-scroll td:nth-child(5),#companyListView .company-list-scroll td:nth-child(6),#companyListView .company-list-scroll td:nth-child(7),#companyListView .company-list-scroll td:nth-child(8){white-space:nowrap}
#companyListView .company-name-link{font-size:14px;text-decoration:none;color:#193d50;display:inline;line-height:1.5}#companyListView .company-name-link:hover{text-decoration:underline;color:#16745b}
#companyListView .company-list-scroll td small{font-size:11px;color:#8a99a3}#companyListView .company-list-scroll td[data-label="지역"] small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#companyListView .contract-status{display:inline-block;font-size:10px;padding:3px 6px;background:#edf7f3;color:#357664;border-radius:5px;font-weight:600;line-height:1.5;margin-top:6px}
#companyListView .company-list-scroll td .outline{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:30px;padding:5px 8px;font-size:11px;white-space:nowrap;text-decoration:none;border-color:#d7e2e7;border-radius:7px;background:#fff}
@media(max-width:1000px){#companyListView .company-list-filters{grid-template-columns:repeat(3,minmax(0,1fr))}#companyListView .company-list-search{grid-column:1 / -1}}
@media(max-width:760px){#companyListView .company-list-heading{flex-direction:column;align-items:stretch}#companyListView .company-list-heading h1{font-size:24px}.company-list-summary{gap:7px}.company-list-summary>div{padding:12px 10px;display:flex;flex-direction:column;align-items:flex-start;gap:7px}.company-list-summary strong{font-size:25px}.company-list-summary small{display:none}.company-list-summary span{font-size:11px}#companyListView .company-list-card{background:transparent;border:0;box-shadow:none}#companyListView .company-list-toolbar{padding:14px}#companyListView .company-list-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#companyListView .company-list-contract-filter{grid-column:1 / -1}#companyListView .company-list-scroll table{min-width:0;table-layout:auto}#companyListView .company-list-scroll td{padding:6px 0;font-size:12px}#companyListView .company-list-scroll td small{font-size:11px}#companyListView .company-list-scroll tbody tr{box-shadow:0 3px 14px #1d3f4c06}#companyListView .company-list-scroll td:first-child{padding-bottom:10px}#companyListView .company-list-scroll td[data-label="지역"] small{display:block}#companyListView .company-list-scroll .company-list-empty{white-space:normal}}

/* Tactile controls: action hierarchy, hover lift and pressed feedback. */
#companyListView .company-list-actions button,#companyListView .company-list-scroll td .outline{transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
#companyListView .company-list-actions .primary{background:linear-gradient(145deg,#239779,#147258);border:1px solid #147459;border-bottom:3px solid #0e5946;box-shadow:0 4px 9px #166d5424,inset 0 1px 0 #ffffff30;border-radius:9px;padding:10px 18px;font-weight:800}
#companyListView .company-list-actions .outline{background:linear-gradient(#fff,#f4f7fa);border:1px solid #cfdae2;border-bottom:3px solid #bfccd6;box-shadow:0 3px 7px #183b5010;border-radius:9px;padding:10px 15px}
#companyListView .company-list-scroll td .outline{background:linear-gradient(#fff,#f5f8fa);border-bottom:2px solid #c8d6df;box-shadow:0 2px 3px #183b500b}
@media(hover:hover){#companyListView .company-list-actions button:hover,#companyListView .company-list-scroll td .outline:hover{transform:translateY(-1px);box-shadow:0 5px 12px #183b5020}}
#companyListView .company-list-actions button:active,#companyListView .company-list-scroll td .outline:active{transform:translateY(1px);box-shadow:0 1px 3px #183b5010}
#companyListView .company-list-actions button:focus-visible,#companyListView .company-list-scroll td .outline:focus-visible{outline:3px solid #85cbb7;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#companyListView .company-list-actions button,#companyListView .company-list-scroll td .outline{transition:none;transform:none}}

#companyListView #contractDashboard{padding:0;background:transparent;border:0;box-shadow:none;margin-bottom:18px}
#companyListView #contractDashboard h2{font-size:13px;color:#57717e;margin:0 0 10px}
#companyListView .contract-counts{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;margin:0}
#companyListView .contract-counts button{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:14px 12px;border:1px solid #d5e1e7;border-bottom:3px solid #c6d5dc;border-radius:10px;background:linear-gradient(#fff,#f7f9fb);box-shadow:0 3px 8px #173e5010;transition:transform .15s,box-shadow .15s;color:#56717f;text-align:left}
#companyListView .contract-counts button span{font-size:11px;white-space:nowrap}#companyListView .contract-counts button strong{font-size:23px;line-height:1;letter-spacing:-.7px;color:#203f50}
#companyListView .contract-counts button[aria-pressed="true"]{background:linear-gradient(#eff9f5,#e8f4ee);border-color:#4b9c80;border-bottom-color:#28745a;box-shadow:0 3px 9px #217a5917}#companyListView .contract-counts button[aria-pressed="true"] strong{color:#176c51}
@media(hover:hover){#companyListView .contract-counts button:hover{transform:translateY(-2px);box-shadow:0 5px 12px #173e5019}}
#companyListView .contract-counts button:active{transform:translateY(1px)}#companyListView .contract-counts button:focus-visible{outline:3px solid #85cbb7;outline-offset:3px}
@media(max-width:1100px){#companyListView .contract-counts{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){#companyListView .contract-counts{grid-template-columns:repeat(2,minmax(0,1fr))}#companyListView .contract-counts button{flex-direction:row;align-items:center;justify-content:space-between;padding:12px}#companyListView .contract-counts button strong{font-size:19px}}
@media(prefers-reduced-motion:reduce){#companyListView .contract-counts button{transition:none;transform:none!important}}

#companyListView .company-inline-contract{margin-top:6px;max-width:100%}
#companyListView .company-contract-options{display:flex;gap:4px;flex-wrap:wrap}
#companyListView .company-contract-options button{min-height:26px;padding:3px 8px;font-size:11px;line-height:1.4;border:1px solid #d6e1e8;border-bottom:2px solid #c7d5df;border-radius:6px;background:linear-gradient(#fff,#f5f8fa);color:#617588;cursor:pointer;white-space:nowrap}
#companyListView .company-contract-options button[aria-pressed="true"]{background:#e8f4ef;border-color:#a8cdbc;color:#146448;font-weight:700}
#companyListView .company-contract-options button:focus-visible{outline:2px solid #398e6b;outline-offset:2px}
#companyListView .company-contract-period{font-size:10px;color:#718293;margin-top:4px;display:block}
#companyListView .company-inline-contract form{display:grid;gap:7px;background:#f7fbf8;border:1px solid #d6e6dc;border-radius:8px;padding:9px;margin-top:5px}
#companyListView .company-inline-contract form[hidden]{display:none!important}
#companyListView .company-inline-contract label{display:grid;gap:3px;font-size:11px;color:#587563}
#companyListView .company-inline-contract input{width:100%;min-width:0;min-height:32px;box-sizing:border-box;border:1px solid #d3e0d8;border-radius:6px;padding:4px 6px;font-size:12px;background:#fff}
#companyListView .company-contract-actions{display:flex;gap:5px}
#companyListView .company-contract-actions button{font-size:11px;min-height:28px;padding:4px 10px}
#companyListView .inline-contract-status{font-size:11px;color:#9d4b38;margin:3px 0 0;white-space:normal}
#companyListView .inline-contract-status:empty{display:none}

#companyListView .company-contract-choice{width:124px;max-width:100%;min-height:29px;border:1px solid #d3e0e8;border-bottom:2px solid #c4d5df;border-radius:7px;background:#f7fafc;color:#274b63;padding:4px 8px;font-size:11px;cursor:pointer}
#companyListView .company-contract-edit{border:0;background:none;color:#4c7b67;font-size:10px;padding:3px 5px;cursor:pointer}

/* Compact customer identity: representative and customer state share a row. */
#companyListView .company-customer-meta{display:grid;grid-template-columns:minmax(38px,max-content) minmax(0,1fr);align-items:start;gap:8px;margin-top:6px}
#companyListView .company-customer-meta .company-ceo{margin:0;padding-top:5px;line-height:1.5;max-width:85px;overflow-wrap:anywhere}
#companyListView .company-customer-meta .company-inline-contract{margin:0;display:grid;grid-template-columns:minmax(0,118px) auto;align-items:center;gap:0 3px}
#companyListView .company-customer-meta .company-contract-choice{width:118px;min-height:28px}
#companyListView .company-customer-meta .company-contract-edit{padding:3px 0;white-space:nowrap;justify-self:start}
#companyListView .company-customer-meta .company-contract-period,#companyListView .company-customer-meta .inline-contract-status,#companyListView .company-customer-meta form{grid-column:1 / -1}
#companyListView .company-customer-meta .company-contract-period{margin-top:3px;line-height:1.4;font-size:10px}
@media(min-width:761px){#companyListView .company-list-scroll td{padding:10px 14px}}
@media(max-width:760px){#companyListView .company-customer-meta{grid-template-columns:minmax(38px,max-content) minmax(0,1fr);max-width:330px;gap:9px;margin-top:5px}}

#companyListView .company-contract-view{border:0;background:none;color:#286c54;font-size:10px;padding:3px 0;cursor:pointer;line-height:1.5}
.contract-documents-dialog{width:min(1000px,calc(100vw - 28px));max-height:90vh;box-sizing:border-box;overflow:auto;border:1px solid #d5e2db;border-radius:14px;padding:22px;background:#fff;box-shadow:0 20px 70px #122d3040;color:#1d3e39}.contract-documents-dialog::backdrop{background:#12333066}.contract-documents-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.contract-documents-header h2{font-size:19px;margin:0;overflow-wrap:anywhere}.contract-documents-header button{white-space:nowrap}.contract-documents-summary,.contract-documents-status{font-size:12px;color:#6b8178;line-height:1.6}.contract-documents-memo{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.contract-documents-files{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.contract-documents-files button{font-size:12px;overflow-wrap:anywhere}.contract-documents-files button[aria-pressed="true"]{background:#e8f4ed;border-color:#5d9e7e;color:#216447}.contract-documents-viewer{display:grid;gap:10px;margin-bottom:14px}.contract-documents-viewer a{justify-self:start;text-decoration:none}.contract-documents-frame{width:100%;height:60vh;border:1px solid #dce6e1;border-radius:6px}.contract-documents-viewer img{height:auto;max-height:60vh;object-fit:contain}.contract-documents-dialog :is(button,a):focus-visible,#companyListView .company-contract-view:focus-visible{outline:2px solid #308262;outline-offset:2px}@media(max-width:760px){.contract-documents-dialog{padding:14px}.contract-documents-header h2{font-size:16px}}

/* Separate representative column and larger address text. */
#companyListView .company-customer-meta{display:block;max-width:none}
#companyListView .company-customer-meta .company-inline-contract{grid-template-columns:118px max-content;justify-content:start}
#companyListView .company-list-scroll th:nth-child(1){width:18%}#companyListView .company-list-scroll th:nth-child(2){width:8%}#companyListView .company-list-scroll th:nth-child(3){width:12%}#companyListView .company-list-scroll th:nth-child(4){width:20%}#companyListView .company-list-scroll th:nth-child(5){width:10%}#companyListView .company-list-scroll th:nth-child(6){width:8%}#companyListView .company-list-scroll th:nth-child(7){width:9%}#companyListView .company-list-scroll th:nth-child(8){width:8%}#companyListView .company-list-scroll th:nth-child(9){width:7%}
#companyListView .company-list-scroll td:nth-child(2),#companyListView .company-list-scroll td:nth-child(5){white-space:normal}
#companyListView .company-list-scroll td:nth-child(3),#companyListView .company-list-scroll td:nth-child(6),#companyListView .company-list-scroll td:nth-child(9){white-space:nowrap}
#companyListView .company-list-scroll .company-ceo-cell{font-size:14px;font-weight:600;color:#355269}
#companyListView .company-list-scroll td[data-label="지역"]{white-space:normal}
#companyListView .company-list-scroll td[data-label="지역"] small{font-size:12px;line-height:1.6;color:#70818e}
#companyListView .company-region-chip{font-size:13px}
@media(max-width:760px){#companyListView .company-list-scroll .company-ceo-cell{font-size:14px}#companyListView .company-list-scroll td[data-label="지역"] small{font-size:12px}}

/* Give the action column breathing room and distribute unused leading width. */
@media(min-width:761px){
 #companyListView .company-list-scroll th,#companyListView .company-list-scroll td{padding-left:12px;padding-right:12px}
 #companyListView .company-list-scroll th:last-child,#companyListView .company-list-scroll td:last-child{text-align:center;padding-left:14px;padding-right:14px}
 #companyListView .company-list-scroll td[data-label="관리"] .outline{min-width:46px;min-height:32px;box-sizing:border-box}
 #companyListView .company-list-scroll td[data-label="등록일"],#companyListView .company-list-scroll td[data-label="최근 조회"]{white-space:normal;font-size:12px;overflow-wrap:normal}
 #companyListView .company-list-scroll td[data-label="대표자"],#companyListView .company-list-scroll td[data-label="담당자"]{overflow-wrap:normal;word-break:keep-all}
}
