/* V1 surfaces and V2 density rules, scoped to plans and reports. */
.dc-center{overflow:hidden}
.dc-toolbar,.dc-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dc-toolbar{padding:16px 24px;border-bottom:1px solid var(--line,#dfe5ef)}
.dc-toolbar .field{margin:0;min-width:150px}
.dc-toolbar .button,.dc-actions .button{min-height:40px}
.dc-center .button.primary,.dc-editor .button.primary,#modal:has(#dc-template-form,.dc-regeneration) .button.primary{background:#1455f5;border-color:#1455f5;box-shadow:none;color:#fff}
.dc-editor .button,.dc-editor .modal-heading button{min-height:40px}
.dc-editor .modal-heading button{min-width:40px}
.dc-page-status{margin:0;padding:0 24px;color:#a33333}
.dc-page-status:not(:empty){padding-top:12px;padding-bottom:12px}
.dc-workspace{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:600px}
.dc-companies{padding:16px;border-right:1px solid var(--line,#dfe5ef);background:var(--surface,#f6f8fc);min-width:0}
.dc-companies .field{margin:0 0 16px}
.dc-companies input{min-width:0;width:100%;box-sizing:border-box}
#dc-company-list{display:flex;flex-direction:column;gap:4px;max-height:700px;overflow:auto}
.dc-company-choice{display:block;width:100%;padding:12px;text-align:left;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;cursor:pointer;font:inherit}
.dc-company-choice strong,.dc-company-choice span{display:block;overflow-wrap:anywhere}
.dc-company-choice strong{font-size:14px;font-weight:600}
.dc-company-choice span{font-size:12px;color:var(--muted,#60708d);margin-top:4px}
.dc-company-choice[aria-current=page]{background:#e8efff;border-color:#b9ceff;color:#1455f5}
.dc-company-choice:hover{border-color:#b9ceff}
.dc-company-choice[hidden],.dc-center [hidden],.dc-editor [hidden]{display:none}
.dc-company-workspace{min-width:0}
.dc-client-hub{display:flex;flex-direction:column;min-width:0;color:var(--text,#22344d);background:var(--card,#fff)}
.dc-hub-header{padding:24px 24px 16px}
.dc-hub-header h2{font-size:24px;line-height:1.25;margin:0;overflow-wrap:anywhere}
.dc-hub-header p{margin:8px 0 0;font-size:12px}
.dc-hub-body{min-width:0}
.dc-hub-nav{display:flex;gap:4px;padding:0 16px;border-bottom:1px solid var(--line,#dfe5ef);overflow-x:auto}
.dc-hub-nav button{border:0;border-bottom:2px solid transparent;background:transparent;padding:12px 8px;text-align:left;color:var(--muted,#566880);cursor:pointer;font:inherit;min-height:48px;flex:1;min-width:max-content}
.dc-hub-nav button[aria-current=page]{border-bottom-color:#1455f5;color:#1455f5}
.dc-hub-nav strong,.dc-hub-nav small{display:block}
.dc-hub-nav strong{font-size:14px;font-weight:600}
.dc-hub-nav small{font-size:12px;margin-top:4px}
.dc-hub-content{min-width:0;padding:24px}
.dc-hub-content h3{font-size:20px;margin:0 0 12px}
.dc-hub-content .muted{line-height:1.5}
.dc-hub-content .field{margin:0 0 16px}
.dc-hub-content input,.dc-hub-content textarea,.dc-hub-content select{box-sizing:border-box;max-width:100%;min-width:0}
.dc-hub-content textarea{line-height:1.5}
.dc-hub-content p:first-child{margin-top:0}
.dc-hub-footer{border-top:1px solid var(--line,#dfe5ef);background:var(--card,#fff);padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px;box-sizing:border-box}
.dc-hub-footer .button{min-height:40px;flex-shrink:0}
.dc-section-heading p{margin:0 0 16px}
.dc-document-filters{margin:16px 0}
.dc-document-filters button{font-size:12px;min-height:40px}
.dc-document-filters button[aria-pressed=true]{background:#e8efff;color:#1455f5;border-color:#b9ceff}
.dc-document-list{border-top:1px solid var(--line,#dfe5ef)}
.dc-document-row{display:grid;grid-template-columns:minmax(0,1fr) 140px auto;gap:16px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line,#dfe5ef)}
.dc-document-row h4{font-size:14px;margin:0;font-weight:600;overflow-wrap:anywhere}
.dc-document-row p{margin:6px 0 0;overflow-wrap:anywhere}
.dc-document-state{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.dc-document-state small{font-size:12px;color:var(--muted,#60708d);font-variant-numeric:tabular-nums}
.dc-document-state .chip{white-space:normal;font-size:12px}
.dc-document-state [data-state=failed]{color:#a33333;background:#fdebec}
.dc-document-state [data-state=review]{color:#705000;background:#fff4d9}
.dc-document-state [data-state=published]{color:#24633d;background:#eaf5ee}
.dc-period-help{margin:16px 0 0}
.dc-client-documents{padding:24px}
.dc-notice{background:#fff4d9;padding:12px 16px;border-radius:8px;color:#705000;font-size:13px;line-height:1.5}
.dc-notice p{margin:0}
.dc-notice p+p{margin-top:4px}
.dc-error{color:#a33333;font-size:13px}
.dc-empty{padding:24px;color:var(--muted,#60708d)}
.dc-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dc-section{border-top:1px solid var(--line,#e1e7f0);margin-top:16px;padding-top:16px}
.dc-kb-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.dc-kb-heading h3{margin-bottom:8px}
.dc-kb-heading p{font-size:12px;margin:0}
.dc-kb-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);gap:16px;align-items:start}
.dc-knowledge-list{min-width:0}
.dc-kb-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;border:1px solid var(--line,#e2e9f3);border-radius:8px;margin-bottom:8px;min-width:0;background:var(--card,#fff)}
.dc-kb-row strong{font-size:14px;display:block;overflow-wrap:anywhere}
.dc-kb-row small{display:block;font-size:12px;color:var(--muted,#60708d);margin-top:4px}
.dc-kb-inactive{background:var(--surface,#f6f7f9)}
.dc-kb-row-actions{display:flex;gap:4px;flex-shrink:0}
.dc-icon-button{border:1px solid var(--line,#e3e9f3);background:var(--card,#fff);color:#456382;border-radius:8px;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.dc-icon-button:hover{background:#e8efff;color:#1455f5}
.dc-center button:focus-visible,.dc-editor button:focus-visible,.dc-icon-button:focus-visible{outline:3px solid #9db9ff;outline-offset:2px}
.dc-kb-empty{padding:16px;background:var(--surface,#f7f9fd);border-radius:8px;font-size:13px;color:var(--muted,#60708d);line-height:1.5}
.dc-kb-empty h4{color:var(--text,#38516d);margin:0 0 8px}
.dc-knowledge-editor{min-width:0;background:var(--surface,#f8faff);border:1px solid var(--line,#e3eaf5);border-radius:8px;padding:16px}
.dc-kb-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.dc-kb-editor-heading h4{margin:0;font-size:16px;overflow-wrap:anywhere}
.dc-kb-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dc-hub-content input[type=file]::file-selector-button{font:inherit;min-height:40px;padding:8px 12px;margin-right:8px;border:1px solid var(--line,#dfe5ef);border-radius:6px;background:var(--card,#fff);color:inherit;cursor:pointer}
.dc-site-result{margin-top:16px;padding:16px;background:var(--surface,#f5f8fe);border-radius:8px}
.dc-site-result:empty{display:none}
.dc-disclosure{margin-top:16px;border-top:1px solid var(--line,#dfe5ef)}
.dc-disclosure-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:12px 0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;font-weight:600;cursor:pointer}
.dc-disclosure-toggle[aria-expanded=true] .icon{transform:rotate(90deg)}
.dc-disclosure>div{padding-bottom:16px}
.dc-editor fieldset{border:0;margin:0;padding:0;min-width:0}
.dc-editor fieldset:disabled textarea,.dc-editor fieldset:disabled input,.dc-editor fieldset:disabled select{opacity:1;color:inherit;-webkit-text-fill-color:currentColor;background:var(--surface,#f7f9fc)}
.dc-editor textarea{line-height:1.5}
.dc-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--line,#dfe5f0);border-radius:8px}
.dc-edit-table{border-collapse:collapse;width:100%;min-width:850px;font-size:14px}
.dc-edit-table th{background:#eaf0ff;text-align:left;padding:12px}
.dc-edit-table td{padding:8px;vertical-align:top;border-top:1px solid var(--line,#e4e9f2)}
.dc-edit-table td:first-child{width:32px}
.dc-edit-table td:nth-child(2){min-width:180px}
.dc-edit-table td:nth-child(3){min-width:280px;width:45%}
.dc-edit-table input,.dc-edit-table textarea,.dc-edit-table select{width:100%;margin:0 0 8px;box-sizing:border-box;font-size:14px;min-width:0}
.dc-edit-table td:last-child{min-width:140px}
.dc-editor{min-width:0;box-sizing:border-box;width:100%}
#modal:has(.dc-editor){width:min(1240px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
#modal:has(.dc-regeneration,#dc-template-form,.dc-batch-result){width:min(1000px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
#modal:has(.dc-client-hub){width:min(1320px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
@media(max-width:1100px){.dc-workspace{grid-template-columns:200px minmax(0,1fr)}.dc-hub-nav small{display:none}.dc-kb-layout{grid-template-columns:1fr}.dc-kb-fields{grid-template-columns:1fr}.dc-document-row{grid-template-columns:minmax(0,1fr) 120px auto}}
@media(max-width:760px){.dc-workspace{grid-template-columns:1fr;min-height:0}.dc-companies{border-right:0;border-bottom:1px solid var(--line,#dfe5ef)}#dc-company-list{max-height:160px}.dc-toolbar{padding:16px}.dc-hub-header{padding:16px}.dc-hub-nav{padding:0 8px}.dc-hub-content{padding:16px}.dc-hub-footer{padding:16px;flex-wrap:wrap}.dc-document-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.dc-document-row>div:first-child{grid-column:1/-1}.dc-days{grid-template-columns:1fr}.dc-hub-content input,.dc-hub-content textarea,.dc-hub-content select{font-size:16px}.dc-client-documents{padding:16px}.dc-hub-header h2{font-size:24px}.dc-toolbar>.button{flex:1 1 auto}}
@media(max-width:640px){#modal:has(.dc-editor){width:calc(100vw - 16px);max-width:calc(100vw - 16px)}.dc-editor.modal-pad{padding:16px}.dc-actions .button{flex:1 1 auto}.dc-knowledge-editor{padding:12px}}
/* V1: a company workspace with a monthly production flow. */
.dc-center{background:#fff;border:0!important;border-radius:10px;box-shadow:0 1px 12px #1c1c2408;overflow:hidden}.dc-toolbar{padding:20px 24px;align-items:end;gap:16px;border-bottom:1px solid #e7e7ee80}.dc-toolbar .field{max-width:220px}.dc-workspace{grid-template-columns:220px minmax(0,1fr);min-height:600px}.dc-companies{background:#fff;padding:20px 16px;border-right:1px solid #e7e7ee80}.dc-company-choice{padding:12px;border:0;border-radius:6px;text-align:left;background:none}.dc-company-choice strong{font-size:13px;line-height:20px;font-weight:500}.dc-company-choice span{font-size:11px;line-height:17px;margin-top:4px}.dc-company-choice[aria-current=page]{background:linear-gradient(120deg,#0147fd 0%,#295aed 65%,#5477ff 100%);color:#fff}.dc-hub-header{padding:24px;border-bottom:1px solid #e7e7ee80}.dc-hub-header h2{font-size:20px;line-height:28px;font-weight:600;margin:0}.dc-hub-header>p{font-size:12px;line-height:18px;margin:4px 0 0}.dc-hub-body{display:block}.dc-hub-nav{display:flex;gap:24px;overflow:auto;padding:0 24px;border-bottom:1px solid #e7e7ee80;background:none}.dc-hub-nav button{flex:0 0 auto;padding:14px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:none!important;box-shadow:none!important;color:#656574;text-align:left}.dc-hub-nav button strong{font-size:13px;line-height:20px;font-weight:500}.dc-hub-nav button small{display:none}.dc-hub-nav button[aria-current=page]{color:#0147fd;border-bottom-color:#0147fd}.dc-hub-nav button:hover{transform:translateY(-1px);transition:transform 160ms ease}.dc-hub-content{padding:24px;max-width:none;min-width:0}.dc-hub-content h3{font-size:16px;line-height:24px;margin:0 0 4px;font-weight:600}.dc-hub-content h3+p{font-size:12px;line-height:18px;margin:0 0 16px}.dc-document-row{padding:16px 0;border:0;border-bottom:1px solid #e7e7ee80;border-radius:0;background:#fff;grid-template-columns:minmax(0,1fr) 140px auto;gap:16px;align-items:center}.dc-document-row h4{font-size:14px;line-height:20px;margin:0;font-weight:500}.dc-document-row p{font-size:12px;line-height:18px;margin:4px 0 0}.dc-document-row .button{min-height:34px;padding:6px 12px;border:0;border-radius:6px;box-shadow:none;font-size:12px;line-height:20px}.dc83-journey{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:16px;align-items:center;margin-top:20px;padding-top:16px;border-top:1px solid #e7e7ee80}.dc83-journey>div{display:grid;gap:4px}.dc83-journey span{font-size:11px;line-height:17px;color:#888897}.dc83-journey strong{font-size:13px;line-height:20px;font-weight:500}.dc83-journey .button{border:0;border-radius:6px;font-size:12px;line-height:20px;padding:8px 12px;min-height:36px;background:linear-gradient(120deg,#0147fd,#295aed 65%,#5477ff);color:#fff}.dc83-monthly{display:grid;gap:16px;margin:16px 0 28px}.dc83-monthly textarea{resize:vertical}.dc-hub-content .field{font-size:12px;line-height:18px}.dc-hub-content :is(input,select,textarea){border:0;border-radius:6px;background:#f6f6f9;font-size:13px;line-height:20px;padding:10px 12px}.dc-hub-footer{border-top:1px solid #e7e7ee80;padding:16px 24px}.dc83-word{color:#0147fd!important}
@media(max-width:1000px){.dc83-journey{grid-template-columns:repeat(3,1fr)}.dc83-journey>.button{grid-column:1/-1;justify-self:start}.dc-document-row{grid-template-columns:minmax(0,1fr) auto}.dc-document-row>.dc-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:760px){.dc-workspace{grid-template-columns:1fr}.dc-companies{border-right:0;border-bottom:1px solid #e7e7ee80;padding:16px}.dc-hub-header,.dc-hub-content{padding:16px}.dc-hub-nav{padding:0 16px;gap:20px}.dc-hub-nav button{min-height:44px}.dc83-journey{gap:12px}.dc83-journey .button,.dc-document-row .button{min-height:44px}.dc-toolbar{padding:16px}.dc-toolbar-actions{flex-wrap:wrap}.dc-hub-content :is(input,select,textarea){font-size:16px}}
@media(prefers-reduced-motion:reduce){.dc-hub-nav button:hover{transform:none;transition:none}}
#page .dc-center :is(.dc-toolbar,.dc-companies,.dc-hub-content) :is(input,select,textarea){border:0!important;border-radius:6px!important;box-shadow:none!important;background:#f6f6f9!important}#page .dc-center .dc-toolbar-actions>.button:not(.primary){border:0!important;border-radius:6px!important;box-shadow:none!important}#page .dc-center .dc-hub-nav button{background:none!important;box-shadow:none!important;border-radius:0!important}

#page .dc-center .dc-company-choice[aria-current=page],#page .dc-center .dc-company-choice[aria-current=page]:hover{background:linear-gradient(120deg,#0147fd 0%,#295aed 65%,#5477ff 100%)!important;color:#fff!important;box-shadow:none!important}#page .dc-center .dc-company-choice[aria-current=page] :is(strong,span,small,svg){color:#fff!important;opacity:1!important}
/* Stable document rows: every status and action uses the same column. */
#page .dc-center .dc-document-list{border-top:0}
#page .dc-center .dc-document-row,#page .dc-center .dc85-list-head{display:grid!important;grid-template-columns:minmax(0,1fr) 160px 216px!important;gap:20px!important;align-items:center!important}
#page .dc-center .dc85-list-head{padding:10px 0;border-bottom:1px solid #e7e7ee80;color:#888897;font-size:11px;line-height:18px}
#page .dc-center .dc-document-row{padding:16px 0!important;min-height:76px!important;box-sizing:border-box}
#page .dc-center .dc-document-row>div:first-child{min-width:0;grid-column:auto!important}
#page .dc-center .dc-document-row h4{margin:0!important;font-size:14px!important;line-height:20px!important;font-weight:500!important}
#page .dc-center .dc-document-row p{margin:4px 0 0!important;font-size:12px!important;line-height:18px!important}
#page .dc-center .dc-document-state{align-self:center;display:flex;align-items:flex-start;gap:4px;min-width:0}
#page .dc-center .dc-document-state .chip{display:inline-flex;align-items:center;gap:6px;border:0!important;padding:3px 8px!important;min-height:24px!important;max-width:160px;border-radius:4px!important;white-space:nowrap;font-size:11px!important;line-height:18px!important;font-weight:500}
#page .dc-center .dc-document-state .icon{width:14px!important;height:14px!important;flex:0 0 14px}
#page .dc-center .dc-document-state small{margin:0;font-size:11px!important;line-height:16px!important}
#page .dc-center .dc-document-row>.dc-actions{display:grid!important;grid-template-columns:136px 72px;gap:8px!important;align-items:center;justify-content:start!important;grid-column:auto!important;margin:0!important;min-width:0}
#page .dc-center .dc-document-row>.dc-actions>.button{display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:100%!important;min-width:0!important;min-height:34px!important;height:34px!important;padding:6px 10px!important;margin:0!important;border:0!important;border-radius:6px!important;background:#f6f6f9!important;color:#1c1c24!important;box-shadow:none!important;font-size:12px!important;line-height:20px!important;white-space:nowrap}
#page .dc-center .dc-document-row>.dc-actions>[data-action=dc-generate]:not(:disabled){background:linear-gradient(120deg,#0147fd,#295aed 65%,#5477ff)!important;color:#fff!important}
#page .dc-center .dc-document-row>.dc-actions>.dc83-word{color:#0147fd!important;background:none!important}
#page .dc-center .dc-document-row>.dc-actions>.button:disabled{background:#f6f6f9!important;color:#888897!important;opacity:.65}
#page .dc-center .dc-document-filters{display:flex!important;gap:24px!important;padding:0!important;margin:20px 0 12px!important;border:0!important;border-bottom:1px solid #e7e7ee80!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:auto}
#page .dc-center .dc-document-filters>button,#page .dc-center .dc-document-filters>button:hover,#page .dc-center .dc-document-filters>button[aria-pressed=true]{flex:none;min-height:38px!important;padding:8px 0!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:none!important;background-image:none!important;box-shadow:none!important;font-size:12px!important;line-height:20px!important;font-weight:500!important;color:#656574!important}
#page .dc-center .dc-document-filters>button[aria-pressed=true]{border-bottom-color:#0147fd!important;color:#0147fd!important}
@media(max-width:1100px){#page .dc-center .dc-document-row,#page .dc-center .dc85-list-head{grid-template-columns:minmax(0,1fr) 144px 184px!important;gap:12px!important}#page .dc-center .dc-document-row>.dc-actions{grid-template-columns:112px 64px}}
@media(max-width:760px){#page .dc-center .dc85-list-head{display:none!important}#page .dc-center .dc-document-row{grid-template-columns:minmax(0,1fr) auto!important;gap:10px 12px!important}#page .dc-center .dc-document-row>div:first-child{grid-column:1/-1!important}#page .dc-center .dc-document-row>.dc-actions{grid-column:2!important;grid-template-columns:112px 64px}#page .dc-center .dc-document-row>.dc-actions>.button{height:44px!important;min-height:44px!important}#page .dc-center .dc-document-state .chip{max-width:140px}#page .dc-center .dc-document-filters>button{min-height:44px!important}}
@media(max-width:420px){#page .dc-center .dc-document-row{grid-template-columns:minmax(0,1fr)!important}#page .dc-center .dc-document-row>.dc-actions{grid-column:1!important;justify-self:start}}
