@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
:root { font-family: 'DM Sans', system-ui, sans-serif; color: #172033; background: #f4f6f8; font-synthesis: none; } * { box-sizing: border-box; } body { margin: 0; min-width: 320px; } button, input, select { font: inherit; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }.page-heading h2 { margin: 4px 0; color: #10233f; font-size: 30px; letter-spacing: -.035em; }.page-heading p { margin: 0; color: #667085; }.primary-action { border: 0; border-radius: 7px; background: #f59e0b; color: #10233f; padding: 11px 17px; font-weight: 700; cursor: pointer; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }.metric-card { background: #fff; border: 1px solid #e4e7ec; border-top: 3px solid #2563eb; border-radius: 10px; padding: 18px; box-shadow: 0 3px 12px rgba(16,35,63,.04); }.metric-card span, .metric-card small { display: block; color: #667085; font-size: 12px; }.metric-card strong { display: block; color: #10233f; font-size: 26px; margin: 9px 0 5px; }.metric-card small { color: #98a2b3; font-size: 11px; }.accent-green { border-top-color: #16a34a; }.accent-orange { border-top-color: #f59e0b; }.accent-navy { border-top-color: #10233f; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-top: 16px; }.dashboard-card { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; padding: 21px; }.dashboard-card h3 { margin: 4px 0 5px; color: #10233f; font-size: 18px; }.dashboard-card p { color: #667085; font-size: 13px; margin: 0; }.card-kicker { color: #2563eb; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }.flow-line { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: #475467; font-size: 12px; }.flow-line i { flex: 1; height: 2px; background: #dbe5f0; }.card-header { display: flex; justify-content: space-between; align-items: start; }.card-header p { font-size: 12px; }.card-header a { color: #2563eb; font-size: 12px; text-decoration: none; }.status-row { display: flex; justify-content: space-between; border-bottom: 1px solid #f0f2f5; padding: 14px 0; color: #475467; font-size: 13px; }.status-row b { color: #10233f; }
@media (max-width: 900px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dashboard-grid { grid-template-columns: 1fr; } } @media (max-width: 560px) { .page-heading { display: block; }.primary-action { margin-top: 16px; }.metric-grid { grid-template-columns: 1fr; } }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 15%, #eaf2ff 0, transparent 35%), #10233f; }.login-card { width: min(420px, 100%); background: #fff; border-radius: 14px; padding: 34px; box-shadow: 0 18px 55px rgba(0,0,0,.2); }.login-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #f59e0b; color: #10233f; font-weight: 800; margin-bottom: 22px; }.login-kicker { color: #2563eb; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }.login-card h1 { color: #10233f; margin: 7px 0 5px; font-size: 27px; }.login-card p { color: #667085; margin: 0 0 24px; }.login-card form { display: grid; gap: 16px; }.login-card label { display: grid; gap: 6px; color: #344054; font-size: 13px; font-weight: 600; }.login-card input { width: 100%; border: 1px solid #d0d5dd; border-radius: 7px; padding: 11px; outline: none; }.login-card input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }.login-card button { border: 0; border-radius: 7px; background: #f59e0b; color: #10233f; padding: 12px; font-weight: 700; cursor: pointer; }.login-error { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; border-radius: 7px; padding: 10px; margin-bottom: 16px; font-size: 13px; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; }
.eyebrow { color: #f59e0b; font-size: .72rem; font-weight: 800; letter-spacing: .12em; margin: 0 0 .4rem; }
.page-heading h1 { margin: 0; color: #102a43; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.page-heading p:not(.eyebrow) { margin: .45rem 0 0; color: #627d98; }
.filter-card { display: flex; align-items: end; gap: 1rem; flex-wrap: wrap; padding: 1.15rem; margin-bottom: 1rem; background: #fff; border: 1px solid #d9e2ec; border-radius: 14px; box-shadow: 0 5px 18px rgba(16,42,67,.05); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.grow { flex: 1 1 360px; }
.field.compact { flex: 0 1 170px; }
.field label { color: #486581; font-size: .8rem; font-weight: 700; }
.field input, .field select { min-height: 42px; padding: .65rem .75rem; border: 1px solid #bcccdc; border-radius: 8px; background: #fff; color: #102a43; }
.check-field { display: flex; align-items: center; gap: .45rem; min-height: 42px; color: #486581; font-size: .86rem; white-space: nowrap; }
.button { border: 0; border-radius: 8px; min-height: 42px; padding: .65rem 1.1rem; font-weight: 700; cursor: pointer; }
.button.secondary { color: #fff; background: #1f5d8f; }
.table-card { overflow: hidden; background: #fff; border: 1px solid #d9e2ec; border-radius: 14px; box-shadow: 0 5px 18px rgba(16,42,67,.05); }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.15rem; color: #102a43; border-bottom: 1px solid #e6edf3; }
.result-count { color: #627d98; font-size: .85rem; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.data-table th { padding: .85rem 1rem; color: #486581; background: #f5f7fa; font-size: .78rem; text-align: left; white-space: nowrap; }
.data-table td { padding: .9rem 1rem; color: #243b53; border-top: 1px solid #edf2f7; vertical-align: middle; }
.data-table tr:hover td { background: #f8fbff; }
.data-table td strong, .data-table td small { display: block; }
.data-table td small { margin-top: .25rem; color: #829ab1; font-size: .76rem; }
.data-table .price { color: #102a43; font-weight: 800; }
.agenda-layout { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.42fr); gap: 1rem; align-items: start; }
.agenda-tabs { display: flex; gap: .35rem; padding: .8rem 1.15rem 0; border-bottom: 1px solid #e6edf3; }
.agenda-tabs button { border: 0; border-bottom: 3px solid transparent; padding: .7rem .8rem; background: transparent; color: #627d98; font-weight: 700; cursor: pointer; }
.agenda-tabs button.active { color: #1f5d8f; border-bottom-color: #f59e0b; }
.agenda-form { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; padding: 1.15rem; }
.agenda-form label { display: grid; gap: .35rem; color: #486581; font-size: .8rem; font-weight: 700; }
.agenda-form label.wide { grid-column: 1 / -1; }
.agenda-form input, .agenda-form select, .agenda-form textarea { width: 100%; min-height: 40px; padding: .6rem .7rem; border: 1px solid #bcccdc; border-radius: 8px; background: #fff; color: #102a43; }
.agenda-form textarea { min-height: 70px; resize: vertical; }
.agenda-editor .confirm-button { width: auto; margin: 0 1.15rem 1.15rem; padding: 0 1rem; }
.agenda-nav { display: flex; gap: .35rem; }
.icon-button { min-width: 34px; min-height: 32px; border: 1px solid #bcccdc; border-radius: 7px; background: #fff; color: #1f5d8f; cursor: pointer; }
.agenda-week { display: grid; grid-template-columns: repeat(7, minmax(74px, 1fr)); gap: .45rem; padding: 1rem; border-bottom: 1px solid #e6edf3; }
.agenda-day { display: grid; gap: .2rem; min-height: 78px; padding: .65rem .35rem; border: 1px solid #e6edf3; border-radius: 9px; background: #f8fafc; color: #627d98; cursor: pointer; }
.agenda-day strong { color: #102a43; font-size: 1.25rem; }.agenda-day small { font-size: .68rem; }.agenda-day.today { border-color: #2563eb; background: #eff6ff; }.agenda-day:hover { border-color: #93c5fd; }
.agenda-list { min-height: 300px; }.agenda-legend { display: flex; gap: 1rem; padding: .8rem 1.15rem .2rem; color: #627d98; font-size: .76rem; }.agenda-legend span { display: inline-flex; align-items: center; gap: .35rem; }.agenda-legend i { width: 9px; height: 9px; border-radius: 50%; }.agenda-legend-service { background: #2563eb; }.agenda-legend-reminder { background: #f59e0b; }.agenda-event { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.15rem; border-left: 4px solid #2563eb; border-bottom: 1px solid #edf2f7; }.agenda-event-service { background: #f5f9ff; border-left-color: #2563eb; }.agenda-event-reminder { background: #fffbeb; border-left-color: #f59e0b; }.agenda-event strong, .agenda-event small { display: block; }.agenda-event small { margin-top: .22rem; color: #829ab1; font-size: .76rem; }.agenda-actions select { min-height: 32px; padding: .3rem; border: 1px solid #bcccdc; border-radius: 6px; background: #fff; color: #243b53; font-size: .78rem; }
@media (max-width: 980px) { .agenda-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .agenda-form { grid-template-columns: 1fr; }.agenda-form label.wide { grid-column: auto; }.agenda-week { overflow-x: auto; grid-template-columns: repeat(7, 90px); }.agenda-event { align-items: flex-start; flex-direction: column; } }
.status-dot { color: #147d64; font-size: .82rem; font-weight: 700; }
.loading-card, .empty-state { padding: 2.5rem; color: #627d98; text-align: center; }
.empty-page { max-width: 620px; padding: 4rem 1rem; margin: 0 auto; text-align: center; }.empty-page h1 { color: #102a43; }.empty-page p:not(.eyebrow) { color: #627d98; margin-bottom: 1.5rem; }
@media (max-width: 720px) { .page-heading { align-items: flex-start; } .filter-card { align-items: stretch; } .field.grow, .field.compact { flex-basis: 100%; } .button.secondary { width: 100%; } }

.notice { padding: .85rem 1rem; margin-bottom: 1rem; border-radius: 10px; font-weight: 700; }
.notice-error { color: #9b2c2c; background: #fff5f5; border: 1px solid #feb2b2; }
.notice-success { color: #146c43; background: #ecfdf3; border: 1px solid #a7f3d0; }
.facturacion-notice { position: fixed; right: 24px; bottom: 24px; z-index: 1100; display: flex; align-items: flex-start; gap: 14px; width: min(520px, calc(100vw - 48px)); margin: 0; padding: 15px 16px; box-shadow: 0 16px 45px rgba(16,35,63,.2); animation: facturacion-notice-in .22s ease-out both; }.facturacion-notice span { flex: 1; line-height: 1.45; }.facturacion-notice button { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(16,35,63,.08); color: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }.facturacion-notice button:hover { background: rgba(16,35,63,.15); }@keyframes facturacion-notice-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }@media (max-width: 640px) { .facturacion-notice { right: 12px; bottom: 12px; width: calc(100vw - 24px); } }
.cash-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; margin-bottom: 1rem; background: #fff; border: 1px solid #d9e2ec; border-radius: 14px; }
.cash-banner div { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.cash-banner small { flex-basis: 100%; margin-left: 1.25rem; color: #627d98; }
.cash-indicator { width: 10px; height: 10px; background: #22c55e; border-radius: 50%; }
.badge { padding: .4rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.badge.success { color: #147d64; background: #ecfdf3; }
.badge.warning { color: #9a6700; background: #fff7e6; }
.sales-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 1rem; align-items: start; }
.product-picker, .sale-card { min-height: 560px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem; border-bottom: 1px solid #e6edf3; }
.section-title h2 { margin: 0; color: #102a43; font-size: 1.05rem; }
.section-title p { margin: .25rem 0 0; color: #829ab1; font-size: .82rem; }

/* Administracion de usuarios y permisos */
.users-page { display: grid; gap: 1rem; }
.users-page .card { overflow: hidden; background: #fff; border: 1px solid #d9e2ec; border-radius: 14px; box-shadow: 0 5px 18px rgba(16,42,67,.05); }
.split-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: 1rem; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.25rem; border-bottom: 1px solid #e6edf3; }
.section-heading h2 { margin: .25rem 0 0; color: #102a43; font-size: 1.15rem; }
.section-heading p { margin: .35rem 0 0; color: #627d98; font-size: .82rem; }
.stack-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; padding: 1.25rem; }
.stack-form label { display: grid; gap: .4rem; color: #486581; font-size: .8rem; font-weight: 700; }
.stack-form label:nth-of-type(4), .stack-form button { grid-column: 1 / -1; }
.stack-form input, .stack-form select { width: 100%; min-height: 42px; padding: .65rem .75rem; color: #243b53; background: #fff; border: 1px solid #bcccdc; border-radius: 8px; font: inherit; font-weight: 400; }
.stack-form input:focus, .stack-form select:focus { outline: 0; border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.primary-button { min-height: 42px; padding: .65rem 1rem; border: 0; border-radius: 8px; background: #f59e0b; color: #102a43; font-weight: 800; cursor: pointer; }
.primary-button:disabled { cursor: wait; opacity: .65; }
.success-banner, .error-banner { margin: 1rem 1.25rem 0; padding: .75rem .9rem; border-radius: 8px; font-size: .82rem; }
.success-banner { color: #166534; background: #ecfdf3; border: 1px solid #bbf7d0; }
.error-banner { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; }
.compact-table { max-height: 340px; overflow: auto; }
.compact-table table { width: 100%; min-width: 620px; border-collapse: collapse; }
.compact-table th { padding: .75rem 1rem; color: #486581; background: #f5f7fa; font-size: .76rem; text-align: left; white-space: nowrap; }
.compact-table td { padding: .85rem 1rem; color: #243b53; border-top: 1px solid #edf2f7; vertical-align: middle; }
.compact-table td strong, .compact-table td small { display: block; }
.compact-table td small { margin-top: .25rem; color: #829ab1; font-size: .75rem; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; padding: 1.25rem; }
.role-card { min-width: 0; padding: 1rem; border: 1px solid #dbe5f0; border-radius: 12px; background: #fbfdff; }
.role-card-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.role-card-heading strong { color: #102a43; font-size: 1rem; }
.role-card-heading span { color: #627d98; font-size: .75rem; white-space: nowrap; }
.role-card > p { min-height: 2.5rem; margin: .65rem 0 1rem; color: #627d98; font-size: .82rem; line-height: 1.45; }
.permission-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.permission-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .5rem; border-radius: 999px; font-size: .7rem; line-height: 1.2; }
.permission-chip b { font-size: .65rem; }
.permission-on { color: #166534; background: #dcfce7; }
.permission-off { color: #829ab1; background: #eef2f6; }
.row-button { padding: .45rem .7rem; color: #1f5d8f; background: #fff; border: 1px solid #b6d7f5; border-radius: 7px; font-size: .76rem; cursor: pointer; }
.row-button:hover { background: #edf6ff; }
.role-editor-card { padding-bottom: 1.25rem; }
.permission-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; padding: 1.25rem; }
.permission-editor .check-field { display: flex; align-items: flex-start; gap: .55rem; padding: .75rem; border: 1px solid #e6edf3; border-radius: 9px; background: #fbfdff; }
.permission-editor .check-field span { display: grid; gap: .25rem; }
.permission-editor small { color: #829ab1; font-size: .72rem; line-height: 1.35; }
.button-row { display: flex; justify-content: flex-end; gap: .65rem; padding: 0 1.25rem; }
@media (max-width: 900px) { .split-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .stack-form, .permission-editor { grid-template-columns: 1fr; }.stack-form label:nth-of-type(4), .stack-form button { grid-column: auto; }.button-row { flex-direction: column; }.button-row button { width: 100%; }.role-card > p { min-height: 0; } }
.scan-button { padding: .55rem .8rem; color: #1f5d8f; background: #edf6ff; border: 1px solid #b6d7f5; border-radius: 8px; font-weight: 700; cursor: pointer; }
.scan-row { display: flex; gap: .6rem; padding: 1rem 1.15rem; border-bottom: 1px solid #e6edf3; }
.scan-row input { flex: 1; min-width: 0; min-height: 42px; padding: .65rem .75rem; border: 1px solid #bcccdc; border-radius: 8px; }
.product-results { max-height: 430px; overflow-y: auto; }
.product-result { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: .85rem 1.15rem; color: #243b53; background: #fff; border: 0; border-bottom: 1px solid #edf2f7; text-align: left; cursor: pointer; }
.product-result:hover { background: #f5f9fd; }
.product-result strong, .product-result small, .product-meta b, .product-meta small { display: block; }
.product-result small, .product-meta small { margin-top: .25rem; color: #829ab1; font-size: .76rem; }
.product-meta { text-align: right; }
.product-meta b { color: #102a43; }
.sale-lines { max-height: 290px; overflow-y: auto; }
.sale-line { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; padding: 1rem 1.15rem; border-bottom: 1px solid #edf2f7; }
.sale-line strong, .sale-line small { display: block; }
.sale-line small { margin-top: .25rem; color: #829ab1; font-size: .76rem; }
.quantity { display: flex; align-items: center; gap: .5rem; }
.quantity button { min-width: 28px; min-height: 28px; border: 1px solid #bcccdc; background: #fff; cursor: pointer; }
.quantity .remove { margin-left: .35rem; color: #b42318; border: 0; font-size: .75rem; }
.sale-summary { padding: 1.15rem; background: #f8fafc; border-top: 1px solid #e6edf3; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: .55rem; color: #627d98; }
.summary-row.final { margin-top: .85rem; padding-top: .85rem; color: #102a43; border-top: 1px solid #d9e2ec; font-size: 1.2rem; }
.summary-row.final strong { font-size: 1.55rem; }
.discount-row, .payment-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .85rem; color: #486581; font-size: .86rem; }
.discount-row input, .payment-row select { width: 180px; min-height: 38px; padding: .5rem; border: 1px solid #bcccdc; border-radius: 7px; background: #fff; }
.confirm-button { width: 100%; min-height: 48px; margin-top: 1.25rem; color: #fff; background: #f59e0b; border: 0; border-radius: 9px; font-size: .98rem; font-weight: 800; cursor: pointer; }
.confirm-button:disabled { opacity: .55; cursor: not-allowed; }
.customer-row, .document-row { display: grid; gap: .4rem; margin-top: .85rem; color: #486581; font-size: .86rem; }
.customer-row > label, .document-row { font-weight: 600; }
.customer-row input, .customer-row select, .document-row select { width: 100%; min-height: 38px; padding: .5rem .65rem; border: 1px solid #bcccdc; border-radius: 7px; background: #fff; color: #243b53; }
.customer-row input:focus, .customer-row select:focus, .document-row select:focus { outline: 0; border-color: #2b7ab5; box-shadow: 0 0 0 3px #dbeafe; }
.document-hint { margin-top: .55rem; padding: .55rem .7rem; border-radius: 7px; color: #9a6700; background: #fff7e6; font-size: .76rem; }
@media (max-width: 980px) { .sales-grid { grid-template-columns: 1fr; } .product-picker, .sale-card { min-height: auto; } }
@media (max-width: 560px) { .cash-banner { align-items: flex-start; flex-direction: column; } .section-title { align-items: flex-start; flex-direction: column; } .scan-row { flex-direction: column; } .sale-line { grid-template-columns: 1fr auto; } .sale-line > strong { grid-column: 2; grid-row: 1; } .quantity { grid-column: 1 / -1; justify-content: flex-start; } }

.web-tabs { display: flex; gap: .25rem; margin-bottom: 1rem; border-bottom: 1px solid #d9e2ec; }
.web-tabs button { padding: .75rem 1rem; color: #486581; background: transparent; border: 0; border-bottom: 3px solid transparent; font-weight: 700; cursor: pointer; }
.web-tabs button.active { color: #1f5d8f; border-bottom-color: #f59e0b; }
.budget-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.15rem; }
.budget-form label, .budget-line-add { display: flex; flex-direction: column; gap: .4rem; color: #486581; font-size: .8rem; font-weight: 700; }
.budget-form label.wide { grid-column: 1 / -1; }
.budget-form select, .budget-form textarea, .budget-line-add select, .budget-line-add input { min-height: 42px; padding: .65rem .75rem; color: #243b53; background: #fff; border: 1px solid #bcccdc; border-radius: 8px; font-weight: 400; }
.budget-form textarea { min-height: 70px; resize: vertical; }
.budget-line-add { flex-direction: row; align-items: end; padding: 0 1.15rem 1rem; }
.budget-line-add select { flex: 1; }
.budget-line-add input { width: 90px; }
.budget-lines { min-height: 90px; margin: 0 1.15rem; border-top: 1px solid #e6edf3; }
.budget-lines > div { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #edf2f7; }
.budget-lines > div span { flex: 1; }.budget-lines strong, .budget-lines small { display: block; }.budget-lines small { margin-top: .2rem; color: #829ab1; font-size: .76rem; }
.link-danger { color: #b42318; background: transparent; border: 0; cursor: pointer; font-size: .78rem; }
.budget-total { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; padding: 1.15rem; margin-top: 1rem; color: #627d98; background: #f8fafc; border-top: 1px solid #e6edf3; }.budget-total strong { color: #102a43; font-size: 1.4rem; }.confirm-button.compact { width: auto; min-height: 42px; margin-top: 0; padding: 0 1.2rem; }
.state-pill { display: inline-block; padding: .3rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 800; }.state-1 { color: #1d4ed8; background: #eff6ff; }.state-2 { color: #9a6700; background: #fff7e6; }.state-3 { color: #6d28d9; background: #f5f3ff; }.state-4 { color: #b45309; background: #fff7ed; }.state-6 { color: #b42318; background: #fff1f2; }.state-5 { color: #147d64; background: #ecfdf3; }.state-7 { color: #52606d; background: #f0f4f8; }
.row-actions { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 220px; }.row-actions button { padding: .35rem .5rem; color: #1f5d8f; background: #fff; border: 1px solid #b6d7f5; border-radius: 6px; font-size: .74rem; cursor: pointer; }.row-actions button:hover { background: #edf6ff; }.detail-card { margin-top: 1rem; }.history-list { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.15rem; color: #627d98; font-size: .78rem; }
.budget-board { padding: 1.15rem; background: #fff; border: 1px solid #d9e2ec; border-radius: 14px; }.board-header h2 { margin: 0; color: #102a43; }.board-header p { margin: .35rem 0 1rem; color: #627d98; }.board-columns { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: .75rem; overflow-x: auto; }.board-column { min-height: 320px; padding: .7rem; background: #f8fafc; border-radius: 10px; }.board-column header { display: flex; justify-content: space-between; padding: .35rem .25rem .7rem; color: #486581; font-size: .8rem; font-weight: 800; }.board-column header b { color: #102a43; }.board-column { transition: background-color .15s ease, box-shadow .15s ease; }.board-column.drop-target { box-shadow: inset 0 0 0 1px #bcccdc; }.board-column.drop-target-active { background: #eaf2fb; box-shadow: inset 0 0 0 2px #2f6fb0; }.board-column-empty { padding: .75rem; color: #9fb3c8; font-size: .78rem; text-align: center; }.board-card { display: block; width: 100%; padding: .75rem; margin-bottom: .55rem; color: #243b53; background: #fff; border: 1px solid #d9e2ec; border-radius: 8px; text-align: left; cursor: pointer; }.board-card:hover { border-color: #7aa7cc; }.board-card:focus-visible { outline: 2px solid #2f6fb0; outline-offset: 1px; }.board-card.draggable { cursor: grab; }.board-card.draggable:active { cursor: grabbing; }.board-card strong, .board-card small, .board-card b, .board-card em { display: block; }.board-card small { margin: .3rem 0; color: #829ab1; }.board-card b { color: #1f5d8f; }.board-card em { margin-top: .3rem; color: #9fb3c8; font-size: .72rem; font-style: normal; }
@media (max-width: 720px) { .budget-form { grid-template-columns: 1fr; }.budget-form label.wide { grid-column: auto; }.budget-line-add { align-items: stretch; flex-direction: column; }.budget-line-add input { width: auto; }.budget-total { align-items: stretch; flex-direction: column; }.confirm-button.compact { width: 100%; } }
.row-button { display: inline-flex; align-items: center; padding: .35rem .5rem; color: #1f5d8f; background: #edf6ff; border: 1px solid #b6d7f5; border-radius: 6px; font-size: .74rem; text-decoration: none; }
.financial-card { margin-top: 1rem; }.financial-bars { display: flex; align-items: end; gap: .35rem; height: 230px; padding: 1.5rem 1.2rem .8rem; overflow-x: auto; }.financial-bar { display: flex; flex-direction: column; justify-content: end; align-items: center; min-width: 24px; height: 100%; gap: .35rem; }.financial-bar span { width: 100%; min-height: 8px; background: linear-gradient(180deg, #2b7ab5, #1f5d8f); border-radius: 5px 5px 2px 2px; }.financial-bar small { color: #829ab1; font-size: .65rem; white-space: nowrap; transform: rotate(-45deg) translate(-.3rem, .3rem); }
.client-history-card { margin-top: 1rem; }.history-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.15rem; }.history-tabs > div { min-height: 120px; padding: .9rem; background: #f8fafc; border-radius: 9px; }.history-tabs h3 { margin: 0 0 .7rem; color: #1f5d8f; font-size: .95rem; }.history-tabs p { margin: .45rem 0; color: #627d98; font-size: .78rem; }.history-tabs p strong, .history-tabs p b { color: #243b53; }
@media (max-width: 800px) { .history-tabs { grid-template-columns: 1fr; } }
.purchase-line-add { display: flex; align-items: end; gap: .6rem; padding: 0 1.15rem 1rem; }.purchase-line-add select { flex: 1; min-height: 42px; padding: .65rem .75rem; border: 1px solid #bcccdc; border-radius: 8px; background: #fff; }.purchase-line-add input { width: 120px; min-height: 42px; padding: .65rem .75rem; border: 1px solid #bcccdc; border-radius: 8px; }.purchase-check { align-self: end; }.purchase-history { margin-top: 1rem; }
@media (max-width: 720px) { .purchase-line-add { align-items: stretch; flex-direction: column; }.purchase-line-add input { width: auto; } }
.product-history-card { margin-top: 1rem; }.price-legend { display: flex; gap: 1rem; padding: 0 1.15rem; color: #486581; font-size: .8rem; }.legend-sale::before, .legend-cost::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: .35rem; border-radius: 50%; background: #2563eb; }.legend-cost::before { background: #f59e0b; }.price-timeline { display: flex; flex-direction: column; gap: .65rem; padding: 1rem 1.15rem; }.price-point { display: grid; grid-template-columns: 72px minmax(100px, 1fr) 85px; gap: .7rem; align-items: center; }.point-date { color: #829ab1; font-size: .75rem; }.point-line { display: block; height: 9px; border-radius: 999px; }.point-line.sale { background: #2563eb; }.point-line.cost { background: #f59e0b; }.price-point strong { color: #102a43; text-align: right; }.price-point small { grid-column: 2 / -1; color: #829ab1; font-size: .72rem; }
.help-modal-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(7,24,48,.68);backdrop-filter:blur(3px)}
.help-modal{width:min(680px,100%);max-height:calc(100vh - 48px);overflow:auto;padding:28px;border:1px solid #d5e0ed;border-radius:18px;background:#fff;box-shadow:0 24px 80px rgba(7,24,48,.3)}
.help-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid #e5ebf2;padding-bottom:16px;margin-bottom:18px}
.help-modal h2{margin:4px 0 0;color:#0b2a4a}
.help-modal p{color:#506982;line-height:1.55}
.help-steps{display:grid;gap:12px;margin:20px 0;padding-left:24px;color:#203f5d;line-height:1.5}
.help-steps li::marker{color:#f59d0b;font-weight:700}
.help-modal code{padding:3px 6px;border-radius:5px;background:#eef4fa;color:#0b2a4a;font-size:.9em}
.help-modal-note{padding:14px 16px;border-left:4px solid #f59d0b;border-radius:8px;background:#fff8e8;color:#6b4a08}
.help-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.modal-close-button{width:32px;height:32px;border:0;border-radius:50%;background:#eef3f8;color:#31516f;font-weight:700;cursor:pointer}
@media (max-width:640px){.help-modal-backdrop{padding:12px}.help-modal{padding:20px}.help-modal-actions{flex-direction:column}.help-modal-actions .button{width:100%;text-align:center}}

.client-editor { display: block; }
.config-tabs { display: flex; gap: 4px; margin: 1rem 0 0; padding: 5px; border: 1px solid #d5e0ed; border-radius: 12px 12px 0 0; background: #edf4fb; overflow-x: auto; }
.config-tab { border: 0; border-radius: 8px; padding: .75rem 1.2rem; color: #486581; background: transparent; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.config-tab:hover { color: #0b2a4a; background: #fff; }.config-tab.active { color: #0b2a4a; background: #fff; box-shadow: 0 2px 8px rgba(16,42,67,.1); }
.config-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.config-section-card { display: flex; min-height: 210px; flex-direction: column; justify-content: space-between; min-width: 0; padding: 1.25rem; border: 1px solid #d5e0ed; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(16,42,67,.05); }
.config-section-card h2 { margin: .25rem 0 .5rem; color: #102a43; }.config-section-card p:not(.eyebrow) { color: #627d98; line-height: 1.45; }.config-section-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }.config-status { color: #486581; font-size: .76rem; }.config-section-footer .button { white-space: nowrap; }
.config-section-card-expanded { grid-column: 1 / -1; }
@media (max-width: 640px) { .config-sections { grid-template-columns: 1fr; } }
.company-config-card { overflow: hidden; }
.company-config-card .section-title { padding: 1.25rem 1.25rem .15rem; }
.company-config-card .section-title h2 { margin: 0; color: #102a43; }
.company-config-card .section-title p { margin: .35rem 0 0; color: #627d98; font-size: .82rem; }
.company-config-card .budget-form { margin: .85rem 1.15rem 0; padding: 1.15rem; border: 1px solid #e1eaf3; border-radius: 12px; background: linear-gradient(135deg, #f8fbff, #f3f7fb); }
.company-config-card .budget-form label { color: #35516f; }
.company-config-card .budget-form input, .company-config-card .budget-form select, .company-config-card .budget-form textarea { width: 100%; min-height: 42px; padding: .65rem .75rem; color: #102a43; background: #fff; border: 1px solid #b9cce0; border-radius: 8px; font: inherit; font-weight: 400; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.company-config-card .budget-form input:hover, .company-config-card .budget-form select:hover, .company-config-card .budget-form textarea:hover { border-color: #7fa6c9; }
.company-config-card .budget-form input:focus, .company-config-card .budget-form select:focus, .company-config-card .budget-form textarea:focus { outline: 0; border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px #dbeafe; }
.company-config-card .budget-form textarea { min-height: 86px; resize: vertical; }
.config-savebar { margin-top: 1.1rem; padding: 1rem 1.25rem; background: #eef6ff; border-top: 1px solid #d7e7f7; }
.config-savebar > span { display: flex; flex-direction: column; gap: .2rem; }
.config-savebar small { color: #627d98; font-size: .72rem; }
.config-savebar strong { color: #102a43; font-size: 1.05rem; }
.config-section-card { position: relative; overflow: hidden; background: linear-gradient(145deg, #fff, #fbfdff); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.config-section-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: #2563eb; }
.config-section-card:nth-child(2)::before { background: #f59e0b; }
.config-section-card:nth-child(3)::before { background: #7c3aed; }
.config-section-card:nth-child(4)::before { background: #16a34a; }
.config-section-card:hover { transform: translateY(-2px); border-color: #b6d7f5; box-shadow: 0 12px 28px rgba(16,42,67,.1); }
.config-section-card-wide { grid-column: 1 / -1; min-height: 0; }
.config-section-card-wide > div:first-child { margin-bottom: .8rem; }
.config-checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: .2rem 0 1rem; }
.config-checklist .config-status { padding: .7rem .8rem; border: 1px solid #d7e5f2; border-radius: 9px; background: #f7fbff; font-weight: 700; }
.config-pos-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem .85rem; margin-top: .25rem; }
.config-pos-form label, .config-upload-grid label { display: grid; gap: .35rem; color: #35516f; font-size: .8rem; font-weight: 700; }
.config-pos-form input, .config-pos-form select, .config-upload-grid input, .config-upload-grid select { width: 100%; min-width: 0; min-height: 36px; padding: .45rem .6rem; border: 1px solid #b9cce0; border-radius: 8px; background: #fff; color: #102a43; font: inherit; font-weight: 400; }
.config-inline-options { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin-top: 1rem; padding: .8rem; border: 1px solid #e1eaf3; border-radius: 9px; background: #f8fbff; color: #35516f; font-size: .82rem; }
.config-inline-options label { display: inline-flex; align-items: center; gap: .45rem; }
.config-inline-options input[type=checkbox] { width: 16px; height: 16px; accent-color: #2563eb; }
.config-example { display: grid; gap: .2rem; margin-top: 1rem; padding: .8rem 1rem; border-left: 4px solid #f59e0b; border-radius: 8px; background: #fff8e8; color: #6b4a08; font-size: .82rem; line-height: 1.45; }
.pos-machines-list { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid #e1eaf3; color: #35516f; font-size: .8rem; }
.pos-machine-chip { display: grid; gap: .1rem; padding: .55rem .7rem; border: 1px solid #cfe0ef; border-radius: 9px; background: #f7fbff; }.pos-machine-chip b { color: #102a43; }.pos-machine-chip small { color: #627d98; }
.pos-summary { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .2rem 0 1rem; padding: .75rem .9rem; border: 1px solid #d7e5f2; border-radius: 9px; background: #f7fbff; color: #486581; font-size: .8rem; }.pos-summary span:first-child { margin-right: auto; }.pos-summary b { color: #102a43; font-size: 1.05rem; }.pos-machines-grid { margin: 1rem 0; overflow-x: auto; border: 1px solid #d7e5f2; border-radius: 10px; }.pos-grid-header, .pos-grid-row { display: grid; grid-template-columns: 1.2fr 1.3fr 1.3fr .8fr .8fr auto; align-items: center; gap: .75rem; min-width: 720px; padding: .75rem .9rem; }.pos-grid-header { background: #f1f6fb; color: #486581; font-size: .72rem; font-weight: 800; text-transform: uppercase; }.pos-grid-row { border-top: 1px solid #e5edf5; color: #35516f; font-size: .8rem; }.pos-grid-row strong { color: #102a43; }.pos-enabled { color: #047857; font-weight: 700; }.pos-disabled { color: #9f1239; font-weight: 700; }.pos-empty-state { margin: 1rem 0; padding: 1rem; border: 1px dashed #b9cce0; border-radius: 9px; background: #f8fbff; color: #627d98; font-size: .82rem; }
.config-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin: 1rem 0; }
.config-upload-grid input[type=file] { padding: .45rem .55rem; }
.uploaded-files-list { display: flex; flex-wrap: wrap; gap: .65rem; margin: .8rem 0; }
.uploaded-file-chip { display: inline-flex; align-items: center; gap: .65rem; min-width: 240px; max-width: 100%; padding: .65rem .75rem; border: 1px solid #cfe0ef; border-radius: 11px; background: #f8fbff; box-shadow: 0 4px 12px rgba(16,42,67,.06); }
.uploaded-file-chip > span:nth-child(2) { display: grid; gap: .15rem; min-width: 0; }
.uploaded-file-chip strong, .uploaded-file-chip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uploaded-file-chip strong { color: #102a43; font-size: .82rem; }.uploaded-file-chip small { color: #627d98; font-size: .72rem; }
.file-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px; background: #e5efff; color: #2563eb; font-size: .66rem; font-weight: 800; }
.certificate-chip .file-icon { background: #e9e1ff; color: #6d28d9; }.file-remove { width: 25px; height: 25px; margin-left: auto; border: 0; border-radius: 50%; background: #fee2e2; color: #b91c1c; cursor: pointer; }
@media (max-width: 800px) { .config-checklist, .config-pos-form, .config-upload-grid { grid-template-columns: 1fr; } }
.pos-row-actions { display: flex; gap: .35rem; }.row-button.danger { color: #b91c1c; border-color: #fecaca; }
.catalog-bulk-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-left: auto; }.upload-excel { position: relative; overflow: hidden; cursor: pointer; }.upload-excel input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }.import-preview-card { margin-top: 1rem; }.import-preview-card .table-toolbar > span { color: #627d98; font-size: .75rem; }
.company-logo-field { grid-column: 1 / -1; display: grid; gap: .55rem; padding-top: .25rem; }
.company-logo-label { color: #35516f; font-size: .8rem; font-weight: 700; }
.company-logo-control { display: flex; align-items: center; gap: 1rem; padding: .8rem; border: 1px dashed #9fb9d2; border-radius: 10px; background: rgba(255,255,255,.72); }
.company-logo-preview, .company-logo-placeholder { width: 112px; height: 64px; object-fit: contain; border-radius: 7px; border: 1px solid #d5e0ed; background: #fff; }
.company-logo-placeholder { display: grid; place-items: center; color: #829ab1; font-size: .75rem; }
.company-logo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; color: #627d98; font-size: .75rem; }
.company-logo-actions input[type=file] { min-height: auto !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.company-logo-actions small { color: #829ab1; }
@media (max-width: 560px) { .company-logo-control { align-items: flex-start; flex-direction: column; } }
.budget-breakdown { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; color: #627d98; font-size: .82rem; }
.budget-breakdown span { display: flex; gap: .35rem; align-items: baseline; }.budget-breakdown strong { color: #486581; }.budget-breakdown .budget-final-label { color: #102a43; font-size: 1rem; }.budget-breakdown .budget-final-label strong { color: #102a43; font-size: 1.35rem; }
.ebitda-month-chart { display: flex; align-items: end; gap: .65rem; min-height: 210px; padding: 1.25rem 1.2rem .9rem; overflow-x: auto; border-bottom: 1px solid #e6edf3; }.ebitda-month-bar { display: flex; flex-direction: column; justify-content: end; align-items: center; gap: .3rem; min-width: 58px; height: 180px; }.ebitda-month-bar strong { color: #102a43; font-size: .68rem; white-space: nowrap; }.ebitda-month-bar span { width: 30px; min-height: 6px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #16a34a, #15803d); }.ebitda-month-bar span.negative { background: linear-gradient(180deg, #ef4444, #b91c1c); }.ebitda-month-bar small { color: #829ab1; font-size: .7rem; white-space: nowrap; }
.finance-confirm-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(7,24,48,.68); backdrop-filter: blur(3px); }.finance-confirm-modal { width: min(620px, 100%); padding: 24px; border: 1px solid #d5e0ed; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(7,24,48,.3); }.finance-confirm-modal p { color: #627d98; line-height: 1.5; }.finance-confirm-values { display: grid; gap: .55rem; margin: 1rem 0; padding: .9rem; border-radius: 9px; background: #f8fafc; }.finance-confirm-values span { display: flex; justify-content: space-between; gap: 1rem; color: #627d98; }.finance-confirm-values strong { color: #102a43; }
.client-editor .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.client-editor .section-heading h2 { margin: .25rem 0 0; color: #102a43; }
.client-editor .filter-row { display: grid; grid-template-columns: minmax(130px, .6fr) minmax(220px, 1.2fr) auto; align-items: end; gap: 1rem; margin-top: 1rem; }
.client-editor .filter-row:nth-of-type(2) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.client-editor .filter-row:nth-of-type(3) { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.filter-live { align-self: center; color: #627d98; font-size: .78rem; white-space: nowrap; }
.client-history-backdrop, .inventory-detail-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(7,24,48,.68); backdrop-filter: blur(3px); }
.client-history-modal, .inventory-detail-modal { width: min(1050px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 24px; border: 1px solid #d5e0ed; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(7,24,48,.3); }
.client-history-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid #e5ebf2; }
.client-history-modal-header h2, .inventory-detail-modal h2 { margin: 4px 0 0; color: #0b2a4a; }
.client-history-summary { display: flex; gap: .6rem; flex-wrap: wrap; padding: .7rem 0; color: #1f5d8f; font-size: .82rem; font-weight: 700; }
.client-history-summary span { display: inline-flex; gap: .45rem; padding: .35rem .65rem; border-radius: 999px; background: #eef6ff; }.client-history-summary strong { color: #102a43; }
.history-tabs p { display: flex; flex-direction: column; gap: .2rem; padding: .55rem 0; border-bottom: 1px solid #e5ebf2; }.history-tabs p:last-child { border-bottom: 0; }.history-tabs p small, .history-tabs p span { color: #627d98; }.history-tabs p strong { color: #102a43; }
.inventory-detail-modal h3 { margin: 1.3rem 0 .7rem; color: #102a43; }
.inventory-detail-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }
.inventory-detail-grid div { padding: .8rem; border-radius: 9px; background: #f8fafc; }
.inventory-detail-grid span, .inventory-detail-grid strong { display: block; }
.inventory-detail-grid span { color: #627d98; font-size: .72rem; }
.inventory-detail-grid strong { margin-top: .3rem; color: #102a43; font-size: .86rem; }
.inventory-history-list { display: grid; gap: .35rem; }
.inventory-history-list div { display: grid; grid-template-columns: 150px 1fr auto; gap: .8rem; padding: .65rem .8rem; border-bottom: 1px solid #edf2f7; color: #627d98; font-size: .8rem; }
.inventory-history-list b { color: #1f5d8f; }.inventory-history-list strong { color: #102a43; text-align: right; }
.stock-movement-list div { grid-template-columns: 145px 1fr 140px 150px; }.stock-movement-list small { grid-column: 2 / -1; color: #829ab1; }
.row-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.price-chart-wrap { overflow-x: auto; padding: 1rem 1.15rem 1.3rem; }
.price-chart { display: block; width: 100%; min-width: 700px; height: 330px; overflow: visible; background: linear-gradient(180deg, #fbfdff, #f5f9fd); border-radius: 12px; }
.chart-axis { stroke: #8da6bd; stroke-width: 1.2; }.chart-grid { stroke: #dfe9f2; stroke-width: 1; stroke-dasharray: 3 5; }.chart-label { fill: #627d98; font-size: 11px; }.chart-tick { text-anchor: middle; }
.chart-sale-line, .chart-cost-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }.chart-sale-line { stroke: #2563eb; }.chart-cost-line { stroke: #f59e0b; }.chart-sale-point { fill: #2563eb; stroke: #fff; stroke-width: 2; }.chart-cost-point { fill: #f59e0b; stroke: #fff; stroke-width: 2; }.chart-axis-note { margin-left: auto; color: #829ab1; font-size: .74rem; }
@media (max-width: 720px) { .client-editor .section-heading { align-items: flex-start; flex-direction: column; }.client-editor .filter-row, .client-editor .filter-row:nth-of-type(2), .client-editor .filter-row:nth-of-type(3) { grid-template-columns: 1fr; }.client-editor .button { width: 100%; }.inventory-detail-grid { grid-template-columns: repeat(2, 1fr); }.inventory-history-list div { grid-template-columns: 1fr; gap: .25rem; }.inventory-history-list strong { text-align: left; }.client-history-backdrop, .inventory-detail-backdrop { padding: 12px; }.client-history-modal, .inventory-detail-modal { padding: 18px; } }

.purchase-line-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr) auto; gap: 12px; align-items: end; margin: 16px 0 10px; padding: 0 1.15rem; }
.purchase-line-tools label { display: flex; flex-direction: column; gap: 6px; color: #486581; font-size: .8rem; font-weight: 700; }
.purchase-line-tools input { min-height: 42px; padding: .65rem .75rem; border: 1px solid #bcccdc; border-radius: 8px; background: #fff; color: #243b53; font-weight: 400; }
.purchase-summary { display: flex; gap: 28px; align-items: end; justify-content: flex-end; }
.purchase-summary > div { display: flex; flex-direction: column; gap: 4px; }
.purchase-summary > div span { color: #627d98; font-size: .86rem; }
.purchase-summary > div strong { font-size: 1rem; }
@media (max-width: 720px) { .purchase-line-tools, .purchase-summary { display: grid; grid-template-columns: 1fr; }.purchase-line-tools .button { width: 100%; }.purchase-summary { gap: 12px; } }

.modal-field { display: grid; gap: .45rem; color: #486581; font-size: .82rem; font-weight: 700; }.modal-field input { min-height: 42px; padding: .65rem .75rem; border: 1px solid #bcccdc; border-radius: 8px; background: #fff; color: #243b53; font-weight: 400; }
.modal-checkbox { display: flex; align-items: flex-start; gap: .5rem; color: #486581; font-size: .82rem; font-weight: 600; margin: .5rem 0; }.modal-checkbox input[type=checkbox] { width: 16px; height: 16px; margin-top: 2px; accent-color: #2563eb; }

.state-action-select { min-height: 32px; max-width: 150px; padding: .35rem .5rem; color: #243b53; background: #fff; border: 1px solid #b6d7f5; border-radius: 6px; font-size: .74rem; }
.catalog-modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(7,24,48,.68); backdrop-filter: blur(3px); }
.catalog-modal { width: min(1120px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 24px; border: 1px solid #d5e0ed; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(7,24,48,.3); }
.catalog-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid #e5ebf2; }.catalog-modal-header h2 { margin: 4px 0; color: #0b2a4a; }.catalog-modal-header p:not(.eyebrow) { margin: 0; color: #627d98; }
.catalog-editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.catalog-editor-grid label { display: grid; gap: 6px; color: #486581; font-size: .8rem; font-weight: 700; }.catalog-editor-grid input, .catalog-editor-grid select { min-height: 42px; padding: .65rem .75rem; border: 1px solid #bcccdc; border-radius: 8px; background: #fff; color: #243b53; font-weight: 400; }.catalog-editor-grid .check-field { display: flex; align-items: center; align-self: end; }.catalog-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }.catalog-modal-actions .confirm-button { margin-top: 0; }
@media (max-width: 760px) { .catalog-modal-backdrop { padding: 12px; }.catalog-modal { padding: 18px; }.catalog-editor-grid { grid-template-columns: 1fr; }.catalog-modal-actions { flex-direction: column; }.catalog-modal-actions .button { width: 100%; } }

.config-section-card-expanded { scroll-margin-top: 24px; }
.config-inline-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.config-inline-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: #10233f; }
.config-inline-form input, .config-inline-form select { min-height: 40px; border: 1px solid #b9cbe0; border-radius: 8px; padding: 9px 11px; background: #fff; color: #10233f; }
.config-inline-form .check-field { flex-direction: row; align-items: center; padding-top: 28px; }
.config-inline-form .check-field input { min-height: auto; width: 17px; }
.config-inline-form .config-section-footer { grid-column: 1 / -1; }
.certificate-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.certificate-status-grid div { display: grid; gap: 5px; padding: 14px; border: 1px solid #d8e3ef; border-radius: 10px; background: #f7faff; }
.certificate-status-grid span { color: #667085; font-size: .85rem; }
.certificate-status-grid strong { color: #10233f; }
@media (max-width: 1100px) { .config-inline-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .config-sections, .config-inline-form, .certificate-status-grid { grid-template-columns: 1fr; } .config-section-card-expanded { grid-column: auto; } .config-inline-form .config-section-footer { grid-column: auto; } }
.agenda-view-button { border: 1px solid #d5e0ed; border-radius: 7px; padding: .35rem .6rem; background: #fff; color: #486581; font-size: .75rem; font-weight: 700; cursor: pointer; }.agenda-view-button.active { background: #e8f1ff; border-color: #93c5fd; color: #1d4ed8; }
.agenda-month { padding: 1rem; }.agenda-month-weekdays, .agenda-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }.agenda-month-weekdays { margin-bottom: .35rem; color: #627d98; font-size: .7rem; text-align: center; text-transform: uppercase; }.agenda-month-day { display: flex; align-items: flex-start; justify-content: space-between; min-height: 58px; padding: .55rem; border: 1px solid #e6edf3; border-radius: 8px; background: #fff; color: #243b53; cursor: pointer; }.agenda-month-day:hover, .agenda-month-day.today { border-color: #2563eb; background: #eff6ff; }.agenda-month-day.muted { color: #9fb3c8; background: #f8fafc; }.agenda-month-day b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f59e0b; color: #fff; font-size: .68rem; }
.login-system-logo { display: block; width: 148px; height: 148px; object-fit: contain; margin-bottom: 22px; border-radius: 0; background: transparent; }
.login-shell { padding: 32px 20px; }
.login-card { margin: auto; }
.login-system-logo { margin: 0 auto 22px; }
.login-card .login-kicker, .login-card h1, .login-card > p { text-align: center; }
.login-card h1 { margin-top: 10px; }
.login-secondary-link { display: block; margin-top: 4px; text-align: center; }
.brand { display: flex; align-items: center; gap: 11px; }.aiventas-system-logo { display: block; width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; border-radius: 0; background: transparent; }.topbar-brand { display: flex; align-items: center; gap: 10px; }.topbar-system-logo { display: block; width: 46px; height: 46px; flex: 0 0 46px; object-fit: contain; border-radius: 0; background: transparent; }
.inventory-status { display: inline-block; padding: .28rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; white-space: nowrap; }.inventory-ok { color: #047857; background: #dcfce7; }.inventory-low { color: #b45309; background: #fef3c7; }.inventory-out { color: #b91c1c; background: #fee2e2; }
.metric-link { color: inherit; text-decoration: none; cursor: pointer; }
.inventory-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.inventory-kpi { background: #fff; border: 1px solid #e4e7ec; border-top: 3px solid #2563eb; border-radius: 12px; padding: 16px 18px; box-shadow: 0 3px 12px rgba(16,35,63,.04); }
.inventory-kpi span, .inventory-kpi small { display: block; color: #667085; font-size: 12px; }
.inventory-kpi strong { display: block; color: #10233f; font-size: 24px; margin: 8px 0 4px; }
.inventory-kpi small { color: #98a2b3; font-size: 11px; }
@media (max-width: 900px) { .inventory-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .inventory-kpi-grid { grid-template-columns: 1fr; } }
.metric-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 54, 91, .12); }
.inventory-alert-report { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; padding: 20px 24px; border: 1px solid #f4c36a; border-left: 4px solid #f59e0b; border-radius: 14px; background: linear-gradient(110deg, #fffaf0, #fff); }
.inventory-alert-report h2 { margin: 0 0 4px; color: #163b61; }
.inventory-alert-report p { margin: 0; color: #607d9d; }
.inventory-report-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 720px) { .inventory-alert-report { align-items: flex-start; flex-direction: column; } }
.facturacion-actions { display: flex; align-items: end; gap: 10px; white-space: nowrap; }
.facturacion-actions .button { width: auto; min-width: 130px; }
.facturacion-config-card { display: block; }
.facturacion-config-card .section-heading { align-items: center; }
.facturacion-config-row { display: flex; align-items: end; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.facturacion-config-row .field { flex: 1 1 170px; }
.facturacion-config-row .check-field { flex: 1 1 190px; }
.facturacion-config-row .facturacion-actions { flex: 0 0 auto; }
@media (max-width: 760px) { .facturacion-actions { width: 100%; flex-wrap: wrap; }.facturacion-actions .button { flex: 1 1 180px; } }
.sii-module-tabs { display: flex; align-items: stretch; gap: 5px; margin: -6px 0 18px; padding: 5px; overflow-x: auto; border: 1px solid #d8e3ef; border-radius: 12px; background: #eaf1f8; }
.sii-module-tabs button { display: inline-flex; align-items: center; gap: 7px; min-width: max-content; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: #45617d; font-size: .8rem; font-weight: 700; cursor: pointer; }.sii-module-tabs button span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: #dce7f2; color: #42627f; font-size: .62rem; }.sii-module-tabs button:hover { background: rgba(255,255,255,.65); }.sii-module-tabs button.active { background: #fff; color: #10233f; box-shadow: 0 2px 7px rgba(16,35,63,.1); }.sii-module-tabs button.active span { background: #2563eb; color: #fff; }.sii-module-tabs .emit-tab { margin-left: auto; color: #7c4a00; }.sii-module-tabs .emit-tab span, .sii-module-tabs .emit-tab.active span { background: #f59e0b; color: #10233f; }
.sii-workspace-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-bottom: 16px; padding: 22px; border: 1px solid #d8e3ef; border-radius: 14px; background: #fff; }.sii-workspace-card h2 { margin: 2px 0 4px; color: #10233f; }.sii-workspace-card p { margin: 0; color: #667085; }.sii-workspace-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: #e7f8ef; color: #087a3f; font-weight: 800; }.sii-workspace-icon.emit { background: #fff1cd; color: #8a5200; }
.sii-register-grid, .sii-emit-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.sii-register-grid a, .sii-emit-options article { display: grid; gap: 7px; min-height: 145px; padding: 20px; border: 1px solid #d8e3ef; border-radius: 13px; background: #fff; text-decoration: none; box-shadow: 0 3px 12px rgba(16,35,63,.04); }.sii-register-grid span { color: #2563eb; font-size: .7rem; font-weight: 800; letter-spacing: .1em; }.sii-register-grid strong, .sii-emit-options strong { color: #10233f; font-size: 1.05rem; }.sii-register-grid small, .sii-emit-options p { color: #667085; line-height: 1.5; }.sii-register-grid a:hover { border-color: #93c5fd; transform: translateY(-1px); }
.sii-readiness-card { position: relative; display: grid; gap: 16px; margin-bottom: 18px; padding: 20px; overflow: hidden; border: 1px solid #f0b7b1; border-radius: 14px; background: linear-gradient(135deg, #fff 0%, #fff7f6 100%); box-shadow: 0 5px 18px rgba(16,35,63,.05); }.sii-readiness-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #dc2626; }.sii-readiness-card.verde { border-color: #b7e4c7; background: linear-gradient(135deg, #fff 0%, #f2fcf5 100%); }.sii-readiness-card.verde::before { background: #16a34a; }.sii-readiness-card.amarillo { border-color: #f6d48b; background: linear-gradient(135deg, #fff 0%, #fff9ec 100%); }.sii-readiness-card.amarillo::before { background: #f59e0b; }
.sii-readiness-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }.sii-readiness-heading h2 { margin: 3px 0 5px; color: #10233f; font-size: 1.25rem; }.sii-readiness-heading p { margin: 0; color: #60758c; font-size: .82rem; }.sii-readiness-light { width: 18px; height: 18px; border: 4px solid #fee2e2; border-radius: 50%; background: #dc2626; box-shadow: 0 0 0 6px rgba(220,38,38,.08); }.sii-readiness-card.verde .sii-readiness-light { border-color: #dcfce7; background: #16a34a; box-shadow: 0 0 0 6px rgba(22,163,74,.08); }.sii-readiness-card.amarillo .sii-readiness-light { border-color: #fef3c7; background: #f59e0b; box-shadow: 0 0 0 6px rgba(245,158,11,.09); }.sii-readiness-status { padding: 6px 10px; border-radius: 99px; background: #fee2e2; color: #b42318; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }.sii-readiness-card.verde .sii-readiness-status { background: #dcfce7; color: #087a3f; }.sii-readiness-card.amarillo .sii-readiness-status { background: #fef3c7; color: #925600; }
.sii-readiness-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.sii-readiness-checks article { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 11px 12px; border: 1px solid #dce6ef; border-radius: 10px; background: rgba(255,255,255,.86); }.sii-readiness-checks article > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; font-size: .66rem; font-weight: 900; }.sii-readiness-checks article > div { display: grid; gap: 2px; min-width: 0; }.sii-readiness-checks article strong { color: #173454; font-size: .8rem; }.sii-readiness-checks article small { color: #60758c; font-size: .72rem; line-height: 1.35; }.sii-readiness-checks article.complete > span { background: #dcfce7; color: #087a3f; }.sii-readiness-checks article.pending > span { background: #fee2e2; color: #b42318; }.sii-production-approved, .sii-production-confirm { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 10px; background: #ecfdf3; color: #17623a; }.sii-production-approved { flex-wrap: wrap; }.sii-production-approved span { font-size: .76rem; }.sii-production-confirm label { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; }
.sii-certification-card { margin-bottom: 18px; padding: 20px; border: 1px solid #cfe0f1; border-radius: 14px; background: linear-gradient(135deg, #fff 0%, #f7fbff 100%); box-shadow: 0 5px 18px rgba(16,35,63,.05); }
.sii-certification-heading { margin-bottom: 16px; }.sii-certification-heading h2 { margin: 2px 0 4px; color: #10233f; }.sii-certification-heading p { margin: 0; color: #667085; }
.sii-progress-summary { display: grid; grid-template-columns: auto 150px; align-items: center; gap: 5px 10px; min-width: 290px; }.sii-progress-summary strong { color: #173454; font-size: .8rem; }.sii-progress-summary > span { height: 8px; overflow: hidden; border-radius: 99px; background: #dce7f2; }.sii-progress-summary i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #16a34a); }.sii-progress-summary small { grid-column: 1 / -1; color: #71869c; text-align: right; font-size: .68rem; }
.sii-stage-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.sii-stage { display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 12px; border: 1px solid #d8e3ef; border-radius: 11px; background: #fff; }
.sii-stage > span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #e8eef5; color: #60758c; font-weight: 800; }.sii-stage div { display: grid; gap: 3px; min-width: 0; }.sii-stage strong { color: #15324f; font-size: .82rem; }.sii-stage small { color: #71869c; font-size: .68rem; }.sii-stage > button { display: grid; place-items: center; width: 23px; height: 23px; margin-left: auto; border: 1px solid #b9cbe0; border-radius: 50%; background: #fff; color: #2563eb; font-weight: 800; cursor: pointer; }.sii-stage > button:hover { border-color: #2563eb; background: #eff6ff; }
.sii-stage.done { border-color: #b7e4c7; background: #f3fcf6; }.sii-stage.done > span { background: #16a34a; color: #fff; }.sii-stage.current { border-color: #f6c86c; background: #fff9ec; }.sii-stage.current > span { background: #f59e0b; color: #10233f; }
.sii-stage { cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }.sii-stage:hover { transform: translateY(-1px); box-shadow: 0 5px 13px rgba(16,35,63,.08); }.sii-stage.selected { outline: 2px solid #2563eb; outline-offset: 2px; }.sii-stage.rejected { border-color: #f4b4ae; background: #fff5f4; }.sii-stage.rejected > span { background: #dc2626; color: #fff; }
.sii-stage-editor { margin-top: 14px; padding: 16px; border: 1px solid #bfd4ea; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(16,35,63,.05); }.sii-stage-editor-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }.sii-stage-editor-title h3 { margin: 2px 0 0; color: #10233f; }.sii-stage-editor-fields { display: grid; grid-template-columns: 1.1fr 1.1fr .8fr .8fr; gap: 11px; }.sii-stage-editor-fields .wide { grid-column: span 2; }.sii-stage-editor-fields textarea { resize: vertical; }.sii-stage-evidence { display: grid; gap: 7px; margin-top: 12px; padding: 11px; border-radius: 9px; background: #f5f8fc; color: #173454; font-size: .76rem; }.sii-stage-evidence > div { display: flex; flex-wrap: wrap; gap: 6px; }.sii-stage-evidence span { max-width: 310px; overflow: hidden; padding: 5px 8px; border: 1px solid #d8e3ef; border-radius: 7px; background: #fff; color: #60758c; text-overflow: ellipsis; white-space: nowrap; }.sii-approval-confirm { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-left: 4px solid #16a34a; border-radius: 7px; background: #eefbf2; color: #17623a; font-size: .78rem; font-weight: 700; }.sii-stage-editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 12px; }.sii-stage-editor-actions small { color: #71869c; }.sii-stage-editor-actions .button { min-width: 145px; }
.sii-readiness-grid { display: grid; grid-template-columns: .8fr .7fr 1.5fr; gap: 10px; margin-top: 12px; }.sii-readiness-grid > div { display: grid; gap: 4px; padding: 12px; border: 1px solid #d8e3ef; border-radius: 10px; background: #fff; }.sii-readiness-grid span { color: #71869c; font-size: .72rem; }.sii-readiness-grid strong, .sii-readiness-grid code { color: #173454; font-size: .78rem; overflow-wrap: anywhere; }.sii-readiness-grid .ready { color: #087a3f; }.sii-readiness-grid .missing { color: #b42318; }
.sii-exchange-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 14px; border-left: 4px solid #2563eb; border-radius: 9px; background: #edf5ff; }.sii-exchange-panel strong { color: #123454; }.sii-exchange-panel p { margin: 4px 0 0; color: #60758c; font-size: .78rem; }.sii-file-button { position: relative; flex: 0 0 auto; overflow: hidden; cursor: pointer; }.sii-file-button input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sii-print-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 10px; padding: 14px; border-left: 4px solid #f59e0b; border-radius: 9px; background: #fff8e8; }.sii-print-panel strong { color: #123454; }.sii-print-panel p { margin: 4px 0 0; color: #60758c; font-size: .78rem; }.sii-print-panel .button { flex: 0 0 auto; text-decoration: none; }
.sii-exchange-files { display: grid; gap: 7px; margin-top: 10px; }.sii-exchange-files article { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #d8e3ef; border-radius: 9px; background: #fff; }.sii-exchange-files article > div { display: grid; min-width: 0; }.sii-exchange-files strong, .sii-exchange-files small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.sii-exchange-files small { color: #71869c; font-size: .7rem; }.sii-exchange-files .state-pill { margin-left: auto; white-space: nowrap; }
.sii-help-modal { width: min(820px, calc(100vw - 32px)); max-height: min(820px, calc(100vh - 32px)); overflow-y: auto; }.sii-format-box { display: grid; gap: 5px; margin: 15px 0; padding: 13px 15px; border-left: 4px solid #2563eb; border-radius: 8px; background: #edf5ff; }.sii-format-box strong { color: #173454; }.sii-format-box span { color: #54708c; font-size: .82rem; line-height: 1.45; }.sii-help-route, .sii-help-warning, .sii-no-template { display: grid; gap: 5px; margin: 14px 0; padding: 12px 14px; border-radius: 9px; }.sii-help-route { border: 1px solid #c6d9ee; background: #f6faff; }.sii-help-route span { color: #667f99; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.sii-help-route strong { color: #123454; font-size: .84rem; }.sii-help-warning { border-left: 4px solid #ef4444; background: #fff2f1; }.sii-help-warning strong { color: #a5261d; }.sii-help-warning span, .sii-no-template span { color: #60758c; font-size: .78rem; line-height: 1.45; }.sii-no-template { border: 1px dashed #c9d6e4; background: #f8fafc; }.sii-no-template strong { color: #425f7b; }.sii-file-map { display: grid; gap: 7px; margin: 14px 0; }.sii-file-map > div { display: grid; grid-template-columns: 58px minmax(0, 1fr) 1fr; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #d7e3ef; border-radius: 8px; background: #fff; }.sii-file-map span { color: #2563eb; font-size: .68rem; font-weight: 900; text-transform: uppercase; }.sii-file-map strong { color: #173454; font-size: .76rem; overflow-wrap: anywhere; }.sii-file-map small { color: #71869c; font-size: .7rem; }.sii-template-section { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 13px 14px; border: 1px solid #b9dfc7; border-radius: 10px; background: #f2fbf5; }.sii-template-section > div:first-child { display: grid; gap: 3px; }.sii-template-section strong { color: #17623a; }.sii-template-section small { color: #5f7869; font-size: .7rem; }.sii-template-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }.sii-template-links a { padding: 7px 10px; border: 1px solid #91caa6; border-radius: 7px; background: #fff; color: #126338; font-size: .72rem; font-weight: 800; text-decoration: none; }.sii-template-links a:hover { border-color: #16a34a; background: #ecfdf3; }.sii-help-modal .help-steps { margin: 14px 0; padding-left: 24px; }.sii-help-modal .help-steps li { margin: 7px 0; padding-left: 3px; color: #425f7b; font-size: .82rem; line-height: 1.45; }
@media (max-width: 640px) { .sii-file-map > div { grid-template-columns: 52px 1fr; }.sii-file-map small { grid-column: 2; }.sii-template-section { align-items: stretch; flex-direction: column; }.sii-template-links { justify-content: flex-start; } }
@media (max-width: 1250px) { .sii-stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1050px) { .sii-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.sii-readiness-grid { grid-template-columns: 1fr; }.sii-certification-heading { align-items: flex-start; flex-direction: column; }.sii-progress-summary { width: 100%; } }
@media (max-width: 1050px) { .sii-stage-editor-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sii-workspace-card { grid-template-columns: auto 1fr; }.sii-workspace-card > :last-child { grid-column: 1 / -1; }.sii-register-grid, .sii-emit-options { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sii-stage-grid { grid-template-columns: 1fr; }.sii-exchange-panel, .sii-print-panel { align-items: stretch; flex-direction: column; }.sii-exchange-files article { align-items: flex-start; flex-wrap: wrap; }.sii-exchange-files .state-pill { margin-left: 48px; } }
@media (max-width: 760px) { .sii-readiness-heading { grid-template-columns: auto 1fr; }.sii-readiness-status { grid-column: 1 / -1; justify-self: start; }.sii-readiness-checks { grid-template-columns: 1fr; }.sii-production-confirm { align-items: stretch; flex-direction: column; } }
@media (max-width: 640px) { .sii-stage-editor-fields { grid-template-columns: 1fr; }.sii-stage-editor-fields .wide { grid-column: auto; }.sii-stage-editor-actions { align-items: stretch; flex-direction: column; }.sii-stage-editor-actions .button { width: 100%; } }

.sii-prevalidation-panel { margin-top: 12px; padding: 15px; border: 1px solid #c9d9eb; border-radius: 11px; background: #fff; }.sii-prevalidation-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.sii-prevalidation-intro strong { color: #123454; }.sii-prevalidation-intro p { margin: 4px 0 0; color: #60758c; font-size: .78rem; }.sii-validation-result { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 13px; padding: 12px 14px; border-radius: 9px; }.sii-validation-result > div { display: grid; gap: 3px; }.sii-validation-result span { font-size: .67rem; font-weight: 900; letter-spacing: .08em; }.sii-validation-result small { opacity: .78; }.sii-validation-result.valid { border: 1px solid #a7e1bd; background: #effbf3; color: #126338; }.sii-validation-result.invalid { border: 1px solid #f1b0aa; background: #fff3f2; color: #a5261d; }.sii-validation-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }.sii-validation-checks article { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border: 1px solid #dce6ef; border-radius: 8px; background: #f8fafc; }.sii-validation-checks article > span { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; border-radius: 50%; background: #dce7f2; color: #49657f; font-size: .65rem; font-weight: 900; }.sii-validation-checks article > div { display: grid; gap: 2px; }.sii-validation-checks article strong { color: #173454; font-size: .76rem; }.sii-validation-checks article small { color: #60758c; font-size: .7rem; line-height: 1.35; }.sii-validation-checks article.correcto > span { background: #16a34a; color: #fff; }.sii-validation-checks article.advertencia > span { background: #f59e0b; color: #10233f; }.sii-validation-checks article.error > span { background: #dc2626; color: #fff; }.sii-validation-path { margin: 9px 0 0; color: #71869c; font-size: .7rem; overflow-wrap: anywhere; }
@media (max-width: 640px) { .sii-prevalidation-intro, .sii-validation-result { align-items: stretch; flex-direction: column; }.sii-validation-checks { grid-template-columns: 1fr; } }
.sii-inbox-panel { margin-top: 12px; padding: 14px; border: 1px solid #cfe0f1; border-radius: 11px; background: #fff; }.sii-inbox-panel .section-heading { margin-bottom: 10px; }.sii-inbox-panel h3 { margin: 2px 0 3px; color: #10233f; }.sii-inbox-panel p { margin: 0; color: #60758c; font-size: .76rem; }.sii-inbox-table { min-width: 1050px; }.sii-inbox-table td > small { display: block; margin-top: 3px; color: #829ab1; }.sii-inbox-table select, .sii-inbox-table input { min-height: 36px; padding: 7px 9px; border: 1px solid #c6d6e6; border-radius: 7px; background: #fff; }.sii-inbox-table input { min-width: 230px; }
.sii-evidence-library { margin-top: 12px; padding: 14px; border: 1px solid #cfe0f1; border-radius: 11px; background: #fff; }.sii-evidence-library h3 { margin: 2px 0 3px; color: #10233f; }.sii-evidence-library .section-heading p { margin: 0; color: #60758c; font-size: .76rem; }.sii-evidence-columns { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }.sii-evidence-column { overflow: hidden; border: 1px solid #dce6ef; border-radius: 10px; background: #f8fafc; }.sii-evidence-column-title { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border-bottom: 1px solid #dce6ef; color: #173454; }.sii-evidence-column-title span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: #e2ecf6; font-size: .7rem; font-weight: 800; }.sii-history-item { border-bottom: 1px solid #e1e8f0; background: #fff; }.sii-history-item:last-child { border-bottom: 0; }.sii-history-item summary { display: flex; align-items: center; gap: 9px; padding: 10px 12px; cursor: pointer; }.sii-history-item summary > div { display: grid; min-width: 0; }.sii-history-item summary strong, .sii-history-item summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.sii-history-item summary small { color: #71869c; font-size: .68rem; }.sii-history-item summary b { margin-left: auto; color: #54708c; font-size: .66rem; }.validation-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; }.validation-dot.valid { background: #16a34a; }.validation-dot.invalid { background: #dc2626; }.sii-history-checks { display: grid; gap: 5px; padding: 0 12px 11px 31px; }.sii-history-checks p { display: grid; grid-template-columns: 82px 110px 1fr; align-items: start; gap: 7px; margin: 0; font-size: .7rem; }.sii-history-checks p > span { font-weight: 800; }.sii-history-checks p > span.correcto { color: #087a3f; }.sii-history-checks p > span.advertencia { color: #a15c00; }.sii-history-checks p > span.error { color: #b42318; }.sii-history-checks small { color: #60758c; line-height: 1.35; }.sii-pdf-item { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid #e1e8f0; background: #fff; }.sii-pdf-item:last-child { border-bottom: 0; }.sii-pdf-item > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #fee2e2; color: #b42318; font-size: .65rem; font-weight: 900; }.sii-pdf-item > div { display: grid; min-width: 0; }.sii-pdf-item strong, .sii-pdf-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.sii-pdf-item small { color: #71869c; font-size: .68rem; }.sii-pdf-item a { margin-left: auto; text-decoration: none; }
@media (max-width: 900px) { .sii-evidence-columns { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sii-history-checks p { grid-template-columns: 1fr; } }
.superadmin-badge { border: 1px solid #f59e0b; color: #9a5a00; background: #fff7e6; border-radius: 999px; padding: .55rem .9rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.supervision-toolbar { display: flex; align-items: end; gap: 1rem; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; border: 1px solid #cfe0f1; border-radius: 14px; background: #fff; }
.supervision-toolbar > div { display: grid; gap: .2rem; flex: 1; }
.supervision-toolbar strong { color: #0d2d50; font-size: 1.15rem; }
.supervision-toolbar small { color: #6b85a0; }
.supervision-toolbar select { min-width: 290px; }
.supervision-toolbar { flex-wrap: wrap; }
.supervision-select { width: min(100%, 360px); min-width: 0 !important; min-height: 42px; padding: 10px 38px 10px 13px; border: 1px solid #bfd0e2; border-radius: 9px; background: #fff; color: #173454; font: inherit; }
.supervision-change-button { min-height: 42px; white-space: nowrap; }
.active-company-chip { display: grid; gap: 1px; padding-left: 12px; margin-left: 4px; border-left: 1px solid #d7e0ea; color: #173454; white-space: nowrap; }
.active-company-chip strong { font-size: 12px; }
.active-company-chip small { color: #6b85a0; font-size: 10px; }
@media (max-width: 760px) { .supervision-toolbar > div, .supervision-select, .supervision-change-button { width: 100%; } }
.supervision-metrics .metric-card strong { font-size: 1.65rem; }
.supervision-card { margin-top: 1.25rem; }
.status-pill, .contract-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: .3rem .65rem; background: #eef5ff; color: #22649a; font-size: .78rem; font-weight: 700; }
.supervision-table td small { display: block; color: #7890a8; margin-top: .2rem; }
.supervision-table .selected-row { background: #f4f9ff; }
.state-active { color: #087a4b; font-weight: 700; }
.state-inactive { color: #b42318; font-weight: 700; }
.supervision-title { display: flex; align-items: center; gap: 1rem; }
.supervision-logo { width: 64px; height: 64px; object-fit: contain; }
.tracking-environment.simulation {
    background: #fff3d6;
    color: #995d00;
}

.tracking-environment.production {
    background: #dff8e8;
    color: #08743d;
}

.tracking-code {
    white-space: nowrap;
    color: #1d5f94;
    font-family: Consolas, monospace;
    font-size: .78rem;
}
