:root{--ink:#182a38;--muted:#697985;--border:#e0e6e9;--bg:#f4f6f8;--accent:#17695f;--hover:#e5f2ef;--white:#fff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}a{color:var(--accent);text-decoration:none;font-weight:600}button,input,select,textarea{font:inherit}button,a.primary,a.secondary{cursor:pointer}h1,h2,p{margin-top:0}h1{font-size:26px;letter-spacing:-.7px;margin-bottom:0;font-weight:650}h2{font-size:17px;font-weight:650;margin-bottom:18px}p{color:var(--muted)}.brand{font-size:32px;letter-spacing:-1.8px;font-weight:800;color:var(--ink);line-height:1.1;display:inline-block}.brand span{font-size:23px;color:var(--accent);margin-left:4px}.eyebrow,.aside-label{font-size:10px;font-weight:700;letter-spacing:1.3px;color:var(--muted);text-transform:uppercase}.shell{display:flex;min-height:100vh}aside{width:236px;flex-shrink:0;background:white;border-right:1px solid var(--border);position:sticky;top:0;height:100vh;overflow:auto;padding:29px 15px 18px;display:flex;flex-direction:column}aside>.brand,aside>.aside-label{margin-left:12px}.aside-label{margin-top:9px;margin-bottom:28px}nav{display:grid;gap:4px}nav a{display:flex;gap:13px;align-items:center;color:#4b5b67;font-weight:500;padding:11px 12px;border-radius:7px;font-size:13px}nav a span{width:20px;text-align:center;font-size:18px}nav a:hover,nav a.current{background:var(--hover);color:var(--accent)}nav a.current{font-weight:700}.aside-foot{margin-top:auto;padding:24px 12px 0;color:var(--muted);font-size:11px}.workspace{flex:1;min-width:0}header{height:66px;background:white;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:12px}.top-left,.top-right,.toolbar,.actions,.row-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.top-left{color:var(--muted)}.top-right select{max-width:220px;width:auto}.top-right form{margin:0}.content{max-width:1500px;margin:auto;padding:28px}.heading{margin:0 0 23px}.heading .eyebrow{margin-bottom:5px}.panel{background:white;border:1px solid var(--border);border-radius:10px;padding:22px;margin-bottom:18px;min-width:0}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:14px;margin-bottom:20px}.metric{margin:0;display:flex;flex-direction:column;gap:12px}.metric span{color:var(--muted);font-size:12px}.metric strong,.big{font-size:25px;letter-spacing:-.5px}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin-bottom:18px}label{display:grid;gap:6px;font-weight:600;font-size:12px}input,select,textarea{width:100%;min-width:0;padding:10px 12px;border:1px solid #ccd5da;border-radius:6px;color:var(--ink);background:#fff;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 2px #17695f18}textarea{min-height:70px;resize:vertical}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;font-size:13px;font-weight:650;line-height:1.4;padding:10px 14px;border-radius:6px;border:1px solid transparent;text-decoration:none}.primary{background:var(--accent);color:white}.primary:hover{background:#11564e}.secondary{border-color:#d3dce0;background:white;color:var(--ink)}.secondary:hover{background:#f3f6f7}.danger{background:white;border-color:#ecd6d4;color:#a63b37}.toolbar{justify-content:space-between;margin-bottom:18px}.filter{max-width:340px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{background:#f5f7f8;color:#56646e;font-size:11px;text-transform:uppercase;font-weight:700;letter-spacing:.3px;white-space:nowrap}td,th{padding:12px 10px;border-bottom:1px solid var(--border)}td{vertical-align:middle}td .secondary,td .danger{padding:5px 8px;font-size:11px}.empty{text-align:center;color:var(--muted);padding:32px}.tag{background:#eef1f3;color:#59656d;font-size:11px;padding:4px 8px;border-radius:4px;white-space:nowrap}.tag.confirmado,.tag.ativo,.tag.liquidado{background:#e4f2ec;color:#23654d}.tag.cancelado,.tag.inativo{background:#f7e8e7;color:#9b423c}.tag.aberto,.tag.rascunho{background:#fcf2de;color:#8b651c}.alert{padding:12px 16px;border-radius:6px;background:#e7f4ee;color:#225b43;margin-bottom:18px}.alert.error{background:#fae9e8;color:#963a35}.inline{display:inline-flex;margin:0}.order .items select{min-width:220px}.order .items input{min-width:95px}.order-bottom{margin-top:20px}.order-total{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;color:var(--muted)}.order-total strong{font-size:28px;color:var(--ink)}footer{padding:20px 28px;color:var(--muted);font-size:11px;text-align:right}.auth{min-height:100vh;display:grid;place-items:center;padding:24px;background:#edf2f2}.auth-card{background:white;border:1px solid var(--border);border-radius:14px;padding:36px;width:min(100%,740px);box-shadow:0 12px 40px #182a3808}.auth-card.login{width:min(100%,430px)}.auth-card .brand{font-size:40px;margin-bottom:12px}.auth-card h1{margin:15px 0 8px}.auth-card h2{margin-top:20px}.login label{margin-top:14px}.login button{width:100%;margin:22px 0}.auth-card small{display:block;color:var(--muted);font-size:11px;text-align:center}.roadmap{display:grid;gap:10px}.roadmap div{display:flex;justify-content:space-between;gap:10px;padding:12px;background:#f6f8f9;border-radius:6px}.roadmap span{font-size:11px;color:var(--muted)}.print{background:white;max-width:850px;margin:20px auto;padding:32px}.no-print{float:right}#menuToggle{display:none}@media(max-width:900px){aside{display:none;position:fixed;z-index:10;box-shadow:0 0 0 100vw #0004}body.menu-open aside{display:flex}#menuToggle{display:inline-flex}.content{padding:18px}header{padding:0 14px;height:auto;min-height:66px}.username,.top-left>span{display:none}.panel{padding:15px}.top-right{justify-content:flex-end}}@media print{body{background:white}.print{padding:0;margin:0}.no-print{display:none}}

/* SIGN 2.0 — identidade corporativa */
:root{--ink:#172b42;--muted:#5c7186;--border:#cedae7;--bg:#edf2f8;--accent:#075bb5;--hover:#e4eefb;--white:#fff;--sidebar:#102c49;--header-height:54px}body{font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;background:var(--bg)}.ui-icon{width:18px;height:18px;flex-shrink:0;vertical-align:middle}.erp-shell .global-header{position:sticky;top:0;z-index:20;height:var(--header-height);background:#075bb5;color:#fff;padding:0 18px;border:0;box-shadow:0 2px 5px #112c4920}.global-header .top-left,.global-header .top-right{color:white;gap:12px;flex-wrap:nowrap}.global-header .brand{color:#fff;font-size:26px;font-weight:800;letter-spacing:-1.6px;line-height:1;white-space:nowrap;margin:0;padding:0}.global-header .brand span{color:#c5e0ff;margin-left:4px}.header-divider{height:27px;width:1px;background:#ffffff40;flex-shrink:0}.erp-label{font-size:12px;font-weight:600}.header-button{background:transparent;border:1px solid #ffffff36;color:#fff;border-radius:4px;padding:6px 9px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.header-button:hover{background:#ffffff18}.global-header #menuToggle{display:inline-flex}.company-select{display:flex;align-items:center;gap:7px;color:#e1efff;font-size:11px}.global-header select{background:#0a4e9a;color:#fff;border-color:#ffffff50;padding:5px 25px 5px 8px;max-width:210px;font-size:12px}.avatar{width:30px;height:30px;border-radius:50%;background:#f1f7ff;color:#124f91;display:grid;place-items:center;font-weight:700}.username{font-weight:650;font-size:12px;white-space:nowrap}.username small{display:block;color:#cfe2f8;font-size:10px;font-weight:400}.erp-shell .shell{min-height:calc(100vh - var(--header-height));display:flex;align-items:stretch}.erp-shell aside{position:sticky;top:var(--header-height);height:calc(100vh - var(--header-height));width:250px;min-width:250px;flex:0 0 250px;background:var(--sidebar);color:#eaf3ff;border:0;padding:12px 0 0;display:flex;flex-direction:column;overflow:hidden}.menu-search{position:relative;margin:0 12px 10px;color:#55728d}.menu-search .ui-icon{position:absolute;top:7px;left:8px;width:16px;height:16px}.menu-search input{padding:6px 8px 6px 30px;font-size:12px;border-radius:4px;background:#f5f9ff}.erp-shell nav{display:block;overflow:auto;padding:0;flex:1}.erp-shell nav a,.nav-group summary{display:flex;align-items:center;gap:10px;color:#eaf3ff;text-decoration:none;min-height:35px;padding:8px 15px;margin:0;border-radius:0;font-size:12px;font-weight:600;cursor:pointer}.nav-group{border-bottom:1px solid #ffffff15}.nav-group summary{list-style:none;text-transform:uppercase;letter-spacing:.1px}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary .chevron{margin-left:auto;font-size:18px;line-height:12px;transition:transform .15s}.nav-group[open] summary .chevron{transform:rotate(90deg)}.nav-children{border-left:1px solid #ffffff20;margin:0 9px 6px 22px}.erp-shell nav .nav-children a{font-size:12px;font-weight:400;min-height:30px;padding:6px 10px;border-radius:4px;gap:8px}.nav-children .ui-icon{width:15px;height:15px}.erp-shell nav a:hover,.nav-group summary:hover{background:#ffffff12;color:#fff}.erp-shell nav a.current{background:#075bb5;color:#fff;font-weight:650}.erp-shell .aside-foot{margin-top:auto;background:#0a4b91;padding:8px 12px;color:white}.aside-foot button{width:100%;border:0;font-size:12px}.erp-shell .workspace{min-width:0;flex:1;display:flex;flex-direction:column}.work-tabs{display:flex;align-items:flex-end;gap:4px;padding:7px 12px 0;background:#dbe6f3;border-bottom:1px solid #bdcde0;overflow-x:auto;min-height:40px}.work-tab{display:inline-flex;align-items:center;gap:8px;background:#eaf0f8;border:1px solid #c7d6e6;border-bottom:0;border-radius:5px 5px 0 0;min-height:31px;padding:6px 10px;color:#45617c;text-decoration:none;white-space:nowrap;font-size:11px;font-weight:650}.work-tab.active{background:#fff;color:#102c49;box-shadow:inset 0 2px #075bb5}.work-tab a{color:inherit;text-decoration:none}.work-tab .ui-icon{width:15px;height:15px}.tab-close{border:0;background:transparent;color:inherit;font-size:16px;padding:0 0 0 4px;line-height:1;cursor:pointer}.erp-shell .content{width:100%;max-width:none;padding:12px 15px 18px;flex:1;margin:0}.breadcrumb{display:flex;align-items:center;gap:8px;color:#315f91;font-size:12px;font-weight:600;padding:0 3px 10px}.breadcrumb .ui-icon{width:16px;height:16px}.breadcrumb a{color:#315f91;text-decoration:none}.heading{display:flex;align-items:center;gap:11px;border:1px solid #cbd9e8;border-radius:6px;background:#f7faff;margin:0 0 12px;padding:11px 13px}.heading-icon{background:#e3effe;color:#075bb5;border:1px solid #cbdff6;border-radius:5px;width:40px;height:40px;display:grid;place-items:center}.heading-icon .ui-icon{width:24px;height:24px}.heading h1{font-size:21px;margin:0 0 3px;letter-spacing:-.4px}.heading p{margin:0;color:var(--muted);font-size:12px}.panel{border-radius:6px;padding:13px;margin-bottom:12px;box-shadow:none}.panel>h2,.order>form>h2{font-size:13px;font-weight:650;background:#075bb5;color:white;padding:8px 12px;border-radius:5px 5px 0 0;margin:-13px -13px 13px}.order>form>h2{margin:15px -13px 12px;border-radius:0}.panel .toolbar h2{font-size:14px;margin:0}.fields{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px 13px;margin-bottom:12px}label{font-size:12px;gap:4px;color:#233e59}input,select,textarea{font:inherit;color:var(--ink);background:#fff;padding:7px 9px;border-radius:4px;border:1px solid #bdcde0;min-height:31px}input[readonly]{background:#f5f0df}input:focus,select:focus,textarea:focus{border-color:#075bb5;box-shadow:0 0 0 2px #075bb51a}.primary,.secondary,.danger{padding:7px 12px;border-radius:4px;font-size:12px}.primary{background:#075bb5}.primary:hover{background:#064b96}.secondary{background:#f5f8fc;border-color:#bacde0;color:#1c3957}.secondary:hover{background:#e7eff9}.toolbar{margin-bottom:10px}.filter{max-width:340px}table{font-size:12px}th{background:#eaf1fa;color:#294663;font-size:11px;text-transform:none;letter-spacing:0}td,th{padding:8px 9px;border-bottom:1px solid #dce5ee}tbody tr:hover{background:#f3f7fd}.row-actions{gap:7px}.metrics{gap:10px;margin-bottom:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.metric{border-top:3px solid #075bb5;margin:0;gap:9px}.metric strong{font-size:23px}.empty{padding:23px}.auth{background:linear-gradient(135deg,#102c49 0%,#0b4787 60%,#075bb5 100%)}.auth-card{border-radius:8px;box-shadow:0 16px 45px #031a3650;padding:28px}.auth-card .brand{color:#102c49;letter-spacing:-2px}.auth-card .brand span{color:#075bb5}.auth-card h2{font-size:14px;color:#075bb5;border-bottom:1px solid #d8e3ef;padding-bottom:6px}.auth-card.login .eyebrow{color:#58738c}.auth-card small{color:#58738c}.erp-shell footer{padding:8px 16px;background:#e7eef6;border-top:1px solid #d0deeb}.menu-collapsed .erp-shell aside{display:none}.nav-group[hidden],.erp-shell nav a[hidden]{display:none}.setup-checks{display:grid;gap:5px;background:#f3f7fc;padding:10px 14px;border-radius:5px;margin:12px 0;color:#34516e;font-size:12px}.setup-checks span{display:flex;justify-content:space-between;gap:12px}.setup-tip{color:#536e89;font-size:12px;margin:7px 0 14px}.setup .auth-card{width:min(100%,780px)}.setup .primary{width:100%;margin-top:6px}.setup details{margin-bottom:12px}.setup summary{cursor:pointer;font-weight:600;color:#315f91}.setup .fields{margin-top:10px}.setup .auth-card p{line-height:1.5}
@media(max-width:900px){.erp-shell .global-header{padding:0 10px}.erp-label,.header-divider,.username,.company-select>span,.avatar{display:none!important}.global-header .top-left,.global-header .top-right{gap:7px}.global-header select{max-width:135px}.erp-shell aside{display:none;position:fixed;top:var(--header-height);z-index:15;left:0;box-shadow:0 0 0 100vw #0005}.menu-open .erp-shell aside{display:flex}.erp-shell .content{padding:9px}.heading h1{font-size:18px}.breadcrumb{overflow:auto;white-space:nowrap}.panel{padding:10px}.panel>h2{margin:-10px -10px 10px}.order>form>h2{margin:12px -10px 10px}.global-header .brand{font-size:22px}.fields{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}}
