body{margin:0;background:#f3f6fb;color:#101828;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;line-height:1.65}
body.erp-window{background:#edf2f7}
a{color:#175cd3;text-decoration:none}
.shell{max-width:1240px;margin:0 auto;padding:30px 22px 76px}
.erp-shell{max-width:none;padding:26px 28px 38px}
.topbar{background:#111827;color:#fff}
.topbar-inner{max-width:1200px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.brand{font-weight:900;letter-spacing:0}
.nav{display:flex;gap:8px;flex-wrap:wrap}
.nav a{color:#dbeafe;font-weight:800;font-size:14px;padding:7px 10px;border-radius:8px}
.nav a:hover,.nav a.active{background:rgba(255,255,255,.12);color:#fff}
.logout{background:#fff;color:#111827!important}
h1{font-size:32px;line-height:1.2;margin:0 0 8px}
h2{font-size:23px;margin:32px 0 12px}
p{margin:0 0 10px;color:#475467}
.lead{font-size:17px;color:#344054}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.page-actions .compact-action{min-width:auto;padding-left:12px;padding-right:12px;white-space:nowrap}
.ghost-price-link{display:inline-block;width:44px;height:40px;opacity:.02;color:transparent;background:transparent;border:0;overflow:hidden}
.ghost-price-link:focus{opacity:1;color:#344054;background:#fff;border:1px dashed #98a2b3;border-radius:8px;padding:8px;width:auto;height:auto}
.title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.title-row h1{margin-bottom:0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:14px;margin-top:20px}
.card{background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:18px;box-shadow:0 10px 28px rgba(16,24,40,.055)}
.card h3{font-size:20px;margin:0 0 8px}
.table-card{background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:20px;margin-top:22px;box-shadow:0 12px 30px rgba(16,24,40,.06)}
.table-card h2{margin:0 0 12px}
.table-scroll{overflow:auto;border:1px solid #d0d5dd;border-radius:10px}
.site-link{display:block;margin:2px 0;font-weight:800;word-break:break-all}
.ledger-table{min-width:1180px}
.ledger-table th:nth-child(1){width:160px}
.ledger-table th:nth-child(2){width:230px}
.ledger-table th:nth-child(3){width:270px}
.ledger-table th:nth-child(4),.ledger-table th:nth-child(5){width:190px}
.ledger-table th:nth-child(6){width:230px}
.ledger-table th:nth-child(7){width:220px}
.ledger-table th:nth-child(8){width:180px}
.ledger-table td{font-size:14px}
.ledger-table strong{color:#101828}
.price-table{min-width:920px}
.price-table th:nth-child(1){width:160px}
.price-table th:nth-child(3),.price-table th:nth-child(4){width:70px}
.price-table th:nth-child(5),.price-table th:nth-child(6){width:130px}
.price-table th:nth-child(8),.price-table th:nth-child(9){width:74px}
.price-table .amount-cell{text-align:right;font-weight:900}
.price-group-row td{background:#eef2f7!important;color:#344054;border-top:2px solid #cbd5e1;border-bottom:1px solid #d0d5dd;font-weight:900;font-size:14px;letter-spacing:0;padding:9px 13px}
.price-edit{width:100%;border:1px solid transparent;background:transparent;padding:7px 8px;border-radius:6px;font-weight:700}
.price-edit.strong{font-weight:900;color:#101828}
.price-edit.center{text-align:center}
.price-edit.amount-input{text-align:right;font-weight:900}
.price-edit:hover,.price-edit:focus{border-color:#b8c7db;background:#fff;outline:none}
.price-edit.saving{background:#eff8ff}
.price-edit.saved{background:#f6fef9}
.price-edit.failed{background:#fff1f3;border-color:#fda29b}
.price-row{cursor:grab}
.price-row.dragging{opacity:.45;background:#eef4ff}
.drag-handle{display:grid;place-items:center;width:32px;height:32px;border-radius:6px;background:#f2f4f7;color:#344054;border:1px solid #d0d5dd;font-size:18px;font-weight:900;cursor:grab;user-select:none}
.price-save-row{min-height:32px;border-radius:7px;background:#175cd3;color:#fff;font-size:12px;padding:0 10px}
.price-add-form{align-items:end}
.price-summary{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:14px}
.price-summary div{min-width:150px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;padding:10px 12px;text-align:right}
.price-summary span{display:block;font-size:12px;color:#667085;font-weight:900}
.price-summary strong{display:block;font-size:18px;color:#101828}
.price-summary .total{background:#eef4ff;border-color:#b2ddff}
.price-summary .total strong{font-size:22px;color:#175cd3}
.client-table-grid{display:grid;gap:18px;margin-top:18px}
.client-table-grid section{min-width:0}
.client-table-grid h3{font-size:18px;margin:0 0 8px;color:#101828}
.client-table-grid table th{width:150px}
.client-picker-card{background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:18px;margin-top:22px;box-shadow:0 10px 28px rgba(16,24,40,.055)}
.client-picker-card label{font-size:14px}
.client-picker-card select{max-width:460px;font-weight:900}
.client-view-list{margin-top:16px}
.client-detail{display:none;background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:22px;box-shadow:0 14px 34px rgba(16,24,40,.065)}
.client-detail.active{display:block}
.client-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #d0d5dd;padding-bottom:16px;margin-bottom:16px}
.client-detail-head h2{margin:0 0 4px;font-size:26px}
.client-detail-head p{margin:0}
.accordion-list{display:grid;gap:10px;margin-top:20px}
.client-accordion{background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 8px 22px rgba(16,24,40,.05);overflow:hidden}
.client-accordion[open]{border-color:#b2ddff;box-shadow:0 14px 34px rgba(23,92,211,.1)}
.client-accordion summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;cursor:pointer}
.client-accordion summary::-webkit-details-marker{display:none}
.client-accordion summary:after{content:"+";display:grid;place-items:center;flex:0 0 auto;width:28px;height:28px;border-radius:50%;background:#f2f4f7;color:#344054;font-weight:900}
.client-accordion[open] summary:after{content:"-";background:#175cd3;color:#fff}
.client-summary-main{display:flex;align-items:baseline;gap:10px;min-width:0}
.client-summary-main strong{font-size:19px;color:#101828}
.client-summary-main small{font-size:13px;color:#667085}
.client-summary-meta{display:flex;gap:4px;flex-wrap:wrap;margin-left:auto}
.client-panel{border-top:1px solid #d0d5dd;padding:16px 18px 20px;background:#fcfcfd}
.erp-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:18px;margin-top:18px;align-items:start}
.erp-layout.single-pane{grid-template-columns:1fr}
.erp-window .erp-layout{grid-template-columns:300px minmax(0,1fr)}
.erp-window .erp-layout.single-pane{grid-template-columns:1fr}
.erp-window .page-head{margin-bottom:12px}
.erp-window .page-head h1{font-size:30px}
.erp-window .lead{font-size:15px}
.erp-sidebar{position:sticky;top:18px;background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:16px;box-shadow:0 12px 30px rgba(16,24,40,.06)}
.erp-window .erp-sidebar{top:18px;max-height:calc(100vh - 36px);overflow:hidden}
.erp-search{margin-bottom:10px}
.erp-count{font-size:13px;color:#475467;margin:2px 0 12px}
.erp-client-list{display:grid;gap:8px;max-height:calc(100vh - 230px);overflow:auto;padding-right:2px}
.erp-window .erp-client-list{max-height:calc(100vh - 185px)}
.erp-client-button{display:block;width:100%;min-height:0;text-align:left;background:#fff;color:#344054;border:1px solid #d0d5dd;border-radius:8px;padding:11px 12px}
.erp-client-button strong{display:block;color:#101828;font-size:15px;line-height:1.25}
.erp-client-button:hover,.erp-client-button.active{border-color:#175cd3;background:#eff8ff;color:#175cd3}
.erp-main{min-width:0}
.erp-task-manager{background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:18px;margin:0 0 16px;box-shadow:0 12px 30px rgba(16,24,40,.06)}
.erp-task-manager h2{font-size:22px;margin:0 0 6px;color:#101828}
.erp-task-manager p{margin:0;color:#475467}
.erp-client-tab-shell{grid-column:1/-1;border:1px solid #cbd5e1;border-radius:10px;background:#fff;margin:0 0 16px;overflow:hidden;box-shadow:0 12px 30px rgba(16,24,40,.06)}
.erp-client-tabs{display:flex;gap:0;border-bottom:1px solid #d0d5dd;background:#f8fafc}
.erp-client-tab{display:inline-flex;align-items:center;min-height:48px;border:0;border-right:1px solid #d0d5dd;border-radius:0;background:#f8fafc;color:#475467;font-size:18px;font-weight:900;padding:0 18px}
.erp-client-tab.is-active{background:#fff;color:#175cd3;box-shadow:inset 0 -3px 0 #175cd3}
.erp-client-tab-panel{padding:16px}
.erp-client-tab-panel[hidden]{display:none}
.erp-client-tab-panel .erp-task-manager{margin:0;box-shadow:none}
.task-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 140px 120px 130px auto;gap:8px;margin-top:14px}
.task-toolbar input,.task-toolbar select,.task-filters select{min-height:40px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#101828;font:inherit;padding:0 10px}
.task-toolbar button,.task-row button,.task-links a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid #b2ddff;border-radius:8px;background:#175cd3;color:#fff;font:inherit;font-weight:900;text-decoration:none;cursor:pointer;padding:0 12px;white-space:nowrap}
.task-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.task-summary div{border:1px solid #d0d5dd;border-radius:8px;background:#f8fafc;padding:12px}
.task-summary strong{display:block;color:#101828;font-size:26px;line-height:1}
.task-summary span{display:block;margin-top:6px;color:#667085;font-size:12px;font-weight:900}
.task-filters,.task-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.task-links a{background:#fff;color:#175cd3}
.task-list{display:grid;gap:8px;margin-top:12px}
.task-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;gap:9px;align-items:center;border:1px solid #d0d5dd;border-radius:8px;background:#f8fafc;padding:10px}
.task-row.linked-work{border-color:#73d89b;background:#f6fef9}
.task-row input[type="checkbox"]{width:18px;height:18px;accent-color:#175cd3}
.task-title{color:#101828;font-weight:900;line-height:1.4}
.task-row.done .task-title{color:#98a2b3;text-decoration:line-through}
.task-meta{color:#667085;font-size:13px;line-height:1.4}
.task-badge{border-radius:999px;background:#fff;color:#344054;font-size:12px;font-weight:900;padding:4px 8px;white-space:nowrap}
.task-badge.high{color:#b42318}.task-badge.normal{color:#175cd3}.task-badge.low{color:#667085}
.task-row button{min-height:32px;background:#fff;color:#344054;padding:0 9px}
.task-row.linked-work button{color:#667085;background:#f8fafc;cursor:default}
.task-empty{display:none;margin-top:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#667085;font-weight:900;padding:20px;text-align:center}
.erp-client-panel{display:none;background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:22px;box-shadow:0 14px 34px rgba(16,24,40,.065)}
.erp-window .erp-client-panel{min-height:calc(100vh - 114px)}
.erp-client-panel.active{display:block}
.erp-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid #d0d5dd;padding-bottom:18px;margin-bottom:18px}
.erp-head h2{font-size:30px;margin:2px 0 6px}
.erp-head p{max-width:760px}
.erp-head-copy{flex:1;min-width:0}
.erp-kicker{display:block;color:#175cd3;font-size:12px;font-weight:900}
.erp-client-select{margin:0 0 12px;border-color:#b8c7db;background:#fff;color:#101828;font-weight:900}
.title-select{width:auto;min-width:190px;margin:0;font-size:18px;padding:9px 42px 9px 12px}
.erp-status{display:flex;gap:4px;justify-content:flex-end;flex-wrap:wrap;min-width:210px}
.erp-head-side{display:grid;gap:10px;justify-items:end;min-width:210px}
.erp-client-visual{width:min(380px,34vw);margin:0;overflow:hidden;border:1px solid #d0d5dd;border-radius:12px;background:#101828;box-shadow:0 14px 34px rgba(16,24,40,.12)}
.erp-head-copy .erp-client-visual{width:min(760px,100%);margin-top:16px}
.erp-client-visual img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.erp-client-panel.work-manager-active .erp-head-side{display:none}
.erp-client-panel.work-manager-active .erp-head-copy .erp-client-visual{display:none}
.erp-client-panel.work-manager-active .erp-head p{max-width:none}
.review-visual{width:min(390px,34vw)}
.refresh-button{min-height:30px;border-radius:999px;background:#111827;color:#fff;font-size:12px;padding:0 11px;margin:2px}
.top-refresh{min-height:40px;border-radius:8px;font-size:14px;padding:0 15px;margin:0}
.erp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.erp-box{border:1px solid #d0d5dd;border-radius:10px;background:#fcfcfd;padding:16px;min-width:0}
.company-box,.billing-box{background:#fff}
.work-scope-box,.sales-box{grid-column:1/-1;background:#fff}
.work-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:0;padding-left:20px}
.work-list li{color:#475467;font-weight:700}
.compact-table{border-radius:8px}
.work-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.work-check-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:start;border:1px solid #d0d5dd;border-radius:10px;background:#fff;padding:14px;min-width:0}
.work-check-toggle{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start;cursor:pointer;min-width:0}
.work-check-card.divider-top{border-top:3px solid #cbd5e1}
.work-check-card.is-checked{border-color:#73d89b;background:#eafaf0;box-shadow:inset 4px 0 0 #12b76a}
.work-check-input{width:18px;height:18px;margin:4px 0 0}
.work-check-text{display:grid;gap:4px;color:#475467;min-width:0}
.work-check-text strong{color:#101828;font-size:16px;line-height:1.35;word-break:keep-all;overflow-wrap:anywhere}
.work-title-inline{display:inline-flex;align-items:center;gap:8px;flex-wrap:nowrap;max-width:100%}
.work-check-text small{display:block;color:#667085;font-size:13px;font-weight:700;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
.work-option-select{flex:0 0 auto;width:auto;min-width:74px;max-width:86px;min-height:30px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#101828;font-size:12px;font-weight:900;padding:0 24px 0 9px}
.work-shortcut{display:none;align-items:center;justify-content:center;min-height:22px;border-radius:5px;border:1px solid #d0d5dd;background:#fff;color:#475467;font-size:11px;font-weight:800;padding:0 6px;white-space:nowrap;box-sizing:border-box;align-self:start;margin-top:1px}
.work-check-card.is-checked .work-shortcut{display:inline-flex}
.work-shortcut:hover{background:#f2f4f7;color:#175cd3;border-color:#b8c7db}
.work-action-row{display:flex;justify-content:flex-end;margin-top:14px}
.save-state{display:inline-block;margin-left:7px;font-size:12px;font-weight:900;color:#667085;white-space:nowrap}
.save-state.saving{color:#175cd3}
.save-state.saved{color:#027a48}
.save-state.failed{color:#c01048}
.account-grid{display:grid;gap:10px}
.account-grid table th[colspan="2"]{background:#eef2f7;color:#263345;font-size:13px}
.account-panel{border:1px solid #d0d5dd;border-radius:8px;background:#fff;overflow:hidden}
.account-panel summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;padding:0 12px;background:#eef2f7;color:#263345;font-size:13px;font-weight:900;cursor:pointer;list-style:none}
.account-panel summary::-webkit-details-marker{display:none}
.account-panel summary:before{content:"+";display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:5px;background:#fff;border:1px solid #d0d5dd;color:#667085;font-size:12px;margin-right:2px}
.account-panel[open] summary:before{content:"-"}
.account-panel summary span{margin-right:auto}
.account-panel summary b{display:inline-flex;align-items:center;min-height:24px;border-radius:6px;background:#fff;border:1px solid #d0d5dd;color:#344054;font-size:12px;padding:0 8px}
.account-panel[open] summary b{display:none}
.account-panel table{border-radius:0;border:0}
.editable-control{display:grid;grid-template-columns:minmax(0,1fr) 54px;gap:8px;align-items:center}
.memo-control{align-items:start}
.editable-display{min-height:34px;padding:4px 8px;border-radius:6px}
.editable-display:hover{background:#f8fafc}
.registered-value{display:inline;text-align:left;border:0;background:transparent;padding:0;font:inherit;font-weight:900;color:#101828;word-break:break-word;cursor:pointer}
.registered-value:hover{color:#175cd3;text-decoration:underline}
.registered-value.copied{color:#027a48}
.editable-field{border:1px solid transparent;background:transparent;padding:6px 8px;border-radius:6px;font-weight:800}
.memo-field{min-height:96px;resize:vertical;line-height:1.55}
.editable-field:hover,.editable-field:focus{border-color:#b8c7db;background:#fff;outline:none}
.editable-field.saving{background:#eff8ff}
.editable-field.saved{background:#f6fef9}
.editable-field.failed{background:#fff1f3;border-color:#fda29b}
.mini-register{min-height:30px;border-radius:7px;background:#f2f4f7;color:#344054;border:1px solid #d0d5dd;font-size:12px;padding:0 8px}
.mini-register:hover{background:#e4e7ec}
.box-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}
.box-title-row h3{margin-bottom:4px}
.quote-open-button,.print-quote-button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;border-radius:8px;background:#175cd3;color:#fff;font-weight:900;padding:0 12px}
.erp-box h3{font-size:18px;margin:0 0 10px;color:#101828}
.section-note{margin:-2px 0 12px;color:#667085;font-size:14px}
.erp-box table{border-radius:8px}
.erp-box table th{width:120px}
.muted{color:#667085}
.pill{display:inline-flex;align-items:center;border-radius:999px;background:#eff8ff;color:#175cd3;font-size:12px;font-weight:900;padding:3px 8px;margin:2px}
.danger{background:#fff1f3;color:#c01048}
.ok{background:#ecfdf3;color:#027a48}
.review-client-panel{background:#f8fafc;border-color:#b8c7db}
.review-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start;border:1px solid #b8c7db;border-radius:12px;background:#fff;padding:22px;margin-bottom:16px}
.review-hero h2{font-size:34px;margin:2px 0 8px}
.review-hero p{max-width:780px}
.review-tags,.review-cautions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.review-tags span,.review-cautions span{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;background:#eef4ff;color:#175cd3;font-size:12px;font-weight:900;padding:0 10px}
.review-cautions span{background:#fff7ed;color:#9a3412}
.review-quick-links{display:grid;grid-template-columns:repeat(2,minmax(112px,1fr));gap:8px;min-width:252px}
.review-quick-links a{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:8px;background:#111827;color:#fff;font-weight:900}
.review-quick-links a:nth-child(even){background:#175cd3}
.review-dashboard{display:grid;grid-template-columns:1.05fr .95fr;gap:14px}
.review-card{border:1px solid #d0d5dd;border-radius:10px;background:#fff;padding:16px;min-width:0}
.review-card h3{font-size:18px;margin:0 0 12px;color:#101828}
.review-card dl{grid-template-columns:96px 1fr;margin:0}
.review-summary,.review-work{grid-column:1/-1}
.review-process{background:#101828;color:#fff;border-color:#101828}
.review-process h3{color:#fff}
.review-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:0;padding:0;list-style:none}
.review-steps li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;border:1px solid rgba(255,255,255,.18);border-radius:8px;padding:11px;color:#e4e7ec;font-weight:800;min-width:0}
.review-steps b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#fff;color:#101828;font-size:13px}
.review-steps span{min-width:0;word-break:keep-all;overflow-wrap:anywhere}
.review-keywords p{font-weight:800;color:#344054}
.review-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.review-work-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:start;border:1px solid #d0d5dd;border-radius:10px;background:#fcfcfd;padding:13px}
.review-work-item.is-checked{border-color:#73d89b;background:#ecfdf3;box-shadow:inset 4px 0 0 #12b76a}
.review-work-item.is-checked .work-shortcut{display:inline-flex}
.review-memo,.review-contact{grid-column:auto}
dl{display:grid;grid-template-columns:112px 1fr;gap:7px 12px;margin:12px 0 0}
dt{font-weight:900;color:#344054}
dd{margin:0;color:#475467}
table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #cbd5e1;border-radius:10px;overflow:hidden}
th,td{text-align:left;border-bottom:1px solid #d8dee8;padding:12px 13px;vertical-align:top}
th{background:#eef2f7;color:#263345;font-size:13px;font-weight:900}
tbody tr:nth-child(even) td{background:#fbfcfe}
tr:last-child td{border-bottom:0}
.form{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin-top:14px}
label{display:block;font-size:13px;font-weight:900;color:#344054;margin-bottom:5px}
input,select{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;padding:10px;font:inherit;background:#fff}
button,.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:#111827;color:#fff;font-weight:900;min-height:40px;padding:0 13px;cursor:pointer}
.button.secondary{background:#fff;color:#344054;border:1px solid #d0d5dd}
.notice{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:14px 16px;margin:16px 0;color:#9a3412}
.message{background:#ecfdf3;border:1px solid #abefc6;border-radius:10px;padding:12px 14px;margin:16px 0;color:#027a48}
.timeline{display:grid;gap:14px;margin-top:22px}
.timeline-item{display:grid;grid-template-columns:130px 1fr;gap:16px}
.timeline-date{font-weight:900;color:#175cd3;padding-top:18px}
.timeline-body{background:#fff;border:1px solid #e4e7ec;border-radius:10px;padding:18px;box-shadow:0 10px 28px rgba(16,24,40,.05)}
.timeline-body h2{font-size:22px;margin:8px 0}
.timeline-body h3{font-size:15px;margin:16px 0 6px;color:#344054}
.timeline-body ul{margin:6px 0 0;padding-left:20px}
.timeline-body li{margin:3px 0}
.timeline-meta{display:flex;gap:4px;flex-wrap:wrap}
.restore-label{display:inline-flex;align-items:center;border-radius:6px;background:#f2f4f7;color:#667085;border:1px solid #d0d5dd;font-size:12px;font-weight:900;padding:3px 8px;cursor:default}
.project-log-list{margin-top:14px}
.project-log-detail{display:none;background:#fff;border:1px solid #e4e7ec;border-radius:10px;padding:20px;box-shadow:0 12px 30px rgba(16,24,40,.06)}
.project-log-detail.active{display:block}
.timeline.compact{gap:10px;margin-top:16px}
.timeline.compact .timeline-body h3{font-size:19px;margin:6px 0}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card{width:min(420px,100%);background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:26px;box-shadow:0 18px 44px rgba(16,24,40,.12)}
.login-card h1{font-size:28px}
.login-card .field{margin-top:14px}
.login-card button{width:100%;margin-top:18px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.erp-layout{grid-template-columns:1fr}.erp-sidebar{position:static}.erp-client-list{max-height:none}.erp-grid,.review-dashboard,.task-toolbar{grid-template-columns:1fr}.work-list,.work-check-grid,.review-work-grid{grid-template-columns:1fr}.erp-head,.review-hero{grid-template-columns:1fr;flex-direction:column}.erp-head-side{justify-items:start;min-width:0}.erp-client-visual,.review-visual{width:100%}.erp-status{justify-content:flex-start}.page-head{flex-direction:column}.review-quick-links{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}}
@media(max-width:720px){.topbar-inner{align-items:flex-start}.nav{width:100%}.client-detail-head{flex-direction:column}.client-accordion summary{align-items:flex-start;flex-direction:column}.client-summary-meta{margin-left:0}.timeline-item{grid-template-columns:1fr;gap:6px}.timeline-date{padding-top:0}.task-summary,.task-row{grid-template-columns:1fr}dl{grid-template-columns:1fr}th,td{font-size:13px;padding:9px}}

body.quote-window{background:#d9e0ea;color:#101828}
.quote-shell{width:210mm;max-width:calc(100vw - 36px);margin:0 auto;padding:22px 18px 90px}
.quote-toolbar{display:flex;justify-content:space-between;gap:10px;margin-bottom:14px}
.quote-paper{background:#fff;border:1px solid #98a2b3;border-radius:2px;min-height:297mm;padding:18mm;box-shadow:0 18px 45px rgba(16,24,40,.16)}
.quote-head{display:flex;justify-content:space-between;gap:24px;border-bottom:2px solid #101828;padding-bottom:14px;margin-bottom:18px}
.quote-head h1{font-size:34px;margin:0;letter-spacing:6px;text-align:center}
.quote-service-title{display:inline-block;margin:0 0 4px;padding:3px 8px;border:1px solid #101828;color:#101828;font-size:13px;font-weight:900}
.quote-kicker{font-size:12px;font-weight:900;color:#475467;margin-bottom:2px}
.quote-meta{display:grid;gap:3px;text-align:right;align-content:start}
.quote-meta span{font-size:13px;color:#667085;font-weight:900}
.quote-meta strong{font-size:20px}
.quote-intro{display:flex;justify-content:space-between;gap:18px;margin:0 0 14px;font-size:15px}
.quote-intro p{margin:0;color:#101828}
.quote-parties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}
.quote-parties>div,.quote-summary,.quote-section{border:1px solid #98a2b3;border-radius:0;padding:12px;background:#fff}
.quote-parties h2,.quote-section h2{font-size:18px;margin:0 0 12px}
.quote-parties dl{grid-template-columns:94px 1fr;margin:0}
.quote-summary{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px;background:#f8fafc;border-width:2px}
.quote-summary h2{margin:0;font-size:22px}
.quote-total{display:grid;gap:2px;text-align:right}
.quote-total span{font-size:13px;color:#667085;font-weight:900}
.quote-total strong{font-size:25px;color:#101828}
.quote-section{margin-top:18px}
.quote-table{border-radius:0}
.estimate-sheet{width:100%;font-size:11px;border:2px solid #101828;table-layout:fixed}
.estimate-sheet th,.estimate-sheet td{border:1px solid #667085;padding:6px 5px;word-break:keep-all}
.estimate-sheet th{background:#eef2f7;text-align:center;color:#101828}
.estimate-sheet th:nth-child(1){width:26px}
.estimate-sheet th:nth-child(2){width:118px}
.estimate-sheet th:nth-child(3){width:74px}
.estimate-sheet th:nth-child(4){width:32px}
.estimate-sheet th:nth-child(5){width:30px}
.estimate-sheet th:nth-child(6){width:78px}
.estimate-sheet th:nth-child(7){width:82px}
.estimate-sheet th:nth-child(8){width:52px}
.estimate-sheet .center{text-align:center}
.estimate-sheet .amount-cell{text-align:right;min-width:0}
.estimate-sheet .subtotal-row td{background:#f8fafc;font-weight:900;text-align:right}
.estimate-sheet .total-row td{background:#e4e7ec;font-weight:900;text-align:right;font-size:15px}
.quote-note{font-size:16px;white-space:normal;margin:0}
.quote-footer{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-top:28px;color:#667085}
.quote-sign-box{display:grid;grid-template-columns:auto auto auto;align-items:center;gap:8px;border:1px solid #98a2b3;padding:12px 16px;color:#101828}
.quote-sign-box span{font-size:13px;color:#667085;font-weight:900}
.quote-sign-box strong{font-size:20px}
.quote-sign-box em{display:grid;place-items:center;width:36px;height:36px;border:1px solid #c01048;border-radius:50%;color:#c01048;font-style:normal;font-weight:900}
.quote-issue-bar{position:fixed;left:0;right:0;bottom:0;background:rgba(255,255,255,.92);border-top:1px solid #d0d5dd;padding:12px 18px;display:flex;justify-content:center;backdrop-filter:blur(10px)}
.issue-button{min-width:220px;background:#175cd3}
@media(max-width:760px){.quote-paper{padding:22px}.quote-head,.quote-summary,.quote-footer{flex-direction:column;align-items:flex-start}.quote-meta,.quote-total{text-align:left}.quote-parties{grid-template-columns:1fr}}
@media print{
  @page{size:A4;margin:12mm}
  body{background:#fff}
  .no-print{display:none!important}
  .quote-shell{width:auto;max-width:none;padding:0}
  .quote-paper{border:0;box-shadow:none;border-radius:0;min-height:auto;padding:0}
  a{color:#101828}
}
