:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#142b48;background:#f3f6fa;font-synthesis:none;font-size:15px;line-height:1.5;--navy: #102f50;--blue: #1256a6;--line: #dce5ef;--muted: #64758e}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #86baf6}button{cursor:pointer;border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:7px;padding:9px 14px;color:var(--navy);background:#edf2f8;line-height:1.25;font-weight:600;transition:background .15s}button:hover{background:#dfe9f5}button:disabled{opacity:.55;cursor:wait}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1.1px;line-height:1.2;margin-bottom:8px}h2{font-size:19px;letter-spacing:-.35px;margin-bottom:0}h3{font-size:16px}p{margin-bottom:14px}small{font-size:12px;color:var(--muted);display:block;font-weight:400;margin-top:5px;line-height:1.5}strong{font-weight:650}.blue{color:#1256a6}.muted{color:var(--muted)}.red{color:#b52a38;font-weight:650}.primary{background:var(--blue);color:#fff;box-shadow:0 3px 8px #123d6c15}.primary:hover{background:#0b448d}.secondary{background:#fff;border:1px solid #bdcfe4;color:#174679}.secondary:hover{background:#f2f7fd}.link{background:transparent;color:var(--blue);padding:7px 4px}.danger-link{color:#b12837;background:#fff1f1}.icon-button{padding:9px;min-width:44px;min-height:44px;background:transparent}.actions,.download{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.actions .secondary{font-size:12px}.badge{display:inline-flex;align-items:center;font-size:12px;border-radius:30px;padding:5px 11px;background:#ebf0f6;color:#4f607a;font-weight:650;white-space:nowrap}.badge:before{content:"";width:6px;height:6px;display:inline-block;background:currentColor;border-radius:50%;margin-right:6px}.badge.sent,.badge.issued,.badge.confirmed,.badge.delivered,.badge.reviewed{background:#e4efff;color:#18539d}.badge.partial,.badge.pending,.badge.observation{background:#fff2d8;color:#8a590e}.badge.void,.badge.cancelled,.badge.overdue{background:#feebeb;color:#af283a}.app{min-height:100vh;display:flex}.sidebar{background:linear-gradient(170deg,#123859,#0b294b);width:242px;position:fixed;inset:0 auto 0 0;color:#fff;display:flex;flex-direction:column;z-index:40;padding:30px 14px 22px}.brand{font-size:21px;font-weight:750;letter-spacing:-.3px;display:flex;gap:10px;align-items:center;margin:0 10px 37px}.brand span{font-size:38px;font-weight:900;border:3px solid #ffffff2e;border-radius:50%;line-height:1;width:43px;height:43px;display:grid;place-items:center}.sidebar nav{display:flex;flex-direction:column;gap:9px}.sidebar nav button{color:#e8f0fa;justify-content:flex-start;background:transparent;padding:14px 16px;font-weight:450;gap:15px;min-height:49px;position:relative}.sidebar nav button:hover{background:#ffffff13}.sidebar nav button.active{background:#19568e;color:#fff}.sidebar nav button.active:before{content:"";position:absolute;left:-14px;top:0;bottom:0;width:4px;background:#8ed2ff}.sidebar-bottom{margin-top:auto;padding:28px 12px 0;border-top:1px solid #ffffff23}.sidebar-bottom small{color:#bccbdd;margin-bottom:12px}.sidebar-bottom button{background:transparent;color:#fff;padding:0}.workspace{margin-left:242px;width:calc(100% - 242px)}.topbar{background:#ffffffed;min-height:72px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:12px 32px;gap:16px;position:sticky;top:0;z-index:20;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.crumb{display:flex;align-items:center;gap:9px;color:#677d9b;font-size:14px}.crumb strong{color:var(--navy)}.crumb .muted{padding:0 10px}.user{display:flex;align-items:center;gap:12px;font-size:13px}.user small{margin-top:0;font-size:11px}.user .icon-button{position:relative}.user i{width:7px;height:7px;background:#c13140;border-radius:50%;position:absolute;right:8px;top:7px}.avatar{background:var(--navy);color:#fff;border-radius:50%;width:35px;height:35px;display:grid;place-items:center;font-size:12px;font-weight:700}.menu-button{display:none}main{max-width:1600px;margin:auto;padding:30px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.page-head p{color:var(--muted);margin-bottom:0}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:16px;margin-bottom:25px}.stat{display:flex;gap:17px;border:1px solid var(--line);border-radius:9px;padding:23px 20px;background:#fff;min-height:135px;align-items:flex-start;box-shadow:0 2px 4px #102f5003}.stat p{font-size:13px;margin-bottom:7px;color:#344e70}.stat strong{font-size:25px;letter-spacing:-.6px;color:#0b2c51;line-height:1.25;display:block}.stat-icon{color:#124c90;padding-top:5px}.stat-icon svg{width:29px;height:29px;stroke-width:1.7}.stat small{margin-top:9px}.panel{background:#fff;border:1px solid var(--line);border-radius:9px;margin-bottom:24px;overflow:hidden;box-shadow:0 2px 6px #172e4a03}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:20px 23px;border-bottom:1px solid var(--line);gap:16px;flex-wrap:wrap}.panel-head h2{font-size:17px}.padded{padding:23px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.tabs{display:flex;width:fit-content;max-width:100%;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:8px 8px 0 0;margin-bottom:-1px;position:relative;z-index:1}.tabs button{border-radius:0;background:transparent;color:#637995;white-space:nowrap;border-bottom:3px solid transparent;padding:16px 24px}.tabs .active{border-bottom-color:#1962be;color:#13539e}.toolbar{padding:17px 20px;display:flex;align-items:center;flex-wrap:wrap;gap:12px;border-bottom:1px solid var(--line)}.toolbar .search{margin-right:auto}.toolbar label{font-size:12px;color:var(--muted);gap:4px}.toolbar input,.toolbar select{width:auto;min-width:120px}.toolbar.bare{padding:0 0 18px;border:0;justify-content:space-between}.search{display:flex;align-items:center;border:1px solid #ccd9e7;border-radius:7px;padding:0 12px;gap:8px;color:#768dae;max-width:100%}.search input{border:0!important;background:transparent;padding:10px 0;min-width:220px}.search input:focus-visible{outline:0}.search:focus-within{outline:2px solid #86baf6}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{color:#536d8f;font-size:12px;background:#f8fafd;font-weight:600;padding:12px 20px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:16px 20px;border-bottom:1px solid #e9eef5;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdff}td small{font-size:12px}.table-foot{padding:12px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.empty{padding:48px 24px;text-align:center;color:#8193ab}.empty svg{margin-bottom:12px;color:#adc0d7}.empty h3{color:#49627f;margin-bottom:7px}.empty p{font-size:13px;margin-bottom:0}.welcome{background:linear-gradient(110deg,#11365b,#235589);border-radius:11px;padding:30px 35px;color:#fff;display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.welcome h2{font-size:28px;letter-spacing:-.6px;margin-bottom:10px}.welcome p{color:#c8daf0;margin-bottom:0}.welcome .eyebrow{margin-bottom:10px;color:#c4d9f5}.welcome svg{opacity:.3;stroke-width:1}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.6px;text-transform:uppercase;color:#7190b5;margin-bottom:8px}.quick-actions{padding:6px 23px}.quick-actions button{width:100%;padding:21px 0;justify-content:flex-start;border-radius:0;border-bottom:1px solid var(--line);background:transparent;font-weight:500;gap:14px}.quick-actions button:last-child{border:0}.quick-actions button svg:last-child{margin-left:auto}.quick-actions svg{color:#316eaf}.alert-row{display:flex;justify-content:space-between;width:100%;font-size:12px;margin-bottom:12px;background:#fff3ed;color:#a54927}.notice{padding:14px 17px;background:#edf4fd;border:1px solid #d8e6f8;border-radius:7px;color:#34577f;font-size:13px;margin:12px 0}.error{padding:14px 17px;background:#fff0f1;color:#a62034;border:1px solid #f2c8cd;border-radius:7px;font-size:13px;margin:12px 0}.error .link{color:inherit;margin-left:10px}.preview-banner{color:#7a5416;border:1px solid #eddbb8;background:#fff6e7;font-size:12px;padding:8px 14px;border-radius:5px;margin-top:-8px}.key-values{padding:8px 24px 23px}.key-values p{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #edf1f6;padding:15px 0;margin:0;font-size:13px;color:var(--muted)}.key-values p strong{color:#173b63;text-align:right}.detail-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.detail-title h2{font-size:25px;margin-bottom:9px}.back{margin-bottom:14px}.timeline{display:flex;justify-content:space-between;gap:24px;padding:26px}.timeline>div{display:flex;gap:12px;font-size:12px;color:var(--muted)}.timeline strong{display:block;font-size:13px;color:var(--navy);margin-top:5px}.timeline svg{color:#306ba6;flex-shrink:0}.summary-strip{padding:18px 24px;background:#f8fbff;display:flex;gap:28px;flex-wrap:wrap;border-bottom:1px solid var(--line);font-size:14px}.summary-strip span{color:var(--muted);margin-left:auto;font-size:12px}footer{color:#8091a8;font-size:11px;display:flex;justify-content:space-between;margin-top:35px;padding-bottom:10px}label{display:flex;flex-direction:column;gap:7px;color:#3c5675;font-size:13px;font-weight:500}input,select,textarea{color:#173652;padding:11px 12px;border:1px solid #cad8e7;border-radius:6px;width:100%;background:#fff;min-height:44px}input[type=checkbox]{height:22px;width:22px;min-height:22px;accent-color:#19579c}input[type=number]{min-width:90px}textarea{resize:vertical;min-height:90px}fieldset{border:0;padding:0;margin:0;min-width:0}dialog{border:1px solid var(--line);border-radius:13px;box-shadow:0 24px 120px #071b3a55;padding:0;width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 50px);color:var(--navy)}dialog::backdrop{background:#0a1f3f70;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;gap:20px;padding:24px 28px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:22px}.dialog-body{padding:10px 28px 26px}.dialog-body .notice{margin-bottom:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:15px}.wide{grid-column:1/-1}.dialog-foot{position:sticky;bottom:0;padding:17px 28px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:12px;background:#fff}.upload{margin-top:22px;padding:19px;border:1px dashed #a7bdd6;border-radius:8px;background:#f7faff}.upload input{font-size:12px;background:transparent;border:0;padding:8px 0}.upload svg{width:20px}.calculation{background:#f1f6fd;border:1px solid #dce8f7;border-radius:8px;padding:19px;margin-top:24px}.calculation h3{margin-bottom:12px}.calculation>div{display:flex;justify-content:space-between;padding:9px 0;font-size:13px;gap:15px}.calculation .total{border-top:1px solid #c7d8ef;font-size:16px;margin-top:7px;padding-top:16px}.calculation small{margin-top:12px}.auth{display:grid;grid-template-columns:1.05fr 1fr;min-height:100dvh;background:#fff}.auth-brand{background:linear-gradient(140deg,#0b2747,#214f7e);padding:56px 65px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;gap:70px}.auth-brand .brand{margin:0}.auth-brand h1{font-size:44px;line-height:1.2;letter-spacing:-1.5px;margin:20px 0}.auth-brand p{color:#bacfe7;max-width:320px}.auth-brand small{color:#9ab5d5}.auth-form{max-width:480px;width:100%;padding:40px;align-self:center;justify-self:center}.auth-form>svg{color:var(--blue);margin-bottom:22px}.auth-form h2{font-size:27px;margin-bottom:13px}.auth-form>p{color:var(--muted);font-size:14px;margin-bottom:25px}.auth-form label{margin-bottom:18px}.auth-form .primary{width:100%;margin-top:8px}.auth-form .link{display:flex;margin:15px auto}.auth-form>small{margin-top:28px;text-align:center}.global-error{position:fixed;top:0;left:0;right:0;z-index:100;background:#fff0f1;padding:10px;text-align:center}.loading{min-height:100vh;display:grid;place-items:center;color:#476485}.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}pre{max-width:450px;white-space:pre-wrap;word-break:break-word;font-size:11px}summary{cursor:pointer;color:var(--blue)}@media(min-width:1600px){main{padding:40px}}@media(max-width:1150px){.sidebar{width:215px}.workspace{margin-left:215px;width:calc(100% - 215px)}.brand{font-size:18px}.sidebar nav button{padding:13px 10px;gap:12px;font-size:14px}main{padding:24px}.stats{grid-template-columns:repeat(2,1fr)}.two-columns{grid-template-columns:1fr}.topbar{padding:12px 24px}.page-head{align-items:flex-start}.timeline{flex-wrap:wrap}}@media(max-width:760px){.sidebar{transform:translate(-100%);width:250px;transition:transform .2s}.sidebar.open{transform:translate(0)}.workspace{margin:0;width:100%}.scrim{position:fixed;inset:0;background:#091e3c70;z-index:30;border-radius:0}.menu-button{display:flex}.topbar{padding:10px 15px;min-height:66px}.crumb>span{font-size:12px}.crumb .muted{padding:0 5px}.user{gap:4px}.user>span:last-child{display:none}.user .avatar{margin-left:4px}.user .icon-button{min-width:34px;padding:7px}main{padding:21px 16px}.page-head{display:block;margin-bottom:20px}h1{font-size:28px}.page-head p{font-size:13px}.page-head>.actions{margin-top:17px}.page-head .primary{flex:1}.stats{gap:10px;margin-bottom:20px}.stat{padding:17px 13px;min-height:117px;gap:8px}.stat strong{font-size:20px;word-break:break-word}.stat p{font-size:11px}.stat small{font-size:10px}.stat-icon{display:none}.tabs{width:100%}.tabs button{font-size:13px;padding:14px 16px}.panel-head{padding:16px;align-items:flex-start}.toolbar{padding:14px;gap:12px}.toolbar .search{width:100%}.search input{width:100%;min-width:0}.toolbar input,.toolbar select{min-width:0;max-width:100%}.toolbar .download{margin-left:auto}.table-wrap{overflow:visible}table,thead,tbody,tr,td{display:block}thead{display:none}tbody tr{padding:16px;border-bottom:1px solid var(--line);position:relative}tbody tr:last-child{border:0}td{display:flex;justify-content:space-between;gap:20px;padding:6px 0;border:0;font-size:13px;text-align:right;flex-wrap:wrap}td:before{content:attr(data-label);font-size:11px;font-weight:500;color:#7b8ba2;text-align:left;margin-right:auto}td small{flex-basis:100%;margin:0}td .actions{justify-content:flex-end}td.row-action{position:static;justify-content:flex-end}.row-action button{background:#f0f5fc;width:100%;font-size:11px;margin-top:8px}.row-action button:before{content:"Abrir detalle"}.table-foot{padding:13px 16px;gap:8px;font-size:11px}.table-foot button{font-size:11px;padding:6px;min-height:36px}.panel{margin-bottom:19px}.welcome{padding:24px}.welcome h2{font-size:23px}.welcome>svg{display:none}.welcome p{font-size:13px}.detail-title{display:block}.detail-title>.actions{margin-top:15px}.timeline{display:block;padding:16px}.timeline>div{margin-bottom:18px}.timeline>div:last-child{margin:0}.summary-strip{padding:16px;gap:14px}.summary-strip span{margin:0}.two-columns{gap:0}.key-values{padding:4px 16px 20px}.key-values p{font-size:12px}.form-grid{grid-template-columns:1fr;gap:16px}.wide{grid-column:auto}dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:10px}.dialog-head{padding:18px}.dialog-head h2{font-size:20px}.dialog-body{padding:4px 18px 22px}.dialog-foot{padding:14px 18px}.dialog-foot .primary{flex:1}.auth{grid-template-columns:1fr}.auth-brand{padding:25px;gap:0;min-height:auto}.auth-brand>div:not(.brand),.auth-brand>small{display:none}.auth-form{padding:40px 26px}.auth-form h2{font-size:24px}footer{font-size:10px;gap:15px}footer span{max-width:130px;text-align:right}.padded{padding:18px}pre{max-width:100%}.calculation .total{font-size:14px}}.search{flex-direction:row}@media(max-width:760px){.sidebar{visibility:hidden}.sidebar.open{visibility:visible}}
