:root {
  --ink: #192b35;
  --muted: #71818a;
  --line: #e6eceb;
  --paper: #fbfcfb;
  --card: #ffffff;
  --teal: #0c6b65;
  --teal-dark: #07514e;
  --teal-soft: #e6f2ef;
  --amber: #b77a18;
  --amber-soft: #fff3d9;
  --red: #b84d4d;
  --red-soft: #fcebea;
  --shadow: 0 12px 32px rgba(24, 55, 60, .07);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 254px; height: 100vh; background: #f1f7f5; border-right: 1px solid var(--line); padding: 24px 16px; position: fixed; inset: 0 auto 0 0; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 13px; padding: 4px 10px 28px; }
.brand-mark-button { width: 62px; height: 62px; border: 0; padding: 0; border-radius: 18px; background: transparent; flex: 0 0 auto; transition: transform .22s ease, filter .22s ease; }
.brand-mark-button:hover { transform: scale(1.1) rotate(-2deg); filter: drop-shadow(0 8px 13px rgba(12,107,101,.25)); }
.brand-mark { width: 100%; height: 100%; border-radius: 18px; object-fit: cover; box-shadow: 0 5px 13px rgba(12,107,101,.2); display: block; }
.brand strong { display: block; font-family: Manrope; font-size: 15px; letter-spacing: -.3px; }
.brand small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.nav-label { color: #93a2a5; font-size: 10px; letter-spacing: 1.25px; text-transform: uppercase; padding: 13px 12px 8px; }
.nav button { border: 0; background: transparent; color: #5b6c73; width: 100%; padding: 10px 12px; text-align: left; border-radius: 9px; display: flex; gap: 11px; align-items: center; font-weight: 500; font-size: 13px; margin: 2px 0; }
.nav button:hover, .nav button.active { background: #dceee9; color: var(--teal-dark); font-weight: 700; }
.nav-icon { width: 18px; text-align: center; font-size: 15px; }
.sidebar-foot { position: static; margin: 22px 12px 0; border-top: 1px solid #dce6e3; padding-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.5; flex: 0 0 auto; }
.main { margin-left: 254px; flex: 1; min-width: 0; }
.topbar { height: 73px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.78); display: flex; align-items: center; justify-content: space-between; padding: 0 42px; position: sticky; top: 0; z-index: 3; backdrop-filter: blur(10px); }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.back-button { border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--teal-dark); padding: 8px 11px; font-size: 11px; font-weight: 700; }
.back-button:hover { border-color: #b9d6cf; background: var(--teal-soft); }
.crumb { color: var(--muted); font-size: 12px; }
.crumb b { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 18px; }
.company-select { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 9px 31px 9px 12px; color: var(--ink); font-weight: 600; font-size: 12px; }
.bell { border: 0; background: transparent; font-size: 19px; position: relative; color: #678086; }
.bell span { width: 6px; height: 6px; position: absolute; top: 1px; right: 1px; border-radius: 50%; background: #d08736; }
.profile { display: flex; align-items: center; gap: 9px; border-left: 1px solid var(--line); padding-left: 18px; }
.avatar { background: #d4ebe4; color: var(--teal-dark); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.profile b { display: block; font-size: 12px; }
.profile small { color: var(--muted); font-size: 10px; }
.content { padding: 32px 42px 52px; max-width: 1440px; }
.headline { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.header-actions { display: flex; align-items: center; gap: 9px; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: Manrope; font-size: 28px; letter-spacing: -.9px; }
.subtitle { color: var(--muted); font-size: 13px; margin-top: 7px; }
.eyebrow { color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 8px; }
.date-chip { border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--muted); font-size: 12px; padding: 9px 12px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 19px; }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 17px 18px; box-shadow: var(--shadow); min-height: 120px; }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.metric-icon { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.metric strong { display: block; font-family: Manrope; font-size: 26px; margin-top: 12px; letter-spacing: -.8px; }
.metric small { font-size: 10px; color: var(--muted); }
.metric small.good { color: var(--teal); }
.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 19px; margin-bottom: 19px; }
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); padding: 20px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-heading h2 { font-family: Manrope; font-size: 16px; letter-spacing: -.35px; }
.card-heading p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.link-btn { background: none; border: 0; color: var(--teal); font-weight: 700; font-size: 11px; }
.bar-chart { height: 195px; display: flex; align-items: end; gap: 16px; padding: 10px 9px 0; border-bottom: 1px solid var(--line); }
.bar-group { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: end; gap: 6px; align-items: center; }
.bars { display: flex; align-items: end; height: 150px; gap: 5px; }
.bar { width: 15px; border-radius: 4px 4px 0 0; background: #9ad0c4; }
.bar.primary { background: var(--teal); }
.bar-group small { font-size: 10px; color: var(--muted); }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 10px; margin-top: 15px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 5px; }
.dot.pale { background: #9ad0c4; }
.obligations { display: grid; gap: 11px; }
.obligation { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid #eef1f0; }
.obligation:last-child { border-bottom: 0; padding-bottom: 0; }
.ob-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; font-size: 13px; }
.ob-icon.red { background: var(--red-soft); color: var(--red); }
.obligation b { display: block; font-size: 12px; }
.obligation small { color: var(--muted); font-size: 10px; }
.status { font-size: 10px; font-weight: 700; border-radius: 20px; padding: 5px 8px; white-space: nowrap; }
.status.pending { background: var(--amber-soft); color: var(--amber); }
.status.danger { background: var(--red-soft); color: var(--red); }
.status.ok { background: var(--teal-soft); color: var(--teal); }
.company-table, table { width: 100%; border-collapse: collapse; }
th { color: #8a989c; text-transform: uppercase; letter-spacing: .8px; font-size: 9px; font-weight: 700; text-align: left; padding: 0 10px 11px; }
td { border-top: 1px solid #eef1f0; padding: 12px 10px; font-size: 12px; }
td:first-child, th:first-child { padding-left: 0; }
.company-name { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.company-logo { width: 27px; height: 27px; border-radius: 7px; background: #e5f2ef; color: var(--teal); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.company-table small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 2px; }
.view { color: var(--teal); font-weight: 700; font-size: 11px; }
.page { display: none; }
.page.active { display: block; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search { border: 1px solid var(--line); background: white; padding: 10px 13px; min-width: 255px; border-radius: 8px; font-size: 12px; outline: 0; }
.filter { border: 1px solid var(--line); background: white; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: 12px; }
.primary-btn { border: 0; background: var(--teal); color: white; border-radius: 8px; padding: 10px 14px; font-size: 12px; font-weight: 700; margin-left: auto; }
.primary-btn:hover { background: var(--teal-dark); }
.table-card { overflow: auto; }
.person { display: flex; gap: 9px; align-items: center; min-width: 180px; }
.person-avatar { width: 29px; height: 29px; background: #edf3f2; color: var(--teal); border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.person b { font-size: 12px; display: block; }
.person small { font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }
.pill { display: inline-block; padding: 4px 7px; border-radius: 5px; font-size: 10px; font-weight: 700; background: var(--teal-soft); color: var(--teal); }
.pill.gray { background: #f0f3f3; color: #6b797e; }
.money { font-weight: 700; color: #32474e; }
.empty-note { padding: 26px 0; color: var(--muted); font-size: 12px; text-align: center; }
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 24px; }
.step { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; }
.step.active { color: var(--teal-dark); font-weight: 700; }
.step-num { width: 25px; height: 25px; border: 1px solid #cbd9d5; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: white; }
.step.active .step-num { color: white; background: var(--teal); border-color: var(--teal); }
.step-line { width: 38px; height: 1px; background: #dce6e3; margin: 0 10px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.summary-box { background: #f7faf9; border: 1px solid var(--line); border-radius: 8px; padding: 13px; }
.summary-box small { color: var(--muted); font-size: 10px; display: block; }
.summary-box strong { font-family: Manrope; font-size: 18px; display: block; margin-top: 6px; }
.notice { border: 1px solid #f0d7a3; background: #fff9ec; color: #8d6723; border-radius: 8px; padding: 12px 13px; font-size: 11px; line-height: 1.45; margin: 14px 0; }
.notice strong { display: block; margin-bottom: 3px; }
.timeline { display: grid; gap: 13px; }
.timeline-row { display: grid; grid-template-columns: 75px 14px 1fr auto; align-items: start; gap: 8px; font-size: 11px; }
.timeline-date { color: var(--muted); font-size: 10px; }
.timeline-point { width: 10px; height: 10px; border: 2px solid var(--teal); border-radius: 50%; margin-top: 2px; background: white; }
.timeline-row b { display: block; font-size: 11px; }
.timeline-row small { color: var(--muted); }
.receipt-actions { display: flex; gap: 9px; }
.receipt-toolbar { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.receipt-toolbar label { color: var(--muted); font-size: 11px; font-weight: 700; }
.receipt-toolbar select { display: block; min-width: 280px; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); padding: 10px 12px; font-size: 12px; }
.receipt-sheet { max-width: 980px; margin: 0 auto; background: white; border: 1px solid #dce6e3; border-radius: 12px; box-shadow: 0 18px 45px rgba(27, 57, 60, .09); padding: 30px; color: #24363d; }
.receipt-head { display: flex; justify-content: space-between; align-items: start; padding-bottom: 19px; border-bottom: 2px solid var(--teal); }
.receipt-brand { display: flex; align-items: center; gap: 10px; }
.receipt-brand img { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; }
.receipt-brand b { display: block; font-family: Manrope; font-size: 18px; color: var(--teal-dark); }
.receipt-brand small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }
.receipt-caption { color: var(--muted); font-size: 9px; letter-spacing: 1px; margin-top: 16px; font-weight: 800; }
.receipt-meta { text-align: right; display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.receipt-meta b { color: var(--ink); font-size: 13px; }
.receipt-section { margin-top: 19px; border: 1px solid #dfe8e5; border-radius: 9px; overflow: hidden; }
.receipt-section-title { background: #eff7f4; color: var(--teal-dark); display: flex; justify-content: space-between; padding: 10px 12px; font-size: 11px; }
.receipt-section-title span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .65px; }
.receipt-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; padding: 15px 13px; }
.receipt-info-grid div { display: grid; align-content: start; gap: 4px; }
.receipt-info-grid small, .receipt-net small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .65px; }
.receipt-info-grid b { font-size: 11px; }
.receipt-info-grid span { color: #617279; font-size: 10px; line-height: 1.3; }
.receipt-cost-total { display: flex; justify-content: space-between; align-items: center; padding: 13px; background: #fbfdfc; border-bottom: 1px solid #e5ecea; font-size: 11px; }
.receipt-cost-total strong { color: var(--teal-dark); font-family: Manrope; font-size: 18px; }
.receipt-lines { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.receipt-lines > div { padding: 12px 10px; border-right: 1px solid #e9efed; }
.receipt-lines > div:last-child { border-right: 0; }
.receipt-lines span, .receipt-lines small, .receipt-lines b { display: block; }
.receipt-lines span { font-size: 10px; font-weight: 700; }
.receipt-lines small { color: var(--muted); font-size: 9px; min-height: 27px; margin-top: 5px; line-height: 1.3; }
.receipt-lines b { color: var(--teal-dark); font-size: 12px; margin-top: 8px; }
.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table th { padding: 9px 10px; border-bottom: 1px solid #dde7e4; font-size: 8px; }
.receipt-table td { border-top: 1px solid #edf1f0; padding: 10px; font-size: 10px; }
.receipt-table td:first-child, .receipt-table th:first-child { padding-left: 12px; }
.receipt-table .receipt-subtotal td { background: #fbfdfc; color: var(--teal-dark); font-weight: 700; }
.receipt-net { display: flex; align-items: center; justify-content: space-between; padding: 17px 13px; background: #eaf5f1; }
.receipt-net strong { color: var(--teal-dark); display: block; font-family: Manrope; font-size: 25px; margin-top: 4px; }
.receipt-net > span { color: var(--muted); font-size: 10px; }
.receipt-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 17px; color: var(--muted); font-size: 9px; }
.receipt-extra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.receipt-extra-grid > div { padding: 12px; border-right: 1px solid #e9efed; border-bottom: 1px solid #e9efed; display: grid; gap: 5px; }
.receipt-extra-grid > div:nth-child(3n) { border-right: 0; }
.receipt-extra-grid small, .receipt-signatures small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .55px; }
.receipt-extra-grid b { font-size: 10px; }
.receipt-signatures { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; padding: 24px 13px 12px; }
.receipt-signatures > div { display: grid; gap: 7px; align-content: end; }
.receipt-signatures span { display: block; height: 23px; border-bottom: 1px solid #b8c9c5; }
.receipt-signatures strong { color: var(--teal-dark); font: 700 14px Manrope, sans-serif; }
.toast { position: fixed; right: 22px; bottom: 22px; background: var(--ink); color: white; padding: 12px 15px; border-radius: 8px; font-size: 12px; box-shadow: var(--shadow); transform: translateY(80px); opacity: 0; transition: .2s; z-index: 10; }
.toast.show { transform: translateY(0); opacity: 1; }
.logo-lightbox { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(15, 38, 42, .72); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.logo-lightbox.open { opacity: 1; pointer-events: auto; }
.logo-lightbox-card { position: relative; width: min(430px, 82vw); padding: 17px; border: 1px solid rgba(255,255,255,.58); border-radius: 30px; background: #f5fbf8; box-shadow: 0 28px 70px rgba(3, 23, 27, .3); transform: scale(.88); transition: transform .22s ease; }
.logo-lightbox.open .logo-lightbox-card { transform: scale(1); }
.logo-lightbox img { display: block; width: 100%; border-radius: 22px; }
.logo-lightbox-label { color: var(--teal-dark); text-align: center; font-family: Manrope; font-size: 15px; margin: 14px 0 2px; }
.logo-lightbox-close { position: absolute; top: 10px; right: 10px; width: 31px; height: 31px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 18px; line-height: 1; }
@media print { body { background: white; } .sidebar, .topbar, .headline, .receipt-toolbar, .toast { display: none !important; } .main { margin-left: 0; } .content { padding: 0; max-width: none; } .receipt-sheet { border: 0; box-shadow: none; max-width: none; padding: 0; } .receipt-section { break-inside: avoid; } }
.logout-button { border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 7px; padding: 6px 8px; font-size: 10px; cursor: pointer; }
.arca-catalog-meta { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.arca-catalog-meta h2 { margin: 4px 0 7px; font-size: 16px; }
.arca-catalog-meta p { color: var(--muted); font-size: 11px; margin: 0 0 8px; }
.arca-source-link { color: var(--teal-dark); font-size: 11px; font-weight: 700; }
.arca-type { display: inline-block; border-radius: 999px; padding: 4px 7px; font-size: 10px; font-weight: 700; }
.arca-type.remunerativo { color: #17674f; background: #e4f4ed; }
.arca-type.no_remunerativo { color: #785d17; background: #fff3d6; }
.arca-type.descuento { color: #914d4d; background: #fbe9e9; }
.arca-subsystems { display: flex; flex-wrap: wrap; gap: 8px; }
.mapping-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0 18px; padding: 14px; border: 1px solid #e3ece9; border-radius: 10px; background: #fbfdfc; }
.mapping-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.mapping-form input, .mapping-form select { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: white; color: var(--ink); font: inherit; }
.mapping-form button { align-self: end; justify-self: start; }
.mapping-list { display: grid; gap: 1px; }
.logout-button:hover { color: var(--teal-dark); border-color: var(--teal); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top right, #dff3eb, transparent 42%), #f4f8f6; }
.login-card { width: min(100%, 430px); background: rgba(255,255,255,.96); border: 1px solid #dce8e4; border-radius: 20px; padding: 34px; box-shadow: 0 25px 70px rgba(27,57,60,.12); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.login-brand img { width: 58px; height: 58px; border-radius: 17px; object-fit: cover; }
.login-brand strong { display: block; color: var(--teal-dark); font: 800 24px Manrope, sans-serif; }
.login-brand small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .65px; }
.login-form { display: grid; gap: 16px; margin-top: 25px; }
.login-form label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.login-form input, .login-form select { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 13px 14px; color: var(--ink); background: white; font: inherit; box-sizing: border-box; }
.login-form input:focus { outline: 2px solid rgba(36,129,107,.2); border-color: var(--teal); }
.login-form .primary-btn { margin: 5px 0 0; width: 100%; justify-content: center; }
.login-error { min-height: 16px; margin: 0; color: #b44e4e; font-size: 11px; }
.login-foot { display: block; margin-top: 26px; color: var(--muted); font-size: 10px; text-align: center; }
@media (max-width: 1000px) { .sidebar { width: 72px; padding: 20px 10px; } .brand { padding-left: 9px; } .brand > div:not(.brand-mark), .nav-label, .nav button span:not(.nav-icon), .sidebar-foot { display: none; } .nav button { justify-content: center; } .main { margin-left: 72px; } .metrics { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .topbar { padding: 0 16px; } .crumb, .profile div:not(.avatar) { display: none; } .content { padding: 22px 16px 35px; } .headline { align-items: start; gap: 12px; flex-direction: column; } .metrics { grid-template-columns: 1fr 1fr; gap: 9px; } .metric { padding: 13px; min-height: 105px; } .metric strong { font-size: 21px; } .summary-grid { grid-template-columns: 1fr; } .stepper { overflow: auto; padding-bottom: 4px; } .step-line { width: 18px; margin: 0 5px; } .step { white-space: nowrap; } .company-select { max-width: 150px; } .receipt-actions { width: 100%; } .receipt-actions button { flex: 1; } .receipt-toolbar { align-items: stretch; flex-direction: column; gap: 10px; } .receipt-toolbar select { min-width: 0; width: 100%; } .receipt-sheet { padding: 17px; } .receipt-head { flex-direction: column; gap: 16px; } .receipt-meta { text-align: left; } .receipt-info-grid { grid-template-columns: 1fr 1fr; } .receipt-lines { grid-template-columns: 1fr 1fr; } .receipt-lines > div:nth-child(2n) { border-right: 0; } .receipt-lines > div:nth-child(-n+3) { border-bottom: 1px solid #e9efed; } .receipt-footer { flex-direction: column; } }
