:root{--text: #6b6375;--text-h: #08060d;--bg: #fff;--border: #e5e4e7;--code-bg: #f4f3ec;--accent: #aa3bff;--accent-bg: rgba(170, 59, 255, .1);--accent-border: rgba(170, 59, 255, .5);--social-bg: rgba(244, 243, 236, .5);--shadow: rgba(0, 0, 0, .1) 0 10px 15px -3px, rgba(0, 0, 0, .05) 0 4px 6px -2px;--sans: system-ui, "Segoe UI", Roboto, sans-serif;--heading: system-ui, "Segoe UI", Roboto, sans-serif;--mono: ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;color-scheme:light;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width: 1024px){:root{font-size:16px}}button{background:#185fa5;color:#fff;border:none;border-radius:6px;height:34px;padding:0 16px;font-size:13px;font-family:inherit;cursor:pointer}button:disabled{opacity:.6;cursor:not-allowed}#root{width:100%;min-height:100svh;display:flex;flex-direction:column;box-sizing:border-box}body{margin:0}h1,h2{font-family:var(--heading);font-weight:500;color:var(--text-h)}h1{font-size:56px;letter-spacing:-1.68px;margin:32px 0}@media (max-width: 1024px){h1{font-size:36px;margin:20px 0}}h2{font-size:24px;line-height:118%;letter-spacing:-.24px;margin:0 0 8px}@media (max-width: 1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);display:inline-flex;border-radius:4px;color:var(--text-h)}code{font-size:15px;line-height:135%;padding:4px 8px;background:var(--code-bg)}.app-shell{width:90%;max-width:1600px;margin:24px auto;border:1px solid #ddd;border-radius:12px;overflow:hidden;background:#fff;font-family:-apple-system,Segoe UI,sans-serif}.app-shell__topbar{background:#fff;border-bottom:1px solid #eee;padding:15px 30px;display:flex;align-items:center;gap:42px;position:relative}.app-shell__brand{display:flex;align-items:center;gap:15px;flex:0 0 auto}.app-shell__brand-icon{display:inline-flex;align-items:center;justify-content:center;max-height:48px;max-width:96px;border-radius:9px;background:#e6f1fb;font-size:24px;overflow:hidden;padding:4px}.app-shell__brand-icon img{max-width:100%;max-height:48px;width:auto;height:auto;object-fit:contain}.app-shell__brand-name{margin:0;font-size:19.5px;font-weight:500}.app-shell__nav{display:flex;flex:1 1 auto;flex-wrap:wrap;row-gap:12px;gap:27px;font-size:19.5px;color:#5f5e5a}.app-shell__nav-item{position:relative;cursor:pointer;padding-bottom:33px;margin-bottom:-33px}.app-shell__nav-item--plain{cursor:pointer}.app-shell__dropdown{display:none;position:absolute;top:33px;left:0;background:#fff;border:1px solid #ddd;border-radius:12px;min-width:225px;padding:9px 0;box-shadow:0 4px 12px #00000014;z-index:30}.app-shell__nav-item:hover .app-shell__dropdown{display:block}.app-shell__dropdown-item{padding:12px 21px;font-size:18px;color:#5f5e5a;white-space:nowrap}.app-shell__dropdown-item:hover{background:#f5f4f0;color:#185fa5}.app-shell__right{display:flex;align-items:center;gap:15px;flex:0 0 auto;margin-left:auto;position:relative}.lang-switcher{font-size:18px;padding:6px 12px;width:165px;flex:0 0 165px}.app-shell__avatar{width:42px;height:42px;border-radius:50%;background:#e6f1fb;display:flex;align-items:center;justify-content:center;font-size:18px;color:#185fa5;font-weight:500;cursor:pointer}.app-shell__user-menu{position:absolute;top:60px;right:0;background:#fff;border:1px solid #ddd;border-radius:9px;padding:12px 0;font-size:19.5px;width:240px;z-index:10;box-shadow:0 4px 12px #00000014}.app-shell__user-menu-name{padding:12px 21px;color:#5f5e5a}.app-shell__user-menu-logout{padding:12px 21px;border-top:1px solid #eee;cursor:pointer}.app-shell__content{position:relative;padding:20px;background:#f8f7f4}.app-shell__content:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:url(/images/FuncionPage_Background.png) center center / cover no-repeat;opacity:.25;pointer-events:none;z-index:0}.app-shell__content>*{position:relative;z-index:1}@media print{.app-shell__topbar{display:none}.app-shell__content{padding:0;background:none}.app-shell__content:before{display:none}}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;background:#f1efe8 url(/images/Login_Background.png) center center / cover no-repeat;font-family:-apple-system,Segoe UI,sans-serif}.login-page__lang{position:absolute;top:16px;right:16px}.login-card{width:340px;background:#fff;border:1px solid #ddd;border-radius:12px;padding:2rem 1.75rem}.login-card__brand{text-align:center;margin-bottom:1.25rem}.login-card__logo-box{display:inline-flex;align-items:center;justify-content:center;max-height:56px;max-width:220px;border-radius:8px;background:#e6f1fb;margin:0 auto 10px;font-size:26px;overflow:hidden;padding:4px}.login-card__logo-box img{max-width:100%;max-height:56px;width:auto;height:auto;object-fit:contain}.login-card__company-name{font-size:14px;font-weight:500;margin:0;color:#5f5e5a}.login-card__title{font-size:18px;font-weight:600;text-align:center;margin:0 0 1rem;color:#2b2a28}.login-field{font-size:13px;color:#5f5e5a;display:block;margin-bottom:4px}.login-field input{width:100%;box-sizing:border-box;margin-bottom:14px;height:36px;border:1px solid #ccc;border-radius:6px;padding:0 10px;font-size:14px}.login-card__submit{width:100%;background:#185fa5;color:#fff;border:none;font-weight:500;height:38px;border-radius:6px;cursor:pointer}.login-card__submit:disabled{opacity:.6;cursor:not-allowed}.login-card__error{font-size:12px;color:#a32d2d;text-align:center;margin:14px 0 0}.company-mgmt__title{font-size:18px;font-weight:600;margin:0 0 16px}.company-mgmt__error{color:#a32d2d;font-size:13px}.company-mgmt__success{color:#27500a;font-size:12px;margin-top:12px}.company-mgmt__row{display:flex;gap:16px}.company-mgmt__panel{background:#fff;border:1px solid #ddd;border-radius:12px;padding:1rem}.company-mgmt__list-panel{flex:0 0 260px}.company-mgmt__detail-panel{flex:1;padding:1.25rem}.company-mgmt__list-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:14px;font-weight:500}.company-mgmt__c-item{padding:10px;border-radius:8px;cursor:pointer;margin-bottom:6px}.company-mgmt__c-item.active{background:#e6f1fb}.company-mgmt__c-name{font-size:13px;font-weight:500;margin:0}.company-mgmt__c-sub{font-size:11px;color:#5f5e5a;margin:2px 0 0}.company-mgmt__logo-row{display:flex;align-items:center;gap:16px;margin-bottom:1.25rem}.company-mgmt__logo-box{display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:64px;max-height:64px;max-width:220px;border-radius:8px;background:#e6f1fb;overflow:hidden;font-size:28px;flex:0 0 auto;padding:4px}.company-mgmt__logo-box img{max-width:100%;max-height:64px;width:auto;height:auto;object-fit:contain}.company-mgmt label.company-mgmt__upload-btn{display:inline-block;background:#185fa5;color:#fff;border:none;border-radius:6px;padding:6px 12px;font-size:12px;cursor:pointer}.company-mgmt label.company-mgmt__upload-btn--disabled{background:#ccc;color:#888780;cursor:not-allowed}.company-mgmt__logo-hint{font-size:11px;color:#888780;margin:6px 0 0}.company-mgmt__two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}.company-mgmt label{font-size:13px;color:#5f5e5a;display:block;margin-bottom:4px}.company-mgmt input,.company-mgmt select{width:100%;box-sizing:border-box;margin-bottom:12px;height:36px;border:1px solid #ccc;border-radius:6px;padding:0 10px}.company-mgmt__email-toggle{display:flex;align-items:center;justify-content:space-between;border:1px solid #ddd;border-radius:8px;padding:10px 14px;margin:4px 0 16px}.company-mgmt__email-toggle p{margin:0;font-size:13px;font-weight:500}.company-mgmt__actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.user-mgmt__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.user-mgmt__header h1{font-size:18px;font-weight:600;margin:0}.user-mgmt__error{color:#a32d2d;font-size:13px}.user-mgmt__success{color:#27500a;font-size:13px}.user-mgmt__filter-bar{margin-bottom:12px}.user-mgmt__filter-bar label{display:flex;align-items:center;gap:8px;font-size:13px;color:#5f5e5a}.user-mgmt__filter-bar select{height:34px;min-width:220px;border:1px solid #ccc;border-radius:6px;padding:0 10px}.user-mgmt__empty-row{text-align:center;padding:20px;color:#888780}.user-mgmt__form{background:#fff;border:1px solid #ddd;border-radius:12px;padding:1rem;margin-bottom:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}.user-mgmt__form label{font-size:13px;color:#5f5e5a;display:block}.user-mgmt__form input,.user-mgmt__form select{width:100%;box-sizing:border-box;height:36px;border:1px solid #ccc;border-radius:6px;padding:0 10px;margin-top:4px}.user-mgmt__form-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:8px}.user-mgmt__table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #ddd;border-radius:12px;overflow:hidden}.user-mgmt__table th,.user-mgmt__table td{text-align:left;padding:10px 14px;border-bottom:1px solid #eee;font-size:13px}.user-mgmt__row-actions{display:flex;gap:8px}.user-mgmt__row-actions button{border:none;background:#185fa5;color:#fff;border-radius:6px;height:28px;padding:0 10px;font-size:12px;cursor:pointer}.user-mgmt__row-actions button.user-mgmt__delete-btn{background:#a3402d}.user-mgmt__company-check-list{border:1px solid #eee;border-radius:8px;padding:8px 12px;max-height:160px;overflow-y:auto;margin-top:4px}.user-mgmt__company-check-row{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:13px;font-weight:400}.user-mgmt__company-check-row input{width:auto;height:auto;margin:0}.user-mgmt__company-check-empty{font-size:12px;color:#888780;margin:4px 0}.btn-primary{background:#185fa5;color:#fff;border:none;border-radius:6px;cursor:pointer;height:34px;padding:0 16px;font-size:13px}.md-page__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.md-page__header h1{font-size:18px;font-weight:600;margin:0}.md-page__toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:8px;flex-wrap:wrap}.md-page__toolbar-left,.md-page__toolbar-right{display:flex;gap:8px;flex-wrap:wrap}.md-page__toolbar input,.md-page__toolbar select{height:36px;border:1px solid #ccc;border-radius:6px;padding:0 10px}.md-page__error{color:#a32d2d;font-size:13px}.md-page__success{color:#27500a;font-size:13px}.md-page__form{background:#fff;border:1px solid #ddd;border-radius:12px;padding:1rem;margin-bottom:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}.md-page__form--wide{grid-template-columns:1fr}.md-page__form label{font-size:13px;color:#5f5e5a;display:block}.md-page__form input,.md-page__form select,.md-page__form textarea{width:100%;box-sizing:border-box;height:36px;border:1px solid #ccc;border-radius:6px;padding:0 10px;margin-top:4px;font-family:inherit}.md-page__form textarea{height:auto;padding:8px 10px}.md-page__form-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:8px}.md-page__table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #ddd;border-radius:12px;overflow:hidden}.md-page__table th,.md-page__table td{text-align:left;padding:10px 14px;border-bottom:1px solid #eee;font-size:13px}.md-page__row-actions{display:flex;gap:8px;justify-content:flex-end}.md-page__row-actions button{border:none;background:#185fa5;color:#fff;border-radius:6px;height:28px;padding:0 10px;font-size:12px;cursor:pointer}.md-page__row-actions button.md-page__delete-btn{background:#a3402d}.md-page__badge-active{background:#eaf3de;color:#27500a;font-size:11px;padding:2px 8px;border-radius:6px}.md-page__badge-inactive{background:#f1efe8;color:#888780;font-size:11px;padding:2px 8px;border-radius:6px}.md-page__badge-default{background:#e6f1fb;color:#185fa5;font-size:11px;padding:2px 8px;border-radius:6px;margin-left:6px}.md-page__badge-draft{background:#fdf0c4;color:#8a6d1a;font-size:11px;padding:2px 8px;border-radius:6px}.md-page__badge-voided{background:#fbe9e6;color:#a3402d;font-size:11px;padding:2px 8px;border-radius:6px}.md-page__address-row{border:1px solid #eee;border-radius:6px;padding:10px 12px;margin-bottom:8px;display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.md-page__address-row-fields{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:8px}.md-page__address-row-fields input{height:32px}.btn-primary,.btn-secondary{background:#185fa5;color:#fff;border:none;border-radius:6px;cursor:pointer;height:34px;padding:0 16px;font-size:13px}.btn-danger{background:#fff;color:#a3402d;border:1px solid #e0b3a8;border-radius:6px;cursor:pointer;height:34px;padding:0 16px;font-size:13px}.doc-page__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.doc-page__title{font-size:16px;font-weight:500;margin:0;display:flex;align-items:center;gap:10px}.doc-page__no{color:#185fa5}.doc-page__status-badge{font-size:15px;padding:5px 14px;border-radius:12px;font-weight:700}.doc-page__status-draft{background:#fdf0c4;color:#8a6d1a}.doc-page__status-sent,.doc-page__status-confirmed{background:#eaf3de;color:#27500a}.doc-page__status-accepted{background:#e6f1fb;color:#185fa5}.doc-page__status-voided,.doc-page__status-rejected,.doc-page__status-expired{background:#fbe9e6;color:#a3402d}.doc-page__status-converted{background:#e6f1fb;color:#185fa5}.doc-page__panel{background:#fff;border:1px solid #ddd;border-radius:12px;padding:1.25rem;margin-bottom:16px}.doc-page__panel label{font-size:13px;color:#5f5e5a;display:block;margin-bottom:4px}.doc-page__panel input,.doc-page__panel select,.doc-page__panel textarea{width:100%;box-sizing:border-box;height:36px;border:1px solid #ccc;border-radius:6px;padding:0 10px;font-family:inherit}.doc-page__panel input:disabled,.doc-page__panel select:disabled,.doc-page__panel textarea:disabled{background:#f5f4f0;color:#888780}.doc-page__panel textarea{height:auto;padding:8px}.doc-page__grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px 16px;margin-bottom:14px}.doc-page__grid4{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:12px 16px;margin-bottom:14px}.doc-page__hint{font-size:11px;color:#888;margin:4px 0 0}.doc-page__detail-table{width:100%;border-collapse:collapse;font-size:12px}.doc-page__detail-table th{background:#f5f4f0;text-align:left;padding:8px;font-weight:500;color:#5f5e5a}.doc-page__detail-table td{padding:6px 8px;border-top:1px solid #eee;vertical-align:top}.doc-page__detail-table input,.doc-page__detail-table select{height:32px;font-size:12px}.doc-page__mode-switch{display:flex;align-items:center;gap:4px;font-size:11px;white-space:nowrap}.doc-page__mode-switch input{width:auto;height:auto}.doc-page__totals{display:flex;justify-content:flex-end;margin-top:12px;margin-right:67px}.doc-page__totals table{font-size:13px}.doc-page__totals td{padding:4px 10px}.doc-page__totals .label{color:#5f5e5a;text-align:right}.doc-page__totals .value{text-align:right;font-weight:500;min-width:130px}.doc-page__totals .grand td{border-top:1px solid #ddd;font-size:15px;font-weight:600;color:#185fa5}.doc-page__actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.doc-page__banner{background:#fbe9e6;color:#a3402d;border-radius:8px;padding:10px 14px;font-size:12px;margin-bottom:16px}.btn-icon{background:none;border:none;color:#a3402d;cursor:pointer;font-size:16px}.invoice-doc{background:#fff;padding:32px;margin-bottom:16px;font-size:16px}.invoice-doc table{width:100%;border-collapse:collapse;font-size:16px}.invoice-doc th{background:#f5f4f0;text-align:left;padding:10px 12px;font-weight:500;color:#5f5e5a;border-bottom:1px solid #ddd}.invoice-doc td{padding:10px 12px;border-top:1px solid #eee}.doc-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #185fa5;padding-bottom:16px;margin-bottom:20px}.doc-company-brand{display:flex;align-items:center;gap:10px;margin-bottom:4px}.doc-company-logo{max-height:64px;max-width:260px;width:auto;height:auto;object-fit:contain}.doc-company-name{font-size:22px;font-weight:600;color:#185fa5;margin:0}.doc-company-meta{font-size:15px;color:#5f5e5a;margin:2px 0}.doc-title-box{text-align:right}.doc-title{font-size:32px;font-weight:700;color:#000;margin:0 0 4px}.doc-meta{font-size:15px;color:#5f5e5a;margin:2px 0}.doc-status-badge{display:inline-block;font-size:13px;padding:4px 12px;border-radius:12px;font-weight:500;margin-top:6px}.doc-status-draft{background:#f1efe8;color:#888780}.doc-status-confirmed{background:#eaf3de;color:#27500a}.doc-status-voided{background:#fbe9e6;color:#a3402d}.doc-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}.doc-info-block .label{font-size:18px;font-weight:600;color:#333;margin:0 0 4px;text-transform:uppercase;letter-spacing:.03em}.doc-info-block .value{font-size:16px;margin:0 0 2px}.doc-info-block .name{font-size:17px;font-weight:600;margin:0 0 4px}.doc-totals{margin-top:16px;display:flex;justify-content:flex-end}.doc-totals-inner{width:320px;padding-right:12px}.doc-totals-row{display:flex;justify-content:space-between;font-size:16px;padding:5px 0}.doc-totals-row.grand{font-weight:600;font-size:18px;border-top:1px solid #ddd;margin-top:6px;padding-top:8px;color:#185fa5}.doc-remark{margin-top:20px;font-size:15px;color:#5f5e5a}.doc-remark .label{font-size:18px;font-weight:600;color:#333;margin:0 0 4px;text-transform:uppercase;letter-spacing:.03em}.doc-footer-note{margin-top:24px;font-size:13px;color:#aaa;border-top:1px solid #eee;padding-top:10px}@media print{body{background:#fff}.no-print{display:none!important}.invoice-doc{border:none;padding:0}}.statement-panel{background:#fff;padding:28px;font-size:13px}.statement-panel table{width:100%;border-collapse:collapse;font-size:13px}.statement-panel th{background:#f5f4f0;text-align:left;padding:8px 10px;font-weight:500;color:#5f5e5a;border-bottom:1px solid #ddd}.statement-panel td{padding:8px 10px;border-top:1px solid #eee}.stmt-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #185fa5;padding-bottom:16px;margin-bottom:20px}.stmt-company-name{font-size:18px;font-weight:600;color:#185fa5;margin:0 0 4px}.stmt-company-meta{font-size:12px;color:#5f5e5a;margin:2px 0}.stmt-title-box{text-align:right}.stmt-title{font-size:16px;font-weight:600;margin:0 0 4px}.stmt-meta{font-size:12px;color:#5f5e5a;margin:2px 0}.stmt-to{margin-bottom:20px}.stmt-to .label{font-size:11px;color:#888;margin:0 0 2px;text-transform:uppercase;letter-spacing:.03em}.stmt-to .name{font-size:14px;font-weight:600;margin:0}.type-badge{font-size:11px;padding:2px 8px;border-radius:10px;font-weight:500}.type-invoice{background:#e6f1fb;color:#185fa5}.type-receipt{background:#eaf3de;color:#27500a}.stmt-totals{margin-top:16px;display:flex;justify-content:flex-end}.stmt-totals-inner{width:280px}.stmt-totals-row{display:flex;justify-content:space-between;font-size:13px;padding:5px 0}.stmt-totals-row.grand{font-weight:600;font-size:14px;border-top:1px solid #ddd;margin-top:6px;padding-top:8px}.stmt-footer-note{margin-top:24px;font-size:11px;color:#aaa;border-top:1px solid #eee;padding-top:10px}.kpi-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;margin-bottom:24px}.kpi-card{background:#f8f7f4;border-radius:10px;padding:14px 16px}.kpi-label{font-size:11px;color:#888;margin:0 0 6px}.kpi-value{font-size:20px;font-weight:600;margin:0;color:#185fa5}.kpi-value.receipt{color:#27500a}.kpi-value.outstanding{color:#a3402d}.section-title{font-size:13px;font-weight:600;margin:20px 0 10px;color:#333}.total-row{font-weight:600;background:#f8f7f4}@media print{body{background:#fff}.no-print{display:none!important}.statement-panel{padding:0}}body{margin:0;background:#f1efe8}.home-welcome{font-size:18px;font-weight:600;color:#08060d;margin:0 0 16px}.home-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.home-card{background:#fff;border-radius:8px;padding:1rem}.home-card p:first-child{font-size:13px;color:#5f5e5a;margin:0 0 6px}.home-card__value{font-size:24px;font-weight:500;margin:0}.home-card--clickable{cursor:pointer}.home-section-title{font-size:14px;font-weight:500;margin:20px 0 10px}.home-chart-panel{background:#fff;border-radius:8px;padding:16px;margin-bottom:20px}.home-quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.home-quick-item{background:#fff;border:1px solid #eee;border-radius:8px;padding:14px;text-align:center;cursor:pointer}.home-quick-item p{font-size:13px;margin:0}.home-quick-item:hover{border-color:#185fa5;color:#185fa5}
