@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root{
  --navy:#0f1d36;
  --navy-2:#15284a;
  --navy-3:#1d3660;
  --blue:#3768ff;
  --blue-2:#5b86ff;
  --cyan:#54dbc6;
  --violet:#6c5cf4;
  --emerald:#1db78a;
  --amber:#f0aa3b;
  --red:#e96f7d;
  --bg:#f3f6fb;
  --bg-2:#eef3fb;
  --card:#ffffff;
  --ink:#20314b;
  --ink-2:#30455f;
  --muted:#8292a9;
  --muted-2:#9aa9bd;
  --line:#e6edf6;
  --line-2:#dce5f1;
  --shadow:0 14px 40px rgba(30, 55, 90, .08);
  --shadow-soft:0 8px 24px rgba(30, 55, 90, .05);
  --radius:22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Plus Jakarta Sans','Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  background:linear-gradient(180deg,#f7f9fd 0%, var(--bg) 100%);
  color:var(--ink);
  font-size:14px;
}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}

.layout{min-height:100vh;display:flex}
.sidebar{
  width:264px;
  background:linear-gradient(180deg,#0c1730 0%, #13274a 52%, #0f1f3b 100%);
  color:#b8c7df;
  position:fixed;
  inset:0 auto 0 0;
  padding:26px 16px 18px;
  display:flex;
  flex-direction:column;
  z-index:30;
  box-shadow:14px 0 40px rgba(15,35,60,.12);
}
.brand{display:flex;align-items:center;gap:12px;color:var(--navy);font-weight:900;letter-spacing:.045em;font-size:15px;line-height:1.15}
.brand small{display:block;font-size:8px;letter-spacing:.24em;font-weight:700;color:#9cb1d5;margin-top:6px}
.brand-mark{
  width:42px;height:42px;display:grid;place-items:center;flex:none;color:#fff;font-size:22px;font-weight:900;
  background:linear-gradient(145deg,var(--blue),var(--violet));
  border-radius:14px;
  box-shadow:0 10px 28px rgba(76,103,238,.35);
}
.side-brand{color:#fff;padding:6px 12px 34px;font-size:15px}
.side-label{padding:0 16px 12px;color:#7188a8;letter-spacing:.16em;font-size:9px;font-weight:800}
.side-label.second{padding-top:28px}
.sidebar nav{display:flex;flex-direction:column;gap:4px}
.navitem{
  min-height:48px;display:flex;gap:13px;align-items:center;border-radius:14px;padding:0 14px;
  color:#a7b7d2;font-weight:700;transition:.2s;position:relative;
}
.navitem:hover{background:rgba(255,255,255,.06);color:#fff;transform:translateX(2px)}
.navitem.current{
  background:linear-gradient(90deg,rgba(74,116,255,.32),rgba(108,92,244,.14));
  color:#fff;border:1px solid rgba(125,153,255,.16)
}
.navitem.current:before{content:'';position:absolute;left:-16px;height:28px;width:4px;background:#67c5ff;border-radius:0 6px 6px 0}
.navicon{font-size:20px;font-weight:700;width:22px;text-align:center}
.nav-count{margin-left:auto;padding:2px 7px;background:#ff6e7a;color:#fff;border-radius:999px;font-size:10px;font-weight:800}
.side-bottom{margin-top:auto}
.account{
  border:1px solid rgba(115,138,183,.25);background:rgba(255,255,255,.06);backdrop-filter:blur(10px);
  border-radius:16px;padding:12px 10px;display:flex;align-items:center;gap:10px;min-width:0
}
.account strong,.account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:155px}
.account strong{font-size:12px;color:#fff}.account small{font-size:10px;color:#9eb0ca;margin-top:4px}
.avatar,.mini-avatar{display:grid;place-items:center;font-weight:800;border-radius:12px;width:37px;height:37px;flex:none}
.avatar{background:#304973;color:#dceaff}
.mini-avatar{background:#eef2ff;color:#4a5ec7;font-size:11px}
.logout button{border:0;background:none;color:#91a6c7;width:100%;text-align:left;padding:14px 12px;font-weight:700}
.logout button:hover{color:#fff}
.side-bottom>p{font-size:9px;text-align:center;letter-spacing:.16em;color:#6b82a4}

.main{margin-left:264px;min-width:0;flex:1}
.topbar{
  height:76px;background:rgba(255,255,255,.82);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;padding:0 38px;position:sticky;top:0;z-index:12
}
.crumb{font-size:10px;letter-spacing:.09em;font-weight:800;color:#8092ad}
.crumb span{padding:0 11px;color:#c1cad8}
.topbar-right{display:flex;align-items:center;gap:22px}
.system-label{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:.08em;font-weight:800;color:#329d82}
.system-label i,.live-dot{background:#35c5a1;width:7px;height:7px;border-radius:50%;box-shadow:0 0 0 4px #daf8ef}
.today-label{font-size:12px;color:#8190a7}
.content{padding:34px 38px 20px;max-width:1660px;margin:auto}
.eyebrow{color:var(--blue);font-size:10px;font-weight:850;letter-spacing:.18em;text-transform:uppercase}
.page-intro{margin:0 0 28px}
.page-intro h1{margin:8px 0 7px;letter-spacing:-.04em;font-size:31px;color:#162a48}
.page-intro p{color:#8898ad;margin:0;max-width:780px;line-height:1.7}

.greeting{
  display:flex;justify-content:space-between;align-items:center;border-radius:26px;
  background:linear-gradient(125deg,#16396f 0%,#2f56a5 50%,#5d7dff 100%);
  color:#fff;padding:34px 40px;margin-bottom:24px;min-height:210px;overflow:hidden;position:relative;
  box-shadow:0 24px 50px rgba(38,77,154,.22)
}
.greeting:before,.greeting:after{
  content:'';width:320px;height:320px;border:1px solid rgba(255,255,255,.12);border-radius:50%;position:absolute;right:88px;top:-155px
}
.greeting:after{right:-10px;top:40px}
.greeting>div:first-child{position:relative;z-index:2;max-width:620px}
.greeting-small{font-size:10px;letter-spacing:.18em;font-weight:800;color:#b9ddff}
.greeting h2{font-size:30px;margin:11px 0;letter-spacing:-.04em}
.greeting p{color:#d6e4ff;font-size:13px;margin:0 0 24px;line-height:1.75}
.greeting-actions{display:flex;gap:12px;flex-wrap:wrap}
.greeting-art{height:160px;width:220px;position:relative;z-index:1}
.art-circle{
  position:absolute;right:18px;top:-6px;width:164px;height:164px;border-radius:50%;border:1px solid rgba(198,219,255,.3);
  background:linear-gradient(145deg,rgba(114,149,226,.18),rgba(164,220,251,.08));
  box-shadow:0 0 0 18px rgba(255,255,255,.06),0 0 0 38px rgba(255,255,255,.03);display:grid;place-items:center
}
.art-circle>span{font-size:82px;color:#eef8ff;text-shadow:0 8px 25px rgba(18,67,133,.55)}
.barset{position:absolute;display:flex;gap:5px;bottom:18px;right:-12px;align-items:end;height:40px}
.barset i{display:block;width:9px;border-radius:999px;background:#65eed5;box-shadow:0 2px 18px rgba(116,255,236,.45);height:20px}
.barset i:nth-child(2){height:36px}.barset i:nth-child(3){height:26px}.barset i:nth-child(4){height:39px}.barset i:nth-child(5){height:13px}

.btn{
  border:1px solid transparent;border-radius:12px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 18px;font-size:12px;font-weight:800;transition:.18s;line-height:1.2
}
.btn:hover{transform:translateY(-1px);filter:brightness(1.02)}
.btn.primary{color:#fff;background:linear-gradient(110deg,#3461f6,#5e85ff);box-shadow:0 12px 24px rgba(57,105,234,.22)}
.btn.success{background:#1ab283;color:#fff}
.btn.outlined{color:#3762c6;background:#f8fbff;border-color:#cbd9f1}
.btn.ghost{background:#eef3fb;color:#47658f}
.btn.light{background:#fff;color:#315bbb}
.btn.transparent{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(194,213,255,.3)}
.btn.whatsapp{background:#e8fbf1;color:#1f8b5a;border-color:#bdebd5;margin-top:11px}
.btn.wide{width:100%}

.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}
.kpi{
  background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;box-shadow:var(--shadow-soft);display:flex;flex-direction:column
}
.kpi-icon{height:44px;width:44px;display:grid;place-items:center;border-radius:14px;font-size:21px;font-weight:850;margin-bottom:18px}
.kpi-icon.blue{background:#eaf0ff;color:#4471d3}.kpi-icon.purple{background:#f1ebff;color:#9270dc}.kpi-icon.amber{background:#fff4e2;color:#e2a543}.kpi-icon.red{background:#ffeded;color:#e36876}
.kpi small{font-size:9px;font-weight:850;color:#8899b0;letter-spacing:.08em}.kpi strong{font-size:32px;line-height:1.3;color:#1b2f4b;letter-spacing:-.04em;margin:8px 0}.kpi>span:last-child{font-size:11px;color:#8394aa}

.section-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(255px,1fr);gap:22px}
.side-cards{display:flex;flex-direction:column;gap:18px}
.card{
  background:rgba(255,255,255,.95);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius);
  padding:24px;min-width:0
}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}
.card h3{font-size:18px;margin:5px 0 12px;color:#223550;letter-spacing:-.03em}
.card-head h3{margin:4px 0}.card p{line-height:1.68}.card small,.muted{color:#8b9ab0}.small{font-size:11px}.text-link{font-size:12px;color:#5077d8;font-weight:800}

.table-wrap{width:100%;overflow:auto}
table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;min-width:520px}
th{font-size:9px;letter-spacing:.09em;font-weight:850;color:#8796ad;padding:14px 13px;background:#f7faff;white-space:nowrap}
td{border-top:1px solid #eef2f7;padding:15px 13px;vertical-align:middle;color:#5c6d86}
td b,td strong{color:#263b59}td small{display:block;font-size:10px;margin-top:5px;color:#93a2b7;max-width:250px;overflow:hidden;text-overflow:ellipsis}
tbody tr:hover{background:#fbfcff}td.empty{text-align:center;color:#9aa7b9;padding:46px 12px;white-space:normal}.table-primary{font-weight:800;color:#2e4f93}
.badge{display:inline-flex;border-radius:999px;padding:7px 10px;white-space:nowrap;font-size:9px;font-weight:900;letter-spacing:.05em}
.badge.ok{background:#e7f8ef;color:#24936c}.badge.warn{background:#fff3df;color:#d58f27}.badge.danger{background:#ffebec;color:#db6270}.badge.muted{background:#edf1f6;color:#8793a4}
.duedate{font-size:11px;color:#637791;line-height:1.55}.duedate b{color:#1f3552}
.service-meta{margin-top:6px;color:#92a2b6!important}.service-meta.ok{color:#29906f!important}
.stack-badge{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.soft-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#eef7ff;color:#4b6da5;font-size:10px;font-weight:800}

.spotlight{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)}
.spotlight .revenue{font-size:30px;color:#284da7;font-weight:900;letter-spacing:-.04em;margin:20px 0 4px}
.spotlight .progress{height:8px;border-radius:999px;background:#e6edf9;overflow:hidden;margin-top:24px}.progress i{height:100%;display:block;background:linear-gradient(90deg,#5acfc3,#477ae9);border-radius:999px}.spotlight p{color:#91a0b3;font-size:11px;margin-bottom:0}
.tip,.notice{background:#f2f7ff;border:1px solid #e1ecff;border-radius:14px;padding:13px 14px;color:#6b83a7;font-size:11px;line-height:1.6;margin-top:16px}
.footer-hint{color:#98a5b7;font-size:11px;padding:23px 2px}
.site-footer{border-top:1px solid var(--line);padding:28px 2px 10px;color:#9aa5b5;font-size:10px;display:flex;justify-content:space-between;gap:15px}

.split-layout{display:flex;align-items:flex-start;gap:22px}.grow{flex:1;min-width:0}
.form-card{width:385px;flex:none;scroll-margin-top:20px}.form-card>p{color:#8b9ab0;font-size:11px;line-height:1.6;margin:0 0 23px}
.stack-form{display:flex;flex-direction:column;gap:16px}
.stack-form label,.settings-grid label{font-size:11px;font-weight:800;color:#667b99;display:flex;flex-direction:column;gap:8px}
.stack-form input,.stack-form select,.stack-form textarea,.settings-grid input,.settings-grid select{
  width:100%;border:1px solid #dfe7f2;background:#f8fbff;color:#30435e;padding:12px 13px;border-radius:12px;outline:0;min-height:44px;
  transition:.2s;resize:vertical;font-weight:600;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)
}
.stack-form input:focus,.stack-form textarea:focus,.stack-form select:focus,.settings-grid input:focus,.settings-grid select:focus{border-color:#85a5f2;box-shadow:0 0 0 3px #e7edff;background:#fff}
.stack-form input::placeholder,.settings-grid input::placeholder,.stack-form textarea::placeholder{color:#afbacb;font-weight:500}
.stack-form .check,.settings-grid .check{flex-direction:row;align-items:flex-start;gap:10px;font-size:11px;font-weight:600;line-height:1.55;color:#8193ae}
.check input{width:16px!important;height:16px!important;min-height:0!important;flex:none;accent-color:#3b6ae5;margin:2px 0!important}
.row.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.search-wrap{display:flex;align-items:center;gap:6px;background:#f8fafd;border:1px solid #e6ebf4;padding:0 13px;height:39px;border-radius:12px;color:#8da0b7;white-space:nowrap}.search-wrap input{border:0;background:transparent;outline:0;width:165px;color:#3c5478;font-size:11px}
.actions-cell{white-space:nowrap}.inline{display:inline}
.tiny-btn{border:1px solid #dfe9fb;background:#f2f6ff;color:#5379c8;padding:7px 10px;border-radius:9px;display:inline-block;font-size:10px;font-weight:800;min-height:31px;margin:2px 2px 0 0}
.tiny-btn.subtle{background:#fff;color:#90a0b3;border-color:#ebeff5}
.table-details{display:inline-block;position:relative}.table-details summary{list-style:none;color:#6483b6;border:1px solid #e7edfa;border-radius:9px;padding:7px 9px;cursor:pointer;font-size:10px;font-weight:800;background:#f6f9ff}.table-details summary::-webkit-details-marker{display:none}
.popover{position:absolute;z-index:5;right:0;top:34px;min-width:200px;background:#fff;border:1px solid #e1e8f2;border-radius:14px;box-shadow:0 16px 36px rgba(34,55,88,.14);padding:7px}.popover button{display:block;width:100%;border:0;background:#fff;text-align:left;padding:10px;color:#53678a;font-size:11px;border-radius:8px}.popover button:hover{background:#eef3ff}

.compact-stats{display:flex;gap:13px;margin-bottom:20px}.compact-stats>div{display:flex;gap:12px;align-items:center;padding:13px 17px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-soft)}.compact-stats b{font-size:23px;color:#3356a4}.compact-stats span{font-size:9px;font-weight:850;letter-spacing:.08em;color:#99a5b9}
.filter-tabs{display:flex;gap:6px;margin:0 0 15px;overflow:auto;max-width:100%;padding-bottom:4px}.filter-tabs button{border:0;border-radius:999px;background:transparent;color:#8a9ab2;padding:9px 14px;font-size:11px;white-space:nowrap;font-weight:800}.filter-tabs button.active{background:#eaf0ff;color:#3c66bc}
.detail-status{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 0 19px;margin-bottom:10px;border-bottom:1px solid var(--line)}.detail-status strong{font-size:21px;letter-spacing:-.03em}
.kv{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px dashed #e9eef5;font-size:11px}.kv>span{color:#92a1b5;flex:none}.kv>b{color:#3f5678;text-align:right;font-weight:700}
.form-card .kv+.btn{margin-top:19px}.form-card .btn.wide{margin-top:10px}
.form-divider{margin:24px 0 15px;padding-top:19px;border-top:1px solid var(--line);font-size:9px;letter-spacing:.12em;font-weight:900;color:#879ab3}
.paid-mini{color:#25966b;background:#e7faf0;padding:14px;margin-top:20px;border-radius:12px;line-height:1.75;font-weight:700;font-size:11px}
.notice-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.notice-actions .btn{min-height:42px;padding:7px;font-size:10px}
.cancel-form{text-align:center;margin-top:22px}.danger-link{border:0;background:none;color:#ca6b79;font-size:11px;text-decoration:underline}

.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.settings-grid>.card{min-width:0}.settings-grid .stack-form{margin-top:16px}
.settings-footer{grid-column:1/-1;background:#e8efff;border-radius:18px;display:flex;justify-content:space-between;align-items:center;padding:20px 24px;gap:16px;color:#617aa9;font-weight:800;font-size:12px}.settings-grid.extras{margin-top:22px}
.toggle{width:44px;height:24px;display:block!important;flex:none;position:relative}.toggle input{opacity:0!important;position:absolute}.toggle span{display:block;background:#d5e0ed;width:42px;height:23px;border-radius:30px;transition:.2s;cursor:pointer}.toggle span:after{content:'';position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:.2s}.toggle input:checked+span{background:#466eef}.toggle input:checked+span:after{transform:translateX(19px)}
.event-dot{font-size:12px;color:#91a1b9}.event-dot.sent,.event-dot.paid{color:#2fbb90}.event-dot.send_error{color:#ee6578}.event-dot.suspended{color:#ffac59}
.alert{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 17px;border-radius:14px;font-weight:700;font-size:12px;margin-bottom:22px;background:#e7f8f0;color:#2e8f70;border:1px solid #beead4;box-shadow:var(--shadow-soft)}.alert.danger{background:#fff0f1;color:#c15c6d;border-color:#f9d0d6}.alert button{background:none;border:0;color:inherit;font-size:20px}
.mobile-head,.scrim{display:none}
.toast{position:fixed;bottom:25px;right:25px;z-index:100;background:#253a58;color:#fff;box-shadow:0 14px 36px rgba(41,54,73,.22);border-radius:14px;padding:13px 18px;font-size:12px;transition:.25s;opacity:0;pointer-events:none;transform:translateY(10px)}.toast.show{opacity:1;transform:none}

/* Autenticación / Instalación */
.auth-page{background:radial-gradient(circle at top left, #eef5ff, #eef3fa 45%, #e8effa 100%);min-height:100vh}
.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(300px,1fr) minmax(360px,500px);gap:8%;align-items:center;max-width:1250px;padding:50px 55px;margin:auto}
.auth-info .brand{margin-bottom:65px}.brand.big{font-size:19px}.brand.big .brand-mark{width:50px;height:50px;font-size:28px}
.auth-info h1{font-size:50px;line-height:1.08;letter-spacing:-.06em;color:#203959;max-width:560px;margin:0 0 23px}.auth-info h1 em{font-style:normal;color:#456cec}.auth-info>p{font-size:16px;line-height:1.75;color:#8292a9;max-width:460px}
.auth-features{display:flex;flex-wrap:wrap;gap:13px;margin-top:48px}.auth-features span{font-size:11px;font-weight:800;color:#517ab4;background:#fff;padding:11px 13px;border-radius:12px;box-shadow:var(--shadow-soft)}
.auth-box{background:rgba(255,255,255,.96);border:1px solid #e4eaf4;border-radius:26px;box-shadow:0 25px 75px rgba(49,73,112,.08);padding:40px 36px}.auth-box h2{font-size:29px;margin:12px 0 8px;letter-spacing:-.04em}.auth-box>p{color:#95a0b1;font-size:12px;line-height:1.7;margin:0 0 28px}.auth-box .notice{margin-top:25px}.auth-page .row.two{gap:14px}

/* Comprobante imprimible */
.receipt-bg{background:#ecf1f7;min-height:100vh;padding:35px 15px 55px}
.receipt-actions{max-width:820px;margin:0 auto 20px;display:flex;justify-content:space-between;gap:10px}
.receipt-page{max-width:820px;min-height:1000px;background:#fff;margin:auto;border-radius:18px;box-shadow:0 18px 60px rgba(23,41,71,.12);padding:46px 49px 34px}
.receipt-top{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.receipt-top .brand{max-width:320px;font-size:14px}.receipt-top .brand small{color:#8696a9}.receipt-subtitle{display:inline-block;font-size:9px;letter-spacing:.17em;color:#9caac0;font-weight:850;margin-top:21px;line-height:1.8}
.receipt-head-right{text-align:right}.receipt-type{font-weight:900;font-size:10px;letter-spacing:.12em;color:#6f82a0}.receipt-head-right h1{font-size:25px;color:#294267;margin:10px 0 13px}
.receipt-warning{font-size:10px;font-weight:700;text-align:center;color:#ad7d3a;background:#fff7e8;border:1px solid #f5e5cb;line-height:1.6;padding:10px 13px;margin:33px 0 38px;border-radius:10px}
.receipt-meta{display:flex;justify-content:space-between;gap:20px;margin-bottom:35px}.receipt-meta span{font-size:10px;letter-spacing:.08em;font-weight:850;color:#93a0b0}.receipt-meta h3{font-size:18px;margin:9px 0;color:#2e415a}.receipt-meta p{margin:5px 0;font-size:12px;color:#8391a4}.receipt-meta .align-right{text-align:right}.receipt-meta .align-right>div{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}.receipt-meta strong{color:#384d68;font-size:12px}
.receipt-table{margin-top:45px}.rt-head,.rt-line{display:grid;grid-template-columns:1.6fr 1fr .7fr;gap:14px;align-items:center}.rt-head{background:#f2f5fb;padding:15px 18px;color:#7f8ea6;font-size:9px;letter-spacing:.08em;font-weight:900;border-radius:10px}.rt-line{padding:24px 18px;border-bottom:1px solid #e7ecf4;font-size:12px;color:#60738b}.rt-line b{color:#293d57}.rt-line small{display:block;color:#a2afbf;margin-top:7px}.rt-line strong{color:#304c77;text-align:right}
.receipt-total{display:flex;justify-content:flex-end;gap:50px;padding:28px 18px 25px;align-items:center}.receipt-total span{color:#8a9bb0;letter-spacing:.1em;font-weight:800;font-size:11px}.receipt-total b{font-size:25px;color:#264b95}
.paid-note,.due-note{border-radius:10px;padding:13px 17px;font-size:11px;font-weight:800;margin:18px 0 55px}.paid-note{background:#eaf8f0;color:#27885c}.due-note{background:#fff5e7;color:#a68148}
.external-note{font-size:11px;line-height:1.8;background:#f0f5ff;color:#637da5;padding:14px;border-radius:10px;margin:-30px 0 40px}.external-note a{color:#3566cf;text-decoration:underline}
.receipt-foot{border-top:1px dashed #e1e9f2;padding-top:25px;text-align:center;color:#7e8fa5}.receipt-foot p{font-size:12px;font-weight:800}.receipt-foot small{font-size:9px;line-height:1.8}

@media(max-width:1280px){
  .content{padding:28px 24px}.topbar{padding:0 24px}.kpi-grid{gap:11px}.kpi{padding:18px}.section-grid{grid-template-columns:minmax(0,1.4fr) minmax(245px,1fr)}.card{padding:19px}.split-layout{flex-direction:column}.split-layout>.card{width:100%}.form-card{max-width:760px}.settings-grid{gap:14px}
}
@media(max-width:900px){
  .sidebar{transform:translateX(-110%);transition:transform .22s;box-shadow:13px 0 55px rgba(16,32,55,.35)}.sidebar.open{transform:none}
  .scrim.show{display:block;position:fixed;inset:0;background:rgba(14,33,59,.42);z-index:22}
  .main{margin-left:0}.mobile-head{height:55px;display:flex;align-items:center;gap:15px;padding:0 18px;background:#101e36;color:#fff;position:sticky;top:0;z-index:20}.mobile-head .live-dot{margin-left:auto}.nav-toggle{border:0;background:none;color:#fff;font-size:22px}
  .topbar{height:56px}.content{padding:23px 18px}.auth-layout{gap:20px;padding:32px;grid-template-columns:1fr}.auth-info{text-align:center}.auth-info .brand{justify-content:center;margin-bottom:25px}.auth-info h1{font-size:35px;margin:0 auto}.auth-info>p{margin:auto}.auth-features{margin:25px 0;justify-content:center}.auth-box{max-width:560px;margin:auto;width:100%}
}
@media(max-width:650px){
  .topbar{display:none}.page-intro h1{font-size:25px}.greeting{padding:24px;min-height:190px}.greeting h2{font-size:22px}.greeting-art{display:none}.greeting-actions{flex-wrap:wrap}
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-grid,.settings-grid{grid-template-columns:1fr}.settings-footer{grid-column:auto;flex-direction:column;align-items:stretch}.card-head{flex-wrap:wrap}.card-head .search-wrap{width:100%}.search-wrap input{width:100%}.compact-stats{flex-wrap:wrap}.compact-stats>div{flex:1}.site-footer{flex-direction:column}.auth-layout{padding:18px}.auth-info h1{font-size:31px}.auth-box{padding:26px 20px}.row.two{grid-template-columns:1fr}.form-card{width:100%}
  .receipt-page{padding:24px 18px;min-height:850px}.receipt-top .brand{font-size:11px}.receipt-head-right h1{font-size:17px}.receipt-meta{gap:7px}.rt-head,.rt-line{grid-template-columns:1.2fr 1fr .8fr;font-size:10px;gap:4px;padding:12px 6px}.receipt-total{gap:17px;padding:20px 3px}.receipt-total b{font-size:21px}
}
@media print{
  @page{size:A4;margin:8mm}
  .receipt-bg{background:#fff;padding:0}.receipt-actions{display:none}.receipt-page{max-width:none;box-shadow:none;min-height:auto;padding:20px 18px;border-radius:0}
  .receipt-warning{margin:25px 0}.receipt-meta{margin-bottom:27px}.receipt-foot{margin-top:75px}a{color:inherit}
}

/* Detalles PRO 1.1 */
.navicon{display:inline-flex;align-items:center;justify-content:center}
.navicon svg{width:18px;height:18px;transition:transform .2s}
.navitem:hover .navicon svg{transform:scale(1.08)}
.soft-pill.past{background:#fff1e6;color:#a36b37}
.receipt-page{position:relative;overflow:hidden}
.receipt-page::before{content:'';display:block;height:7px;background:linear-gradient(90deg,#2e62eb 0%,#6b61f1 58%,#56cfc5 100%);position:absolute;inset:0 0 auto 0}
@media print{.receipt-page::before{height:5px}}
