:root{--primary: #1e293b;--primary-foreground: #ffffff;--background: #f8fafc;--foreground: #0f172a;--card: #ffffff;--card-foreground: #0f172a;--popover: #ffffff;--popover-foreground: #0f172a;--border: #e2e8f0;--input: #e2e8f0;--ring: #1e293b;--radius: .5rem;--sidebar-width: 260px;--sidebar-collapsed-width: 64px;--sidebar-bg: #ffffff;--sidebar-foreground: #64748b;--sidebar-active-bg: #f1f5f9;--sidebar-active-foreground: #0f172a;--topbar-height: 56px;--danger: #ef4444;--danger-foreground: #ffffff}*{box-sizing:border-box;margin:0;padding:0}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background-color:var(--background);color:var(--foreground);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{text-decoration:none;color:inherit}ul{list-style:none}button{cursor:pointer;border:none;background:none;font-family:inherit}.app-container{display:flex;min-height:100vh}.main-content{flex:1;display:flex;flex-direction:column;min-width:0}.page-content{padding:1.5rem;flex:1}.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0 1.5rem;min-height:var(--topbar-height);border-bottom:1px solid var(--border);background-color:#fff}.topbar-search{flex:1}.topbar-search-box{position:relative;width:min(100%,320px)}.topbar-search-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:#94a3b8}.topbar-actions{display:flex;align-items:center;gap:1rem}.topbar-filter-card{display:flex;align-items:center;gap:.75rem;padding:.5rem .75rem;border:1px solid var(--border);border-radius:.75rem;background:#f8fafc}.topbar-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:.75rem}.topbar-filter-field{display:flex;flex-direction:column;gap:.2rem}.topbar-date-input{min-width:0;height:34px;border:1px solid var(--border);border-radius:.6rem;padding:0 .7rem;background:#fff;color:#0f172a;font:inherit}.topbar-context-card{display:flex;align-items:center;gap:.75rem;min-width:240px;padding:.5rem .75rem;border:1px solid var(--border);border-radius:.75rem;background:#f8fafc}.topbar-context-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:#fff;border:1px solid var(--border);color:#475569}.topbar-context-copy{display:flex;flex-direction:column;gap:.125rem;min-width:0}.topbar-context-label{font-size:.6875rem;letter-spacing:.04em;text-transform:uppercase;color:#94a3b8;font-weight:700}.topbar-context-value{font-size:.875rem;color:#0f172a}.topbar-negocio-select{border:none;background:transparent;color:#0f172a;font-size:.875rem;font-weight:600;padding:0;outline:none}.topbar-icon-button{padding:.5rem;border-radius:999px;display:flex;align-items:center;justify-content:center}.help-launcher{display:inline-flex;align-items:center;gap:.5rem;height:36px;padding:0 .85rem;border-radius:999px;border:1px solid var(--border);background:#fff7ed;color:#9a3412;font-weight:600;position:relative}.help-launcher:hover{background:#ffedd5}.help-launcher-badge{min-width:20px;height:20px;padding:0 .35rem;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#ea580c;color:#fff;font-size:.72rem;font-weight:700}.user-profile{display:flex;align-items:center;gap:.75rem;padding-left:1rem;border-left:1px solid var(--border)}.user-info{display:flex;flex-direction:column;align-items:flex-end}.user-name{font-weight:600;font-size:.875rem}.user-role{font-size:.75rem;color:#64748b}.user-avatar{width:32px;height:32px;border-radius:50%;background-color:#f1f5f9;display:flex;align-items:center;justify-content:center;border:1px solid var(--border)}.sidebar{transition:width .3s ease;overflow-x:hidden;display:flex;flex-direction:column;height:100vh;position:sticky;top:0;background-color:var(--sidebar-bg);border-right:1px solid var(--border);z-index:20}.sidebar-nav{flex:1;overflow-y:auto;padding:.5rem 0}.sidebar-item{display:flex;align-items:center;gap:.75rem;padding:.5rem 1rem;color:var(--sidebar-foreground);font-size:.875rem;font-weight:500;transition:all .2s;border-radius:var(--radius);margin:.125rem .5rem}.sidebar-item:hover{background-color:var(--sidebar-active-bg);color:var(--sidebar-active-foreground)}.sidebar-item.active{background-color:var(--sidebar-active-bg);color:var(--sidebar-active-foreground);font-weight:600}.sidebar-section-header{display:flex;align-items:center;justify-content:space-between;width:100%;padding:.75rem 1rem .25rem;color:#94a3b8;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.sidebar-section-header.active{color:var(--sidebar-active-foreground);background-color:#f1f5f9d9;border-radius:var(--radius)}.sidebar-section-header.active .chevron{color:#334155}.sidebar-collapsed .sidebar-item{justify-content:center;padding:.5rem;margin:.25rem}.sidebar-collapsed .sidebar-item span,.sidebar-collapsed .sidebar-section-header span,.sidebar-collapsed .sidebar-item .chevron{display:none}.sidebar-collapsed .sidebar-section-header{justify-content:center;padding:.75rem 0 .25rem}.sidebar-collapsed .logo-text{display:none}.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius);font-weight:500;transition:all .2s;cursor:pointer;border:none;font-family:inherit}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background-color:var(--primary);color:var(--primary-foreground)}.btn-primary:hover{background-color:#0f172a}.btn-danger{background-color:var(--danger);color:var(--danger-foreground)}.btn-danger:hover{background-color:#dc2626}.btn-secondary{background-color:#f1f5f9;color:#0f172a}.btn-secondary:hover{background-color:#e2e8f0}.btn-outline{background-color:transparent;border:1px solid var(--border);color:#0f172a}.btn-outline:hover{background-color:#f8fafc}.btn-ghost{background-color:transparent;color:#0f172a}.btn-ghost:hover{background-color:#f1f5f9}.btn-sm{padding:.5rem .75rem;font-size:.875rem}.btn-md{padding:.625rem 1rem;font-size:.875rem}.btn-lg{padding:.75rem 1.5rem;font-size:1rem}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;box-shadow:0 1px 3px #0000001a}.input{width:100%;padding:.625rem .75rem;border-radius:var(--radius);border:1px solid var(--input);background:#fff;font-size:.875rem;outline:none;transition:border-color .2s}.input:focus{border-color:var(--primary);ring:2px solid var(--primary)}.table-container{width:100%;overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius)}.table{width:100%;border-collapse:collapse;text-align:left;font-size:.875rem}.table th{background:#f8fafc;padding:.75rem 1rem;font-weight:600;border-bottom:1px solid var(--border);color:#64748b}.table td{padding:.75rem 1rem;border-bottom:1px solid var(--border)}.table tr:last-child td{border-bottom:none}.badge{display:inline-flex;align-items:center;border-radius:9999px;padding:.125rem .625rem;font-size:.75rem;font-weight:500;background:#f1f5f9;color:#475569}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}.dropdown-menu{position:absolute;top:100%;z-index:50;min-width:220px;margin-top:.5rem;background-color:#fff;border:1px solid var(--border);border-radius:.375rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;padding:.25rem 0}.dropdown-item{width:100%;display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;font-size:.875rem;background-color:transparent;border:none;cursor:pointer;text-align:left;color:var(--foreground)}.dropdown-item:hover{background-color:#f1f5f9}.dropdown-item.danger{color:var(--danger)}.textarea{min-height:110px;resize:vertical}.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.catalog-toolbar-main{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.catalog-search{position:relative;display:flex;align-items:center;gap:.5rem;min-width:min(100%,360px)}.catalog-search .input{margin-bottom:0}.catalog-results{font-size:.875rem;color:#64748b}.catalog-filters{display:flex;align-items:center;gap:.75rem}.catalog-filters>div{margin-bottom:0}.catalog-primary-cell{display:flex;flex-direction:column;gap:.25rem}.catalog-primary-cell span{color:#64748b;font-size:.8125rem}.row-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.table-placeholder{text-align:center;padding:2rem;color:#64748b}.table-placeholder-content{display:inline-flex;align-items:center;gap:.5rem}.empty-state{display:inline-flex;flex-direction:column;align-items:center;gap:.5rem;color:#64748b}.empty-state strong{color:#0f172a}.pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;flex-wrap:wrap}.pagination-bar span{font-size:.875rem;color:#64748b}.pagination-actions{display:flex;gap:.5rem}.help-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:1rem}.help-context-card,.help-checklist{background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid var(--border);border-radius:1rem;padding:1rem 1.1rem;box-shadow:0 10px 30px #0f172a0f}.help-context-card{display:grid;grid-template-columns:auto 1fr auto;gap:1rem;align-items:center;margin-bottom:1rem}.help-context-icon,.help-drawer-icon{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:.9rem;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}.help-context-body h3,.help-checklist h3,.help-drawer-title h2{font-size:1.05rem;color:#0f172a}.help-muted,.help-drawer-summary,.help-checklist-copy p,.help-drawer-section p{color:#64748b;line-height:1.5}.help-context-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;justify-content:flex-end}.help-eyebrow{margin-bottom:.25rem;color:#c2410c;text-transform:uppercase;letter-spacing:.05em;font-size:.72rem;font-weight:700}.help-checklist-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.help-checklist-progress{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.help-checklist-progress span{color:#64748b;font-size:.875rem}.help-checklist-progress-bar{flex:1;height:10px;border-radius:999px;background:#e2e8f0;overflow:hidden}.help-checklist-progress-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#f97316,#fb923c)}.help-checklist-progress-fill--success{background:linear-gradient(90deg,#16a34a,#22c55e)}.help-checklist-empty{margin-bottom:1rem;padding:.9rem 1rem;border-radius:.9rem;border:1px dashed #fdba74;background:#fff7ed}.help-checklist-empty--success{border-color:#86efac;background:#f0fdf4}.help-checklist-empty strong{display:block;margin-bottom:.35rem;color:#9a3412}.help-checklist-empty--success strong{color:#166534}.help-checklist-empty p{color:#7c2d12;line-height:1.5}.help-checklist-items{display:flex;flex-direction:column;gap:.75rem}.help-checklist-item{display:grid;grid-template-columns:auto 1fr auto;gap:.75rem;align-items:start;padding:.8rem .85rem;border:1px solid var(--border);border-radius:.9rem;background:#fff}.help-checklist-item.done{border-color:#bbf7d0;background:#f0fdf4}.help-checklist-toggle{color:#16a34a;display:inline-flex;align-items:center;justify-content:center;padding-top:.1rem}.help-checklist-copy{display:flex;flex-direction:column;gap:.2rem}.help-checklist-copy strong{color:#0f172a;font-size:.93rem}.help-link-button{color:#2563eb;font-weight:600;font-size:.875rem}.help-checklist.compact{padding:0;border:none;box-shadow:none;background:transparent}.help-checklist-hidden{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;border:1px dashed #cbd5e1;border-radius:1rem;background:#f8fafc}.help-checklist-hidden strong{display:block;color:#0f172a;margin-bottom:.25rem}.help-checklist-hidden p{margin:0;color:#64748b;font-size:.92rem}.help-drawer-backdrop{position:fixed;inset:0;background:#0f172a73;z-index:79}.help-drawer{position:fixed;top:0;right:0;width:min(430px,100vw);height:100vh;background:#fff;border-left:1px solid var(--border);box-shadow:-20px 0 60px #0f172a1f;z-index:80;transform:translate(100%);transition:transform .25s ease;display:flex;flex-direction:column;padding:1.25rem;gap:1rem;overflow-y:auto}.help-drawer.open{transform:translate(0)}.help-drawer-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.help-drawer-title{display:flex;gap:.85rem;align-items:center}.help-drawer-close{width:36px;height:36px;border-radius:999px;background:#f8fafc;border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;color:#475569}.help-drawer-sections{display:flex;flex-direction:column;gap:.9rem}.help-drawer-section{padding:1rem;border:1px solid var(--border);border-radius:1rem;background:#f8fafc}.help-drawer-section h3{margin-bottom:.45rem;color:#0f172a}.help-drawer-section ul{margin-top:.75rem;display:flex;flex-direction:column;gap:.6rem}.help-drawer-section li{display:flex;align-items:flex-start;gap:.45rem;color:#334155}.help-drawer-footer{margin-top:auto;padding-top:.5rem}.help-drawer-tour{display:flex;align-items:end;justify-content:space-between;gap:1rem;padding:.95rem 1rem;border-radius:1rem;border:1px solid #fed7aa;background:linear-gradient(180deg,#fff7ed,#fffbeb)}.help-drawer-tour strong{display:block;margin-bottom:.2rem;color:#9a3412}.help-drawer-tour p{margin:0;color:#7c2d12;line-height:1.45;font-size:.92rem}.help-tour-layer{position:fixed;inset:0;z-index:110}.help-tour-backdrop{position:fixed;inset:0;background:#0f172a59}.help-tour-spotlight{z-index:111}.help-tour-card{position:fixed;right:1rem;bottom:1rem;z-index:112;width:min(100vw - 2rem,380px);padding:1rem;border-radius:1rem;border:1px solid #cbd5e1;background:#fffffffa;box-shadow:0 24px 60px #0f172a2e;display:grid;gap:.85rem}.help-tour-header{display:flex;justify-content:space-between;gap:1rem;align-items:start}.help-tour-header strong{display:block;color:#0f172a;font-size:1rem}.help-tour-close{width:34px;height:34px;border-radius:999px;border:1px solid #e2e8f0;background:#f8fafc;display:inline-flex;align-items:center;justify-content:center;color:#475569}.help-tour-body{color:#334155;line-height:1.5}.help-tour-progress{display:grid;gap:.45rem}.help-tour-progress span{font-size:.82rem;color:#64748b;font-weight:600}.help-tour-progress-bar{height:8px;border-radius:999px;background:#e2e8f0;overflow:hidden}.help-tour-progress-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#38bdf8)}.help-tour-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.help-tour-footnote{color:#64748b;font-size:.86rem}.catalog-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.form-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1rem}.form-loading{min-height:220px;display:flex;align-items:center;justify-content:center;gap:.5rem;color:#64748b}.inline-alert{padding:.875rem 1rem;border-radius:var(--radius);margin-bottom:1rem;font-size:.875rem}.inline-alert.error{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c}.checkbox-field{display:flex;align-items:flex-start;gap:.75rem;padding:.875rem 1rem;border:1px solid var(--border);border-radius:var(--radius);background:#f8fafc}.checkbox-field input{margin-top:.125rem}.checkbox-field span{display:flex;flex-direction:column;gap:.25rem}.checkbox-field small{color:#64748b;font-size:.8125rem}.badge-success{background:#dcfce7;color:#166534}.badge-muted{background:#e2e8f0;color:#475569}.badge-warning{background:#fef3c7;color:#92400e}.badge-default{gap:.35rem;background:#fef3c7;color:#92400e}.audit-page{display:grid;gap:1.25rem}.audit-hero,.audit-panel{border:1px solid var(--border);border-radius:1rem;background:var(--card);box-shadow:0 10px 30px #0f172a0d}.audit-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:1rem;padding:1.1rem 1.15rem;background:linear-gradient(135deg,#0f766e0f,#fff 55%)}.audit-hero-copy{display:grid;gap:.45rem}.audit-eyebrow{color:#0f766e;text-transform:uppercase;letter-spacing:.06em;font-size:.72rem;font-weight:700}.audit-hero-copy strong{font-size:1.1rem;color:#0f172a}.audit-hero-copy p,.audit-panel-title p,.audit-muted{color:#64748b;line-height:1.5}.audit-hero-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.audit-metric-card{display:grid;gap:.25rem;padding:.95rem 1rem;border-radius:.9rem;border:1px solid rgba(15,118,110,.16);background:#ffffffe0}.audit-metric-label{font-size:.76rem;text-transform:uppercase;letter-spacing:.05em;color:#0f766e;font-weight:700}.audit-metric-card strong{font-size:1.65rem;line-height:1;color:#0f172a}.audit-metric-card small{color:#64748b}.audit-panel{display:grid;gap:1rem;padding:1rem 1.1rem}.audit-panel-header{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;align-items:flex-start}.audit-panel-title{display:flex;gap:.75rem;align-items:flex-start}.audit-panel-icon{width:2.2rem;height:2.2rem;border-radius:.8rem;display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;background:#f8fafc;color:#334155}.audit-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.85rem}.audit-filter-grid>div{margin-bottom:0}.audit-filter-footer{display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap;align-items:center;padding-top:.2rem}.audit-inline-note{display:inline-flex;align-items:center;gap:.45rem;color:#475569;font-size:.92rem;font-weight:500}.audit-event-list{display:grid;gap:.9rem}.audit-event-card{display:grid;gap:.7rem;padding:1rem 1.05rem;border-radius:.95rem;border:1px solid var(--border);background:linear-gradient(180deg,#fff,#f8fafc)}.audit-event-header{display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.audit-badges{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.audit-timestamp{color:#64748b;font-size:.86rem}.audit-event-title{font-size:.98rem;color:#0f172a}.audit-event-meta,.audit-event-changes{display:grid;gap:.25rem;color:#64748b;font-size:.92rem}.audit-stat-badge{gap:.35rem}.audit-empty-state{padding:1rem;border:1px dashed #cbd5e1;border-radius:.9rem;background:#f8fafc;color:#64748b}.audit-pagination{display:flex;justify-content:space-between;gap:.75rem;align-items:center;flex-wrap:wrap}.modal-backdrop{position:fixed;inset:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:100}.modal-card{width:min(100%,440px);background:#fff;border-radius:1rem;padding:1.5rem;box-shadow:0 20px 45px #0f172a26}.modal-icon{width:40px;height:40px;border-radius:999px;display:flex;align-items:center;justify-content:center;color:#b45309;background:#fef3c7;margin-bottom:1rem}.modal-title{font-size:1.125rem;margin-bottom:.5rem}.modal-description{color:#64748b;line-height:1.5}.modal-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.5rem}.toast-stack{position:fixed;right:1rem;bottom:1rem;display:flex;flex-direction:column;gap:.75rem;z-index:120}.toast{min-width:280px;max-width:360px;display:flex;align-items:center;gap:.75rem;padding:.875rem 1rem;border-radius:.875rem;color:#fff;box-shadow:0 16px 40px #0f172a33}.toast-success{background:#166534}.toast-error{background:#b91c1c}.toast-info{background:#1d4ed8}.toast-icon{display:flex;align-items:center}.toast-close{color:inherit;margin-left:auto;opacity:.8}.spin{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:768px){.topbar{padding:.75rem 1rem;flex-wrap:wrap;align-items:stretch}.topbar-search{width:100%;flex-basis:100%}.topbar-search-box{width:100%}.topbar-actions{width:100%;flex-wrap:wrap;justify-content:space-between}.topbar-context-card{flex:1 1 240px;min-width:0}.topbar-filter-card{width:100%;flex-wrap:wrap;justify-content:space-between}.topbar-filter-grid{width:100%;grid-template-columns:1fr}.user-profile{margin-left:auto}.catalog-form-grid,.help-grid,.help-context-card{grid-template-columns:1fr}.help-launcher{padding:0 .7rem}.help-launcher span{display:none}.help-context-actions,.help-checklist-header,.help-checklist-progress,.help-checklist-item,.help-checklist-hidden{flex-direction:column;align-items:stretch}.help-drawer{width:100vw}.audit-hero,.audit-hero-metrics{grid-template-columns:1fr}.page-content{padding:1rem}.toast-stack{left:1rem;right:1rem}.toast{min-width:0;max-width:none}}
