:root{--erp-ink:#182d42;--erp-muted:#65788b;--erp-line:#e1e7ed;--erp-orange:#ef782b;--erp-bg:#f3f5f8;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--erp-ink);background:var(--erp-bg)}
body{background:var(--erp-bg);color:var(--erp-ink);font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:0}*{box-sizing:border-box} [hidden],.hide{display:none!important}a{color:#235e87}h1,h2,h3{letter-spacing:-.025em;color:var(--erp-ink)}h1{font-size:28px;font-weight:750}h2{font-size:20px}h3{font-size:16px}p{line-height:1.65}.muted,small{color:var(--erp-muted)}
body>header{background:#fff;color:var(--erp-ink);border-bottom:1px solid var(--erp-line);padding:18px 30px;min-height:78px;box-shadow:none}body>header .brand h1{color:var(--erp-ink);font-size:24px}header b span,.brand h1 span{color:var(--erp-orange)}.brand-tagline{color:var(--erp-muted);font-size:11px;letter-spacing:.08em;text-transform:uppercase}.brand-icon,.brand-mark{background:var(--erp-orange);color:white;border-radius:11px;box-shadow:none}.demo-banner{background:#fff4e9;color:#8a4a18;font-size:10px;letter-spacing:.06em;border-radius:5px;padding:5px 9px;margin:0 0 10px;display:inline-block}.local-badge{background:#fff4e9;color:#8a4a18;border:1px solid #f6d9bf;border-radius:6px;font-size:11px;padding:5px 10px}
main,.wrap{max-width:1500px;padding:26px 32px 60px;margin:0 auto;width:100%;min-width:0}section{background:#fff;border:1px solid var(--erp-line);border-radius:12px;box-shadow:0 2px 5px #18334d04;padding:24px;margin:0 0 20px}section section{box-shadow:none}label{font-size:12px;font-weight:650;color:#40566b}input,select,textarea{font:inherit;border:1px solid #cbd5df;border-radius:6px;background:#fff;color:var(--erp-ink);padding:10px 12px;min-height:42px;max-width:100%;box-shadow:none}input:focus,select:focus,textarea:focus{outline:2px solid #fbccaa;outline-offset:1px;border-color:#da732f}input[readonly]{background:#f3f6f9}input[type=checkbox]{min-height:0;accent-color:var(--erp-orange);width:auto}input[type=file]{background:#f7f9fb;border-style:dashed;padding:14px}
button,nav a{font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer;border-radius:6px;padding:10px 15px;background:#214e70;color:white;border:1px solid transparent;box-shadow:none;min-height:40px}button:hover:not(:disabled){filter:brightness(.95)}button.secondary{background:#f2f5f8;color:#34516a;border:1px solid #dce4eb}button.warn{background:#a83a30}button:disabled{cursor:not-allowed;opacity:.5}:focus-visible{outline:3px solid #f2a366;outline-offset:3px}button.save-confirmed{background:#15803d}button[type=submit],#openScope,#addEstimate,#applyExcel,#applyPhysical{background:#df6b22;color:white}
.note,.notice,.alert{background:#fff8ee;color:#80542a;border:1px solid #f1e1cc;border-left:3px solid #ed9b52;border-radius:7px;padding:12px 15px;font-size:12px}.status{font-size:13px}.table-wrap,.financial-table{border:1px solid var(--erp-line);border-radius:8px;overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;font-size:13px}thead th,.financial-table th{background:#edf2f6;color:#4b6175;font-size:11px;font-weight:700;letter-spacing:.035em;padding:13px 12px;white-space:nowrap;text-transform:uppercase;border-bottom:1px solid #dce4ec}td,.financial-table td{padding:12px;border-bottom:1px solid #edf1f5}tbody tr:nth-child(even){background:#fafbfd}tbody tr:hover{background:#f0f6fa}.low-stock,.low-stock td{background:#fff1f0!important;color:#a52c26}.chip{background:#edf4fa;color:#326384;border-radius:5px}.row{gap:14px}.cols{gap:20px}details{border:1px solid var(--erp-line);border-radius:7px;padding:12px 14px;margin:14px 0;background:#fafbfd}summary{cursor:pointer;font-weight:600;color:#435c72}fieldset{border:1px solid var(--erp-line);border-radius:8px;padding:15px}legend{color:#567086;font-size:12px;font-weight:700}.item{padding:16px 0}
nav.warehouse-tabs,nav#personnelTabs,main>nav{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;border-bottom:1px solid var(--erp-line);background:#fff;padding:8px;border-radius:8px;margin:0 0 20px;scrollbar-width:thin}nav.warehouse-tabs a,nav#personnelTabs button,main>nav>a{flex:0 0 auto;white-space:nowrap;background:transparent;color:#65788b;border:0;border-radius:5px;font-size:12px;min-height:42px;padding:11px 13px;text-decoration:none}nav.warehouse-tabs a[aria-selected=true],nav#personnelTabs button:not(.secondary),main>nav>a.erp-active{background:#fff0e4;color:#b65315}nav svg{width:18px;height:18px}.scope-card{background:linear-gradient(115deg,#fff,#f8fafc);border-top:3px solid var(--erp-orange)}.scope-card h2{font-size:15px}#scopeControls>div{flex:2}#scopeControls>button{flex:0 0 auto;align-self:end;margin-bottom:11px}#scope{margin-bottom:0}#balanceSummary{font-weight:700;color:#315776;padding:12px 14px;background:#edf4f9;border-radius:6px}#lowStockAlert:empty{display:none}
.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:18px}.module-card,button.module-card,a.module-card{background:white;border:1px solid var(--erp-line);border-radius:10px;color:var(--erp-ink);padding:24px;min-height:185px;box-shadow:none;text-align:left;transition:transform .15s,border-color .15s}.module-card:hover{transform:translateY(-3px);border-color:#efa56e;box-shadow:0 9px 24px #233e5210}.module-card .module-icon{background:#fff0e3;color:#d56a24;border-radius:10px;width:48px;height:48px;margin-bottom:14px}.module-card strong{font-size:17px}.module-card small,.module-card p{font-size:12px;line-height:1.6;color:#708194}.module-heading{border-bottom:1px solid var(--erp-line);padding-bottom:16px;margin-bottom:20px}#moduleHome>h2{font-size:26px}#moduleHome{padding:28px}#app>section:first-child{background:#edf2f6;border:0;padding:14px 20px}#who{display:block;font-size:14px}#companyLabel{font-size:11px;text-transform:uppercase;letter-spacing:.08em}.totals>div{background:#f6f9fb;border-radius:7px;border:1px solid var(--erp-line)}.totals strong{font-size:24px;color:#214e70}
/* Shared desktop frame; permission-filtered links come from the existing account policy. */
body.erp-shell{padding-left:224px}.erp-sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#152e44;color:#d2deea;z-index:20;display:flex;flex-direction:column;padding:28px 15px 18px;box-shadow:3px 0 15px #142c4310}.erp-logo{font-size:23px;font-weight:800;color:white;padding:0 13px;letter-spacing:-.04em}.erp-logo span{color:#f39751}.erp-sidebar small{color:#8ba4bb;font-size:10px;letter-spacing:.12em;text-transform:uppercase;margin:3px 13px 33px}.erp-nav-caption{font-size:10px;font-weight:700;letter-spacing:.12em;color:#849db4;padding:0 13px;margin-bottom:10px}.erp-sidebar nav{display:flex;flex-direction:column;overflow:visible;gap:5px;margin:0}.erp-sidebar nav a{display:flex;align-items:center;gap:12px;background:transparent;color:#c7d5e2;border-radius:6px;padding:12px 13px;font-size:13px;font-weight:500;text-decoration:none;white-space:normal}.erp-sidebar nav a:hover{background:#ffffff0c}.erp-sidebar nav a.erp-current{background:#ffffff12;color:#fff;box-shadow:inset 3px 0 #f58c40}.erp-sidebar svg{width:19px;height:19px;flex-shrink:0}.erp-sidebar-footer{margin-top:auto;border-top:1px solid #ffffff16;padding:18px 12px 0;font-size:11px;color:#93a9bc}.erp-sidebar-footer strong{display:block;font-size:12px;color:#e0e8ef;margin-bottom:5px}.erp-mobile-toggle{display:none}.erp-page-context{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.erp-eyebrow{color:#8090a0;text-transform:uppercase;font-size:10px;letter-spacing:.14em;font-weight:700}.erp-page-context h1{margin:3px 0;font-size:26px}.erp-context-tag{background:#e9eff4;color:#54718a;border:1px solid #dce5ed;border-radius:6px;padding:6px 10px;font-size:11px;white-space:nowrap}.erp-shell>header{display:flex;gap:18px;align-items:center;justify-content:space-between}.erp-shell>header .demo-banner{display:none}.erp-shell>header .brand-icon{width:39px;height:39px;font-size:21px}.erp-shell>header .brand h1{font-size:20px}.erp-shell>header .brand-tagline{font-size:9px}.erp-shell>header .brand-mark{width:40px;height:40px}.erp-shell main>h1{display:none}.erp-shell main>a:first-child{display:none}
body.erp-login{min-height:100vh;background:linear-gradient(120deg,#102a40 0%,#203f58 53%,#f3f5f8 53%)}.erp-login>header{background:transparent;color:white;border:0;padding:34px 6vw}.erp-login>header b{font-size:30px}.erp-login>header div{color:#afc1d1;font-size:11px;letter-spacing:.09em}.erp-login>.notice{position:absolute;bottom:24px;left:6vw;max-width:37%;background:transparent;border:0;color:#a6bdce;padding:0}.erp-login main{max-width:none;display:grid;grid-template-columns:1fr 1fr;gap:9vw;align-items:center;padding:5vh 8vw 12vh}.erp-login section{max-width:440px;width:100%;justify-self:center;padding:35px;box-shadow:0 20px 60px #122b4010}.erp-login h1{font-size:25px}.erp-login button{background:#e9752a}.erp-login-story{color:#a9c0d1}.erp-login-story h2{font-size:clamp(32px,3.6vw,56px);line-height:1.12;color:white;max-width:560px;margin:16px 0 22px;font-weight:750}.erp-login-story h2 span{color:#f5a56a}.erp-login-story p{max-width:390px;font-size:15px;line-height:1.9}.erp-login-story .erp-eyebrow{color:#f5a56a}.erp-login-pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:32px}.erp-login-pills span{border:1px solid #ffffff20;border-radius:5px;padding:7px 12px;color:#c5d5e0;font-size:11px}.erp-login small{font-size:11px}body.erp-owner main{max-width:1100px}
@media(max-width:1000px){body.erp-shell{padding-left:190px}.erp-sidebar{width:190px}.erp-sidebar nav a{font-size:12px;padding:11px}main,.wrap{padding:22px}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body.erp-shell{padding-left:0;padding-top:0}.erp-sidebar{display:none;top:70px;width:250px;box-shadow:10px 10px 40px #142c4333}.erp-sidebar.is-open{display:flex}.erp-mobile-toggle{display:inline-flex;align-items:center;justify-content:center;background:#edf2f6;color:#214e70;flex:0 0 40px;padding:9px;margin:0}.erp-shell>header{padding:12px 16px;min-height:70px;position:relative}.erp-shell>header .brand-tagline{display:none}main,.wrap{padding:18px 14px 40px}.erp-page-context h1{font-size:22px}.erp-context-tag{font-size:10px}.erp-page-context{align-items:start}section{padding:17px;border-radius:9px}.module-grid{grid-template-columns:1fr}.module-card{min-height:150px;padding:21px}.row{gap:10px}#scopeControls>div{flex:1 1 100%}#scopeControls>button{width:100%;flex:1 1 100%}nav#personnelTabs,nav.warehouse-tabs{display:flex!important;flex-wrap:nowrap;overflow-x:auto}nav#personnelTabs.hide{display:none!important}nav#personnelTabs button{white-space:nowrap;min-height:44px}input,select,textarea{font-size:16px}h1{font-size:24px}.erp-login{background:#f3f5f8!important}.erp-login>header{background:#152e44;padding:22px!important}.erp-login main{display:block;padding:24px 16px}.erp-login-story{display:none}.erp-login section{margin:auto;padding:25px}.erp-login>.notice{position:static;max-width:none;background:#fff4e9;color:#80542a;padding:12px 16px}.erp-shell header .local-badge{margin-left:auto;font-size:10px}.erp-page-context .erp-context-tag{max-width:100px;white-space:normal;text-align:right}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{body.erp-shell{padding:0}.erp-sidebar,.erp-mobile-toggle,.erp-page-context{display:none!important}body{background:white}main,.wrap{padding:0}section{box-shadow:none}}

.erp-shell>header .erp-mobile-toggle{background:#edf2f6;color:#214e70;font-size:22px;line-height:1;border:1px solid #dce5ed}

.module-card p,.module-card small{font-weight:400}.erp-shell>header .brand-mark{flex-shrink:0}.erp-shell>header>div{min-width:0}.erp-shell>header #companyTitle{font-size:12px;color:#65788b;overflow-wrap:anywhere}#financeEditor{padding:20px;background:#f8fafc;border:1px solid #e1e7ed;border-radius:8px;margin:18px 0 25px}#estimateForm{max-width:850px}@media(min-width:1001px){.module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Workspace tabs and collapsible section explorer. */
body.erp-tree-layout{padding-left:248px}.erp-tree-layout .erp-sidebar{width:248px;background:#f9fbfd;color:#36546c;border-right:1px solid #d8e1e9;box-shadow:none;padding:24px 14px 16px}.erp-tree-layout .erp-logo{color:#17374f}.erp-tree-layout .erp-logo span{color:#df732c}.erp-tree-layout .erp-sidebar small{color:#889bac;margin-bottom:30px}.erp-tree-layout .erp-nav-caption{font-size:9px;color:#738b9e;line-height:1.7;margin-bottom:15px}.erp-tree-layout .erp-sidebar-footer{border-color:#dce5ed;color:#7c91a2}.erp-tree-layout .erp-sidebar-footer strong{color:#34536b}.erp-tree-layout .erp-tree{display:block;overflow-y:auto;min-height:0;flex:1;margin:0;padding-bottom:20px}.erp-tree-layout details.erp-tree-branch{background:transparent;border:0;border-radius:0;margin:0 0 12px;padding:0}.erp-tree-branch>summary{list-style:none;display:flex;align-items:center;gap:9px;padding:10px 7px;font-size:12px;color:#294a65;font-weight:700}.erp-tree-branch>summary::-webkit-details-marker{display:none}.erp-tree-branch>summary::before{content:'›';font-size:19px;line-height:1;color:#8ca1b2;transform:rotate(0deg);width:12px}.erp-tree-branch[open]>summary::before{transform:rotate(90deg)}.erp-tree-leaves{margin:0 0 0 12px;padding:0 0 0 14px;border-left:1px solid #cddae5}.erp-tree-layout .erp-tree a.erp-tree-leaf{position:relative;display:block;background:none;color:#647f93;font-size:12px;line-height:1.5;font-weight:500;border:0;border-radius:5px;min-height:36px;padding:9px 9px;margin:2px 0;text-decoration:none;white-space:normal}.erp-tree-leaf::before{content:'';position:absolute;left:-15px;top:18px;width:10px;border-top:1px solid #cddae5}.erp-tree-layout .erp-tree a.erp-tree-leaf:hover{background:#edf3f7;color:#254c6a}.erp-tree-layout .erp-tree a.erp-selected{background:#ffecd9;color:#ac5018;font-weight:700}.erp-tree-layout .erp-sidebar-footer{flex-shrink:0;margin-top:15px}.erp-tree-layout>header{background:#17374f;color:white;min-height:73px;padding:14px 28px}.erp-tree-layout>header .brand h1,.erp-tree-layout>header h1,.erp-tree-layout>header strong,.erp-tree-layout>header b{color:white}.erp-tree-layout>header .brand-tagline,.erp-tree-layout>header #companyTitle{color:#b3c7d6}.erp-tree-layout nav.erp-module-tabs{display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;margin:0;background:#e9eef3;border-bottom:1px solid #d4dfe8;padding:12px 22px 0;overflow-x:auto;scrollbar-width:thin;border-radius:0}.erp-module-tabs>a{display:flex;align-items:center;gap:9px;flex-shrink:0;color:#658095;background:#e3eaf0;padding:11px 17px;min-height:44px;border:1px solid #d9e2ea;border-bottom:0;border-radius:7px 7px 0 0;text-decoration:none;font-size:12px;font-weight:600;white-space:nowrap}.erp-module-tabs>a.erp-current{color:#b45a20;background:#f3f5f8;border-top:3px solid #eb8b45;padding-top:9px;box-shadow:none}.erp-module-tabs>a:hover{color:#214f70;background:#f3f6f9}.erp-module-tabs svg{width:17px;height:17px}.erp-tree-layout main,.erp-tree-layout .wrap{padding-top:22px}.erp-tree-layout nav#personnelTabs,.erp-tree-layout nav.warehouse-tabs,.erp-tree-layout main>nav{border-radius:7px 7px 0 0;border:1px solid #dfe6ed;border-bottom:2px solid #e5ebf0;padding:6px 7px 0}.erp-tree-layout nav#personnelTabs button,.erp-tree-layout nav.warehouse-tabs a,.erp-tree-layout main>nav>a{border-radius:5px 5px 0 0}.erp-tree-layout .erp-sidebar .erp-logo{font-size:24px}.erp-tree-layout .erp-sidebar{top:0;bottom:0}.erp-tree-layout .erp-mobile-toggle{display:none}
@media(max-width:1050px) and (min-width:761px){body.erp-tree-layout{padding-left:218px}.erp-tree-layout .erp-sidebar{width:218px}.erp-module-tabs>a{padding:11px 13px}.erp-tree-layout nav.erp-module-tabs{padding-left:16px;padding-right:16px}}
@media(max-width:760px){body.erp-tree-layout{padding-left:0}.erp-tree-layout .erp-sidebar{width:260px;top:70px;display:none;box-shadow:8px 12px 35px #142c4326}.erp-tree-layout .erp-sidebar.is-open{display:flex}.erp-tree-layout .erp-mobile-toggle{display:flex}.erp-tree-layout>header{padding:12px 16px;min-height:70px}.erp-tree-layout nav.erp-module-tabs{padding:9px 10px 0;gap:3px}.erp-module-tabs>a{min-height:44px;padding:10px 13px;font-size:12px}.erp-module-tabs>a.erp-current{padding-top:8px}.erp-tree-layout .erp-sidebar small{margin-bottom:20px}.erp-tree-layout .erp-sidebar .erp-logo{display:none}.erp-tree-layout .erp-sidebar small{display:none}.erp-tree-layout .erp-nav-caption{margin:0 0 12px}.erp-tree-layout main,.erp-tree-layout .wrap{padding-top:16px}}
@media print{body.erp-tree-layout{padding:0}.erp-module-tabs,.erp-tree-layout .erp-sidebar{display:none!important}}

/* A tree leaf opens a single workspace page; module tabs stay in place. */
.erp-page-layout #moduleHeading{display:none!important}
@media(min-width:761px){.erp-page-layout nav#personnelTabs,.erp-page-layout nav.warehouse-tabs,.erp-page-layout main>nav{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;border:0!important}.erp-page-layout nav#personnelTabs:focus-within,.erp-page-layout nav.warehouse-tabs:focus-within,.erp-page-layout main>nav:focus-within{position:static!important;width:auto!important;height:auto!important;margin:0 0 18px!important;padding:8px!important;clip-path:none!important}}
.erp-page-layout .erp-page-context{padding-bottom:16px;border-bottom:1px solid #dce5ed}.erp-page-layout .erp-page-context h1:focus{outline:none}.erp-page-layout .erp-page-context h1{font-size:27px}

.erp-page-layout main>a{display:none!important}.erp-page-layout .erp-scope-fold{margin:0 0 18px;padding:0;border:1px solid #dce5ed;background:#fff;border-radius:8px}.erp-scope-fold>summary{padding:14px 18px;font-size:12px;color:#365c78}.erp-scope-fold .scope-card{margin:0;border:0;border-top:1px solid #e3eaf0;border-radius:0 0 8px 8px;box-shadow:none}

/* Show only the current module and its own section tabs. */
.erp-page-layout nav#personnelTabs:not(.hide),.erp-page-layout nav.warehouse-tabs,.erp-page-layout main>nav{position:static!important;width:auto!important;height:auto!important;padding:7px!important;margin:0 0 18px!important;overflow-x:auto!important;clip-path:none!important;border:1px solid #dfe6ed!important;display:flex!important;flex-wrap:nowrap!important}
.erp-module-tabs>a[hidden],.warehouse-tabs>a[hidden],#personnelTabs>button.hide{display:none!important}

nav.erp-module-tabs[hidden]{display:none!important}

body.erp-shell.erp-home-layout{padding-left:0}.erp-sidebar[hidden],.erp-mobile-toggle[hidden]{display:none!important}.erp-home-layout>.wrap{max-width:1350px}
.attendance-toolbar{display:grid;grid-template-columns:minmax(220px,480px) 1fr;align-items:end;gap:16px;margin:20px 0}.attendance-sheet{border:1px solid #dce5ed;border-radius:10px;padding:20px;background:#fff}.attendance-sheet-heading{display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:19px;font-weight:700;margin-bottom:16px}.attendance-grid{min-width:720px}.attendance-grid th:nth-child(n+3),.attendance-grid td:nth-child(n+3){text-align:center;width:100px}.attendance-grid input[type=radio]{width:19px;height:19px;min-height:0;margin:0;accent-color:#df742c;cursor:pointer}.attendance-grid td:first-child{font-weight:600;min-width:190px}.attendance-grid tr.attendance-unsaved{background:#fff8eb}.attendance-empty{padding:30px;text-align:center;color:#72899b;background:#f6f9fb;border-radius:8px}.attendance-summary{margin:25px 0 0!important;padding:22px!important;background:#f9fbfd}.attendance-summary>a{display:inline-block;margin:12px}.attendance-manage{margin-top:24px}#attendance>.row{display:grid;grid-template-columns:1fr 2fr}#attendance>.row select{margin-bottom:0}@media(max-width:760px){.attendance-toolbar{grid-template-columns:1fr}.attendance-sheet{padding:13px}.attendance-sheet-heading{font-size:16px}#attendance>.row{grid-template-columns:1fr}.attendance-summary{padding:14px!important}}

body:has(#attendance:not(.hide)) #personnelSite,body:has(#attendance:not(.hide)) label[for="personnelSite"]{display:none}body:has(#attendance:not(.hide)) #personnelSearchBox{padding:15px 20px}body:has(#attendance:not(.hide)) #personnelSearchStatus{margin-bottom:0;font-size:11px}.attendance-grid td:nth-child(3){background:#f4faf6}.attendance-grid td:nth-child(4){background:#fff8f7}.attendance-grid td:nth-child(5){background:#fffcf4}.attendance-grid td:nth-child(6){background:#f5f7fc}

#personnelSearchResults{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:9px;margin-top:13px;max-height:380px;overflow-y:auto;padding:2px}.personnel-result{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;background:#fff!important;color:#29495f!important;border:1px solid #d7e2eb!important;border-radius:8px;padding:14px!important;margin:0!important;width:100%}.personnel-result:hover{border-color:#ed9c62!important;background:#fff9f3!important}.personnel-result strong{font-size:14px}.personnel-result .muted{font-weight:400;font-size:11px}.personnel-result-action{font-size:11px;color:#b7652f;font-weight:600}#personnelProfile{border:1px solid #e8c6a6;border-left:4px solid #e98a42;border-radius:8px;background:#fffaf5;padding:18px;margin-top:15px}#personnelProfile h3{margin:0 0 6px}#personnelProfile p{margin:6px 0;font-size:12px}.personnel-profile-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.personnel-profile-actions button{font-size:12px}#personnelSearchResults[hidden],#personnelProfile[hidden]{display:none!important}@media(max-width:760px){#personnelSearchResults{grid-template-columns:1fr}.personnel-profile-actions button{flex:1 1 45%;min-height:44px}}

/* Compact mobile start and one section selector; desktop keeps its tree. */
.mobile-module-name,.mobile-module-hint,.erp-mobile-section{display:none}
@media(max-width:760px){
 .erp-mobile-section:not([hidden]){display:block;background:#fff;padding:12px 14px;border:1px solid var(--erp-line);border-radius:10px;margin-bottom:16px}
 .erp-mobile-section select{display:block;width:100%;margin-top:6px;min-height:48px}
 body.erp-page-layout #app nav#personnelTabs:not(.hide),body.erp-page-layout nav.warehouse-tabs,body.erp-page-layout main>nav{display:none!important}
 .erp-home-layout .erp-page-context,.erp-home-layout #role,.erp-home-layout .module-access{display:none}
 #moduleHome{padding:18px 12px}#moduleHome>h2{font-size:22px;margin:0 0 4px}#moduleHome>p{font-size:13px;margin:0 0 18px}
 #moduleCards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #moduleCards .module-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:150px;padding:16px 12px;margin:0;text-decoration:none}
 #moduleCards .module-card .module-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0 0 12px}
 #moduleCards .module-icon svg{width:25px;height:25px}
 #moduleCards .mobile-module-name{display:block;font-size:16px;font-weight:750;color:var(--erp-ink)}
 #moduleCards .mobile-module-hint{display:block;font-size:12px;font-weight:400;color:var(--erp-muted);margin-top:5px;line-height:1.4}
 #moduleCards .module-card:has(.mobile-module-name) strong,#moduleCards .module-card:has(.mobile-module-name) p,#moduleCards .module-action{display:none}
 #moduleCards .preparing{display:none}
 #moduleSettings{margin-top:16px}#moduleSettings button{width:100%;min-height:44px}
 #app>section:first-child{padding:12px}#app>section:first-child .row{gap:8px}#who{font-size:13px}#companyLabel{font-size:10px}
}

/* Finanzas: desplegables por contratista y obra, con tablas desplazables. */
.budget-finance{min-width:0}.budget-finance>div{min-width:0}.budget-finance details{min-width:0;background:#fff}.budget-finance details details{background:#f8fafc}.budget-finance summary{overflow-wrap:anywhere;line-height:1.6}.budget-finance .financial-table{margin:12px 0}.budget-finance tfoot{background:#edf2f6;font-weight:700}.budget-finance tfoot td{border-top:2px solid #dce4ec}.budget-finance td{vertical-align:top}.budget-finance .financial-table details{min-width:200px}.budget-finance button{margin:4px 8px 4px 0}
@media(max-width:760px){.budget-finance .cols{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.budget-finance details{padding:10px}.budget-finance summary{font-size:13px}.budget-finance button{width:100%;margin-right:0}}
