/* ── FIADOS PDV E VENDAS - WEB MANAGEMENT DASHBOARD STYLES ── */
:root {
  --primary-color: #739E4C;
  --primary-dark: #5B813A;
  --primary-light: #F0FDF4;
  --primary-border: #BBF7D0;
  
  --accent-yellow: #EDBC17;
  --accent-blue: #276CAD;
  --accent-red: #EF4444;
  --accent-red-light: #FEF2F2;
  --accent-green: #10B981;
  --accent-green-light: #ECFDF5;
  
  --sidebar-bg: #739E4C;
  --sidebar-hover: rgba(255, 255, 255, 0.11);
  --sidebar-border: rgba(255, 255, 255, 0.14);
  --sidebar-text: #FFFFFF;
  --sidebar-text-active: #FFFFFF;
  
  --bg-main: #F8FAFC;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* ── LANDING PAGE PÚBLICA ── */
.public-landing {
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow-y: auto;
  color: #163020;
  background:
    radial-gradient(circle at 82% 16%, rgba(237, 188, 23, .18), transparent 26rem),
    radial-gradient(circle at 8% 82%, rgba(39, 108, 173, .10), transparent 24rem),
    linear-gradient(145deg, #f7fbf3 0%, #fff 54%, #f4f8fc 100%);
}

.landing-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #263429;
  text-decoration: none;
}

.landing-brand img { width: 46px; height: 46px; object-fit: contain; }
.landing-brand span { display: grid; line-height: 1.05; }
.landing-brand strong { font-size: 21px; font-weight: 900; }
.landing-brand small { margin-top: 4px; color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.landing-panel-link,
.landing-primary-action,
.landing-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.landing-panel-link {
  padding: 11px 17px;
  color: #fff;
  background: #276cad;
  box-shadow: 0 10px 25px rgba(39, 108, 173, .22);
}

.landing-panel-link:hover,
.landing-primary-action:hover,
.landing-secondary-action:hover { transform: translateY(-2px); }

.landing-hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  padding: 52px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: clamp(48px, 8vw, 100px);
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #cfe2bf;
  border-radius: 999px;
  color: #527c31;
  background: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 800;
}

.landing-copy h1 {
  max-width: 690px;
  margin-top: 20px;
  color: #18261b;
  font-size: clamp(40px, 5vw, 67px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 900;
}

.landing-copy > p {
  max-width: 620px;
  margin-top: 22px;
  color: #5e6f62;
  font-size: 18px;
  line-height: 1.7;
}

.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.landing-primary-action { padding: 14px 20px; color: #fff; background: #739e4c; box-shadow: 0 14px 30px rgba(115,158,76,.25); }
.landing-secondary-action { padding: 13px 19px; color: #276cad; border: 1px solid #c8d9eb; background: rgba(255,255,255,.75); }

.landing-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: #64748b; font-size: 12px; font-weight: 700; }
.landing-trust span { display: inline-flex; align-items: center; gap: 6px; }
.landing-trust i { color: #739e4c; }

.landing-preview {
  padding: 24px;
  border: 1px solid rgba(115,158,76,.22);
  border-radius: 26px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 35px 90px rgba(39,62,31,.15);
  backdrop-filter: blur(18px);
}

.landing-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #334155; font-size: 13px; font-weight: 800; }
.landing-preview-top > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.landing-preview-top > span:first-child i { color: #276cad; }
.landing-online { color: #568336; font-size: 11px; }
.landing-online i { margin-right: 4px; font-size: 7px; }

.landing-metric-main { margin-top: 20px; padding: 22px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #739e4c, #527d32); }
.landing-metric-main small, .landing-metric-main span { display: block; color: rgba(255,255,255,.78); }
.landing-metric-main strong { display: block; margin: 5px 0 7px; font-size: 24px; }
.landing-metric-main span { font-size: 12px; }

.landing-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.landing-feature-grid article { min-height: 116px; padding: 17px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #e4ebdf; border-radius: 16px; background: #fbfdf9; }
.landing-feature-grid i { margin-bottom: 12px; color: #276cad; font-size: 20px; }
.landing-feature-grid strong { font-size: 14px; }
.landing-feature-grid span { margin-top: 4px; color: #718096; font-size: 11px; }

@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; padding-top: 36px; }
  .landing-copy { text-align: center; }
  .landing-copy h1, .landing-copy > p { margin-left: auto; margin-right: auto; }
  .landing-eyebrow { margin: 0 auto; }
  .landing-actions, .landing-trust { justify-content: center; }
  .landing-preview { width: min(600px, 100%); margin: 0 auto; }
}

@media (max-width: 560px) {
  .landing-header, .landing-hero { width: min(100% - 28px, 1180px); }
  .landing-header { min-height: 74px; }
  .landing-brand small { display: none; }
  .landing-panel-link { padding: 10px 12px; font-size: 12px; }
  .landing-hero { gap: 38px; padding: 35px 0 60px; }
  .landing-copy h1 { font-size: 39px; }
  .landing-copy > p { font-size: 15px; }
  .landing-actions { display: grid; }
  .landing-feature-grid { grid-template-columns: 1fr 1fr; }
  .landing-preview { padding: 16px; border-radius: 20px; }
}

/* ── LANDING PREMIUM V2 ── */
.public-landing { position:fixed; inset:0; z-index:100000; overflow-y:auto; overflow-x:hidden; color:#17231a; background:#fbfcf9; scroll-behavior:smooth; }
.lp-glow { position:absolute; border-radius:50%; filter:blur(2px); pointer-events:none; }
.lp-glow-one { width:560px; height:560px; right:-210px; top:70px; background:radial-gradient(circle,rgba(237,188,23,.16),transparent 68%); }
.lp-glow-two { width:600px; height:600px; left:-340px; top:560px; background:radial-gradient(circle,rgba(39,108,173,.10),transparent 68%); }
.lp-header { position:relative; z-index:5; width:min(1240px,calc(100% - 56px)); height:88px; margin:auto; display:flex; align-items:center; gap:42px; border-bottom:1px solid rgba(30,55,34,.08); }
.lp-brand { display:inline-flex; align-items:center; gap:11px; color:#1b291e; text-decoration:none; flex:none; }
.lp-brand-mark { width:44px; height:44px; display:grid; place-items:center; border-radius:13px; background:#fff; box-shadow:0 8px 24px rgba(49,76,39,.13); overflow:hidden; }
.lp-brand-mark img { width:39px; height:39px; object-fit:contain; }
.lp-brand-copy { display:grid; line-height:1; }
.lp-brand-copy strong { font-size:20px; font-weight:900; letter-spacing:-.03em; }
.lp-brand-copy small { margin-top:5px; color:#718075; font-size:9px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.lp-nav { margin:auto; display:flex; align-items:center; gap:34px; }
.lp-nav a { position:relative; color:#536057; text-decoration:none; font-size:13px; font-weight:700; }
.lp-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:-7px; height:2px; border-radius:2px; background:#739e4c; transition:right .2s ease; }
.lp-nav a:hover::after { right:0; }
.lp-login { display:inline-flex; align-items:center; gap:13px; padding:11px 12px 11px 17px; border:1px solid #dce5d6; border-radius:12px; color:#26382a; background:#fff; text-decoration:none; font-size:12px; font-weight:850; box-shadow:0 7px 22px rgba(33,58,38,.07); }
.lp-login i { width:27px; height:27px; display:grid; place-items:center; border-radius:8px; color:#fff; background:#276cad; }

.lp-hero { position:relative; z-index:2; width:min(1240px,calc(100% - 56px)); min-height:700px; margin:auto; padding:78px 0 96px; display:grid; grid-template-columns:minmax(420px,.86fr) minmax(570px,1.14fr); align-items:center; gap:70px; }
.lp-kicker { display:inline-flex; align-items:center; gap:9px; color:#617161; font-size:11px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.lp-kicker span { width:27px; height:2px; background:#edbc17; }
.lp-hero-copy h1 { margin:22px 0 0; color:#16231a; font-size:clamp(48px,5.2vw,72px); line-height:.99; letter-spacing:-.055em; font-weight:900; }
.lp-hero-copy h1 em { color:#739e4c; font-style:normal; }
.lp-hero-copy>p { max-width:570px; margin-top:25px; color:#627066; font-size:16px; line-height:1.75; }
.lp-actions { display:flex; flex-wrap:wrap; align-items:center; gap:13px; margin-top:32px; }
.lp-primary { min-height:57px; padding:10px 20px; display:inline-flex; align-items:center; gap:13px; border-radius:14px; color:#fff; background:#1b2d20; text-decoration:none; box-shadow:0 15px 35px rgba(24,44,29,.18); transition:transform .2s ease,box-shadow .2s ease; }
.lp-primary:hover { transform:translateY(-2px); box-shadow:0 19px 42px rgba(24,44,29,.24); }
.lp-primary>i { font-size:24px; }
.lp-primary span { display:grid; line-height:1.05; font-size:15px; font-weight:850; }
.lp-primary small { margin-bottom:4px; color:#afbaaf; font-size:9px; font-weight:650; text-transform:uppercase; letter-spacing:.09em; }
.lp-secondary { min-height:57px; padding:0 18px; display:inline-flex; align-items:center; gap:9px; border:1px solid #dce5d6; border-radius:14px; color:#314637; background:rgba(255,255,255,.78); text-decoration:none; font-size:12px; font-weight:800; }
.lp-secondary i { color:#276cad; }
.lp-proof { margin-top:34px; display:flex; align-items:center; gap:13px; }
.lp-proof-icons { display:flex; }
.lp-proof-icons span { width:34px; height:34px; margin-left:-7px; display:grid; place-items:center; border:3px solid #fbfcf9; border-radius:50%; color:#fff; background:#739e4c; font-size:11px; }
.lp-proof-icons span:first-child { margin-left:0; background:#276cad; }.lp-proof-icons span:last-child { background:#d69f08; }
.lp-proof p { color:#718075; font-size:10px; line-height:1.35; }.lp-proof strong { color:#36473a; font-size:11px; }

.lp-product-stage { position:relative; min-width:0; perspective:1200px; }
.lp-stage-orbit { position:absolute; border:1px solid rgba(115,158,76,.14); border-radius:50%; pointer-events:none; }
.lp-orbit-one { width:670px; height:670px; left:50%; top:50%; transform:translate(-50%,-50%); }.lp-orbit-two { width:520px; height:520px; left:50%; top:50%; transform:translate(-50%,-50%); }
.lp-dashboard { position:relative; z-index:2; width:100%; overflow:hidden; border:1px solid rgba(37,58,41,.12); border-radius:22px; background:#fff; box-shadow:0 38px 90px rgba(31,52,35,.20); transform:rotateY(-2deg) rotateX(1deg); }
.lp-dashboard-bar { height:48px; padding:0 17px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #edf1ea; background:#f9fbf8; }
.lp-mini-brand { display:flex; align-items:center; gap:7px; font-size:11px; font-weight:850; }.lp-mini-brand img { width:24px; height:24px; object-fit:contain; }
.lp-window-dots { display:flex; gap:5px; }.lp-window-dots i { width:7px; height:7px; border-radius:50%; background:#d8ded5; }.lp-window-dots i:first-child{background:#edbc17}.lp-window-dots i:last-child{background:#739e4c}
.lp-dashboard-body { height:390px; display:grid; grid-template-columns:55px 1fr; }
.lp-demo-sidebar { padding:17px 0; display:flex; flex-direction:column; align-items:center; gap:12px; color:#9ba79e; background:#17241a; }
.lp-demo-sidebar span { width:31px; height:31px; display:grid; place-items:center; border-radius:9px; font-size:11px; }.lp-demo-sidebar span.active { color:#fff; background:#739e4c; }
.lp-demo-content { min-width:0; padding:22px; background:#f6f8f5; }
.lp-demo-heading { display:flex; align-items:center; justify-content:space-between; }.lp-demo-heading>div { display:grid; gap:4px; }.lp-demo-heading small { color:#8a968d; font-size:7px; letter-spacing:.12em; }.lp-demo-heading strong { font-size:13px; }.lp-demo-heading>span { width:30px; height:30px; display:grid; place-items:center; border:1px solid #e0e6dd; border-radius:9px; color:#6f7e72; background:#fff; font-size:10px; }
.lp-demo-metrics { margin-top:18px; display:grid; grid-template-columns:1.35fr 1fr 1fr; gap:10px; }.lp-demo-metrics article { min-height:83px; padding:13px; display:flex; align-items:center; justify-content:space-between; border:1px solid #e4e9e1; border-radius:13px; background:#fff; }.lp-demo-metrics article.primary { color:#fff; border:0; background:linear-gradient(135deg,#739e4c,#527d32); }.lp-demo-metrics article>i { color:#739e4c; font-size:17px; }.lp-demo-metrics article.primary>i { color:#fff; }.lp-demo-metrics span { display:grid; gap:4px; }.lp-demo-metrics small { color:#87938a; font-size:7px; }.lp-demo-metrics .primary small { color:rgba(255,255,255,.7); }.lp-demo-metrics strong { font-size:14px; }.lp-demo-metrics em { color:#dff6ce; font-size:7px; font-style:normal; }
.lp-demo-lower { margin-top:11px; display:grid; grid-template-columns:1.15fr .85fr; gap:10px; }.lp-demo-chart,.lp-demo-list { min-width:0; min-height:181px; padding:14px; border:1px solid #e4e9e1; border-radius:13px; background:#fff; }.lp-demo-chart>div:first-child,.lp-demo-list>div:first-child { display:flex; align-items:center; justify-content:space-between; font-size:9px; }.lp-demo-chart small,.lp-demo-list small { color:#939e95; font-size:7px; }
.lp-bars { height:120px; margin-top:15px; display:flex; align-items:flex-end; justify-content:space-around; gap:7px; border-bottom:1px solid #e8ece6; background:repeating-linear-gradient(to bottom,#fff 0,#fff 29px,#eef1ec 30px); }.lp-bars i { width:13px; height:var(--h); border-radius:5px 5px 1px 1px; background:linear-gradient(#8ab363,#739e4c); }
.lp-demo-list p { margin-top:17px; display:flex; align-items:center; gap:8px; }.lp-avatar { width:27px; height:27px; display:grid; place-items:center; border-radius:8px; color:#fff; font-size:7px; font-weight:850; }.lp-avatar.blue{background:#276cad}.lp-avatar.green{background:#739e4c}.lp-demo-list p b { min-width:0; display:grid; flex:1; font-size:8px; }.lp-demo-list p b small { margin-top:3px; }.lp-demo-list p>strong { font-size:8px; white-space:nowrap; }
.lp-float-card { position:absolute; z-index:4; display:flex; align-items:center; gap:10px; border:1px solid rgba(34,56,39,.1); border-radius:14px; background:rgba(255,255,255,.96); box-shadow:0 18px 44px rgba(32,51,36,.18); backdrop-filter:blur(12px); }.lp-float-sale { left:-34px; bottom:-26px; padding:12px 15px; }.lp-float-sale>span { width:31px; height:31px; display:grid; place-items:center; border-radius:9px; color:#fff; background:#739e4c; }.lp-float-card div,.lp-float-card>span { display:grid; gap:3px; }.lp-float-card small { color:#849087; font-size:7px; }.lp-float-card strong { font-size:10px; }.lp-float-sync { right:-25px; top:-25px; padding:11px 14px; color:#276cad; }.lp-float-sync>i { font-size:17px; }.lp-float-sync span { color:#25352a; }

.lp-trust-strip { position:relative; z-index:2; width:min(1240px,calc(100% - 56px)); margin:0 auto; padding:22px 0; display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid #e4e9e1; border-bottom:1px solid #e4e9e1; }.lp-trust-strip>div { padding:4px 24px; display:flex; align-items:center; gap:13px; border-right:1px solid #e4e9e1; }.lp-trust-strip>div:last-child { border:0; }.lp-trust-strip i { color:#739e4c; font-size:19px; }.lp-trust-strip span { display:grid; gap:3px; }.lp-trust-strip strong { font-size:11px; }.lp-trust-strip small { color:#839087; font-size:8px; }
.lp-section { position:relative; z-index:2; width:min(1160px,calc(100% - 56px)); margin:auto; padding:125px 0; }.lp-section-head { max-width:680px; }.lp-section-head>span,.lp-cta-copy>span { color:#739e4c; font-size:10px; font-weight:900; letter-spacing:.16em; }.lp-section-head h2,.lp-cta-copy h2 { margin-top:14px; color:#17231a; font-size:clamp(36px,4vw,54px); line-height:1.08; letter-spacing:-.045em; }.lp-section-head p { max-width:580px; margin-top:18px; color:#69766d; font-size:14px; line-height:1.7; }
.lp-feature-cards { margin-top:48px; display:grid; grid-template-columns:1.2fr .8fr; gap:16px; }.lp-feature-cards>article { position:relative; min-height:255px; overflow:hidden; padding:28px; border:1px solid #e3e9df; border-radius:22px; background:#fff; box-shadow:0 15px 45px rgba(35,59,40,.06); }.lp-feature-cards h3 { margin-top:15px; font-size:20px; letter-spacing:-.02em; }.lp-feature-cards p { max-width:440px; margin-top:9px; color:#748078; font-size:12px; line-height:1.65; }.lp-feature-main { grid-row:span 2; color:#fff; border:0!important; background:linear-gradient(145deg,#1a2b1e,#263d2b)!important; }.lp-feature-main>span { display:block; margin-top:24px; color:#bdd3b5; font-size:8px; font-weight:850; letter-spacing:.14em; }.lp-feature-main h3 { max-width:400px; font-size:31px; }.lp-feature-main p { color:#b5c2b8; }.lp-feature-icon { width:45px; height:45px; display:grid; place-items:center; border-radius:13px; color:#fff; background:#739e4c; font-size:18px; }.lp-feature-icon.blue{background:#276cad}.lp-feature-icon.gold{color:#5d4700;background:#edbc17}.lp-feature-icon.dark{background:#19271c}
.lp-mini-receipt { position:absolute; left:28px; right:28px; bottom:28px; padding:17px; border:1px solid rgba(255,255,255,.11); border-radius:15px; background:rgba(255,255,255,.07); }.lp-mini-receipt p { max-width:none; margin:0 0 11px; display:flex; justify-content:space-between; color:#dce7dd; }.lp-mini-receipt p strong{color:#fff;font-size:17px}.lp-mini-receipt button{width:100%;padding:11px;border:0;border-radius:9px;color:#17231a;background:#edbc17;font:800 10px inherit}.lp-mini-receipt button i{margin-left:6px}
.lp-client-row { position:absolute; left:28px; right:28px; bottom:27px; display:flex; align-items:center; gap:10px; }.lp-client-row>span { width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#fff;background:#276cad;font-size:9px;font-weight:850}.lp-client-row b{display:grid;flex:1;font-size:10px}.lp-client-row small{margin-top:3px;color:#89958c;font-size:8px}.lp-client-row>strong{font-size:11px;color:#c24f4f}.lp-stock-line{position:absolute;left:28px;right:28px;bottom:34px;height:55px;display:flex;align-items:flex-end;gap:9px}.lp-stock-line i{flex:1;border-radius:5px;background:#edbc17}.lp-stock-line i:nth-child(1){height:45%}.lp-stock-line i:nth-child(2){height:75%}.lp-stock-line i:nth-child(3){height:55%}.lp-stock-line i:nth-child(4){height:92%}.lp-stock-line i:nth-child(5){height:68%}
.lp-feature-wide { grid-column:1/-1; min-height:220px!important; display:flex; align-items:center; justify-content:space-between; padding:36px 60px!important; background:#f0f5ed!important; }.lp-feature-wide>div:first-child{max-width:570px}.lp-donut{position:relative;width:145px;height:145px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#739e4c 0 74%,#dbe6d5 74%)}.lp-donut::before{content:"";position:absolute;width:105px;height:105px;border-radius:50%;background:#f0f5ed}.lp-donut span{position:relative;z-index:2;display:grid;text-align:center}.lp-donut strong{font-size:25px}.lp-donut small{color:#748078;font-size:8px}
.lp-steps-section { width:min(1240px,calc(100% - 56px)); border-top:1px solid #e4e9e1; }.lp-section-head.centered { margin:auto;text-align:center; }.lp-steps { margin-top:58px; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }.lp-steps article { position:relative; min-height:265px; padding:33px; border:1px solid #e1e7de; border-radius:20px; background:#fff; }.lp-steps article>b { position:absolute; right:24px; top:20px; color:#edf1eb; font-size:40px; }.lp-steps article>span { width:50px;height:50px;display:grid;place-items:center;border-radius:14px;color:#fff;background:#739e4c;font-size:19px}.lp-steps article:nth-child(2)>span{background:#276cad}.lp-steps article:nth-child(3)>span{color:#5d4700;background:#edbc17}.lp-steps h3{margin-top:30px;font-size:18px}.lp-steps p{margin-top:10px;color:#748078;font-size:12px;line-height:1.65}
.lp-cta-section { width:min(1240px,calc(100% - 56px)); margin-bottom:80px; padding:70px; display:flex; align-items:center; justify-content:space-between; gap:50px; overflow:hidden; border-radius:28px; color:#fff; background:linear-gradient(120deg,#18281c,#2e4a32); box-shadow:0 30px 80px rgba(24,43,28,.2); }.lp-cta-section::after{content:"";position:absolute;width:360px;height:360px;right:-100px;top:-160px;border:1px solid rgba(255,255,255,.1);border-radius:50%;box-shadow:0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.02)}.lp-cta-copy{position:relative;z-index:2;max-width:610px}.lp-cta-copy>span{color:#d6edc9}.lp-cta-copy h2{color:#fff}.lp-cta-copy p{max-width:550px;margin-top:17px;color:#bdc9bf;font-size:14px;line-height:1.7}.lp-cta-actions{position:relative;z-index:2;display:grid;gap:11px;min-width:225px}.lp-cta-section .lp-primary{background:#739e4c}.lp-cta-login{padding:13px;text-align:center;color:#e0e8e1;text-decoration:none;font-size:11px;font-weight:800}.lp-cta-login i{margin-left:7px}
.lp-footer { width:min(1240px,calc(100% - 56px)); margin:auto; padding:27px 0 38px; display:flex; align-items:center; gap:30px; border-top:1px solid #e1e7de; }.lp-footer>p{margin:auto;color:#7d8980;font-size:10px}.lp-footer>div{display:flex;gap:22px}.lp-footer>div a{color:#647168;text-decoration:none;font-size:10px;font-weight:700}

@media(max-width:1050px){.lp-nav{display:none}.lp-hero{grid-template-columns:1fr;padding-top:58px}.lp-hero-copy{text-align:center}.lp-hero-copy>p{margin-left:auto;margin-right:auto}.lp-actions,.lp-proof{justify-content:center}.lp-product-stage{width:min(760px,100%);margin:40px auto 0}.lp-trust-strip{grid-template-columns:1fr 1fr}.lp-trust-strip>div:nth-child(2){border-right:0}.lp-trust-strip>div{padding:15px 25px}.lp-feature-cards{grid-template-columns:1fr 1fr}.lp-feature-main{grid-column:1/-1;grid-row:auto;min-height:430px!important}.lp-cta-section{padding:55px}}
@media(max-width:720px){.lp-header,.lp-hero,.lp-trust-strip,.lp-section,.lp-steps-section,.lp-cta-section,.lp-footer{width:min(100% - 28px,1240px)}.lp-header{height:74px}.lp-brand-copy small{display:none}.lp-login span{display:none}.lp-login{padding:8px}.lp-login i{width:31px;height:31px}.lp-hero{min-height:0;padding:55px 0 70px;gap:25px}.lp-hero-copy h1{font-size:46px}.lp-hero-copy>p{font-size:14px}.lp-actions{display:grid}.lp-primary,.lp-secondary{width:100%;justify-content:center}.lp-product-stage{margin-top:34px}.lp-dashboard{border-radius:16px}.lp-dashboard-body{height:310px;grid-template-columns:42px 1fr}.lp-demo-content{padding:13px}.lp-demo-metrics{grid-template-columns:1fr 1fr}.lp-demo-metrics article:last-child{display:none}.lp-demo-lower{grid-template-columns:1fr}.lp-demo-list{display:none}.lp-demo-chart{min-height:145px}.lp-bars{height:88px}.lp-float-card{display:none}.lp-trust-strip{grid-template-columns:1fr}.lp-trust-strip>div{border-right:0;border-bottom:1px solid #e4e9e1}.lp-trust-strip>div:last-child{border-bottom:0}.lp-section{padding:85px 0}.lp-section-head h2,.lp-cta-copy h2{font-size:38px}.lp-feature-cards{grid-template-columns:1fr}.lp-feature-main,.lp-feature-wide{grid-column:auto}.lp-feature-main{min-height:440px!important}.lp-feature-wide{padding:28px!important;display:block}.lp-donut{margin:30px auto 0}.lp-steps{grid-template-columns:1fr}.lp-steps article{min-height:220px}.lp-cta-section{margin-bottom:45px;padding:45px 28px;display:block}.lp-cta-actions{margin-top:30px}.lp-footer{flex-wrap:wrap;justify-content:center}.lp-footer>p{width:100%;order:3;text-align:center}.lp-footer>div{gap:15px}}
@media(max-width:420px){.lp-hero-copy h1{font-size:39px}.lp-proof{align-items:flex-start;text-align:left}.lp-dashboard-body{grid-template-columns:35px 1fr}.lp-demo-sidebar span{width:26px;height:26px}.lp-demo-metrics{grid-template-columns:1fr}.lp-demo-metrics article:nth-child(2){display:none}.lp-section-head h2,.lp-cta-copy h2{font-size:34px}.lp-feature-cards>article{padding:23px}.lp-mini-receipt,.lp-client-row{left:23px;right:23px}.lp-footer>div{flex-wrap:wrap;justify-content:center}}

/* Distribuição ampla e fidelidade ao tema do aplicativo */
.public-landing { background:#fff; }
.lp-header,.lp-hero,.lp-trust-strip { width:min(1480px,calc(100% - 40px)); }
.lp-section,.lp-steps-section,.lp-footer { width:min(1360px,calc(100% - 40px)); }
.lp-hero { grid-template-columns:minmax(440px,.78fr) minmax(650px,1.22fr); min-height:750px; gap:clamp(45px,6vw,100px); }
.lp-hero::before { content:""; position:absolute; z-index:-1; left:-7vw; right:-7vw; top:0; bottom:0; background:linear-gradient(112deg,#f5faef 0%,#fff 44%,#eef5e8 100%); border-radius:0 0 54px 54px; }
.lp-dashboard-bar { height:68px; padding:0 22px; color:#fff; border:0; background:#739e4c; }
.lp-demo-welcome { display:flex; align-items:center; gap:9px; }.lp-demo-welcome img{width:31px;height:31px;padding:2px;border-radius:50%;background:#fff;object-fit:contain}.lp-demo-welcome span{display:grid;gap:3px}.lp-demo-welcome strong{font-size:11px}.lp-demo-welcome small{color:rgba(255,255,255,.75);font-size:7px}
.lp-demo-top-actions { display:flex;align-items:center;gap:13px;font-size:9px;font-weight:800 }.lp-demo-top-actions span{padding:7px 10px;border:1px solid rgba(255,255,255,.35);border-radius:999px}.lp-demo-top-actions i{color:#fff}
.lp-dashboard-body { height:410px; }.lp-demo-sidebar{background:#434a54}.lp-demo-sidebar span.active{background:#276cad}
.lp-demo-metrics article.warning{color:#fff;border:0;background:linear-gradient(135deg,#edbc17,#dca80a)}.lp-demo-metrics article.warning small,.lp-demo-metrics article.info small{color:rgba(255,255,255,.78)}.lp-demo-metrics article.warning>i,.lp-demo-metrics article.info>i{color:#fff}.lp-demo-metrics article.info{color:#fff;border:0;background:linear-gradient(135deg,#276cad,#3885c7)}
.lp-avatar.red{color:#fff;background:#df4a4a}.lp-demo-list p>strong{color:#d43636}
.lp-trust-strip { margin-top:34px; padding:0; overflow:hidden; border:0; border-radius:20px; color:#fff; background:#434a54; box-shadow:0 18px 50px rgba(42,49,57,.14)}.lp-trust-strip>div{padding:24px 28px;border-color:rgba(255,255,255,.12)}.lp-trust-strip i{color:#edbc17}.lp-trust-strip strong{color:#fff}.lp-trust-strip small{color:#c8cdd2}
.lp-features-section { width:auto; max-width:none; margin-top:100px; padding:120px max(40px,calc((100vw - 1360px)/2)); background:#f4f8f0; }.lp-features-section .lp-section-head{max-width:760px}.lp-feature-cards{grid-template-columns:1.15fr .85fr}.lp-feature-main{background:linear-gradient(145deg,#638f40,#426b29)!important}.lp-feature-wide{background:#fff!important}.lp-feature-wide .lp-donut::before{background:#fff}
.lp-steps-section { margin-top:0; }

/* Seção mobile */
.lp-mobile-section { position:relative; overflow:hidden; color:#fff; background:#276cad; }
.lp-mobile-section::before { content:"";position:absolute;width:720px;height:720px;right:-260px;top:-170px;border-radius:50%;background:rgba(255,255,255,.055);box-shadow:0 0 0 90px rgba(255,255,255,.025),0 0 0 180px rgba(255,255,255,.018) }
.lp-mobile-inner { position:relative; z-index:2; width:min(1360px,calc(100% - 40px)); min-height:820px; margin:auto; padding:110px 60px; display:grid; grid-template-columns:.9fr 1.1fr; align-items:center; gap:100px; }
.lp-mobile-copy>span { color:#c9e2f8;font-size:10px;font-weight:900;letter-spacing:.16em }.lp-mobile-copy h2{margin-top:16px;font-size:clamp(40px,4.4vw,62px);line-height:1.05;letter-spacing:-.05em}.lp-mobile-copy h2 em{color:#edbc17;font-style:normal}.lp-mobile-copy>p{max-width:600px;margin-top:22px;color:#d6e7f6;font-size:15px;line-height:1.75}.lp-mobile-benefits{margin:31px 0;display:grid;gap:12px}.lp-mobile-benefits article{display:flex;align-items:center;gap:14px}.lp-mobile-benefits article>i{width:43px;height:43px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:12px;color:#edbc17;background:rgba(255,255,255,.08)}.lp-mobile-benefits span{display:grid;gap:4px}.lp-mobile-benefits strong{font-size:12px}.lp-mobile-benefits small{color:#c5dbed;font-size:9px}.lp-mobile-section .lp-primary{background:#172b3c}
.lp-phone-stage{position:relative;min-height:650px;display:grid;place-items:center}.lp-phone-halo{position:absolute;width:560px;height:560px;border-radius:50%;background:radial-gradient(circle,rgba(237,188,23,.25),transparent 63%)}
.lp-phone{position:relative;z-index:2;width:315px;height:640px;padding:9px;border:2px solid rgba(255,255,255,.4);border-radius:45px;background:#17202a;box-shadow:0 45px 90px rgba(10,30,48,.4);transform:rotate(3deg)}.lp-phone-speaker{position:absolute;z-index:5;left:50%;top:16px;width:78px;height:18px;transform:translateX(-50%);border-radius:20px;background:#17202a}.lp-phone-screen{height:100%;overflow:hidden;position:relative;border-radius:35px;background:#fff}.lp-phone-screen>header{height:125px;padding:35px 19px 20px;display:flex;justify-content:space-between;color:#fff;background:#739e4c}.lp-phone-screen>header div{display:grid;align-content:center;gap:5px}.lp-phone-screen>header small{font-size:13px;font-weight:850}.lp-phone-screen>header strong{color:#e7f1e1;font-size:8px}.lp-phone-screen>header>span{width:33px;height:33px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.4);border-radius:50%}
.lp-phone-sheet{position:absolute;left:0;right:0;top:105px;bottom:57px;padding:18px 13px;overflow:hidden;border-radius:27px 27px 0 0;background:#fff}.lp-phone-total{height:72px;padding:12px 16px;display:flex;align-items:center;gap:13px;border-radius:14px;color:#fff;background:linear-gradient(120deg,#739e4c,#92b66e);box-shadow:0 6px 13px rgba(82,125,50,.22)}.lp-phone-total>i{width:39px;height:39px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.2)}.lp-phone-total span{display:grid;gap:4px}.lp-phone-total small{color:#e6f0df;font-size:8px}.lp-phone-total strong{font-size:18px}.lp-phone-stats{margin-top:11px;display:grid;grid-template-columns:1fr 1fr;gap:9px}.lp-phone-stats article{height:61px;padding:9px;display:flex;align-items:center;gap:8px;border-radius:12px;color:#fff}.lp-phone-stats .yellow{background:#edbc17}.lp-phone-stats .blue{background:#276cad}.lp-phone-stats i{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.19);font-size:10px}.lp-phone-stats span{display:grid}.lp-phone-stats small{font-size:6px}.lp-phone-stats strong{font-size:14px}.lp-phone-sheet>a{margin:13px 0;padding:10px 11px;display:flex;align-items:center;gap:8px;border:1px solid #dbe6d5;border-radius:10px;color:#739e4c;font-size:8px;font-weight:850}.lp-phone-sheet>a i:last-child{margin-left:auto}.lp-phone-sheet h3{margin:10px 2px 8px;font-size:10px}.lp-phone-sheet h3 i{margin-right:6px;color:#e74444}.lp-phone-debt{margin-top:7px;padding:9px;display:flex;align-items:center;gap:8px;border:1px solid #f6c8c8;border-radius:10px}.lp-phone-debt>span{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;color:#d73535;background:#ffe5e5}.lp-phone-debt b{min-width:0;display:grid;flex:1;font-size:7px}.lp-phone-debt b small{margin-top:4px;color:#888;font-size:5px}.lp-phone-debt>strong{display:grid;gap:4px;color:#d73535;font-size:7px;text-align:right}.lp-phone-debt>strong i{color:#22b95a}.lp-phone-screen>nav{position:absolute;z-index:4;left:0;right:0;bottom:0;height:59px;display:flex;align-items:center;justify-content:space-around;border-top:1px solid #edf0ea;background:#f4f7ef}.lp-phone-screen>nav span{display:grid;place-items:center;gap:3px;color:#777;font-size:9px}.lp-phone-screen>nav span small{font-size:5px}.lp-phone-screen>nav span.active{color:#276cad}.lp-phone-screen>nav>b{width:45px;height:45px;margin-top:-23px;display:grid;place-items:center;border:4px solid #fff;border-radius:50%;color:#29451d;background:#739e4c;box-shadow:0 5px 13px rgba(0,0,0,.2)}.lp-phone-note{position:absolute;z-index:4;right:0;bottom:70px;padding:13px 16px;display:flex;align-items:center;gap:10px;border-radius:14px;color:#243328;background:#fff;box-shadow:0 18px 40px rgba(12,29,43,.25)}.lp-phone-note>i{color:#739e4c}.lp-phone-note span{display:grid;gap:3px}.lp-phone-note strong{font-size:9px}.lp-phone-note small{color:#7b887e;font-size:7px}
.lp-phone-sheet>a.lp-phone-report,.lp-phone-sheet>a.lp-phone-upgrade{margin:7px 0 0;padding:7px 9px;border-radius:8px;font-size:7px}.lp-phone-sheet>a.lp-phone-upgrade{margin-top:4px;color:#d97706;border-color:#fed7aa;background:#fffaf0}.lp-phone-sheet h3{margin:7px 2px 4px;font-size:9px}.lp-phone-sheet h3 small{font-size:7px}.lp-phone-sheet h3.lp-phone-due-title i{color:#f59e0b}.lp-phone-empty{padding:7px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #b7dfbe;border-radius:8px;color:#568336;background:#eff9f0;font-size:7px;font-weight:800}.lp-phone-empty i{font-size:9px}.lp-phone-debt{margin-top:4px;padding:6px 7px;gap:7px;border-radius:8px}.lp-phone-debt>span{width:24px;height:24px;flex:0 0 24px;font-size:8px}.lp-phone-debt b small{margin-top:2px;display:grid;gap:1px}.lp-phone-debt b em{color:#dc2626;font-size:5px;font-style:normal;font-weight:800}.lp-phone-pagination{margin:5px auto 0;display:flex;align-items:center;justify-content:center;gap:8px;color:#64748b;font-size:6px}.lp-phone-pagination i{font-size:5px}.lp-phone-sales-title{padding-top:4px;border-top:1px solid #edf0ea}
.lp-phone-screen>header .lp-phone-greeting{display:grid;align-content:center;gap:5px}.lp-phone-screen>header .lp-phone-header-actions{display:flex;align-items:center;gap:8px}.lp-phone-header-actions>span{display:grid;justify-items:center;gap:3px}.lp-phone-header-actions>span>i{width:31px;height:31px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.45);border-radius:50%;color:#fff;background:rgba(255,255,255,.14);font-size:11px}.lp-phone-header-actions>span>small{color:#eef6e9;font-size:5px;font-weight:750}.lp-phone-header-actions .lp-phone-profile>i{color:#557a37;background:#fff;border-color:#fff}
.lp-phone-due-title,.lp-phone-overdue-title,.lp-phone-sales-title{display:flex;align-items:center;color:#25312a;font-weight:900}.lp-phone-due-title small,.lp-phone-overdue-title small{margin-left:3px}.lp-phone-sales-title{margin-top:6px!important;padding-top:6px;border-top:1px solid #edf0ea}.lp-phone-sales-title i{color:#739e4c!important}.lp-phone-sale{margin-top:4px;padding:5px 6px;display:flex;align-items:center;gap:7px;border:1px solid #e6ece2;border-radius:8px;background:#fff}.lp-phone-sale>span{width:23px;height:23px;display:grid;place-items:center;flex:0 0 23px;border-radius:50%;color:#739e4c;background:#edf5e8;font-size:7px}.lp-phone-sale>b{min-width:0;display:grid;flex:1;color:#354039;font-size:7px}.lp-phone-sale>b small{margin-top:2px;overflow:hidden;color:#8a948d;font-size:5px;text-overflow:ellipsis;white-space:nowrap}.lp-phone-sale>strong{display:grid;gap:2px;color:#739e4c;font-size:7px;text-align:right}.lp-phone-sale>strong small{color:#9aa29c;font-size:5px;font-weight:600}
.lp-phone-sheet{padding:14px 12px}.lp-phone-total{height:64px;padding:10px 14px}.lp-phone-stats{margin-top:9px}.lp-phone-stats article{height:52px;padding:8px}.lp-phone-debt{min-height:32px}

@media(max-width:1050px){.lp-hero{grid-template-columns:1fr}.lp-mobile-inner{grid-template-columns:1fr;padding:90px 30px;text-align:center;gap:45px}.lp-mobile-copy>p{margin-left:auto;margin-right:auto}.lp-mobile-benefits{width:min(500px,100%);margin:30px auto;text-align:left}.lp-mobile-section .lp-primary{width:max-content;margin:auto}.lp-phone-stage{min-height:690px}.lp-features-section{padding-left:30px;padding-right:30px}}
@media(max-width:720px){.lp-header,.lp-hero,.lp-trust-strip,.lp-section,.lp-steps-section,.lp-footer,.lp-mobile-inner{width:min(100% - 28px,1480px)}.lp-hero::before{left:-14px;right:-14px;border-radius:0 0 30px 30px}.lp-dashboard-bar{height:58px}.lp-demo-welcome strong{font-size:9px}.lp-demo-top-actions span{display:none}.lp-features-section{margin-top:70px;padding:85px 14px}.lp-mobile-inner{padding:80px 0}.lp-mobile-copy h2{font-size:40px}.lp-phone{width:285px;height:590px}.lp-phone-stage{min-height:640px}.lp-phone-note{right:50%;bottom:20px;transform:translateX(50%);white-space:nowrap}}
@media(max-width:400px){.lp-phone{width:265px;height:560px}.lp-phone-stage{min-height:610px}.lp-mobile-copy h2{font-size:35px}.lp-demo-top-actions{display:none}}

/* Cabeçalho no tema do app e mockup fiel ao Painel Web */
.lp-header { height:92px; border:0; }
.lp-header::before { content:"";position:absolute;z-index:-1;left:50%;top:0;width:100vw;height:100%;transform:translateX(-50%);background:#739e4c;box-shadow:0 6px 22px rgba(69,104,43,.14) }
.lp-header .lp-brand { color:#fff }.lp-header .lp-brand-mark{background:rgba(255,255,255,.96)}.lp-header .lp-brand-copy small{color:rgba(255,255,255,.74)}
.lp-header .lp-nav a{color:rgba(255,255,255,.86)}.lp-header .lp-nav a::after{background:#edbc17}
.lp-header .lp-login{color:#fff;border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.13);box-shadow:none}.lp-header .lp-login i{color:#273746;background:#edbc17}
.lp-hero{padding-top:72px}.lp-hero::before{top:-1px}
.lp-dashboard{border-color:#27313d;border-radius:16px;box-shadow:0 38px 90px rgba(15,23,42,.24);transform:none}
.lp-dashboard-bar{height:58px;padding:0 15px;color:#fff;background:#0f172a}
.lp-demo-welcome{width:180px;flex:none}.lp-demo-welcome img{width:29px;height:29px}.lp-demo-welcome strong{font-size:8px}.lp-demo-welcome small{color:#94a3b8;font-size:6px}
.lp-demo-search{height:31px;min-width:0;max-width:260px;flex:1;margin:0 18px;padding:0 11px;display:flex;align-items:center;gap:7px;border:1px solid #273449;border-radius:8px;color:#7f8da1;background:#182235;font-size:7px}.lp-demo-search i{color:#739e4c}
.lp-demo-top-actions{color:#b9c4d2}.lp-demo-top-actions span{border-color:#2b3a50;background:#172338}.lp-demo-top-actions span i{color:#739e4c}
.lp-dashboard-body{height:420px;grid-template-columns:125px 1fr}.lp-demo-sidebar{padding:18px 10px;align-items:stretch;gap:7px;color:#94a3b8;background:#0f172a}.lp-demo-sidebar span{width:auto;height:32px;padding-left:11px;display:flex;align-items:center;border-radius:7px}.lp-demo-sidebar span::after{margin-left:9px;font-size:6px;font-weight:700}.lp-demo-sidebar span:nth-child(1)::after{content:"Visão Geral"}.lp-demo-sidebar span:nth-child(2)::after{content:"Clientes & Fiados"}.lp-demo-sidebar span:nth-child(3)::after{content:"PDV Balcão"}.lp-demo-sidebar span:nth-child(4)::after{content:"Produtos"}.lp-demo-sidebar span:nth-child(5)::after{content:"Relatórios"}.lp-demo-sidebar span.active{color:#fff;background:#1e293b}.lp-demo-sidebar span.active i{color:#739e4c}
.lp-demo-content{padding:19px 21px;background:#f8fafc}.lp-demo-heading strong{font-size:12px}.lp-demo-heading>span{border-color:#dce3ea}
.lp-demo-metrics{grid-template-columns:repeat(4,1fr);gap:8px;margin-top:15px}.lp-demo-metrics article,.lp-demo-metrics article.primary,.lp-demo-metrics article.warning,.lp-demo-metrics article.info,.lp-demo-metrics article.success{min-height:77px;padding:12px;color:#172033;border:1px solid #e2e8f0;background:#fff}.lp-demo-metrics article small,.lp-demo-metrics article.primary small,.lp-demo-metrics article.warning small,.lp-demo-metrics article.info small{color:#718096;text-transform:uppercase}.lp-demo-metrics article strong{font-size:12px}.lp-demo-metrics article em{color:#8996a5;font-size:6px}.lp-demo-metrics article>i{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;font-size:11px}.lp-demo-metrics article.primary>i{color:#dc2626;background:#fee2e2}.lp-demo-metrics article.warning>i{color:#d97706;background:#fef3c7}.lp-demo-metrics article.info>i{color:#2563eb;background:#dbeafe}.lp-demo-metrics article.success>i{color:#16a34a;background:#dcfce7}
.lp-demo-lower{grid-template-columns:1.08fr .92fr}.lp-demo-chart,.lp-demo-list{min-height:205px;border-color:#e2e8f0;border-radius:10px}.lp-demo-due>div:first-child{margin:-14px -14px 0;padding:12px 14px;color:#92400e;background:#fffbeb}.lp-demo-due>div i{margin-right:5px;color:#f59e0b}.lp-demo-due>p{margin:0 -14px;padding:10px 14px;display:grid;grid-template-columns:1.35fr .75fr .65fr;align-items:center;border-bottom:1px solid #edf1f4;font-size:7px}.lp-demo-due>p:nth-child(2){color:#7c8796;background:#f8fafc;font-size:6px;font-weight:800}.lp-demo-due>p b{font-size:7px}.lp-demo-due>p strong{font-size:7px}.lp-demo-due>p em{width:max-content;padding:3px 6px;border-radius:5px;color:#92400e;background:#fef3c7;font-size:6px;font-style:normal}.lp-demo-list>div:first-child{margin:-14px -14px 0;padding:12px 14px;color:#991b1b;background:#fef2f2}.lp-demo-list p{padding-bottom:10px;border-bottom:1px solid #eef1f4}
@media(max-width:1050px){.lp-header{width:min(100% - 40px,1480px)}.lp-product-stage{width:min(900px,100%)} }
@media(max-width:720px){.lp-header{height:76px}.lp-dashboard-body{grid-template-columns:46px 1fr;height:340px}.lp-demo-sidebar{padding:12px 6px;align-items:center}.lp-demo-sidebar span{width:30px;padding:0;justify-content:center}.lp-demo-sidebar span::after{display:none}.lp-demo-search{display:none}.lp-demo-metrics{grid-template-columns:1fr 1fr}.lp-demo-metrics article:nth-child(3),.lp-demo-metrics article:nth-child(4){display:none}.lp-demo-list{display:none}.lp-demo-lower{grid-template-columns:1fr}.lp-demo-chart{display:block;min-height:165px}.lp-demo-welcome{width:auto}.lp-demo-welcome span{display:none}}

/* Landing pública — composição final para celulares. Mantida isolada do desktop. */
@media (max-width: 720px) {
  .public-landing { scroll-behavior: auto; }
  .lp-glow { opacity: .55; }

  .lp-header {
    width: calc(100% - 28px);
    height: 68px;
    gap: 12px;
  }
  .lp-brand { gap: 8px; }
  .lp-brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .lp-brand-mark img { width: 34px; height: 34px; }
  .lp-brand-copy strong { font-size: 18px; }
  .lp-header .lp-brand-copy small { display: block; margin-top: 3px; font-size: 7px; }
  .lp-login { margin-left: auto; min-height: 40px; padding: 7px 8px 7px 12px; gap: 8px; border-radius: 10px; }
  .lp-login span { display: inline; font-size: 11px; }
  .lp-login i { width: 26px; height: 26px; font-size: 10px; }

  .lp-hero {
    width: calc(100% - 28px);
    min-height: 0;
    padding: 42px 0 48px;
    gap: 24px;
  }
  .lp-hero::before { left: -14px; right: -14px; border-radius: 0 0 26px 26px; }
  .lp-kicker { justify-content: center; font-size: 9px; line-height: 1.4; letter-spacing: .06em; }
  .lp-kicker span { width: 18px; }
  .lp-hero-copy h1 { margin-top: 16px; font-size: clamp(35px, 11vw, 44px); line-height: 1.02; letter-spacing: -.045em; }
  .lp-hero-copy > p { margin-top: 18px; font-size: 14px; line-height: 1.6; }
  .lp-actions { margin-top: 23px; gap: 10px; }
  .lp-primary, .lp-secondary { min-height: 52px; border-radius: 12px; }
  .lp-proof { margin-top: 22px; justify-content: center; text-align: left; }
  .lp-proof p { font-size: 10px; line-height: 1.45; }

  .lp-product-stage { width: 100%; margin-top: 20px; }
  .lp-dashboard { overflow: hidden; border-radius: 14px; box-shadow: 0 22px 48px rgba(15,23,42,.18); }
  .lp-dashboard-bar { height: 48px; padding: 0 11px; }
  .lp-demo-welcome img { width: 27px; height: 27px; }
  .lp-demo-top-actions { font-size: 8px; }
  .lp-dashboard-body { height: 255px; grid-template-columns: 38px 1fr; }
  .lp-demo-sidebar { padding: 10px 5px; gap: 5px; }
  .lp-demo-sidebar span { width: 27px; height: 27px; font-size: 9px; }
  .lp-demo-content { padding: 12px; }
  .lp-demo-heading strong { font-size: 10px; }
  .lp-demo-heading small { font-size: 6px; }
  .lp-demo-metrics { margin-top: 10px; gap: 7px; }
  .lp-demo-metrics article:nth-child(1),
  .lp-demo-metrics article:nth-child(2) { display: flex; }
  .lp-demo-metrics article,
  .lp-demo-metrics article.primary,
  .lp-demo-metrics article.warning { min-height: 66px; padding: 9px; }
  .lp-demo-metrics article strong { font-size: 10px; }
  .lp-demo-metrics article > i { width: 25px; height: 25px; }
  .lp-demo-lower { margin-top: 8px; }
  .lp-demo-chart { min-height: 125px; padding: 11px; }
  .lp-demo-due > div:first-child { margin: -11px -11px 0; padding: 9px 11px; }
  .lp-demo-due > p { margin: 0 -11px; padding: 7px 11px; }

  .lp-trust-strip {
    width: calc(100% - 28px);
    margin-top: 20px;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
  }
  .lp-trust-strip > div { min-width: 0; padding: 16px 12px; gap: 9px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
  .lp-trust-strip > div:nth-child(2n) { border-right: 0; }
  .lp-trust-strip > div:nth-child(n+3) { border-bottom: 0; }
  .lp-trust-strip i { font-size: 16px; }
  .lp-trust-strip strong { font-size: 10px; }
  .lp-trust-strip small { font-size: 7px; line-height: 1.35; }

  .lp-section, .lp-steps-section { width: calc(100% - 28px); padding: 64px 0; }
  .lp-features-section { width: 100%; margin-top: 58px; padding: 64px 14px; }
  .lp-section-head { text-align: center; }
  .lp-section-head h2, .lp-cta-copy h2 { margin-top: 11px; font-size: clamp(30px, 9vw, 37px); line-height: 1.1; }
  .lp-section-head p { margin-top: 14px; font-size: 13px; line-height: 1.6; }
  .lp-feature-cards { margin-top: 30px; grid-template-columns: 1fr; gap: 12px; }
  .lp-feature-cards > article { min-height: 205px; padding: 22px; border-radius: 18px; }
  .lp-feature-cards > article:not(.lp-feature-main):not(.lp-feature-wide) {
    min-height: 245px;
    padding-bottom: 88px;
  }
  .lp-feature-cards > article:not(.lp-feature-main):not(.lp-feature-wide) > p {
    max-width: 100%;
    margin-bottom: 0;
  }
  .lp-feature-main { min-height: 350px !important; }
  .lp-feature-main > span { margin-top: 18px; }
  .lp-feature-main h3 { font-size: 25px; }
  .lp-mini-receipt { left: 22px; right: 22px; bottom: 22px; }
  .lp-client-row { left: 22px; right: 22px; bottom: 22px; }
  .lp-stock-line { left: 22px; right: 22px; bottom: 24px; height: 48px; }
  .lp-feature-wide { min-height: 330px !important; padding: 24px !important; text-align: center; }
  .lp-feature-wide .lp-feature-icon { margin: auto; }
  .lp-donut { width: 120px; height: 120px; margin: 25px auto 0; }
  .lp-donut::before { width: 86px; height: 86px; }

  .lp-mobile-inner { width: calc(100% - 28px); min-height: 0; padding: 64px 0 54px; gap: 35px; }
  .lp-mobile-copy h2 { font-size: clamp(31px, 9vw, 39px); }
  .lp-mobile-copy > p { margin-top: 17px; font-size: 13px; line-height: 1.65; }
  .lp-mobile-benefits { margin: 24px auto; gap: 10px; }
  .lp-mobile-benefits article { padding: 10px; border-radius: 13px; background: rgba(255,255,255,.07); }
  .lp-mobile-benefits article > i { width: 38px; height: 38px; flex: 0 0 38px; }
  .lp-mobile-benefits small { font-size: 8px; line-height: 1.4; }
  .lp-mobile-section .lp-primary { width: 100%; justify-content: center; }
  .lp-phone-stage { min-height: 640px; }
  .lp-phone-halo { width: 370px; height: 370px; }
  .lp-phone { width: 250px; height: 610px; border-radius: 38px; transform: none; }
  .lp-phone-screen { border-radius: 29px; }
  .lp-phone-note { display: none; }

  .lp-steps { margin-top: 30px; gap: 12px; }
  .lp-steps article { min-height: 0; padding: 24px; border-radius: 17px; }
  .lp-steps article > b { font-size: 34px; }
  .lp-steps h3 { margin-top: 22px; }

  .lp-cta-section { width: calc(100% - 28px); margin-bottom: 35px; padding: 38px 22px; border-radius: 22px; text-align: center; }
  .lp-cta-copy p { margin-top: 14px; font-size: 13px; }
  .lp-cta-actions { min-width: 0; margin-top: 25px; }
  .lp-footer { width: calc(100% - 28px); padding: 25px 0 30px; flex-direction: column; gap: 18px; }
  .lp-footer > p { order: initial; width: auto; margin: 0; }
  .lp-footer > div { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
}

@media (max-width: 380px) {
  .lp-header { width: calc(100% - 20px); }
  .lp-header .lp-brand-copy small { display: none; }
  .lp-login { padding-left: 9px; }
  .lp-login span { font-size: 10px; }
  .lp-hero, .lp-trust-strip, .lp-section, .lp-steps-section, .lp-mobile-inner, .lp-cta-section, .lp-footer { width: calc(100% - 20px); }
  .lp-hero::before { left: -10px; right: -10px; }
  .lp-hero-copy h1 { font-size: 34px; }
  .lp-trust-strip { grid-template-columns: 1fr; }
  .lp-trust-strip > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12) !important; }
  .lp-trust-strip > div:last-child { border-bottom: 0 !important; }
  .lp-demo-metrics article > i { display: none; }
  .lp-feature-cards > article { padding: 20px; }
  .lp-feature-cards > article:not(.lp-feature-main):not(.lp-feature-wide) { padding-bottom: 84px; }
  .lp-mini-receipt, .lp-client-row { left: 20px; right: 20px; }
  .lp-stock-line { left: 20px; right: 20px; }
  .lp-phone { width: 238px; height: 590px; }
  .lp-phone-sale:last-of-type { display: none; }
}

/* ── LOADING SCREEN ── */
#app-loading {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #739E4C 0%, #668F43 52%, #557A37 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  gap: 16px;
}

#app-loading::before,
#app-loading::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
#app-loading::before {
  width: 420px;
  height: 420px;
  top: -210px;
  right: -100px;
  background: rgba(39, 108, 173, 0.16);
  filter: blur(2px);
}
#app-loading::after {
  width: 340px;
  height: 340px;
  bottom: -210px;
  left: -90px;
  background: rgba(255, 255, 255, 0.08);
}
#app-loading > * { position: relative; z-index: 1; }
#app-loading > img {
  width: 82px;
  height: 82px;
  padding: 8px;
  object-fit: contain;
  margin-bottom: 4px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 22px;
  background: rgba(255,255,255,.15);
  box-shadow: 0 14px 34px rgba(45,74,25,.22);
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.30);
  border-top-color: #FFFFFF;
  border-right-color: #276CAD;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-copy { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #FFFFFF; text-align: center; }
.loading-copy strong { font-size: 15px; font-weight: 800; letter-spacing: .1px; }
.loading-copy span { color: #FFFFFF; font-size: 12px; font-weight: 600; letter-spacing: .35px; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── LOGIN PAGE ── */
#login-page {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 10000;
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-header {
  text-align: center;
}

.brand-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius-md);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(115, 158, 76, 0.3);
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background-color: #F8FAFC;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(115, 158, 76, 0.15);
}

.btn {
  padding: 12px 20px;
  height: 46px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Resposta imediata para toda ação: toque/clique, processamento e bloqueio de duplo envio. */
.btn:not(:disabled):active,
button:not(:disabled):active,
[role="button"]:not([aria-disabled="true"]):active {
  transform: translateY(1px) scale(0.975) !important;
  filter: brightness(0.96);
  transition-duration: 60ms;
}

.btn.is-loading {
  cursor: wait;
  pointer-events: none;
  opacity: 0.88;
}

.btn.is-success {
  filter: brightness(1.05);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .btn, button, [role="button"] { transition-duration: 0.01ms !important; }
}

.btn-full-width {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(115, 158, 76, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: #F1F5F9;
}

.btn-google {
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  font-weight: 600;
}

.btn-google:hover {
  background-color: #F8FAFC;
  border-color: #94A3B8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.login-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 4px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.login-divider span {
  padding: 0 12px;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ── FILTER CHIPS & VIEW SWITCHER ── */
.filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: #F1F5F9;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.filter-chip:hover {
  background: #E2E8F0;
  color: var(--text-main);
}

.filter-chip.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.view-btn {
  padding: 7px 12px;
  background: white;
  color: var(--text-muted);
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-btn:hover {
  color: var(--primary-color);
  background: #F8FAFC;
}

.view-btn.active {
  background: var(--primary-color);
  color: white;
}

/* ── CLIENT CARDS GRID ── */
.clients-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.client-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
}

.client-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.client-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-card-avatar {
  width: 48px;
  height: 48px;
  background: #F1F5F9;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.client-card-info {
  flex: 1;
  overflow: hidden;
}

.client-card-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-card-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.client-card-body {
  background: #F8FAFC;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #F1F5F9;
}

.client-card-body span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.client-card-body h3 {
  font-size: 17px;
  font-weight: 800;
}

.client-card-actions {
  display: flex;
  gap: 8px;
}

/* ── PREMIUM GATE (BLOCK SCREEN) ── */
#premium-gate {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(115, 158, 76, 0.22), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(245, 158, 11, 0.14), transparent 28%),
    #0F172A;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 10000;
  overflow-y: auto;
}

.gate-card {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 20px 24px;
  width: 100%;
  max-width: 660px;
  max-height: calc(100vh - 48px);
  text-align: left;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.44);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

@media (max-height: 820px) {
  #premium-gate { padding: 14px; }
  .gate-card {
    max-height: calc(100vh - 28px);
    padding: 22px 26px;
    gap: 14px;
  }
  .gate-logo-wrap { width: 50px; height: 50px; flex-basis: 50px; }
  .gate-title { font-size: 23px; }
  .gate-heading { padding-top: 0; }
  .gate-desc { margin-top: 4px; }
  .gate-plan-highlight { padding: 12px 15px; }
  .gate-plan-highlight-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .gate-features { padding: 12px 15px 14px; }
  .gate-section-label { margin-bottom: 8px; }
  .gate-feature-grid { gap: 8px 14px; }
  .gate-feature-item i { width: 24px; height: 24px; flex-basis: 24px; }
  .gate-upgrade-guide { padding: 11px 14px; }
  .gate-account { padding: 10px 12px; }
  .gate-logout-button { padding: 9px 14px; }
}

@media (max-height: 660px) {
  #premium-gate { align-items: flex-start; }
  .gate-card { margin: 0 auto; }
  .gate-brand-product, .gate-lock-chip { display: none; }
  .gate-logo-wrap { width: 44px; height: 44px; flex-basis: 44px; }
  .gate-title { font-size: 21px; }
  .gate-eyebrow { margin-bottom: 4px; }
  .gate-feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .gate-card { max-height: calc(100vh - 24px); }
  .gate-lock-chip { display: none; }
  .gate-feature-grid { grid-template-columns: 1fr; }
}

.gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #739E4C, #9CC36D, #F59E0B);
}

.gate-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gate-logo-wrap {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 6px;
  border-radius: 14px;
  background: #F1F7EC;
  border: 1px solid #DDEBD2;
  box-shadow: 0 8px 20px rgba(115, 158, 76, 0.16);
}

.gate-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gate-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gate-brand-name {
  color: #1E293B;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
}

.gate-brand-product {
  margin-top: 3px;
  color: #64748B;
  font-size: 12px;
  font-weight: 600;
}

.gate-lock-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.gate-lock-chip i {
  color: #739E4C;
}

.gate-heading {
  padding-top: 2px;
}

.gate-eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: #6B8F47;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.gate-title {
  color: #0F172A;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.18;
}

.gate-desc {
  margin-top: 3px;
  max-width: 520px;
  font-size: 14px;
  color: #64748B;
  line-height: 1.55;
}

.gate-plan-highlight {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  color: #78350F;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #F59E0B;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.13);
  box-sizing: border-box;
}

.gate-plan-highlight-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #FFFFFF;
  background: #D97706;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28);
  font-size: 17px;
}

.gate-plan-highlight-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gate-plan-highlight-copy small {
  color: #92400E;
  font-size: 11px;
  font-weight: 700;
}

.gate-plan-highlight-copy strong {
  color: #92400E;
  font-size: 17px;
  font-weight: 900;
}

.gate-features {
  width: 100%;
  background: #F8FAFC;
  padding: 10px 14px 11px;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
}

.gate-section-label {
  display: block;
  margin-bottom: 7px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.gate-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}

.gate-feature-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.gate-feature-item i {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #648A42;
  background: #EAF3E3;
  border-radius: 8px;
  font-size: 12px;
}

.gate-upgrade-guide {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 13px;
  color: #475569;
  background: #F8FAFC;
  border-left: 4px solid #739E4C;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
}

.gate-upgrade-guide > span:last-child {
  display: flex;
  flex-direction: column;
}

.gate-upgrade-guide strong {
  margin-bottom: 2px;
  color: #1E293B;
  font-size: 13px;
}

.gate-upgrade-icon {
  color: #739E4C;
  font-size: 18px;
  padding-top: 1px;
}

.gate-account {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 7px 11px;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.gate-account-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #557A37;
  background: #EAF3E3;
  border-radius: 50%;
  font-size: 13px;
}

.gate-account-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.gate-account-copy small {
  color: #64748B;
  font-size: 11px;
  font-weight: 600;
}

.gate-account-copy strong {
  overflow: hidden;
  color: #1E293B;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gate-actions {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(250px, 1.4fr);
  gap: 10px;
}

.gate-logout-button,
.gate-access-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 16px;
  font-weight: 800;
}

.gate-logout-button {
  color: #B04444;
  border: 1px solid #F1C5C5;
  background: #FFF7F7;
  box-shadow: 0 2px 7px rgba(176, 68, 68, 0.07);
}

.gate-logout-button:hover {
  color: #963A3A;
  border-color: #E9AFAF;
  background: #FDECEC;
  box-shadow: 0 5px 12px rgba(176, 68, 68, 0.12);
  transform: translateY(-1px);
}

.gate-access-button {
  color: #FFFFFF;
  border: 1px solid #648D42;
  background: #739E4C;
  box-shadow: 0 6px 14px rgba(85, 122, 55, 0.2);
}

.gate-access-button:hover {
  color: #FFFFFF;
  border-color: #557A37;
  background: #648D42;
  box-shadow: 0 8px 18px rgba(85, 122, 55, 0.25);
  transform: translateY(-1px);
}

.gate-logout-button:focus-visible,
.gate-access-button:focus-visible {
  outline: 3px solid rgba(115, 158, 76, 0.3);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .gate-actions { grid-template-columns: 1fr; }
  .gate-access-button { grid-row: 1; }
}

/* ── MAIN DASHBOARD LAYOUT ── */
#app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 260px;
  height: 100%;
  background: linear-gradient(180deg, #739E4C 0%, #648D42 58%, #557A37 100%);
  border-right: none;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-brand {
  height: 70px;
  min-height: 70px;
  flex: 0 0 70px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand-logo {
  box-sizing: border-box;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 9px;
  filter: drop-shadow(0 2px 3px rgba(45, 72, 28, 0.16));
}

.sidebar-brand-icon {
  width: 36px;
  height: 36px;
  background-color: #276CAD;
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 5px 14px rgba(52, 82, 30, 0.2);
}

.sidebar-brand-text h1 {
  font-size: 15px;
  font-weight: 700;
  color: white;
}

.sidebar-brand-text p {
  font-size: 11px;
  color: #FFFFFF;
  opacity: 1;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 800;
  color: #FFFFFF;
  opacity: 1;
  letter-spacing: 1px;
  padding: 12px 10px 4px 10px;;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item i {
  width: 20px;
  text-align: center;
  color: #FFFFFF;
}

.nav-item:hover {
  background-color: var(--sidebar-hover);
  color: white;
  transform: translateX(2px);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.17);
  color: white;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #fff, 0 5px 16px rgba(48, 76, 28, 0.14);
}

.nav-badge {
  margin-left: auto;
  background-color: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--sidebar-border);
  background: rgba(38, 65, 22, 0.22);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.17);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.user-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.user-info p {
  font-size: 11px;
  color: #FFFFFF;
}

.sidebar-logout {
  width: 100%;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.10);
  font-size: 12px;
}

.sidebar-logout i { color: #FFFFFF; }
.sidebar-logout:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.18);
}

/* ── MAIN CONTENT ── */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.topbar {
  height: 70px;
  min-height: 70px;
  flex: 0 0 70px;
  background: linear-gradient(90deg, #739E4C 0%, #6B9547 55%, #5F8840 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFFFFF;
  font-size: 14px;
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sidebar-border);
  background-color: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 13px;
}

.search-input::placeholder {
  color: #FFFFFF;
  opacity: 1;
}

.search-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 5px;
  border: 1px solid var(--sidebar-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.live-badge {
  height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--sidebar-text);
  font-size: 11px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.live-badge i {
  color: #16a34a;
  font-size: 12px;
}

.topbar-control,
.web-version-status {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.topbar-control {
  background: transparent;
  color: var(--sidebar-text);
  border-color: rgba(255, 255, 255, 0.1);
}

.topbar-control i,
.web-version-status i,
.live-badge {
  color: #FFFFFF;
}

.topbar-control:hover,
.web-version-status:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.topbar-install { color: #E4F1FF; }
.topbar-refresh { width: 36px; padding: 0; color: var(--sidebar-text); }
.topbar-refresh:active i { transform: rotate(90deg); }

.notification-center { position: relative; }
.notification-bell { position: relative; width: 38px; padding: 0; }
.notification-bell.has-unread i { animation: notification-ring .8s ease-out; }
.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #6B9547;
  border-radius: 10px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
}
.notification-panel {
  position: absolute;
  z-index: 5200;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid #DDE6D6;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .24);
  color: #0F172A;
  transform-origin: top right;
  animation: notification-drop .18s ease-out;
}
.notification-panel-header,
.notification-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #F7FAF4;
}
.notification-panel-header { border-bottom: 1px solid #E2E8F0; }
.notification-panel-header div { display: flex; align-items: center; gap: 8px; }
.notification-panel-header i { color: var(--primary-color); }
.notification-panel-header button,
.notification-panel-footer button {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.notification-list { max-height: min(480px, 58vh); overflow-y: auto; }
.notification-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  gap: 10px;
  padding: 12px 8px 12px 14px;
  border-bottom: 1px solid #EEF2F6;
  background: #FFFFFF;
  cursor: pointer;
}
.notification-item.unread { background: #F3F8EF; }
.notification-item-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #E7F1DE;
  color: var(--primary-dark);
}
.notification-item-copy { min-width: 0; }
.notification-item-copy strong { display: block; font-size: 13px; line-height: 1.25; }
.notification-item-copy p { margin: 4px 0 0; color: #64748B; font-size: 12px; line-height: 1.4; }
.notification-delete {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
}
.notification-delete:hover { background: #FEE2E2; color: #DC2626; }
.notification-empty {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  color: #94A3B8;
  font-size: 13px;
}
.notification-empty i { font-size: 32px; }
.notification-panel-footer { justify-content: flex-end; border-top: 1px solid #E2E8F0; }
.notification-panel-footer button { color: #B91C1C; }
@keyframes notification-drop {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes notification-ring {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-16deg); }
  55% { transform: rotate(13deg); }
  80% { transform: rotate(-7deg); }
}

.content-body {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}

.contextual-search {
  position: relative;
  min-width: 260px;
}
.contextual-search > i {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #739E4C;
  pointer-events: none;
}
.contextual-search .form-input {
  height: 36px;
  padding: 7px 12px 7px 35px;
  font-size: 12px;
  background: #FFFFFF;
}

/* ── DASHBOARD TAB VIEWS ── */
.tab-view {
  display: none;
  flex-direction: column;
  gap: 24px;
}

.tab-view.active {
  display: flex;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.page-title p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── KPI CARDS ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.kpi-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-info span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.8px;
}

.kpi-info h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
  margin: 6px 0 2px 0;
}

.kpi-info p {
  font-size: 11px;
  color: var(--text-muted);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.kpi-red { background: #FEF2F2; color: #EF4444; }
.kpi-blue { background: #EFF6FF; color: #3B82F6; }
.kpi-amber { background: #FFFBEB; color: #F59E0B; }
.kpi-green { background: #ECFDF5; color: #10B981; }

/* ── DATA TABLES ── */
.table-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.table-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.table-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.financial-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.finance-module-switch { display:inline-flex; gap:4px; padding:5px; margin-bottom:18px; background:#e8eee4; border-radius:13px; }
.finance-module-switch button { display:flex; align-items:center; gap:8px; min-height:40px; padding:0 18px; border:0; border-radius:9px; color:#64748b; background:transparent; font:inherit; font-size:13px; font-weight:800; cursor:pointer; }
.finance-module-switch button.active { color:#527e36; background:#fff; box-shadow:0 3px 9px rgba(15,23,42,.1); }
.financial-subnav { display:flex; gap:22px; margin:0 0 16px; padding:0 4px; border-bottom:1px solid var(--border-color); }
.financial-subnav button { position:relative; padding:11px 4px 12px; border:0; color:#64748b; background:transparent; font:inherit; font-size:13px; font-weight:750; cursor:pointer; }
.financial-subnav button::after { content:""; position:absolute; right:0; bottom:-1px; left:0; height:3px; border-radius:3px 3px 0 0; background:transparent; }
.financial-subnav button.active { color:#527e36; }
.financial-subnav button.active::after { background:#739e4c; }
.financial-summary-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 126px;
  padding: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .055);
}
.financial-summary-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#739e4c; }
.financial-summary-card.pay::before { background:#ef4444; }
.financial-summary-copy span { color:#64748b; font-size:11px; font-weight:800; letter-spacing:.65px; }
.financial-summary-copy h3 { margin:7px 0 3px; color:#0f172a; font-size:25px; font-weight:900; }
.financial-summary-copy small { color:#64748b; font-size:12px; }
.financial-summary-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:14px; color:#5f8f3e; background:#edf6e8; font-size:19px; }
.financial-summary-card.pay .financial-summary-icon { color:#dc2626; background:#fff1f2; }
.financial-panel { margin-bottom:18px; overflow:hidden; border-radius:16px; box-shadow:0 7px 20px rgba(15,23,42,.045); }
.financial-panel .table-header p { margin-top:4px; color:var(--text-muted); font-size:12px; }
.financial-section-total { padding:8px 12px; color:#0f172a; background:#f1f5f9; border-radius:9px; font-size:14px; font-weight:900; white-space:nowrap; }
.financial-overview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:18px; }
.financial-mini-card { overflow:hidden; }
.financial-mini-list { min-height:150px; padding:4px 16px 10px; }
.financial-mini-item { display:flex; align-items:center; gap:11px; padding:12px 2px; border-bottom:1px solid #eef2f7; }
.financial-mini-item:last-child { border-bottom:0; }
.financial-mini-icon { display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; border-radius:10px; color:#5f8f3e; background:#edf6e8; }
.financial-mini-item.pay .financial-mini-icon { color:#dc2626; background:#fff1f2; }
.financial-mini-copy { min-width:0; flex:1; }
.financial-mini-copy strong,.financial-mini-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.financial-mini-copy strong { color:#1e293b; font-size:13px; }
.financial-mini-copy small { margin-top:3px; color:#64748b; font-size:11px; }
.financial-mini-value { color:#1e293b; font-size:12px; font-weight:850; white-space:nowrap; }
.financial-mini-empty { display:grid; place-items:center; min-height:135px; color:#94a3b8; font-size:12px; text-align:center; }
.financial-empty-cell { text-align:center!important; padding:30px!important; color:var(--text-muted)!important; }
.financial-account-row { cursor:default; transition:background .16s ease; }
.financial-account-row:hover { background:#f7faf5; }
.financial-account-row td:first-child { border-left:3px solid transparent; }
.financial-account-row:hover td:first-child { border-left-color:var(--primary-color); }
.financial-account-detail-row > td { padding:10px 16px 14px !important; background:#f5f8f3; }
.financial-installments { display:grid; gap:8px; padding:8px; background:#f8fafc; border-radius:12px; }
.financial-installment { display:grid; grid-template-columns:minmax(160px,1fr) auto auto auto; align-items:center; gap:14px; padding:11px 12px; background:#fff; border:1px solid #e8edf3; border-radius:10px; }
.financial-installment span strong,.financial-installment span small { display:block; }
.financial-installment span small { margin-top:3px; color:#64748b; font-size:11px; }
.financial-installment-status { display:inline-flex!important; align-items:center; gap:5px; padding:5px 8px; border-radius:99px; font-size:10px; font-weight:800; white-space:nowrap; }
.financial-installment-status.paid { color:#28723b; background:#e8f5ea; }
.financial-installment-status.pending { color:#936214; background:#fff5d9; }
.financial-actions-heading { text-align:center!important; min-width:118px; }
.financial-row-actions { display:flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; }
.financial-icon-action { width:32px; height:32px; display:inline-grid; place-items:center; padding:0; border:1px solid #dce5d7; border-radius:9px; color:#526047; background:#fff; cursor:pointer; transition:transform .14s ease,background .14s ease,border-color .14s ease,color .14s ease; }
.financial-icon-action:hover { color:#3f6f29; border-color:#a9c29c; background:#f1f7ed; transform:translateY(-1px); }
.financial-icon-action.delete:hover { color:#b42318; border-color:#efc0bc; background:#fff4f3; }
.financial-icon-action.payment { color:#fff; border-color:var(--primary-color); background:var(--primary-color); }
.financial-icon-action.payment:hover { color:#fff; border-color:var(--primary-dark); background:var(--primary-dark); }
.financial-icon-action.payment.paid { color:#527e36; border-color:#b9cfad; background:#eef5ea; }
.financial-icon-action.expand { color:#527e36; background:#eef5ea; }
.financial-icon-action.expand i { transition:transform .18s ease; }
.financial-icon-action.expand.expanded i { transform:rotate(180deg); }
.financial-icon-action:focus-visible { outline:3px solid rgba(115,158,76,.22); outline-offset:1px; }
.financial-icon-action.is-loading,.financial-icon-action.is-success { width:auto; min-width:92px; padding:0 9px; }
.financial-account-notes { margin:0 8px 8px; padding:9px 11px; border-radius:9px; color:#526047; background:#eef4ea; font-size:12px; }
.financial-account-notes i { margin-right:6px; color:var(--primary-color); }
.financial-account-detail-actions { display:flex; justify-content:flex-end; gap:8px; padding:10px 8px 2px; border-top:1px solid #dfe8da; margin-top:8px; }
.financial-account-detail-actions .btn-danger { color:#b42318; border:1px solid #f0c5c1; background:#fff5f4; }
.financial-account-detail-actions .btn-danger:hover { color:#fff; border-color:#c9342b; background:#c9342b; }
.financial-management-overlay,.financial-master-form-overlay { display:none; z-index:1200; }
.financial-management-modal { width:min(920px,calc(100vw - 32px)); max-height:min(760px,calc(100vh - 40px)); padding:0; overflow:hidden; }
.finance-management-view[hidden] { display:none; }
.finance-management-view { width:100%; }
.finance-management-view .financial-management-modal { width:100%; max-width:none; max-height:none; padding:0; gap:0; overflow:visible; border:0; background:transparent; box-shadow:none; }
.finance-management-view .financial-modal-header,.finance-management-view .financial-management-tabs,.finance-management-view .financial-master-header { display:none; }
.finance-management-view .financial-management-content { padding:0; overflow:visible; border-radius:0; background:transparent; }
.finance-management-view .financial-master-card { padding:0; border:0; background:transparent; box-shadow:none; }
.finance-management-view .financial-master-list { grid-template-columns:1fr; margin-top:0; }
.management-home { display:grid; gap:18px; }
.management-home[hidden],#financial-management-host[hidden],#management-custom-host[hidden] { display:none; }
.management-shortcuts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.management-shortcut { min-height:88px; padding:16px; display:flex; align-items:center; gap:13px; color:inherit; text-align:left; text-decoration:none; font:inherit; border:1px solid var(--border-color); border-radius:16px; background:#fff; cursor:pointer; box-shadow:0 3px 12px rgba(30,50,20,.04); transition:.18s ease; }
.management-shortcut:hover { border-color:#aabd9d; transform:translateY(-2px); box-shadow:0 8px 20px rgba(30,50,20,.09); }
.management-shortcut>span:nth-child(2) { min-width:0; flex:1; display:flex; flex-direction:column; gap:4px; }
.management-shortcut strong { color:#172011; font-size:14px; }
.management-shortcut small { color:var(--text-muted); font-size:12px; line-height:1.35; }
.management-shortcut>i { color:#97a38f; font-size:12px; }
.management-shortcut-icon { width:44px; height:44px; flex:0 0 44px; display:grid!important; place-items:center; border-radius:13px; font-size:18px; }
.management-shortcut-icon.green { color:#527e36; background:#e8f1e3; }.management-shortcut-icon.amber { color:#a16207; background:#fff3d1; }.management-shortcut-icon.blue { color:#2563eb; background:#eaf2ff; }.management-shortcut-icon.violet { color:#7c3aed; background:#f1eafe; }.management-shortcut-icon.slate { color:#475569; background:#edf1f5; }.management-shortcut-icon.red { color:#c9342b; background:#fff0ef; }.management-shortcut-icon.teal { color:#0f766e; background:#e4f7f4; }
#management-detail[hidden] { display:none; }
.tab-view.showing-detail>.page-header { display:none; }
.management-section-header { min-height:82px; margin-bottom:16px; padding:16px 18px; display:flex; align-items:center; gap:13px; border:1px solid var(--border-color); border-radius:16px; background:#fff; box-shadow:0 3px 12px rgba(30,50,20,.05); }
.management-section-back { width:40px; height:40px; flex:0 0 40px; display:grid; place-items:center; border:1px solid #d9e1d4; border-radius:11px; color:#527e36; background:#f7f9f5; cursor:pointer; }
.management-section-header>div { min-width:0; flex:1; }
.management-section-header h2 { margin:0 0 3px; color:#172011; font-size:20px; }
.management-section-header p { margin:0; color:var(--text-muted); font-size:12px; }
.management-section-header .btn[hidden] { display:none; }
.management-document-frame { display:block; width:100%; min-height:680px; border:1px solid var(--border-color); border-radius:16px; background:#fff; }
#management-custom-host>#account-summary-grid { margin-top:0; }
#management-custom-host>#business-config-card { margin-top:0!important; }
#business-config-card { overflow:hidden; border:1px solid #dce6d7; border-radius:18px; background:#fff; box-shadow:0 8px 24px rgba(35,60,22,.07); }
#business-config-card .business-config-header { display:flex; align-items:center; gap:13px; padding:17px 20px; border-bottom:1px solid #e1e9dd; background:linear-gradient(135deg,#fbfdf9 0%,#f1f7ed 100%); }
.business-config-header-icon { width:43px; height:43px; flex:0 0 43px; display:grid; place-items:center; border:1px solid #d5e4cd; border-radius:13px; color:#527e36; background:#e7f1e2; }
#business-config-card .business-config-header h3 { margin:0 0 3px; color:#172011; font-size:17px; font-weight:850; }
#business-config-card .business-config-header p { margin:0; color:#6d7c65; font-size:12px; }
#form-business-config { padding:20px!important; gap:14px!important; background:#fff; }
#form-business-config>div[style*="grid-template-columns"] { gap:13px!important; padding:15px; border:1px solid #e3eadf; border-radius:14px; background:#fafcf9; }
#form-business-config .form-group { gap:6px; margin:0; }
#form-business-config .form-group label { color:#34412e; font-size:11px; letter-spacing:.35px; }
#form-business-config .form-input { min-height:43px; padding:10px 12px; border-color:#d9e3d4; border-radius:10px; background:#f8faf7; }
#form-business-config .form-input:focus { border-color:var(--primary-color); background:#fff; box-shadow:0 0 0 3px rgba(115,158,76,.13); }
#form-business-config textarea.form-input { min-height:88px; resize:vertical; line-height:1.45; }
#biz-logo-preview-wrap { width:106px!important; height:106px!important; border-color:#b9ccae!important; border-radius:14px!important; background:#f4f8f1!important; }
#biz-logo-preview-wrap:hover { border-color:var(--primary-color)!important; background:#eef5e9!important; }
#biz-logo-preview-placeholder i { color:#739e4c!important; }
#form-business-config button[onclick*="biz-logo-file-input"] { width:max-content; min-width:210px; justify-content:center!important; }
#form-business-config .business-logo-section { padding:15px; border:1px solid #e3eadf; border-radius:14px; background:#fafcf9; }
#form-business-config .business-receipt-toggle { flex-direction:row!important; align-items:center!important; padding:13px 15px; border:1px solid #dbe7d5; border-radius:12px; background:#f1f7ed; }
#biz-include-receipts { accent-color:var(--primary-color); flex:0 0 auto; }
#form-business-config code { padding:2px 5px; border-radius:5px; color:#466d32; background:#edf4e9; font:700 10px ui-monospace,monospace; }
#form-business-config>div:last-child { margin-top:0!important; padding-top:13px; border-top:1px solid #e4ebe0; }
#form-business-config>div:last-child .btn { min-width:190px; box-shadow:0 5px 13px rgba(82,126,54,.22); }
@media (max-width:700px) {
  #form-business-config { padding:14px!important; }
  #form-business-config>div[style*="grid-template-columns"] { grid-template-columns:1fr!important; padding:12px; }
  #form-business-config .business-logo-section>div { flex-direction:column; }
  #form-business-config button[onclick*="biz-logo-file-input"] { width:100%; min-width:0; }
  #form-business-config>div:last-child .btn { width:100%; }
}
.management-settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.management-settings-card { padding:18px; border:1px solid var(--border-color); border-radius:16px; background:#fff; box-shadow:0 3px 12px rgba(30,50,20,.04); }
.management-settings-card.full { grid-column:1/-1; }
.management-settings-card-title { display:flex; align-items:center; gap:12px; padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid var(--border-color); }
.management-settings-card-title h3 { margin:0 0 3px; color:#172011; font-size:15px; }
.management-settings-card-title p { margin:0; color:var(--text-muted); font-size:11px; }
.management-setting-toggle { display:flex; align-items:center; gap:14px; cursor:pointer; }
.management-setting-toggle>span { min-width:0; flex:1; display:flex; flex-direction:column; gap:3px; }
.management-setting-toggle strong { color:#26331f; font-size:13px; }.management-setting-toggle small { color:var(--text-muted); font-size:11px; line-height:1.35; }
.management-setting-toggle input { position:absolute; opacity:0; pointer-events:none; }
.management-setting-toggle>i { position:relative; width:44px; height:24px; flex:0 0 44px; border-radius:99px; background:#cbd5c5; transition:.18s ease; }
.management-setting-toggle>i::after { content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; border-radius:50%; background:#fff; box-shadow:0 1px 4px #0003; transition:.18s ease; }
.management-setting-toggle input:checked+i { background:var(--primary-color); }.management-setting-toggle input:checked+i::after { transform:translateX(20px); }
.management-setting-toggle.compact { margin-top:12px; }
.management-printer-fields { display:grid; grid-template-columns:minmax(0,1fr) 150px; gap:12px; align-items:end; }.management-printer-fields .form-group { height:100%; margin:0; display:flex; flex-direction:column; justify-content:flex-end; }.management-printer-fields .form-input { width:100%; min-height:44px; height:44px; padding-top:8px; padding-bottom:8px; }
.management-password-row { display:flex; align-items:center; gap:14px; }.management-password-row>span { min-width:0; flex:1; display:flex; flex-direction:column; gap:3px; }.management-password-row small { color:var(--text-muted); font-size:11px; }
.management-settings-actions { display:flex; justify-content:flex-end; margin-top:14px; }
.financial-management-content { padding:20px; background:#f5f8f3; overflow-y:auto; display:grid; gap:16px; }
.financial-management-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:5px; background:#e8eee4; border-radius:13px; }
.financial-management-tabs[hidden] { display:none; }
.financial-management-tabs button { min-height:43px; border:0; border-radius:10px; color:#607056; background:transparent; font:inherit; font-size:13px; font-weight:800; cursor:pointer; transition:.18s ease; }
.financial-management-tabs button i { margin-right:7px; }
.financial-management-tabs button.active { color:#fff; background:var(--primary-color); box-shadow:0 4px 10px rgba(82,126,54,.2); }
.financial-master-card { background:#fff; border:1px solid var(--border-color); border-radius:16px; padding:18px; box-shadow:0 4px 14px rgba(30,50,20,.05); }
.financial-master-card[hidden] { display:none; }
.financial-master-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:15px; border-bottom:1px solid var(--border-color); }
.financial-master-header>div { display:flex; align-items:center; gap:12px; min-width:0; }
.financial-master-header h4 { margin:0 0 3px; color:var(--text-color); font-size:16px; }
.financial-master-header p { margin:0; color:var(--text-muted); font-size:12px; }
.financial-master-card-icon { width:42px; height:42px; flex:0 0 42px; border-radius:12px; display:grid; place-items:center; color:#527e36; background:#e8f1e3; }
.financial-master-card-icon.category { color:#9a6700; background:#fff4cf; }
.financial-master-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:14px; }
.financial-master-item { min-height:54px; padding:10px 12px; border:1px solid #e3e9df; border-radius:12px; display:flex; align-items:center; gap:10px; background:#fbfcfa; cursor:pointer; transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.financial-master-item:hover { border-color:#aabd9d; transform:translateY(-1px); box-shadow:0 5px 13px rgba(40,70,25,.08); }
.financial-master-item-icon { width:34px; height:34px; flex:0 0 34px; border-radius:10px; display:grid; place-items:center; color:#527e36; background:#e8f1e3; }
.financial-master-item.category .financial-master-item-icon { color:#9a6700; background:#fff4cf; }
.financial-master-item-copy { min-width:0; display:flex; flex-direction:column; }
.financial-master-item-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-color); font-size:13px; }
.financial-master-item-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-muted); font-size:11px; margin-top:2px; }
.financial-master-chevron { margin-left:auto; color:#9aaa91; font-size:11px; }
.financial-master-empty { grid-column:1/-1; padding:24px; border:1px dashed #ced8c8; border-radius:12px; color:var(--text-muted); text-align:center; font-size:13px; }
.financial-master-form-modal { width:min(610px,calc(100vw - 32px)); max-height:calc(100vh - 32px); padding:0; overflow:hidden; }
.financial-master-form-modal.category { width:min(500px,calc(100vw - 32px)); }
.financial-master-form { padding:20px; display:grid; grid-template-columns:1fr 1fr; gap:14px; overflow-y:auto; }
.financial-master-form.single { grid-template-columns:1fr; }
.financial-master-form .form-group { margin:0; }
.financial-master-form .form-input { min-height:43px; padding:9px 12px; }
.financial-master-form textarea.form-input { min-height:68px; resize:vertical; font:inherit; }
.financial-form-wide { grid-column:1/-1; }
.financial-master-form-actions { padding-top:4px; display:flex; justify-content:flex-end; gap:10px; }
.financial-form-actions-spacer { flex:1; }
.financial-master-delete { margin-right:auto; }
.financial-master-form-actions .btn-danger { color:#fff; border-color:#c9342b; background:#c9342b; }
.financial-master-form-actions .btn-danger:hover { border-color:#a8241d; background:#a8241d; }
.financial-manage-entry,.financial-web-filters { display:flex; gap:8px; margin-top:10px; }
.financial-web-filters { display:grid; grid-template-columns:minmax(190px,1fr) repeat(3,minmax(150px,220px)); padding:12px 18px; margin:0; border-bottom:1px solid var(--border-color); background:#fbfcfa; }
.financial-web-filters .form-input { max-width:none; height:42px; min-height:42px; background:#fff; }
.financial-filter-search { position:relative; }
.financial-filter-search i { position:absolute; left:13px; top:50%; z-index:1; transform:translateY(-50%); color:#8b9a82; font-size:12px; }
.financial-filter-search .form-input { padding-left:35px; }
.financial-payable-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.modal-card.financial-account-modal { width:min(680px,calc(100vw - 32px)); max-width:680px; padding:0; gap:0; overflow:hidden; border:1px solid #dce7d6; border-top:3px solid var(--primary-color); box-shadow:0 22px 55px rgba(18,35,10,.22); }
.financial-modal-header { display:flex; align-items:center; justify-content:space-between; padding:15px 20px; border-bottom:1px solid #e2e9de; background:linear-gradient(180deg,#fff 0%,#fbfdf9 100%); }
.financial-modal-header > div { display:flex; align-items:center; gap:12px; }
.financial-modal-header h3 { margin:0; color:#0f172a; font-size:18px; font-weight:850; }
.financial-modal-header p { margin:3px 0 0; color:#64748b; font-size:12px; }
.financial-modal-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; color:#527e36; background:#e8f1e3; border:1px solid #dbe8d3; }
.financial-account-modal .financial-entry-form { grid-template-columns:1fr 1fr; gap:10px 12px; padding:15px 20px 14px; border:0; background:#fff; max-height:calc(100vh - 140px); overflow-y:auto; align-items:start; }
.financial-account-modal .form-group { gap:5px; }
.financial-account-modal .form-group label { color:#334129; font-size:11px; letter-spacing:.4px; }
.financial-account-modal .form-input { height:42px; min-height:42px; padding:9px 12px; border-color:#d9e3d4; border-radius:10px; background:#f8faf7; }
.financial-account-modal .form-input:focus { border-color:var(--primary-color); background:#fff; box-shadow:0 0 0 3px rgba(115,158,76,.13); }
.financial-account-modal .financial-notes { grid-column:1 / -1; }
.financial-modal-actions { grid-column:1 / -1; display:flex; justify-content:flex-end; gap:9px; padding-top:2px; margin-top:0; }
.financial-account-modal .financial-modal-actions .btn { height:42px; min-height:42px; border-radius:10px; padding:9px 18px; }
.financial-entry-form { display:grid; grid-template-columns:repeat(4,minmax(140px,1fr)); gap:12px; padding:18px; align-items:end; background:#f8fafc; border-bottom:1px solid var(--border-color); }
.financial-entry-form .financial-notes { grid-column:span 2; }
.financial-entry-form .form-group { margin:0; }
.financial-entry-form .btn { min-height:42px; white-space:nowrap; }

@media (max-width: 1100px) {
  .financial-entry-form { grid-template-columns: 1fr 1fr; }
  .financial-entry-form > :first-child { grid-column: 1 / -1; }
  .financial-entry-form .financial-notes { grid-column:1 / -1; }
  .financial-entry-form .btn { width:100%; }
  .financial-overview-grid { grid-template-columns:1fr; }
}
@media (max-width: 700px) {
  .financial-summary-grid { grid-template-columns:1fr; gap:10px; }
  .financial-summary-card { min-height:104px; padding:17px; }
  .financial-entry-form { grid-template-columns:1fr; padding:14px; }
  .financial-entry-form > :first-child { grid-column:auto; }
  .financial-entry-form .financial-notes { grid-column:auto; }
  .finance-module-switch { display:flex; width:100%; }
  .finance-module-switch button { flex:1; justify-content:center; padding:0 10px; }
  .financial-subnav { gap:0; justify-content:space-between; }
  .financial-subnav button { flex:1; }
  .financial-panel .table-header { align-items:flex-start; gap:10px; }
  .financial-installment { grid-template-columns:1fr auto; }
  .financial-installment .btn { grid-column:1 / -1; width:100%; }
  .financial-master-list { grid-template-columns:1fr; }
  .financial-master-header { align-items:flex-start; flex-direction:column; }
  .financial-master-header .btn { width:100%; }
  .financial-master-form { grid-template-columns:1fr; padding:16px; }
  .management-shortcuts { grid-template-columns:1fr; }
  .management-document-frame { min-height:calc(100vh - 190px); }
  .management-section-header { align-items:flex-start; flex-wrap:wrap; }
  .management-section-header .btn { width:100%; }
  .management-settings-grid { grid-template-columns:1fr; }
  .management-settings-card.full { grid-column:auto; }
  .management-printer-fields { grid-template-columns:1fr; }
  .management-password-row { align-items:flex-start; flex-direction:column; }
  .management-password-row .btn,.management-settings-actions .btn { width:100%; }
  .financial-payable-actions { justify-content:flex-start; }
  .financial-web-filters { grid-template-columns:1fr; padding:12px; }
  .financial-account-detail-actions { flex-direction:column; }
  .financial-account-detail-actions .btn { width:100%; }
  .financial-account-modal .financial-entry-form { grid-template-columns:1fr; padding:16px; }
  .financial-account-modal .financial-notes,.financial-modal-actions { grid-column:auto; }
  .financial-modal-actions .btn { flex:1; }
}

.data-table th {
  background: #F8FAFC;
  padding: 14px 24px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 16px 24px;
  font-size: 13px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-main);
}

.data-table tr:hover {
  background: #F8FAFC;
}

.badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
}

.badge-red { background: #FEE2E2; color: #DC2626; }
.badge-green { background: #DCFCE7; color: #15803D; }

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 20000;
}

.modal-card {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}

.modal-card::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Sub-modal de item de venda: z-index acima do modal principal */
.modal-overlay.submodal {
  z-index: 30000;
}

@media (max-width: 900px) {
  #app-layout { height: auto; min-height: 100vh; }
  .sidebar { width: 84px; }
  .sidebar-brand-text, .nav-section-title, .nav-item span, .sidebar-footer .user-info { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .nav-badge { position: absolute; margin: -24px 0 0 28px; }
  .topbar { padding: 0 16px; }
  .content-body { padding: 18px; }
  .page-header { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .data-table { min-width: 720px; }
}

@media (max-width: 600px) {
  .sidebar { width: 64px; }
  .content-body { padding: 12px; }
  .topbar .search-box { display: none; }
  .modal-overlay { padding: 12px; align-items: flex-start; }
  .modal-card { padding: 18px; margin-top: 8px; max-height: calc(100vh - 24px); }
  .kpi-grid, .clients-cards-grid { grid-template-columns: 1fr; }
  #premium-gate { padding: 12px; align-items: flex-start; }
  .gate-card { margin: 6px 0; padding: 18px 16px; gap: 9px; border-radius: 20px; }
  .gate-logo-wrap { width: 42px; height: 42px; flex-basis: 42px; }
  .gate-lock-chip { display: none; }
  .gate-title { font-size: 22px; }
  .gate-feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .gate-plan-highlight { padding: 14px; }
  .gate-plan-highlight-copy strong { font-size: 15px; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-light);
}

/* ── TOAST MESSAGES ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #0F172A;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOutOverlay {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

@keyframes slideUpBanner {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}


/* ── PRINT STYLES ── */
@media print {
  .sidebar, .topbar, .btn, .view-btn, .search-box, .filter-chip, .modal-overlay, #toast-container {
    display: none !important;
  }
  .app-layout {
    display: block !important;
    background: white !important;
  }
  .main-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    background: white !important;
  }
  .table-card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
/* Status permanente da versao Web */
.web-version-status {
  border-color: transparent;
  background: #f0fdf4;
  color: #15803d;
}
.web-version-status.update-available {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
  animation: version-status-pulse 1.5s ease-in-out infinite;
}
@keyframes version-status-pulse {
  50% { box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16); }
}
@media (max-width: 1180px) {
  .topbar { gap: 12px; padding-left: 18px; padding-right: 18px; }
  .search-box { max-width: 300px; }
  .topbar-actions { gap: 4px; }
  .topbar-control, .web-version-status, .live-badge { padding-left: 9px; padding-right: 9px; }
}

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
  .topbar .search-box { display: none; }
  .topbar-actions { width: 100%; margin-left: 0; justify-content: flex-end; overflow-x: auto; scrollbar-width: none; }
}

/* Registrar pagamento: modos geral e conta específica */
.payment-mode-switch,
.payment-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#payment-specific-account[hidden],
#payment-general-summary[hidden] {
  display: none !important;
}
.payment-input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}
.payment-input-row > .form-group {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(115, 158, 76, .28);
  border-radius: 10px;
  background: rgba(115, 158, 76, .045);
}
.payment-amount-group {
  border-color: rgba(115, 158, 76, .42) !important;
  background: rgba(115, 158, 76, .065) !important;
}
.payment-input-row label {
  margin-bottom: 4px;
  color: #53634f;
  font-size: 11.5px;
  font-weight: 800;
}
.payment-amount-group label {
  color: #4f7d32;
}
.payment-amount-group label i {
  margin-right: 4px;
}
.payment-input-row .form-input {
  height: 39px;
  min-height: 39px;
  padding-top: 7px;
  padding-bottom: 7px;
  border: 1px solid #b8c9b0;
  color: #344432;
  background: #fff;
  font-size: 14px;
  font-weight: 750;
}
.payment-amount-group #payment-amount {
  border: 1.5px solid #739e4c;
  color: #29431d;
  font-size: 15px;
  font-weight: 800;
}
.payment-amount-group #payment-amount::placeholder {
  color: #87a678;
  opacity: 1;
}
.payment-amount-group #payment-amount:focus {
  border-color: #4f7d32;
  box-shadow: 0 0 0 2px rgba(115, 158, 76, .15);
  outline: none;
}
.payment-input-row #payment-method:focus {
  border-color: #739e4c;
  box-shadow: 0 0 0 2px rgba(115, 158, 76, .12);
  outline: none;
}
.payment-mode-option,
.payment-shortcut {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #739e4c;
  border-radius: 9px;
  color: #5f8f3e;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.payment-mode-option.is-selected,
.payment-shortcut.is-selected {
  color: #fff;
  background: #739e4c;
  box-shadow: 0 4px 10px rgba(115, 158, 76, .2);
}
.payment-mode-group small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.payment-general-summary {
  padding: 10px 12px;
  border: 1px solid rgba(115, 158, 76, .28);
  border-radius: 11px;
  background: rgba(115, 158, 76, .07);
}
.payment-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 750;
}
.payment-summary-line strong {
  color: #5f8f3e;
  font-size: 16px;
  white-space: nowrap;
}
.payment-allocation-modal {
  width: min(520px, calc(100vw - 28px));
}
.payment-allocation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.payment-allocation-summary > div {
  padding: 9px;
  border: 1px solid #dce7d7;
  border-radius: 9px;
  background: #f7faf5;
}
.payment-allocation-summary small,
.payment-allocation-summary strong {
  display: block;
}
.payment-allocation-summary small {
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 750;
}
.payment-allocation-summary strong {
  color: #38552b;
  font-size: 13px;
}
.payment-allocation-list {
  overflow: hidden;
  border: 1px solid #dce7d7;
  border-radius: 10px;
}
.payment-allocation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e8eee5;
}
.payment-allocation-item:last-child { border-bottom: 0; }
.payment-allocation-item span,
.payment-allocation-item small { display: block; }
.payment-allocation-item span { font-size: 12px; font-weight: 800; }
.payment-allocation-item small { margin-top: 2px; color: var(--text-muted); font-size: 10px; }
.payment-allocation-item > strong { color: #5f8f3e; font-size: 13px; white-space: nowrap; }
.payment-confirm-button {
  min-width: 190px;
  min-height: 42px;
  border-color: #10b981 !important;
  background: linear-gradient(135deg, #10b981, #0d9f70) !important;
  box-shadow: 0 5px 13px rgba(16, 185, 129, .24);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.payment-confirm-button:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 185, 129, .3);
}
.payment-confirm-button:active:not(:disabled) {
  filter: brightness(.96);
  transform: translateY(1px) scale(.985);
  box-shadow: 0 2px 7px rgba(16, 185, 129, .22);
}
.payment-confirm-button:focus-visible {
  outline: 3px solid rgba(16, 185, 129, .24);
  outline-offset: 2px;
}
.payment-confirm-button.is-loading,
.payment-confirm-button:disabled {
  cursor: wait;
  opacity: .78;
  transform: none;
  box-shadow: none;
}

.report-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding: 13px 4px 1px;
  border-top: 1px solid #e5ece3;
}
.report-pagination-summary { display: flex; align-items: center; gap: 16px; color: #64748b; font-size: 11px; font-weight: 650; }
.report-pagination-summary label { display: flex; align-items: center; gap: 7px; }
.report-pagination-summary select {
  height: 30px;
  padding: 0 26px 0 9px;
  border: 1px solid #d9e4d5;
  border-radius: 8px;
  color: #334155;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.report-pagination-controls, .report-pagination-pages { display: flex; align-items: center; gap: 5px; }
.report-page-arrow, .report-page-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #dce6d8;
  border-radius: 9px;
  background: #fff;
  color: #506174;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: .15s ease;
}
.report-page-arrow:hover:not(:disabled), .report-page-number:hover { border-color: #9fbd8d; color: #5B813A; background: #f3f8f0; }
.report-page-number.active { border-color: #739E4C; color: #fff; background: #739E4C; box-shadow: 0 4px 10px rgba(115,158,76,.2); }
.report-page-arrow:disabled { cursor: not-allowed; opacity: .4; }
.report-page-gap { width: 18px; text-align: center; color: #94a3b8; }
.report-empty { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #94a3b8; }
.report-empty > i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #276CAD; background: #EAF2FB; font-size: 18px; }
.report-empty strong { color: #475569; font-size: 13px; }
.report-empty small { font-size: 11px; }

@media (max-width: 680px) {
  .report-pagination { align-items: stretch; flex-direction: column; }
  .report-pagination-summary { justify-content: space-between; }
  .report-pagination-controls { justify-content: center; }
}

/* Dropdowns e filtros no tema do app */
select.form-input,
#report-page-size {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px !important;
  border: 1px solid #cfddca;
  color: #263548;
  background-color: #FFFFFF;
  background-image:
    linear-gradient(45deg, transparent 50%, #739E4C 50%),
    linear-gradient(135deg, #739E4C 50%, transparent 50%),
    linear-gradient(to right, #e2eadf, #e2eadf);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 34px) 50%;
  background-size: 5px 5px, 5px 5px, 1px 20px;
  background-repeat: no-repeat;
  font-weight: 650;
  cursor: pointer;
  color-scheme: light;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
select.form-input:hover,
#report-page-size:hover {
  border-color: #9fbd8d;
  background-color: #fbfdf9;
}
select.form-input:focus,
#report-page-size:focus {
  outline: none;
  border-color: #739E4C;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(115,158,76,.15);
}
select.form-input option,
#report-page-size option {
  padding: 10px 12px;
  color: #263548;
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
}
select.form-input option:checked,
#report-page-size option:checked {
  color: #FFFFFF;
  background: #739E4C linear-gradient(0deg, #739E4C 0%, #739E4C 100%);
}
select.form-input option:disabled,
#report-page-size option:disabled {
  color: #94A3B8;
  background: #F8FAFC;
}
select.form-input optgroup {
  color: #276CAD;
  background: #EAF2FB;
  font-weight: 800;
}

/* Atalhos do teclado e Modo Caixa */
.pdv-header-tools { display: flex; align-items: center; gap: 7px; }
.pdv-header-tool {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #d5e2d0;
  border-radius: 9px;
  color: #506174;
  background: #f8fbf7;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.pdv-header-tool:hover { color: #5B813A; border-color: #a9c699; background: #f1f7ed; }
.shortcut-hint { position: relative; }
.shortcut-hint::after {
  content: attr(data-shortcut);
  position: absolute;
  top: -6px;
  right: -5px;
  z-index: 2;
  min-width: 17px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  color: #276CAD;
  background: #EAF2FB;
  box-shadow: 0 1px 4px rgba(39,108,173,.12);
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.btn-primary.shortcut-hint::after {
  color: #FFFFFF;
  background: #276CAD;
  box-shadow: 0 1px 4px rgba(39,108,173,.2);
}
.payment-methods .shortcut-hint::after {
  top: 3px;
  right: 3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  color: #64748B;
  background: rgba(226,232,240,.72);
  box-shadow: none;
  font-size: 6px;
}
.payment-methods .shortcut-hint.active::after {
  color: #FFFFFF;
  background: rgba(39,108,173,.78);
}

/* Atalhos do fluxo de venda: legíveis, sem aparência de tecla física */
#btn-pdv-checkout.shortcut-hint,
#btn-pdv-finalize.shortcut-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#btn-pdv-checkout.shortcut-hint::after,
#btn-pdv-finalize.shortcut-hint::after,
.payment-methods .shortcut-hint::after {
  content: none;
}
#btn-pdv-checkout.shortcut-hint::before,
#btn-pdv-finalize.shortcut-hint::before {
  content: attr(data-shortcut);
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 5px;
  color: #FFFFFF;
  background: rgba(255,255,255,.18);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .2px;
}

/* Atalhos que precisam de leitura imediata no caixa */
#btn-pdv-discount.shortcut-hint,
#btn-pdv-clear-cart.shortcut-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#btn-pdv-discount.shortcut-hint::after,
#btn-pdv-clear-cart.shortcut-hint::after {
  content: none;
}
#btn-pdv-discount.shortcut-hint::before,
#btn-pdv-clear-cart.shortcut-hint::before {
  content: attr(data-shortcut);
  flex: 0 0 auto;
  padding: 3px 5px;
  border-radius: 5px;
  color: #276CAD;
  background: #EAF2FB;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .1px;
}
#btn-pdv-clear-cart.shortcut-hint::before {
  color: #B42318;
  background: #FFF1F0;
}
.payment-methods .shortcut-hint {
  position: relative;
}
.payment-methods .shortcut-hint::before {
  content: attr(data-shortcut);
  position: absolute;
  top: 3px;
  right: 3px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 5px;
  color: #64748B;
  background: rgba(100,116,139,.1);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.payment-methods .shortcut-hint.active::before {
  color: currentColor;
  background: rgba(255,255,255,.2);
}
.input-shortcut-hint {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 3;
  transform: translateY(-50%);
  min-width: auto;
  height: 17px;
  padding: 0 5px;
  border: 0;
  border-radius: 999px;
  color: #276CAD;
  background: #EAF2FB;
  box-shadow: none;
  font-size: 7px;
  pointer-events: none;
}
#pdv-search-input ~ .input-shortcut-hint {
  right: 9px;
  min-width: 25px;
  height: 21px;
  padding: 0 6px;
  border-radius: 6px;
  color: #1F5F9B;
  background: #DCEBFA;
  font-size: 10px;
  font-weight: 900;
}

/* Confirmação de limpeza do carrinho no tema do Painel */
.clear-cart-dialog {
  width: min(400px, calc(100vw - 28px));
  padding: 26px;
  display: grid;
  justify-items: center;
  gap: 16px;
  border: 1px solid #e2eadf;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(20,38,23,.22);
}
.clear-cart-dialog-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #b42318;
  background: #fff1f0;
  font-size: 20px;
}
.clear-cart-dialog-copy h3 { margin: 0; color: #172033; font-size: 19px; font-weight: 900; }
.clear-cart-dialog-copy p { margin: 7px 0 0; color: #64748b; font-size: 13px; line-height: 1.5; }
.clear-cart-dialog-actions { width: 100%; display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 2px; }
.clear-cart-dialog-actions .btn { min-height: 42px; border-radius: 10px; font-weight: 800; }
.clear-cart-dialog-actions .btn-danger { color: #fff; border-color: #c9342b; background: #c9342b; }
.clear-cart-dialog-actions .btn-danger:hover { border-color: #a8241d; background: #a8241d; }

.app-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15,23,42,.58);
  backdrop-filter: blur(4px);
}
.app-confirm-card {
  width: min(410px, 100%);
  padding: 26px;
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid #e1e9df;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(20,38,23,.24);
}
.app-confirm-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: #568336; background: #eff6ea; font-size: 20px; }
.app-confirm-icon.danger { color: #b42318; background: #fff1f0; }
.app-confirm-card h3 { margin: 2px 0 0; color: #172033; font-size: 19px; font-weight: 900; }
.app-confirm-card p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.55; }
.app-confirm-actions { width: 100%; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 6px; }
.app-confirm-actions .btn { min-height: 42px; border-radius: 10px; font-weight: 800; }
.app-confirm-actions .btn-danger { color: #fff; border-color: #c9342b; background: #c9342b; }
.app-confirm-actions .btn-danger:hover { border-color: #a8241d; background: #a8241d; }
#pdv-search-input { padding-right: 54px !important; }
#pdv-client-search-input { padding-right: 78px !important; }
.input-shortcut-hint.client-hint { right: 39px; }
kbd {
  display: inline-flex;
  min-width: 23px;
  height: 21px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccd7c8;
  border-bottom-width: 2px;
  border-radius: 6px;
  color: #405166;
  background: #fff;
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.cash-shortcuts-bar { display: none; }
.pdv-prod-card.keyboard-selected {
  outline: 3px solid rgba(39,108,173,.32);
  border-color: #276CAD !important;
  box-shadow: 0 8px 20px rgba(39,108,173,.16) !important;
  transform: translateY(-2px);
}

.keyboard-shortcuts-card { width: min(680px, calc(100% - 30px)); max-width: 680px; padding: 0; gap: 0; overflow: hidden; border-radius: 20px; }
.keyboard-shortcuts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, #739E4C, #5B813A);
}
.keyboard-shortcuts-head > div { display: flex; align-items: center; gap: 12px; }
.keyboard-shortcuts-head > div > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.14); font-size: 17px; }
.keyboard-shortcuts-head h3 { margin: 0; font-size: 17px; }
.keyboard-shortcuts-head p { margin: 3px 0 0; color: rgba(255,255,255,.82); font-size: 11px; }
.keyboard-shortcuts-head .modal-close { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: rgba(255,255,255,.1); }
.keyboard-shortcuts-content { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 20px; background: #f7faf5; }
.keyboard-shortcuts-content section { padding: 15px; border: 1px solid #e0e9dc; border-radius: 14px; background: #fff; }
.keyboard-shortcuts-content h4 { margin: 0 0 11px; color: #276CAD; font-size: 12px; }
.shortcut-grid { display: grid; gap: 5px; }
.shortcut-grid > div { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 7px; border-radius: 8px; color: #536275; font-size: 10px; }
.shortcut-grid > div:nth-child(odd) { background: #f8faf8; }
.keyboard-shortcuts-note { display: flex; align-items: center; gap: 8px; padding: 11px 20px 14px; border-top: 1px solid #e5ece2; color: #64748b; background: #fff; font-size: 10px; }
.keyboard-shortcuts-note i { color: #739E4C; }

body.cash-mode .sidebar,
body.cash-mode .topbar { display: none !important; }
body.cash-mode #app-layout,
body.cash-mode .main-wrapper { width: 100vw; height: 100vh; }
body.cash-mode .content-body { padding: 10px 10px 56px; }
body.cash-mode #tab-pdv { height: 100%; gap: 0; }
body.cash-mode #pdv-workspace { height: 100%; grid-template-columns: 1fr 400px !important; }
body.cash-mode #pdv-products-grid { max-height: calc(100vh - 125px) !important; }
body.cash-mode #cash-shortcuts-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 19000;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #fff;
  background: linear-gradient(90deg, #557A37, #648D42 50%, #557A37);
  border-top: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 -6px 18px rgba(15,23,42,.2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1px;
}
body.cash-mode #cash-shortcuts-bar span { display: inline-flex; align-items: center; gap: 6px; }
body.cash-mode #cash-shortcuts-bar kbd {
  min-width: 29px;
  height: 25px;
  color: #244218;
  border-color: #FFFFFF;
  background: #FFFFFF;
  box-shadow: 0 2px 5px rgba(21,45,12,.2);
  font-size: 10px;
}

@media (max-width: 760px) {
  .keyboard-shortcuts-content { grid-template-columns: 1fr; }
  .pdv-header-tool kbd { display: none; }
}

/* ── AUTOCOMPLETE DROPDOWN FLUTUANTE PREMIUM ── */
.flutter-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  background: #FFFFFF !important;
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25), 0 10px 15px -3px rgba(15, 23, 42, 0.1);
  border: 1px solid #CBD5E1;
  z-index: 9999999 !important;
  padding: 8px 0;
  scrollbar-width: thin;
}

.flutter-autocomplete-row {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
  transition: all 0.2s ease;
  user-select: none;
}

.flutter-autocomplete-row:last-child {
  border-bottom: none;
}

.flutter-autocomplete-row:hover,
.flutter-autocomplete-row:active {
  background: #F0FDF4;
  padding-left: 20px;
}

.flutter-autocomplete-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex: 1;
}

.flutter-autocomplete-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F0FDF4;
  color: #739E4C;
  border: 1px solid #BBF7D0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.flutter-autocomplete-row-name {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flutter-autocomplete-row-price {
  font-size: 14.5px;
  font-weight: 700;
  color: #739E4C;
  white-space: nowrap;
  flex-shrink: 0;
  background: #F0FDF4;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #BBF7D0;
}

/* ── SEARCHABLE CLIENT DROPDOWN STYLES ── */
.flutter-client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.flutter-client-row:last-child {
  border-bottom: none;
}

.flutter-client-row:hover {
  background-color: #EEF2FF;
}

.flutter-client-row-name {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
}

.flutter-client-row-sub {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}

@media (max-width: 520px) {
  .topbar-actions { justify-content: flex-start; }
  .web-version-status, .live-badge { flex: 0 0 auto; }
  .topbar-install span { display: none; }
  .topbar-install { width: 36px; padding: 0; }
  .topbar-actions::-webkit-scrollbar { display: none; }
}

/* ── ESTILOS PARA IMPRESSÃO DE COMPROVANTES DE VENDA / RECIBOS ── */
@media print {
  body * {
    visibility: hidden !important;
  }
  #modal-receipt,
  #modal-receipt *,
  #receipt-print-area,
  #receipt-print-area * {
    visibility: visible !important;
  }
  #modal-receipt {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    display: block !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #modal-receipt .modal-card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
  }
  #modal-receipt .modal-header,
  #modal-receipt .modal-close,
  #modal-receipt button,
  #modal-receipt .btn {
    display: none !important;
  }
  #receipt-print-area {
    border: none !important;
    padding: 10px !important;
  }
}

/* ── ESTILOS DO MÓDULO PDV BALCÃO (CAIXA RÁPIDO) ── */
.pdv-prod-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  position: relative;
  user-select: none;
}

.pdv-prod-card:hover {
  border-color: #10B981;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.pdv-prod-card:active {
  transform: scale(0.97);
}

.pdv-prod-title {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdv-prod-price {
  font-size: 14px;
  font-weight: 800;
  color: #059669;
}

.pdv-prod-stock {
  font-size: 10px;
  font-weight: 600;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

.pdv-cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 8px 10px;
  border-radius: 8px;
  gap: 8px;
}

.pdv-cart-item-name {
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdv-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #334155;
  transition: all 0.1s;
}

.pdv-qty-btn:hover {
  background: #EEF2FF;
  border-color: #6366F1;
  color: #4338CA;
}

.pdv-qty-btn:active {
  background: #E2E8F0;
}

/* Modal PDV Payment Cards */
.pdv-payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: #64748B;
}

.pdv-payment-card i {
  font-size: 20px;
}

.pdv-payment-card span {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.pdv-payment-card:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.pdv-payment-card.active {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-dark);
}

/* ─── ESTILOS DO FLUXO DE CHECKOUT E DESCONTO (Estilo Estoque PDV) ─── */

.discount-link {
  border: 0;
  background: transparent;
  padding: 3px 0;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 800;
}
.discount-link:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.price-preview, .checkout-review {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 11px;
  background: #f4f6fa;
}
.price-preview span, .checkout-review span {
  color: #64748B;
  font-size: 12px;
}
.price-preview b, .checkout-review b {
  color: #1E293B;
}

.discount-modes, .payment-methods {
  display: grid;
  gap: 7px;
  padding: 5px;
  background: #f1f3f7;
  border-radius: 12px;
}
.discount-modes { grid-template-columns: 1fr 1fr; }
.payment-methods { grid-template-columns: repeat(5, 1fr); }

.discount-modes button, .payment-methods button, .cash-suggestions button {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 8px 7px;
  color: #52617a;
  font-weight: 800;
  cursor: pointer;
}

.discount-modes button.active, .payment-methods button.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.2);
}

.checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 34px;
  margin-bottom: 16px;
}
.checkout-head span {
  color: #64748B;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}
.checkout-head h2 {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 800;
  color: #1E293B;
}
.checkout-head > strong {
  font-size: 25px;
  color: var(--primary-dark);
}

/* Mantém o checkout imóvel enquanto a venda é gravada no Firestore. */
#modal-pdv-checkout.is-submitting .pdv-checkout-box {
  position: relative;
  overflow: hidden;
  transition: none;
  contain: layout paint;
}
#modal-pdv-checkout.is-submitting #pdv-checkout-form {
  pointer-events: none;
}
#btn-pdv-finalize {
  min-height: 42px;
  white-space: nowrap;
}
.pdv-checkout-processing {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: inherit;
  color: #334155;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(3px);
}
.pdv-checkout-processing i {
  color: #739E4C;
  font-size: 27px;
}
.pdv-checkout-processing strong {
  color: #1E293B;
  font-size: 15px;
  font-weight: 900;
}
.pdv-checkout-processing small {
  color: #64748B;
  font-size: 11px;
}

.checkout-review {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}
.checkout-review div {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.cash-suggestions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.cash-suggestions button {
  background: #f0f2f7;
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid #E2E8F0;
  font-size: 11px;
}
.cash-suggestions button:hover {
  background: #e2e8f0;
}

.credit-fields {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  align-items: end;
}
.credit-options {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 9px;
}
.credit-fields label {
  display: grid;
  gap: 7px;
}

#pdv-cash-fields {
  margin-bottom: 14px !important;
}
#pdv-cash-fields > span:first-child,
.credit-options label > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}
#pdv-cash-fields > span:first-child {
  margin-bottom: 7px;
}
#pdv-cash-fields > span:first-child i,
.credit-options label > span i {
  color: var(--primary-color);
  font-size: 11px;
}
.pdv-money-input {
  position: relative;
  display: flex;
  align-items: center;
}
.pdv-money-input > b {
  position: absolute;
  left: 13px;
  z-index: 1;
  color: #557A37;
  font-size: 12px;
  pointer-events: none;
}
#pdv-cash-received {
  width: 100%;
  height: 40px !important;
  padding: 8px 12px 8px 40px;
  border-color: #D8E4D2;
  border-radius: 10px;
  color: #1E293B;
  background: #F8FAF7;
  font-size: 15px !important;
  font-weight: 800 !important;
}
#pdv-cash-received:focus,
.credit-options .form-input:focus {
  border-color: #739E4C;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(115,158,76,.14);
}
#pdv-cash-received.is-invalid {
  border-color: #C62828 !important;
  background: #FFF7F7;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, .12);
}
.pdv-change-summary {
  min-height: 38px;
  margin-top: 8px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #DCE8D7;
  border-radius: 10px;
  color: #334155;
  background: #F2F7EF;
}
.pdv-change-summary small { color: #64748B; font-size: 11px; font-weight: 700; }
.pdv-change-summary strong { color: #557A37; font-size: 14px; font-weight: 900; }
#pdv-credit-fields {
  margin-bottom: 14px !important;
}
.credit-options .form-input {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #D8E4D2;
  border-radius: 10px;
  color: #263548;
  background-color: #F8FAF7;
  font-size: 12px;
  font-weight: 700;
}
#pdv-due-date {
  color-scheme: light;
  padding-left: 12px;
}
#pdv-due-date::-webkit-calendar-picker-indicator {
  padding: 5px;
  border-radius: 6px;
  cursor: pointer;
  opacity: .72;
  background-color: #EAF3E3;
}
#pdv-checkout-form > div:last-child {
  margin-top: 14px !important;
}

#change-preview {
  display: block;
  margin-top: 9px;
  color: var(--primary-color);
}

@media (max-width: 760px) {
  .payment-methods { grid-template-columns: repeat(3, 1fr); }
  .credit-fields { grid-template-columns: 1fr; }
  .credit-options { grid-template-columns: 1fr; }
  .checkout-head > strong { font-size: 20px; }
}

/* Esconder setinhas do input number */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Mini Toggle Switch */
.mini-toggle {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}
.mini-toggle input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.mini-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .2s;
  border-radius: 18px;
}
.mini-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}
.mini-toggle input:checked + .mini-slider {
  background-color: var(--primary-color);
}
.mini-toggle input:checked + .mini-slider:before {
  transform: translateX(14px);
}

/* ── PDV CART BADGE ── */
.pdv-prod-cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--primary-color);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 100px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 10;
}

/* ── BLOQUEIO MOBILE (Apenas Desktop) ── */
.mobile-access-blocker { display: none; }
.panel-mobile-device { width: 100%; max-width: 100%; overflow: hidden; }
.panel-mobile-device body { width: 100%; max-width: 100%; height: 100dvh; overflow: hidden; }
.panel-mobile-device .mobile-access-blocker {
  display: flex; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 100000;
  width: 100%; height: 100%; background: linear-gradient(145deg, #1E293B 0%, #334155 100%);
  padding: clamp(16px, 5vw, 30px); overflow-y: auto; overflow-x: hidden;
}
.panel-mobile-device .mobile-block-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.15;
  background-image: radial-gradient(#F8FAFC 2px, transparent 2px);
  background-size: 27px 27px;
}
.panel-mobile-device .mobile-block-card {
  position: relative; width: 100%; max-width: 410px; margin: auto;
  padding: 34px 27px 28px; border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 26px; background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4); text-align: center; color: #1E293B;
}
.panel-mobile-device .mobile-block-card img {
  width: 84px; height: 84px; object-fit: contain; margin-bottom: 14px;
}
.panel-mobile-device .mobile-block-card > span {
  display: block; font-size: 10px; font-weight: 900; letter-spacing: 0.18em; color: var(--primary-color);
}
.panel-mobile-device .mobile-block-card h1 {
  margin: 9px 0 10px; font-size: 26px; line-height: 1.15; color: #0F172A; font-weight: 850;
}
.panel-mobile-device .mobile-block-card p {
  margin: 0 auto; color: #475569; font-size: 15px; line-height: 1.55; max-width: 350px;
}
.panel-mobile-device .mobile-block-card a {
  display: flex; align-items: center; justify-content: center;
  min-height: 49px; margin-top: 23px; border-radius: 13px;
  background: var(--primary-color); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 800; box-shadow: 0 9px 22px rgba(39, 108, 173, 0.3);
  transition: 0.2s;
}
.panel-mobile-device .mobile-block-card a:active { transform: translateY(1px); }
.product-photo-editor {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  background: #f8fafc;
}

.product-photo-preview {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #eaf2fb;
  color: var(--primary-color, #276cad);
  font-size: 28px;
}

.product-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.product-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.product-photo-actions small { flex-basis: 100%; color: #64748b; line-height: 1.4; }
.product-photo-remove { color: #dc2626; border-color: #fecaca; }

/* Modal de produto — identidade visual do app */
#modal-product { padding: 20px; }
#modal-product .product-modal-card {
  width: min(760px, 100%);
  max-width: 760px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(39, 108, 173, .14);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}

.product-modal-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  color: #fff;
  background: linear-gradient(135deg, #739E4C 0%, #5B813A 100%);
}

.product-modal-heading { display: flex; align-items: center; gap: 13px; min-width: 0; }
.product-modal-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .24);
  font-size: 19px;
}
.product-modal-heading h3 { margin: 0; color: #fff; font-size: 19px; font-weight: 800; }
.product-modal-heading p { margin: 3px 0 0; color: rgba(255,255,255,.78); font-size: 12px; }
#modal-product .modal-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 11px;
  background: rgba(255,255,255,.11);
  font-size: 16px;
}
#modal-product .modal-close:hover { background: rgba(255,255,255,.2); }

.product-form {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 0;
  background: #f8fafc;
}
.product-code-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #eaf2fb;
  color: #1f5d98;
  font-size: 12px;
  font-weight: 700;
}
.product-form-section {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e3ebf4;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .035);
}
.product-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #276cad;
  font-size: 13px;
  font-weight: 800;
}
.product-section-title i { width: 18px; text-align: center; }
.product-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.product-field-full { grid-column: 1 / -1; }
#modal-product .form-group { gap: 7px; }
#modal-product .form-group label {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .35px;
}
#modal-product .form-group label > span { color: #dc2626; }
#modal-product .form-group label small {
  margin-left: 5px;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
}
.product-input-wrap { position: relative; display: flex; align-items: center; }
.product-input-wrap > i,
.product-input-wrap > b {
  position: absolute;
  left: 13px;
  z-index: 1;
  color: #7b93aa;
  font-size: 13px;
  pointer-events: none;
}
.product-input-wrap > b { font-size: 11px; }
#modal-product .product-input-wrap .form-input {
  min-height: 44px;
  padding: 10px 13px 10px 39px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #172033;
}
#modal-product .product-input-wrap .form-input:focus {
  border-color: #739E4C;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(115,158,76,.14);
}
#modal-product select.form-input { appearance: auto; }
.product-stock-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  border-radius: 11px;
  border: 1px solid #dbeafe;
  background: #f2f7fc;
  cursor: pointer;
}
.product-toggle-copy { display: flex; align-items: center; gap: 10px; color: #276cad; }
.product-toggle-copy > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #dcecf9; }
.product-toggle-copy span { display: flex; flex-direction: column; gap: 2px; }
.product-toggle-copy strong { color: #263548; font-size: 12px; }
.product-toggle-copy small { color: #64748b; font-size: 10px; font-weight: 500; }
.product-stock-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.product-toggle-ui { width: 40px; height: 23px; flex: 0 0 40px; position: relative; border-radius: 20px; background: #cbd5e1; transition: .2s; }
.product-toggle-ui::after { content: ''; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.25); transition: .2s; }
.product-stock-toggle input:checked + .product-toggle-ui { background: #739E4C; }
.product-stock-toggle input:checked + .product-toggle-ui::after { transform: translateX(17px); }
.product-photo-editor { border-color: #dbe5ef; background: #f8fafc; }
.product-photo-preview { background: #eaf2fb; color: #276cad; }
.product-notes-field { margin-top: 13px; }
.product-modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 -22px;
  padding: 14px 22px 18px;
  border-top: 1px solid #e5edf5;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}
#modal-product .product-modal-footer .btn { min-width: 130px; border-radius: 10px; }
#modal-product .product-modal-footer .btn-primary { background: #739E4C; box-shadow: 0 6px 16px rgba(115,158,76,.24); }
#modal-product .product-modal-footer .btn-primary:hover { background: #5B813A; }

@media (max-width: 640px) {
  #modal-product { padding: 8px; }
  #modal-product .product-modal-card { max-height: calc(100vh - 16px); border-radius: 17px; }
  .product-modal-header { padding: 16px; }
  .product-modal-heading p { display: none; }
  .product-form { padding: 14px 14px 0; }
  .product-form-grid { grid-template-columns: 1fr; }
  .product-field-full { grid-column: auto; }
  .product-form-section { padding: 14px; }
  .product-photo-editor { align-items: flex-start; }
  .product-modal-footer { margin: 0 -14px; padding: 12px 14px 14px; }
  #modal-product .product-modal-footer .btn { flex: 1; min-width: 0; padding-inline: 12px; }
}

/* Catálogo de produtos e estoque */
.products-card { padding: 0 16px 16px; background: #f8fafc; border: 1px solid #e4ebf3; }
.products-toolbar {
  margin: 0 -16px 6px;
  padding: 18px 18px 14px;
  flex-wrap: wrap;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #e8eef5;
}
.products-toolbar h3 { color: #1e293b; }
.products-table { border-collapse: separate; border-spacing: 0 8px; }
.products-table thead th {
  padding: 8px 14px;
  border: 0;
  color: #7b8da1;
  font-size: 10px;
  letter-spacing: .65px;
}
.products-table tbody .product-row { transition: transform .16s ease, box-shadow .16s ease; }
.products-table tbody .product-row:hover { transform: translateY(-1px); }
.products-table tbody .product-row td {
  padding: 12px 14px;
  border-top: 1px solid #e5edf5;
  border-bottom: 1px solid #e5edf5;
  background: #fff;
  vertical-align: middle;
}
.products-table tbody .product-row:hover td { border-color: #cfddea; box-shadow: 0 7px 18px rgba(15,23,42,.055); }
.products-table tbody .product-row td:first-child { border-left: 1px solid #e5edf5; border-radius: 13px 0 0 13px; }
.products-table tbody .product-row td:last-child { border-right: 1px solid #e5edf5; border-radius: 0 13px 13px 0; }
.product-identity { display: flex; align-items: center; gap: 12px; min-width: 235px; }
.product-list-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #eaf2fb;
  color: #276cad;
  font-size: 18px;
}
.product-list-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.product-list-thumb:not(.no-image) > i { visibility: hidden; }
.product-identity-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.product-identity-copy > strong { color: #172033; font-size: 13px; line-height: 1.25; }
.product-identity-copy > span { color: #276cad; font-size: 9px; font-weight: 800; letter-spacing: .35px; }
.product-identity-copy > small { color: #8493a5; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.product-price, .product-cost { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 108px; }
.product-price > strong { color: #087f5b; font-size: 14px; }
.product-cost > strong { color: #475569; font-size: 12px; }
.product-price > small, .product-cost > small { flex-basis: 100%; color: #94a3b8; font-size: 9px; }
.product-margin { padding: 2px 5px; border-radius: 5px; background: #dcfce7; color: #167047; font-size: 9px; font-weight: 800; }
.product-stock { display: flex; align-items: center; gap: 8px; min-width: 112px; }
.product-stock > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}
.product-stock > div { display: flex; flex-direction: column; gap: 1px; }
.product-stock strong { color: #334155; font-size: 10px; }
.product-stock small { font-size: 9px; font-weight: 700; }
.product-stock.available > span { background: #dcfce7; color: #087f5b; }
.product-stock.available small { color: #139368; }
.product-stock.low > span { background: #fef3c7; color: #b45309; }
.product-stock.low small { color: #d97706; }
.product-stock.empty > span { background: #fee2e2; color: #dc2626; }
.product-stock.empty small { color: #dc2626; }
.product-stock.unlimited > span { background: #dbeafe; color: #276cad; }
.product-stock.unlimited small { color: #276cad; }
.product-actions { display: flex; justify-content: flex-end; gap: 7px; }
.product-action {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe5ef;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  transition: .16s ease;
}
.product-action.edit { color: #276cad; }
.product-action.edit:hover { background: #eaf2fb; border-color: #afcbe5; }
.product-action.archive { color: #b7791f; }
.product-action.archive:hover { background: #fff8e6; border-color: #efd08a; }
.product-action.restore { color: #568336; }
.product-action.restore:hover { color: #fff; background: #739e4c; border-color: #739e4c; }
.product-action.delete { color: #dc2626; }
.product-action.delete:hover { background: #fef2f2; border-color: #fecaca; }
.products-empty { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #64748b; }
.products-empty > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: #eaf2fb; color: #276cad; font-size: 20px; }
.products-empty strong { color: #334155; font-size: 14px; }
.products-empty small { color: #94a3b8; }

#btn-save-product:disabled { cursor: wait; opacity: .82; transform: none; }

@media (max-width: 900px) {
  .products-card { overflow-x: auto; }
  .products-table { min-width: 760px; }
}

/* Linguagem visual unificada para o conteúdo do Painel Web */
.content-body {
  background:
    radial-gradient(circle at 100% 0, rgba(39,108,173,.055), transparent 28%),
    #f5f8f3;
}
.tab-view { gap: 18px; }
.tab-view > .page-header {
  padding: 17px 19px;
  border: 1px solid #e1e9df;
  border-left: 4px solid #739E4C;
  border-radius: 15px;
  background: #FFFFFF;
  box-shadow: 0 3px 12px rgba(15,23,42,.035);
}
.tab-view > .page-header .page-title h2 { color: #172033; font-size: 20px; }
.tab-view > .page-header .page-title p { color: #718096; }

.kpi-card {
  position: relative;
  overflow: hidden;
  border-color: #e1e9df;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(15,23,42,.04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.kpi-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #739E4C;
}
.kpi-card:hover { transform: translateY(-2px); border-color: #cfddca; box-shadow: 0 9px 22px rgba(15,23,42,.065); }
.kpi-info span { color: #6f8193; }

.tab-view > .table-card:not(.products-card) {
  padding: 0 14px 14px;
  border-color: #e1e9df;
  border-radius: 15px;
  background: #f8faf8;
  box-shadow: 0 3px 12px rgba(15,23,42,.035);
}
.tab-view > .table-card:not(.products-card) > .table-header {
  margin: 0 -14px 6px;
  padding: 17px 18px 14px;
  border-bottom-color: #e6ede4;
  background: #FFFFFF;
}
.tab-view > .table-card:not(.products-card) > .table-header h3 i { color: #276CAD; }
.tab-view > .table-card:not(.products-card) > .data-table {
  border-collapse: separate;
  border-spacing: 0 7px;
}
.tab-view > .table-card:not(.products-card) > .data-table th {
  padding: 8px 13px;
  border: 0;
  background: transparent;
  color: #748598;
  font-size: 10px;
  letter-spacing: .6px;
}
.tab-view > .table-card:not(.products-card) > .data-table tbody tr { transition: transform .15s ease; }
.tab-view > .table-card:not(.products-card) > .data-table tbody tr:hover { transform: translateY(-1px); background: transparent; }
.tab-view > .table-card:not(.products-card) > .data-table tbody td {
  padding: 13px;
  border-top: 1px solid #e5ece3;
  border-bottom: 1px solid #e5ece3;
  background: #FFFFFF;
}
.tab-view > .table-card:not(.products-card) > .data-table tbody td:first-child {
  border-left: 1px solid #e5ece3;
  border-radius: 12px 0 0 12px;
}
.tab-view > .table-card:not(.products-card) > .data-table tbody td:last-child {
  border-right: 1px solid #e5ece3;
  border-radius: 0 12px 12px 0;
}

.client-card {
  border-color: #e1e9df;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(15,23,42,.04);
}
.client-card:hover { border-color: #aFC89F; box-shadow: 0 9px 22px rgba(15,23,42,.065); }
.client-card-avatar { background: #EAF2FB; color: #276CAD; border-radius: 12px; }

/* Visualização em lista de Clientes e Fiados */
#tab-clients .clients-list-card {
  padding: 0 14px 14px;
  overflow-x: auto;
  border: 1px solid #e1e9df;
  border-radius: 15px;
  background: #f7faf6;
  box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
#tab-clients .clients-list-table {
  min-width: 850px;
  border-collapse: separate;
  border-spacing: 0 8px;
}
#tab-clients .clients-list-table thead th {
  padding: 12px 14px 6px;
  border: 0;
  color: #718096;
  background: transparent;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .55px;
}
#tab-clients .clients-list-table tbody tr {
  cursor: pointer;
  transition: transform .16s ease;
}
#tab-clients .clients-list-table tbody tr:hover {
  transform: translateY(-1px);
  background: transparent;
}
#tab-clients .clients-list-table tbody td {
  padding: 13px 14px;
  border-top: 1px solid #e3ebe0;
  border-bottom: 1px solid #e3ebe0;
  background: #fff;
  color: #475569;
  font-size: 11px;
  line-height: 1.4;
  vertical-align: middle;
}
#tab-clients .clients-list-table tbody tr:hover td {
  border-color: #bfd2b5;
  box-shadow: 0 7px 18px rgba(31,55,29,.055);
}
#tab-clients .clients-list-table tbody td:first-child {
  min-width: 205px;
  padding-left: 17px;
  border-left: 3px solid #739e4c;
  border-radius: 12px 0 0 12px;
}
#tab-clients .clients-list-table tbody td:first-child > strong {
  display: inline-block;
  max-width: 190px;
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#tab-clients .clients-list-table tbody td:first-child > span {
  display: inline-flex;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 5px;
  color: #276cad !important;
  background: #eaf2fb;
  font-size: 9px !important;
}
#tab-clients .clients-list-table tbody td:nth-child(2) {
  min-width: 130px;
  color: #526173;
}
#tab-clients .clients-list-table tbody td:nth-child(3) {
  min-width: 210px;
  max-width: 285px;
  color: #64748b;
}
#tab-clients .clients-list-table tbody td:nth-child(4) {
  min-width: 120px;
  font-size: 12px;
}
#tab-clients .clients-list-table tbody td:last-child {
  min-width: 205px;
  border-right: 1px solid #e3ebe0;
  border-radius: 0 12px 12px 0;
}
#tab-clients .clients-list-table tbody td:last-child .btn {
  min-height: 33px;
  padding: 6px 10px !important;
  border-color: #d5e1d0;
  border-radius: 9px;
  color: #4f6354;
  background: #fff;
  font-size: 10px !important;
  font-weight: 800;
}
#tab-clients .clients-list-table tbody td:last-child .btn:first-child:hover {
  color: #276cad;
  border-color: #b9cee2;
  background: #eef5fb;
}
#tab-clients .clients-list-table tbody td:last-child .btn:last-child {
  color: #568336;
  border-color: #cbdcc2;
  background: #f4f8f1;
}
#tab-clients .clients-list-table tbody td:last-child .btn:last-child:hover {
  color: #fff;
  border-color: #739e4c;
  background: #739e4c;
}

#tab-account > .table-card,
#tab-account > div:not(.page-header),
#tab-pdv > div,
#tab-client-detail > .table-card {
  border-radius: 15px;
}

html { scrollbar-gutter: stable; }
#page-detail-tx-tbody td:last-child {
  white-space: nowrap;
}
#tab-client-detail > .table-card.installment-transitioning {
  overflow-x: hidden;
}

#page-detail-tx-tbody .client-installment-summary td {
  background: #f3f7fc;
  border-top: 1px solid #c9daea;
  border-bottom: 1px solid #c9daea;
  transition: background-color .2s ease;
}
#page-detail-tx-tbody .client-installment-summary.expanded td {
  background: #eaf3fc;
}
#page-detail-tx-tbody .client-installment-summary td:first-child {
  border-left: 4px solid #276cad;
}
#page-detail-tx-tbody .client-installment-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
#page-detail-tx-tbody .client-installment-title > span:last-child,
#page-detail-tx-tbody .client-installment-title strong,
#page-detail-tx-tbody .client-installment-title small {
  display: block;
}
#page-detail-tx-tbody .client-installment-title small {
  margin-top: 3px;
  color: #276cad;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
#page-detail-tx-tbody .client-installment-icon {
  display: inline-flex;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: #276cad;
  background: #dceafa;
  border-radius: 50%;
}
#page-detail-tx-tbody .client-installment-method {
  color: #276cad;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
#page-detail-tx-tbody .client-installment-total,
#page-detail-tx-tbody .client-installment-balance {
  display: block;
}
#page-detail-tx-tbody .client-installment-total { color: #dc2626; }
#page-detail-tx-tbody .client-installment-balance {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
  white-space: nowrap;
}
#page-detail-tx-tbody .client-installment-action { text-align: right; }
#page-detail-tx-tbody .client-installment-toggle {
  min-width: 112px;
  padding: 6px 9px;
  color: #276cad;
  border-color: #b8cfe3;
  background: #fff;
  font-size: 11px;
}
#page-detail-tx-tbody .client-installment-toggle i {
  transition: transform .18s ease;
}
#page-detail-tx-tbody .client-installment-toggle.expanded i {
  transform: rotate(180deg);
}
#page-detail-tx-tbody .client-installment-child td {
  background: #f8fbff;
  border-bottom-color: #dce7f2;
}
#page-detail-tx-tbody .client-installment-child td:first-child {
  border-left: 4px solid #8db5dc;
}
#page-detail-tx-tbody .client-installment-child td:nth-child(2) {
  padding-left: 26px;
}
#page-detail-tx-tbody .client-installment-child:hover td {
  background: #eef6fd;
}
#page-detail-tx-tbody .client-installment-number {
  display: inline-flex;
  width: 25px;
  height: 25px;
  margin-right: 8px;
  align-items: center;
  justify-content: center;
  color: #276cad;
  background: #dceafa;
  border: 1px solid #bdd4e9;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  vertical-align: middle;
}
#page-detail-tx-tbody .client-installment-child td:last-child .btn {
  color: #276cad !important;
  border-color: #bfd3e6 !important;
  background: #fff !important;
  border-radius: 999px;
}
#page-detail-tx-tbody .client-installment-child td:last-child .btn:hover {
  color: #fff !important;
  border-color: #276cad !important;
  background: #276cad !important;
}
#page-detail-tx-tbody .client-installment-child td:last-child .btn.btn-primary {
  color: #fff !important;
  border-color: #3e8c61 !important;
  background: #3e8c61 !important;
}
#page-detail-tx-tbody .client-installment-child td:last-child .btn:last-child {
  color: #dc2626 !important;
  border-color: #efc1c1 !important;
}
#page-detail-tx-tbody .client-installment-child td:last-child .btn:last-child:hover {
  color: #fff !important;
  border-color: #dc2626 !important;
  background: #dc2626 !important;
}
#page-detail-tx-tbody tr.is-collapsed { visibility: collapse; }

@media (max-width: 760px) {
  .tab-view > .page-header { padding: 14px; }
  .tab-view > .table-card:not(.products-card) { padding-left: 10px; padding-right: 10px; }
}

/* ─── MODAL NOVA VENDA: CARDS DE FORMA DE PAGAMENTO (ESTILO MOBILE) ─── */
#modal-sale .modal-card {
  max-width: 530px;
  width: 95%;
  height: 610px;
  max-height: 92vh;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

#modal-sale .modal-header {
  flex-shrink: 0;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

#form-sale {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.sale-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 #F8FAFC;
}

.sale-modal-body::-webkit-scrollbar {
  width: 5px;
}

.sale-modal-body::-webkit-scrollbar-track {
  background: #F8FAFC;
  border-radius: 4px;
}

.sale-modal-body::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.sale-modal-body::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.sale-modal-footer {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.sale-payment-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 100%;
}

.sale-payment-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 2px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  color: #334155;
  gap: 3px;
  min-height: 48px;
  user-select: none;
}

.sale-payment-card-btn i {
  font-size: 16px;
  color: #64748B;
  transition: color 0.18s ease;
}

.sale-payment-card-btn span {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.sale-payment-card-btn:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}

.sale-payment-card-btn.active {
  background: var(--primary-color, #739E4C);
  border-color: var(--primary-color, #739E4C);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(115, 158, 76, 0.35);
}

.sale-payment-card-btn.active i {
  color: #FFFFFF;
}

.sale-payment-card-btn.active.is-fiado {
  background: #EA580C;
  border-color: #EA580C;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
}

.sale-payment-card-btn.active.is-fiado i {
  color: #FFFFFF;
}

@media (max-width: 480px) {
  #modal-sale .modal-card {
    height: 95vh;
    padding: 10px 12px;
  }
  .sale-payment-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}


