/* Shared visual scale for operational workspaces. */
:root{--day-title-size:22px;--day-section-size:17px;--day-body-size:14px;--day-label-size:13px;--day-meta-size:12px}
/* Page spacing belongs to the workspace, not a viewport-height decorative card. */
.erp-workspace{padding:20px 24px 24px}
.erp-page.module-page{min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.module-shell{gap:12px;align-content:start;min-width:0}
.module-shell>.module-body{min-width:0}
.module-page .module-head{padding:8px 0 10px;gap:12px}
.module-page .module-head h1{font-size:var(--day-title-size);line-height:1.4;margin:0}
.module-head p{line-height:1.5;margin-top:3px}
.module-toolbar,.workflow-toolbar{min-height:0;padding-block:8px}
.module-empty-state{min-height:0;padding:16px 12px;border-radius:6px;gap:6px;line-height:1.6}
.module-table .module-empty{padding:16px 12px!important}
.module-card{padding:12px;border-radius:8px;min-width:0;align-self:start}
.module-card h2,.module-split h2{font-size:var(--day-section-size);line-height:1.4;margin:0 0 8px}
.module-detail-grid{gap:8px 12px;align-items:start}
.module-detail-grid>div{padding:4px 0 6px;min-width:0}
.module-detail-grid span{font-size:var(--day-meta-size);line-height:1.5}
.module-detail-grid b{font-size:var(--day-body-size);line-height:1.5;margin-top:2px;overflow-wrap:anywhere}
.module-summary-grid>div,.module-stat{padding:10px 12px;border-radius:8px;align-self:start}
.module-stat-grid{gap:10px;margin-bottom:12px}
.module-split,.procurement-layout{align-items:start;min-height:0}
.module-page .module-editor{gap:12px;padding:16px;border-radius:8px}
.module-page .module-editor>header{padding-bottom:8px;align-items:center}
.module-page .module-editor h3{font-size:var(--day-section-size);line-height:1.4}
.projects-empty-state{min-height:0;padding:18px 12px;gap:6px;border-radius:8px}
.project-row.project-card-oldstyle{min-height:0;align-content:start;border-radius:8px}
.project-row.project-card-add{min-height:112px;align-content:center}
.project-board-workspace{min-height:0}
.dashboard-card{min-height:0}
.dashboard-datetime-row{min-height:0;padding:10px 14px}
.page-title,.projects-head,.users-toolbar{margin-bottom:12px}
.page-title h1,.projects-head h1,.users-toolbar h1{font-size:var(--day-title-size);line-height:1.4}
#page-chat[data-dc-ready]{padding:0;height:calc(100dvh - 112px);min-height:320px}
.dc-shell{border-radius:8px;box-shadow:none}
.dc-side-head{padding:12px 14px 10px}
.dc-search{margin:0 12px 10px}
.mail-workspace{padding:0;min-height:0}
.mail-reader-pane{min-height:0}
.crm-shell,.crm-board,.crm-detail-body{min-height:0}
.crm-board{padding:12px;align-content:start}
.crm-stage .crm-empty-card{padding:8px 2px;min-height:0}
.hr-shell .hr-self-hero{padding:10px 12px;margin-bottom:10px;gap:10px}
.hr-self-hero h2{margin:2px 0;line-height:1.4}
.hr-self-hero p{line-height:1.5}
.hr-personnel-number{padding:6px 10px}
.hr-quick-grid{grid-template-columns:repeat(auto-fit,minmax(180px,240px));gap:8px;margin-bottom:10px}
.hr-quick-grid .hr-quick-card{grid-template-columns:minmax(0,1fr) auto;align-items:center;align-content:start;padding:8px 12px;gap:2px 10px}
.hr-quick-card span{line-height:1.5}
.hr-quick-card strong{grid-column:2;grid-row:1 / span 2;line-height:1.2}
.hr-quick-card small{grid-column:1;line-height:1.5}
.hr-workspace-body .module-card+.module-card{margin-top:10px}
@media(max-width:900px){.erp-workspace{padding:16px}#page-chat[data-dc-ready]{height:calc(100dvh - 96px)}}
@media(max-width:760px){.erp-workspace{padding:12px}.module-head{flex-wrap:wrap}.module-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-quick-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}#page-chat[data-dc-ready]{height:calc(100dvh - 88px)}}
@media(max-height:500px){#page-chat[data-dc-ready]{min-height:0}}
.module-page,.module-page button,.module-page input,.module-page select,.module-page textarea{font-family:inherit}
.module-head h1{font-size:var(--day-title-size);font-weight:700;letter-spacing:0;line-height:1.4;margin:0}
.module-head{align-items:center;gap:12px;padding:12px 0;border-top:0;background:transparent}
.module-head p,.module-kicker{font-size:var(--day-meta-size);letter-spacing:0}
.module-sidebar-module{min-height:40px;padding:5px 9px;border-radius:6px}
.module-sidebar-module b,.module-sidebar-item{font-size:var(--day-label-size);font-weight:500}
.module-sidebar-item{min-height:34px}
.hr-shell{min-height:0;padding:0;background:transparent;color:var(--module-text)}
.hr-workspace-body{min-height:0}
.hr-self-hero{padding:12px 16px;border-radius:8px;gap:12px;margin-bottom:12px}
.hr-self-hero h2{font-size:var(--day-section-size);font-weight:700}
.hr-self-hero p,.hr-personnel-number small,.hr-quick-card small,.hr-stat small,.hr-card-title p,.hr-muted{font-size:var(--day-meta-size)}
.hr-quick-card{padding:10px 12px;border-radius:8px;gap:3px}
.hr-quick-card span{font-size:var(--day-label-size)}
.hr-quick-card strong{font-size:20px;font-weight:700}
.hr-contract-form label,.hr-base-rate-form label,.hr-leave-form label{font-size:var(--day-label-size);font-weight:500}
.hr-contract-form input,.hr-contract-form select,.hr-contract-form textarea,.hr-base-rate-form input,.hr-base-rate-form select,.hr-leave-form input,.hr-leave-form textarea{font-size:var(--day-body-size);font-weight:400;border-radius:6px}
.hr-contract-section h4 b{font-size:var(--day-section-size);font-weight:600}
.inventory-page .module-head{background:transparent;border-top:0}
.catalog-toolbar{background:var(--module-soft);border-color:var(--module-line)}
.inventory-dialog input,.inventory-dialog textarea,.inventory-dialog select{background:#fff;border-color:var(--module-line-strong);color:var(--module-text);font:inherit;font-size:var(--day-body-size)}
.inventory-dialog header,.inventory-dialog footer{border-color:var(--module-line)}
.inventory-dialog::backdrop,.day-confirm-dialog::backdrop{background:rgba(20,30,44,.4)}
.wf-instance-head h2,.wf-note-dialog>header h3,.workflow-page .module-editor h3{font-size:var(--day-section-size);font-weight:700}
.wf-section-head h3{font-size:var(--day-section-size);font-weight:600}
.wf-section-head p,.wf-instance-head p,.wf-history-item span,.wf-timeline-meta{font-size:var(--day-meta-size)}
.wf-step-timeline b,.wf-history-item b,.wf-note-dialog textarea{font-size:var(--day-body-size)}
.module-form-grid label,.workflow-start-card label{font-size:var(--day-label-size);font-weight:500}
.module-editor input,.module-editor select,.module-editor textarea{font-size:var(--day-body-size)}
.day-confirm-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--module-line);border-radius:8px;color:var(--module-text);font-family:inherit;box-shadow:0 24px 70px rgba(20,30,44,.2);overflow:auto}
.day-confirm-dialog h2{margin:0 0 12px;font-size:var(--day-section-size);font-weight:700}
.day-confirm-dialog p{margin:0;white-space:pre-line;overflow-wrap:anywhere;font-size:var(--day-body-size);line-height:1.8}
.day-confirm-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
@media(max-width:760px){.hr-shell{padding:0}.hr-self-hero{flex-wrap:wrap}.day-confirm-dialog{padding:16px}}
.procurement-request-form .proc-item-row{display:grid;grid-template-columns:minmax(180px,2fr) 90px 90px minmax(100px,1fr) minmax(130px,1.3fr) 36px;gap:8px;align-items:end;padding:10px 0;border-bottom:1px solid var(--module-line)}
.procurement-request-form .proc-item-row label{display:grid;gap:5px;font-size:var(--day-label-size);min-width:0}
.procurement-request-form .proc-item-row input,.procurement-request-form .proc-item-row select{width:100%;min-width:0;font:inherit;height:40px;border:1px solid var(--module-line-strong);border-radius:6px;background:#fff;padding:0 8px}
.procurement-request-form .proc-item-row output{grid-column:1 / -1;font-size:var(--day-meta-size);color:#176b58}
.procurement-request-form [data-error]{color:#a71935;font-size:var(--day-label-size)}
.proc-subject-suggestions{border:1px solid var(--module-line);border-radius:6px;background:#fff;max-height:180px;overflow:auto}
.proc-subject-suggestions[hidden]{display:none}
.proc-subject-suggestions button{display:block;width:100%;border:0;background:transparent;text-align:right;padding:8px 10px;font:inherit;cursor:pointer}
.proc-subject-suggestions button:hover,.proc-subject-suggestions button[aria-selected=true]{background:var(--module-red-soft)}
@media(max-width:980px){.procurement-request-form .proc-item-row{grid-template-columns:minmax(0,2fr) minmax(70px,1fr) minmax(70px,1fr)}.procurement-request-form .proc-item-row label:first-child{grid-column:1 / -1}}
