:root{
  --navy:#071b43;
  --navy2:#0c2d6b;
  --navy3:#03142f;
  --gold:#c9a34b;
  --gold-soft:#d7b46b;
  --light:#f3f5fa;
  --white:#fff;
  --text:#172033;
  --muted:#6c768a;
  --border:#dfe5f1;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--light);color:var(--text)}
a{text-decoration:none;color:var(--navy2)}

/* LOGIN */
.login-page.refined-login{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:
    radial-gradient(circle at 82% 18%, rgba(128,173,255,.25), transparent 18%),
    radial-gradient(circle at 70% 50%, rgba(56,110,214,.16), transparent 18%),
    linear-gradient(120deg, #02122b 0%, #08265a 45%, #02122b 100%);
}
.login-shell.exact-login{
  width:min(1400px,100%);
  min-height:880px;
  display:grid;
  grid-template-columns:1fr 1.03fr;
  border-radius:34px;
  overflow:hidden;
  box-shadow:0 24px 80px rgba(0,0,0,.42);
  background:rgba(255,255,255,.02);
}
.exact-hero{
  position:relative;
  background:
    linear-gradient(180deg, rgba(3,20,47,.65), rgba(3,20,47,.82)),
    radial-gradient(circle at 30% 0%, rgba(31,72,148,.45), transparent 30%),
    linear-gradient(180deg, #071b43 0%, #02122b 100%);
  color:#fff;
  border-right:2px solid rgba(209,164,90,.65);
}
.exact-hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to top, rgba(0,0,0,.48), rgba(0,0,0,.05) 40%),
    url('../img/logo.png') no-repeat left -200px bottom -220px/650px auto;
  opacity:.08;
  pointer-events:none;
}
.hero-inner{
  position:relative;
  z-index:1;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  text-align:center;
  padding:46px 44px 42px;
}
.hero-logo-wrap{
  margin-top:12px;
}
.hero-logo-wrap img{
  width:320px;
  max-width:76%;
  filter:drop-shadow(0 10px 28px rgba(0,0,0,.45));
}
.exact-hero h1{
  margin:18px 0 10px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:62px;
  line-height:1.02;
  letter-spacing:.8px;
}
.exact-hero p{
  margin:0;
  font-size:20px;
  letter-spacing:4px;
  color:#f0e7d4;
}
.hero-divider{
  width:340px;
  max-width:80%;
  height:2px;
  margin:22px auto 18px;
  background:linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  position:relative;
}
.hero-divider:after{
  content:"◆";
  position:absolute;
  left:50%;top:50%;transform:translate(-50%,-55%);
  color:var(--gold-soft);font-size:12px;background:#071b43;padding:0 8px;
}
.hero-tagline{
  max-width:460px;
  color:#d9b36d;
  font-weight:700;
  letter-spacing:1px;
  line-height:1.45;
  font-size:16px;
}
.hero-bottom-block{
  width:100%;
  margin-top:30px;
}
.scales-illustration{
  font-size:150px;
  line-height:1;
  color:#d9b36d;
  text-shadow:0 14px 35px rgba(0,0,0,.35);
  margin:10px 0 18px;
}
.hero-values{
  display:flex;
  justify-content:center;
  gap:30px;
  font-size:18px;
  letter-spacing:1px;
  margin-bottom:16px;
}
.hero-values span::before{
  content:"•";
  color:var(--gold-soft);
  margin-right:10px;
}
.hero-values span:first-child::before{display:none}
.hero-bottom-block small{font-size:18px;color:#cfd8ea}

.exact-card-wrap{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 30px;
  background:
    radial-gradient(circle at 40% 30%, rgba(104,158,255,.18), transparent 20%),
    linear-gradient(120deg, rgba(4,25,58,.88), rgba(5,22,50,.98));
}
.exact-card-wrap:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 80% 20%, rgba(128,173,255,.18), transparent 12%),
    radial-gradient(circle at 90% 40%, rgba(128,173,255,.08), transparent 18%);
  pointer-events:none;
}
.lady-justice{
  position:absolute;
  right:40px;
  top:34px;
  font-size:170px;
  line-height:1;
  color:rgba(208,220,255,.18);
  pointer-events:none;
}
.exact-card{
  position:relative;
  z-index:2;
  width:min(540px,100%);
  background:#ffffff;
  border-radius:28px;
  padding:54px 48px 40px;
  box-shadow:0 18px 42px rgba(0,0,0,.22);
}
.exact-card h2{
  margin:0;
  text-align:center;
  font-family:Georgia,"Times New Roman",serif;
  font-size:72px;
  line-height:1;
  color:#1c2944;
}
.exact-card > p{
  margin:14px 0 0;
  text-align:center;
  color:#697387;
  font-size:18px;
}
.gold-mark{
  text-align:center;
  color:var(--gold);
  font-size:30px;
  margin:20px 0 26px;
}
.gold-mark:before,.gold-mark:after{
  content:"";
  display:inline-block;
  width:74px;
  height:2px;
  background:#d8bb7f;
  vertical-align:middle;
  margin:0 14px;
}
label{display:block;font-weight:700;font-size:14px;margin:14px 0 8px;color:#4f5d79}
.input-icon-wrap{position:relative;margin-bottom:6px}
.input-icon-wrap input{
  width:100%;
  padding:18px 52px;
  border:1px solid #d8dee9;
  border-radius:16px;
  font-size:16px;
  color:#24324c;
  outline:none;
  background:#fff;
}
.input-icon{position:absolute;left:18px;top:50%;transform:translateY(-50%);font-size:22px;opacity:.6}
.input-icon.right{left:auto;right:18px}
input,select,textarea,button{font-family:inherit}
textarea{min-height:110px;resize:vertical}
.login-options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:16px 0 20px;
  flex-wrap:wrap;
}
.remember-row{display:flex;align-items:center;gap:10px;margin:0;font-size:16px;font-weight:600;color:#273552}
.remember-row input{width:22px;height:22px;margin:0}
.login-options a{font-size:16px;font-weight:600}
.login-btn{
  width:100%;
  padding:18px 24px;
  border:none;
  border-radius:16px;
  background:linear-gradient(90deg,#081c48,#10336e);
  color:#fff;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 8px 16px rgba(7,27,67,.15);
}
.card-separator{display:flex;align-items:center;gap:14px;justify-content:center;margin:34px 0 26px;color:#7b8091}
.card-separator span{height:2px;background:#d8bb7f;flex:1;max-width:120px}
.card-separator em{font-style:normal;font-size:16px}
.security-panel{
  background:#f3f6fb;
  border:1px solid #e4e9f2;
  border-radius:18px;
  padding:22px 20px;
  display:flex;
  gap:16px;
  align-items:flex-start;
}
.shield-icon{font-size:34px;line-height:1;color:#243c6a}
.security-panel strong{display:block;font-size:18px;color:#23324d;margin-bottom:6px}
.security-panel p{margin:0;color:#667187;font-size:15px;line-height:1.5}

/* APP */
.app-shell{display:grid;grid-template-columns:280px 1fr;min-height:100vh}
.sidebar{background:linear-gradient(180deg,#03142f,#061c45);color:#fff;padding:20px}
.brand{text-align:center;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.12)}
.brand img{width:120px}
.brand h1{font-size:18px;margin:10px 0 4px}
.brand p{margin:0;color:#c8d0df}
.sidebar nav{display:flex;flex-direction:column;gap:8px;margin-top:18px}
.sidebar nav a{color:#e8edf8;padding:12px 14px;border-radius:12px}
.sidebar nav a:hover{background:rgba(255,255,255,.08)}
.content{padding:20px 24px}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.topbar h2{margin:0}
.topbar span{color:var(--muted)}
.searchbar input{width:320px;max-width:100%;background:#fff;padding:14px 16px;border:1px solid var(--border);border-radius:14px;font-size:15px}
.alert{padding:14px 16px;border-radius:14px;margin:0 0 18px}
.success{background:#e8f8ee;color:#166534}
.error{background:#fdecec;color:#991b1b}
.grid{display:grid;gap:18px}.cards-5{grid-template-columns:repeat(5,1fr)}.two{grid-template-columns:repeat(2,1fr)}.three{grid-template-columns:repeat(3,1fr)}
.card{background:#fff;padding:20px;border-radius:22px;box-shadow:0 10px 25px rgba(17,38,85,.06)}.card.small{max-width:720px}.stat strong{font-size:34px;color:var(--navy2)}
.rowline{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #edf1f7}.rowline:last-child{border-bottom:none}
.table-wrap{overflow:auto} table{width:100%;border-collapse:collapse;background:#fff} th,td{padding:12px 10px;border-bottom:1px solid #edf1f7;text-align:left;font-size:14px} th{color:#51607f;background:#f8fbff;position:sticky;top:0}

@media (max-width:1200px){
  .exact-hero h1{font-size:52px}
  .exact-card h2{font-size:58px}
  .scales-illustration{font-size:120px}
}
@media (max-width:980px){
  .login-shell.exact-login{grid-template-columns:1fr}
  .exact-hero{min-height:540px;border-right:none;border-bottom:2px solid rgba(209,164,90,.65)}
  .lady-justice{display:none}
  .exact-card-wrap{padding:26px}
  .hero-values{gap:16px;font-size:16px;flex-wrap:wrap}
  .exact-hero h1{font-size:44px}
}
@media (max-width:760px){
  .login-page.refined-login{padding:10px}
  .hero-logo-wrap img{width:240px}
  .exact-card{padding:34px 22px 26px}
  .exact-card h2{font-size:46px}
  .exact-card > p{font-size:16px}
  .gold-mark:before,.gold-mark:after{width:42px}
  .hero-bottom-block small{font-size:15px}
  .topbar{flex-direction:column;align-items:flex-start;gap:10px}
  .cards-5,.three,.two{grid-template-columns:1fr}
  .app-shell{grid-template-columns:1fr}
  .sidebar{position:static}
}


/* PREMIUM DASHBOARD */
.premium-shell{background:#eef2f8}
.premium-sidebar{padding:0 0 24px;background:linear-gradient(180deg,#011633,#051a43 45%,#041126 100%);box-shadow:8px 0 24px rgba(0,0,0,.08)}
.premium-brand{padding:26px 22px 24px}.premium-brand img{width:170px;filter:drop-shadow(0 10px 24px rgba(0,0,0,.35))}.premium-brand h1{font-family:Georgia,serif;font-size:18px;line-height:1.15;letter-spacing:.6px;text-transform:uppercase}.premium-brand p{font-size:12px;letter-spacing:2px;color:#d7deec}
.sidebar-nav{padding:14px 16px 0}.sidebar-nav a{display:block;font-weight:600;border:1px solid transparent}.sidebar-nav a.active,.sidebar-nav a:hover{background:linear-gradient(90deg,rgba(44,96,197,.72),rgba(21,56,125,.95));border-color:rgba(255,255,255,.08)}
.sidebar-support{margin:20px 16px 0;padding:20px;border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08);display:grid;gap:6px;color:#fff}.sidebar-support span{color:#cad5ea;font-size:14px}.sidebar-support em{justify-self:start;background:#0fb267;color:#fff;font-style:normal;font-size:12px;padding:6px 10px;border-radius:999px;font-weight:700}
.premium-content{padding:18px 18px 24px}
.premium-topbar{background:linear-gradient(90deg,#041735,#03142f);border-radius:24px;padding:18px 24px;color:#fff;margin-bottom:18px}.premium-topbar h2{color:#fff;font-size:20px}.premium-topbar span{color:#b8c5df}.topbar-actions{display:flex;align-items:center;gap:18px}.premium-searchbar input{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#fff}.premium-searchbar input::placeholder{color:#c3cee5}.user-chip{display:flex;align-items:center;gap:12px;color:#fff}.user-chip small{display:block;color:#bac6dc}.avatar-circle{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#ffffff;color:#05235c;font-weight:800}
.hero-dashboard{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px 34px;border-radius:26px;background:linear-gradient(90deg,rgba(3,20,47,.98),rgba(7,27,67,.95));color:#fff;margin-bottom:16px;box-shadow:0 14px 30px rgba(17,38,85,.08)}
.hero-dashboard h3{margin:0 0 10px;font-size:36px}.hero-dashboard p{margin:0;color:#d7e0f1;font-size:18px;max-width:640px}.hero-badge{padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);font-weight:700}
.metric-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-bottom:18px}.metric-card{display:flex;gap:14px;align-items:center;background:#fff;border-radius:20px;padding:20px 18px;box-shadow:0 10px 25px rgba(17,38,85,.05)}.metric-icon{width:54px;height:54px;border-radius:16px;background:#eef3ff;display:grid;place-items:center;font-size:26px}.metric-card h4{margin:0 0 6px;font-size:14px;color:#586684}.metric-card strong{display:block;font-size:34px;color:#0b2358;line-height:1}.metric-card small{color:#7b879d}
.dashboard-grid-top{display:grid;grid-template-columns:1.3fr 1fr .85fr;gap:18px;margin-bottom:18px}.premium-card{background:#fff;border-radius:24px;padding:22px;box-shadow:0 12px 26px rgba(17,38,85,.06)}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.card-head h3{margin:0;font-size:28px;color:#122446}.card-head a,.card-head span{color:#5b6a89;font-size:14px;font-weight:600}
.money-row{display:flex;gap:22px;margin-bottom:20px}.money-row label{margin:0 0 4px;display:block;color:#67748d}.money-row strong{font-size:32px;color:#0d2a69}
.fake-chart{height:280px;border-radius:22px;background:linear-gradient(180deg,#f7f9fd,#eef3fb);padding:22px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid #e7edf8}.chart-labels{display:grid;grid-template-columns:repeat(6,1fr);font-size:13px;color:#6b7893}.chart-lines{height:200px;display:grid;grid-template-columns:repeat(6,1fr);align-items:end;gap:16px;position:relative}.chart-lines i{display:block;border-radius:18px 18px 8px 8px;background:linear-gradient(180deg,#2e66db,#98b8ff)}.expense-line{margin-top:-200px}.expense-line i{width:55%;justify-self:center;background:linear-gradient(180deg,#d7a541,#f4d18c);opacity:.95}
.activity-item,.schedule-item,.list-line{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-bottom:1px solid #edf1f8}.activity-item:last-child,.schedule-item:last-child,.list-line:last-child{border-bottom:none}.bullet-icon{width:42px;height:42px;border-radius:14px;background:#edf3ff;display:grid;place-items:center;font-size:20px}.activity-item strong,.schedule-item span,.list-line strong{display:block;color:#17284d}.activity-item p,.schedule-item small,.list-line p{margin:4px 0 0;color:#6a7590}
.schedule-item strong{min-width:88px;font-size:14px;color:#264b96}.schedule-item div{background:#f6f8fc;border-radius:16px;padding:10px 12px;flex:1}
.quick-actions{display:grid;grid-template-columns:repeat(6,1fr);gap:0;overflow:hidden;margin-bottom:18px;padding:0;background:linear-gradient(90deg,#0d2b67,#143b86)}.quick-actions a{padding:24px 16px;color:#fff;font-weight:700;text-align:center;border-right:1px solid rgba(255,255,255,.14)}.quick-actions a:last-child{border-right:none}.quick-actions a:hover{background:rgba(255,255,255,.05)}
.dashboard-grid-bottom{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.tag{padding:7px 11px;border-radius:999px;font-size:12px;font-weight:800;text-transform:capitalize;white-space:nowrap}.status-pendiente{background:#fff4da;color:#9b6800}.status-proceso{background:#e7f0ff;color:#1c57c8}.status-finalizado,.status-pagado{background:#e8f8ee;color:#0a7d45}.tag-file{background:#f0f4fb;color:#39598f}.footnote{display:block;margin-top:10px;color:#69758d}.empty-state{margin:0;color:#75819a}

@media (max-width:1320px){.metric-grid{grid-template-columns:repeat(3,1fr)}.dashboard-grid-top{grid-template-columns:1fr}.dashboard-grid-bottom{grid-template-columns:1fr}.quick-actions{grid-template-columns:repeat(3,1fr)}}
@media (max-width:900px){.metric-grid,.quick-actions{grid-template-columns:1fr 1fr}.hero-dashboard{flex-direction:column;align-items:flex-start}.hero-dashboard h3{font-size:28px}.money-row{flex-direction:column;gap:10px}}
@media (max-width:760px){.metric-grid,.quick-actions{grid-template-columns:1fr}.premium-topbar{padding:16px}.topbar-actions{width:100%;flex-direction:column;align-items:stretch}.premium-searchbar input{width:100%}.user-chip{justify-content:flex-start}.hero-dashboard{padding:22px}}


/* CLEANER DASHBOARD CARDS */
.dashboard-clean-wrap{display:grid;gap:20px}
.dashboard-hero-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:20px;
  padding:30px 32px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 22%),
    linear-gradient(135deg,#061936 0%,#0d2b67 60%,#1a4ca3 100%);
  color:#fff;
  border-radius:28px;
}
.dashboard-hero-card h3{margin:8px 0 10px;font-size:34px;color:#fff}
.dashboard-hero-card p{margin:0;max-width:720px;color:#d7e1f3;font-size:16px;line-height:1.6}
.eyebrow,.section-kicker{display:inline-block;font-size:12px;font-weight:800;letter-spacing:1.8px;text-transform:uppercase;color:#9fbcf0}
.hero-mini-stats{display:grid;grid-template-columns:1fr;gap:14px;min-width:260px}
.mini-stat{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.14);
  border-radius:20px;
  padding:18px 18px;
  backdrop-filter:blur(4px)
}
.mini-stat small{display:block;color:#d4e0f5;margin-bottom:6px}
.mini-stat strong{font-size:24px;color:#fff}

.metrics-clean-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.summary-card{
  position:relative;
  overflow:hidden;
  background:#fff;
  border-radius:24px;
  padding:20px;
  display:flex;
  gap:14px;
  align-items:center;
  box-shadow:0 14px 30px rgba(17,38,85,.07);
  border:1px solid #edf2fa;
}
.summary-card:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:6px;
  border-radius:24px;
}
.summary-icon{
  width:60px;
  height:60px;
  border-radius:18px;
  display:grid;
  place-items:center;
  font-size:28px;
  font-weight:700;
  color:#173466;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
}
.summary-card span{display:block;color:#6b7893;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.9px;margin-bottom:8px}
.summary-card strong{display:block;font-size:36px;line-height:1;color:#122446;margin-bottom:6px}
.summary-card small{color:#7a879c;font-size:14px;line-height:1.4}

.accent-blue{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)}
.accent-blue:before{background:linear-gradient(180deg,#2e66db,#98b8ff)}
.accent-blue .summary-icon{background:linear-gradient(135deg,#2e66db,#85adff);color:#fff}
.accent-indigo{background:linear-gradient(180deg,#ffffff 0%,#faf8ff 100%)}
.accent-indigo:before{background:linear-gradient(180deg,#5b5ce2,#9f8fff)}
.accent-indigo .summary-icon{background:linear-gradient(135deg,#5b5ce2,#9187ff);color:#fff}
.accent-gold{background:linear-gradient(180deg,#ffffff 0%,#fffaf1 100%)}
.accent-gold:before{background:linear-gradient(180deg,#d7a541,#f4d18c)}
.accent-gold .summary-icon{background:linear-gradient(135deg,#d7a541,#efc56e);color:#fff}
.accent-green{background:linear-gradient(180deg,#ffffff 0%,#f5fcf8 100%)}
.accent-green:before{background:linear-gradient(180deg,#1da860,#74d7a0)}
.accent-green .summary-icon{background:linear-gradient(135deg,#1da860,#5dc78b);color:#fff}

.content-card-grid{display:grid;grid-template-columns:1.25fr .95fr .95fr;gap:18px}
.premium-card{
  background:#fff;
  border-radius:24px;
  padding:22px;
  box-shadow:0 14px 30px rgba(17,38,85,.06);
  border:1px solid #edf2fa;
}
.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px}
.section-head.no-margin{margin-bottom:0}
.section-head h3{margin:6px 0 0;font-size:24px;color:#122446}
.section-head.compact h3{font-size:22px}
.section-head a{font-size:14px;font-weight:700;color:#2a58bb}
.pill-muted{background:#f4f7fc;border:1px solid #e3ebf8;color:#5e6d88;padding:8px 12px;border-radius:999px;font-size:13px;font-weight:700}

.finance-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}
.finance-stat{
  border-radius:20px;
  padding:18px 18px 16px;
  border:1px solid #edf2fa;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
.finance-stat span{display:block;color:#6c7a93;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.7px;margin-bottom:8px}
.finance-stat strong{display:block;font-size:30px;line-height:1.1}
.finance-stat.income{background:linear-gradient(180deg,#f5f9ff,#edf4ff)}
.finance-stat.income strong{color:#1249ae}
.finance-stat.expense{background:linear-gradient(180deg,#fffaf0,#fff4de)}
.finance-stat.expense strong{color:#b37a16}

.bar-chart-card{background:linear-gradient(180deg,#f8fbff,#f3f7fe);border:1px solid #e6edf8;border-radius:22px;padding:18px}
.bar-chart-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;align-items:end;min-height:250px}
.bar-col{display:flex;flex-direction:column;align-items:center;gap:12px}
.bar-stack{height:210px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:8px}
.bar{display:block;width:18px;border-radius:999px 999px 10px 10px;box-shadow:0 8px 18px rgba(17,38,85,.12)}
.income-bar{background:linear-gradient(180deg,#2e66db,#98b8ff)}
.expense-bar{background:linear-gradient(180deg,#d7a541,#f4d18c)}
.bar-col small{color:#66738c;font-weight:700}
.legend-row{display:flex;gap:22px;justify-content:flex-end;margin-top:10px;color:#5d6b86;font-size:13px;font-weight:700}.legend-row span{display:flex;align-items:center;gap:8px}.legend-dot{width:10px;height:10px;border-radius:50%}.income-dot{background:#2e66db}.expense-dot{background:#d7a541}

.stack-card,.list-card-clean{padding:22px}
.stack-list{display:grid;gap:12px}
.info-card-row,.schedule-card-row{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:15px 16px;
  border:1px solid #edf2fa;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff,#fbfcff);
}
.info-card-row.simple{align-items:center}
.row-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  background:linear-gradient(135deg,#edf3ff,#dce7ff);
  display:grid;
  place-items:center;
  font-size:20px;
  flex:0 0 44px
}
.info-card-row strong,.schedule-card-row span{display:block;color:#14284d}
.info-card-row p,.schedule-card-row p{margin:4px 0 0;color:#6d7a92;font-size:14px}
.schedule-card-row strong{
  min-width:88px;
  color:#23498f;
  font-size:14px;
  padding:10px 12px;
  background:#eef4ff;
  border-radius:14px;
  text-align:center;
}
.schedule-card-row:nth-child(2) strong{background:#fff2dc;color:#9b6800}
.schedule-card-row:nth-child(3) strong{background:#eaf9ef;color:#16824c}
.schedule-card-row:nth-child(4) strong{background:#f1edff;color:#5a49c9}

.action-card-grid{display:grid;gap:18px}
.action-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.action-tile{
  position:relative;
  overflow:hidden;
  background:#fff;
  border:1px solid #e7eef9;
  border-radius:18px;
  padding:18px 16px;
  display:grid;
  gap:8px;
  transition:.2s ease;
  color:#14284d;
  box-shadow:0 8px 18px rgba(17,38,85,.04)
}
.action-tile:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:5px;
  background:linear-gradient(90deg,#2e66db,#85adff);
}
.action-tile:nth-child(2):before{background:linear-gradient(90deg,#5b5ce2,#9187ff)}
.action-tile:nth-child(3):before{background:linear-gradient(90deg,#d7a541,#efc56e)}
.action-tile:nth-child(4):before{background:linear-gradient(90deg,#0d7d45,#4ac784)}
.action-tile:nth-child(5):before{background:linear-gradient(90deg,#0f6ba8,#59b7e7)}
.action-tile:nth-child(6):before{background:linear-gradient(90deg,#9d4edd,#d98fff)}
.action-tile span{font-size:24px}
.action-tile strong{font-size:15px;color:#14284d}
.action-tile small{color:#6f7c93;font-size:13px}
.action-tile:hover{transform:translateY(-3px);box-shadow:0 14px 24px rgba(17,38,85,.1)}

.bottom-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.payment-row{justify-content:space-between}
.tag{
  padding:7px 11px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  text-transform:capitalize;
  white-space:nowrap;
  border:1px solid transparent;
}
.status-pendiente{background:#fff4da;color:#9b6800;border-color:#f3deb1}
.status-proceso{background:#e7f0ff;color:#1c57c8;border-color:#cfe0ff}
.status-finalizado,.status-pagado{background:#e8f8ee;color:#0a7d45;border-color:#caecd7}
.tag-file{background:#f0f4fb;color:#39598f;border-color:#dbe5f5}
.footnote{display:block;margin-top:10px;color:#69758d}
.empty-state{margin:0;color:#75819a}

@media (max-width:1380px){
  .content-card-grid{grid-template-columns:1fr 1fr}
  .content-card-grid article:first-child{grid-column:1/-1}
  .action-grid{grid-template-columns:repeat(3,1fr)}
  .bottom-card-grid{grid-template-columns:1fr}
  .metrics-clean-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
  .dashboard-hero-card{grid-template-columns:1fr}
  .hero-mini-stats{width:100%;grid-template-columns:1fr 1fr}
  .content-card-grid,.metrics-clean-grid,.action-grid,.bottom-card-grid,.finance-stat-grid{grid-template-columns:1fr}
  .hero-mini-stats{grid-template-columns:1fr}
  .bar-chart-grid{gap:10px}
  .bar{width:14px}
}


/* HOTFIX DASHBOARD ULTRA CARDS */
body{background:#eef3f9!important}
.dashboard-clean-wrap{gap:24px!important}
.metrics-clean-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important}
.summary-card{min-height:132px!important;border-radius:26px!important;box-shadow:0 18px 38px rgba(16,38,84,.10)!important;padding:24px!important}
.summary-card strong{font-size:42px!important;font-weight:800!important}
.summary-card span{font-size:13px!important}
.summary-icon{width:64px!important;height:64px!important;border-radius:20px!important}
.content-card-grid,.bottom-card-grid{gap:20px!important}
.premium-card{border-radius:26px!important;box-shadow:0 18px 38px rgba(16,38,84,.08)!important}
.info-card-row,.schedule-card-row,.action-tile{border-radius:20px!important}
@media (max-width:1100px){.metrics-clean-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.content-card-grid,.bottom-card-grid{grid-template-columns:1fr!important}.action-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:700px){.metrics-clean-grid,.action-grid{grid-template-columns:1fr!important}.dashboard-hero-card{grid-template-columns:1fr!important;padding:22px!important}}


/* CLIENTES MODULE IMPROVEMENTS */
.module-shell{display:grid;gap:20px}
.module-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.module-head h3{margin:6px 0 8px;color:#0d2b67}
.module-subtitle{margin:0;color:#5f7092}
.btn-primary-action,.btn-secondary-action{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 18px;border-radius:14px;font-weight:700;text-decoration:none;
}
.btn-primary-action{background:#0d2b67;color:#fff;border:1px solid #0d2b67}
.btn-primary-action.small{padding:10px 14px;font-size:14px}
.btn-secondary-action{background:#eef4ff;color:#0d2b67;border:1px solid #d6e2fb}
.form-card{padding:24px}
.modern-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.modern-form-grid .full-span{grid-column:1/-1}
.form-actions-inline{display:flex;gap:12px;align-items:center}
.client-cards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.client-card{
  background:#fff;border:1px solid #dfe7f5;border-radius:22px;padding:22px;
  box-shadow:0 10px 28px rgba(10,36,86,.06);display:grid;gap:16px
}
.client-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.client-card-top h4{margin:0 0 6px;color:#0d2b67;font-size:22px}
.client-card-top p{margin:0;color:#617495;font-weight:700}
.client-badge{
  background:#edf4ff;color:#0d2b67;border:1px solid #d8e5fb;border-radius:999px;
  padding:8px 12px;font-size:13px;font-weight:800;white-space:nowrap
}
.client-meta strong,.client-linked-head strong{display:block;color:#20355b;margin-bottom:6px}
.client-meta p{margin:0;color:#5f7092}
.client-linked-box{
  background:#f8fbff;border:1px solid #e2ebf8;border-radius:18px;padding:16px
}
.client-linked-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}
.client-linked-head a{font-size:14px;font-weight:700}
.linked-case-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.linked-case-list li{
  display:flex;justify-content:space-between;gap:12px;align-items:center;
  padding:10px 12px;border-radius:14px;background:#fff;border:1px solid #e7edf8
}
.linked-case-list li span{color:#243a60;font-weight:700}
.linked-case-list li em{font-style:normal}
.client-card-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.empty-mini{margin:0;color:#6e7f9e}
@media (max-width:980px){
  .client-cards-grid,.modern-form-grid{grid-template-columns:1fr}
  .module-head{flex-direction:column;align-items:flex-start}
}


/* CASE FILE UPLOADS */
.case-upload-box{border:1px dashed #9eb7e5;background:linear-gradient(135deg,#f8fbff 0%,#eef4ff 100%);border-radius:18px;padding:18px}
.case-upload-box input[type=file]{width:100%;background:#fff;border:1px solid #d7e2f3;border-radius:14px;padding:14px}
.case-upload-help{margin-top:10px;color:#5d7196;line-height:1.6;display:grid;gap:4px}
.case-upload-help strong{color:#0d2b67}
.case-files-card{background:#f8fbff;border:1px solid #e2ebf8;border-radius:18px;padding:16px}
.file-linked-list li a{color:#0d2b67;font-weight:700}


/* DASHBOARD TOP BANNER LEGIBILITY HOTFIX */
.dashboard-hero-card,
.dashboard-hero-card.premium-card,
section.dashboard-hero-card{
  background:#ffffff !important;
  background-image:none !important;
  color:#16345f !important;
  border:1px solid #dbe5f3 !important;
  box-shadow:0 14px 34px rgba(12,41,91,.08) !important;
}
.dashboard-hero-card *,
.dashboard-hero-card.premium-card *{
  opacity:1 !important;
}
.dashboard-hero-card .eyebrow,
.dashboard-hero-card .section-kicker{
  color:#6d8fd0 !important;
}
.dashboard-hero-card h3{
  color:#0d2b67 !important;
  font-weight:800 !important;
}
.dashboard-hero-card p{
  color:#355176 !important;
  font-weight:600 !important;
}
.dashboard-hero-card .mini-stat{
  background:#f5f9ff !important;
  border:1px solid #d9e5f8 !important;
}
.dashboard-hero-card .mini-stat small{
  color:#7084ab !important;
  font-weight:700 !important;
}
.dashboard-hero-card .mini-stat strong{
  color:#0d2b67 !important;
}

/* CLIENTES + CASOS FORMS PREMIUM */
.entity-form-premium{
  padding:0 !important;
  overflow:hidden;
  border:1px solid #dfe8f5 !important;
  box-shadow:0 16px 36px rgba(11,38,86,.08) !important;
  border-radius:24px !important;
}
.form-head-premium{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:26px 28px !important;
  background:linear-gradient(135deg,#f8fbff 0%,#eef4ff 100%);
  border-bottom:1px solid #e3ebf8;
}
.form-head-premium h3{
  margin:6px 0 8px;
  color:#0d2b67;
  font-size:28px;
}
.premium-form-subtitle{
  margin:0;
  max-width:760px;
  color:#5f7297;
  line-height:1.6;
}
.form-badge-premium{
  min-width:180px;
  background:#fff;
  border:1px solid #d9e5f8;
  border-radius:18px;
  padding:16px 18px;
  box-shadow:0 8px 20px rgba(13,43,103,.05);
}
.form-badge-premium strong{
  display:block;
  color:#0d2b67;
  margin-bottom:6px;
}
.form-badge-premium small{
  color:#6c83ab;
  font-weight:700;
}
.polished-form-grid{
  padding:26px 28px;
}
.polished-form-grid label{
  display:block;
  margin-bottom:8px;
  color:#20355b;
  font-size:14px;
  font-weight:800;
}
.polished-form-grid input,
.polished-form-grid select,
.polished-form-grid textarea{
  width:100%;
  border:1px solid #d7e2f3;
  border-radius:16px;
  padding:14px 16px;
  background:#fbfdff;
  color:#12284b;
  font-size:15px;
  transition:all .2s ease;
}
.polished-form-grid textarea{
  min-height:120px;
  resize:vertical;
}
.polished-form-grid input::placeholder,
.polished-form-grid textarea::placeholder{
  color:#8a9bbb;
}
.polished-form-grid input:focus,
.polished-form-grid select:focus,
.polished-form-grid textarea:focus{
  outline:none;
  border-color:#8aaae8;
  background:#fff;
  box-shadow:0 0 0 4px rgba(67,118,211,.10);
}
.premium-form-actions{
  padding-top:10px;
  margin-top:4px;
  border-top:1px solid #edf2fb;
}
.premium-form-actions .btn-primary-action{
  box-shadow:0 10px 22px rgba(13,43,103,.18);
}
@media (max-width:980px){
  .form-head-premium{
    flex-direction:column;
  }
  .form-badge-premium{
    width:100%;
    min-width:auto;
  }
}


/* SETTINGS + UPDATES MODULES */
.table-wrap a{font-weight:700;color:#0d2b67}


/* RECAPTCHA LOGIN */
.recaptcha-wrap{
  margin:18px 0 14px;
  display:flex;
  justify-content:center;
}
.recaptcha-wrap > div{
  width:100%;
  display:flex;
  justify-content:center;
}



/* MOBILE MENU ONLY FIX */
.mobile-sidebar-backdrop{
  display:none;
}
.mobile-menu-toggle,
.mobile-menu-close,
.mobile-sidebar-compact-head{
  display:none;
}
.topbar-left{
  display:flex;
  align-items:center;
  gap:14px;
}

@media (max-width:980px){
  body.menu-open{
    overflow:hidden;
    touch-action:none;
  }

  .app-shell.premium-shell{
    grid-template-columns:1fr !important;
  }

  .premium-sidebar{
    position:fixed !important;
    top:0;
    left:0;
    width:min(78vw, 290px) !important;
    max-width:290px;
    height:100vh;
    z-index:1200;
    transform:translateX(-105%);
    transition:transform .28s ease;
    overflow-y:auto;
    padding-bottom:28px !important;
    box-shadow:18px 0 38px rgba(0,0,0,.28) !important;
  }

  .premium-sidebar.mobile-open{
    transform:translateX(0);
  }

  .premium-content{
    width:100%;
    padding:14px 14px 22px !important;
  }

  .mobile-sidebar-backdrop{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(3,20,47,.45);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease;
    z-index:1100;
  }

  .mobile-sidebar-backdrop.active{
    opacity:1;
    pointer-events:auto;
  }

  .mobile-menu-toggle{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border:none;
    border-radius:14px;
    background:#ffffff;
    color:#082a61;
    font-size:22px;
    font-weight:800;
    box-shadow:0 8px 20px rgba(0,0,0,.14);
    cursor:pointer;
    flex:0 0 44px;
  }

  .mobile-sidebar-compact-head{
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    padding:14px 14px 8px;
    color:#dce6f6;
    font-weight:800;
    letter-spacing:.6px;
  }

  .mobile-menu-close{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border:none;
    border-radius:12px;
    background:rgba(255,255,255,.10);
    color:#fff;
    font-size:28px;
    line-height:1;
    cursor:pointer;
  }

  .premium-brand{
    padding:14px 16px 18px !important;
  }

  .premium-brand img{
    width:120px !important;
  }

  .premium-brand h1{
    font-size:16px !important;
  }

  .sidebar-nav{
    padding:8px 12px 0 !important;
  }

  .sidebar-nav a{
    padding:11px 12px !important;
    border-radius:12px !important;
    font-size:14px;
  }

  .sidebar-support{
    margin:16px 12px 0 !important;
    padding:16px !important;
    border-radius:18px !important;
  }

  .premium-topbar{
    padding:14px 16px !important;
    border-radius:20px !important;
  }

  .topbar-left{
    width:100%;
    align-items:flex-start;
  }

  .topbar-left > div{
    min-width:0;
  }

  .topbar-left h2{
    font-size:18px !important;
    line-height:1.2;
  }

  .topbar-left span{
    display:block;
    font-size:12px;
    line-height:1.35;
  }
}

@media (min-width:981px){
  .premium-sidebar{
    transform:none !important;
    position:relative !important;
    left:auto !important;
    top:auto !important;
    height:auto !important;
    width:auto !important;
    max-width:none !important;
  }

  .mobile-sidebar-backdrop,
  .mobile-menu-toggle,
  .mobile-sidebar-compact-head{
    display:none !important;
  }

  body.menu-open{
    overflow:auto;
  }
}


/* LOGIN + PROFILE HOTFIX 2026-04-17 */
.login-page.refined-login{
  min-height:100vh;
  padding:clamp(10px,2vw,22px);
  overflow-x:hidden;
}
.login-shell.exact-login{
  width:min(1500px,100%);
  min-height:calc(100vh - clamp(20px,4vw,44px));
  align-items:stretch;
}
.exact-hero,
.exact-card-wrap{
  min-height:100%;
}
.hero-copy-block{
  display:grid;
  gap:10px;
}
.exact-hero h1{
  font-size:clamp(38px,4.2vw,62px);
}
.exact-hero p{
  font-size:clamp(14px,1.35vw,20px);
  letter-spacing:clamp(2px,.45vw,4px);
}
.scales-illustration{
  font-size:clamp(86px,9vw,150px);
}
.hero-tagline{
  width:min(100%,460px);
}
.exact-card-wrap{
  padding:clamp(18px,2vw,34px);
}
.exact-card{
  width:min(560px,100%);
  max-height:100%;
  overflow:auto;
  padding:clamp(28px,3.6vw,54px) clamp(20px,3vw,48px) clamp(26px,2.8vw,40px);
}
.exact-card h2{
  font-size:clamp(42px,4vw,72px);
}
.login-form-card .alert{
  margin-bottom:16px;
}
.compact-login-options{
  margin:14px 0 18px;
}
.login-support-pill{
  width:100%;
  text-align:center;
  background:#f3f6fb;
  border:1px solid #e4e9f2;
  color:#445372;
  border-radius:14px;
  padding:12px 14px;
  font-size:14px;
  font-weight:700;
}
.password-field-wrap .password-toggle-btn{
  border:none;
  background:transparent;
  cursor:pointer;
  padding:0;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
}
.password-field-wrap .password-toggle-btn:focus{
  outline:none;
}
.profile-shell{
  display:grid;
  gap:18px;
}
.profile-summary-card{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
}
.profile-summary-card h3{
  margin:6px 0 10px;
  color:#0d2b67;
  font-size:32px;
}
.profile-summary-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(140px,1fr));
  gap:12px;
  width:min(520px,100%);
}
.profile-summary-meta div{
  background:#f7faff;
  border:1px solid #dfebfb;
  border-radius:18px;
  padding:16px 18px;
}
.profile-summary-meta small{
  display:block;
  color:#7487aa;
  margin-bottom:6px;
  font-weight:700;
}
.profile-summary-meta strong{
  color:#0f2757;
  font-size:16px;
  word-break:break-word;
}
.profile-grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.profile-card{
  height:100%;
}
.profile-card .modern-form-grid{
  grid-template-columns:1fr;
}
@media (max-width:1180px){
  .profile-grid-3{
    grid-template-columns:1fr;
  }
}
@media (max-width:980px){
  .login-shell.exact-login{
    min-height:auto;
  }
  .exact-hero{
    min-height:420px;
  }
  .profile-summary-card{
    flex-direction:column;
  }
  .profile-summary-meta{
    grid-template-columns:1fr;
    width:100%;
  }
}
@media (max-width:760px){
  .hero-inner{
    padding:28px 20px 26px;
  }
  .exact-hero{
    min-height:360px;
  }
  .hero-values{
    gap:12px;
    font-size:14px;
  }
  .security-panel{
    padding:18px 16px;
  }
  .profile-summary-card h3{
    font-size:26px;
  }
}


/* PANEL COMPACT VIEW 2026-04-17 */
.app-shell.premium-shell{
  grid-template-columns:246px minmax(0,1fr);
}
.premium-sidebar{
  width:246px;
}
.premium-brand{
  padding:20px 18px 18px !important;
}
.premium-brand img{
  width:132px !important;
}
.premium-brand h1{
  font-size:16px !important;
  margin:8px 0 4px;
}
.premium-brand p{
  font-size:11px !important;
  letter-spacing:1.6px !important;
}
.sidebar-nav{
  padding:10px 12px 0 !important;
}
.sidebar-nav a{
  padding:9px 11px !important;
  border-radius:10px !important;
  font-size:13px;
}
.sidebar-support{
  margin:16px 12px 0 !important;
  padding:14px !important;
  border-radius:18px !important;
  gap:5px !important;
}
.sidebar-support strong{
  font-size:14px;
}
.sidebar-support span,
.sidebar-support em{
  font-size:11px !important;
}
.premium-content{
  padding:12px 14px 18px !important;
  min-width:0;
}
.premium-topbar{
  max-width:1360px;
  margin:0 auto 12px !important;
  padding:12px 16px !important;
  border-radius:18px !important;
}
.topbar-left{
  gap:12px;
  min-width:0;
}
.topbar-left h2{
  font-size:18px !important;
  line-height:1.15;
}
.topbar-left span{
  font-size:12px !important;
}
.topbar-actions{
  gap:12px !important;
}
.premium-searchbar input,
.searchbar input{
  width:250px;
  padding:10px 12px;
  border-radius:12px;
  font-size:14px;
}
.user-chip{
  gap:10px !important;
}
.user-chip strong{
  font-size:14px;
}
.user-chip small{
  font-size:11px !important;
}
.avatar-circle{
  width:38px !important;
  height:38px !important;
  font-size:14px;
}
.content-frame{
  width:100%;
  max-width:1360px;
  margin:0 auto;
  display:grid;
  gap:12px;
  min-width:0;
}
.alert{
  max-width:1360px;
  margin:0 auto 12px !important;
  padding:11px 13px;
  border-radius:12px;
  font-size:13px;
}
.dashboard-clean-wrap,
.module-shell,
.profile-shell{
  gap:14px !important;
}
.dashboard-hero-card,
.hero-dashboard{
  padding:20px 22px !important;
  border-radius:20px !important;
}
.dashboard-hero-card h3,
.hero-dashboard h3{
  font-size:26px !important;
  margin:6px 0 8px !important;
}
.dashboard-hero-card p,
.hero-dashboard p{
  font-size:14px !important;
  line-height:1.5;
}
.hero-mini-stats{
  min-width:220px !important;
  gap:10px !important;
}
.mini-stat,
.summary-card{
  padding:14px 15px !important;
  border-radius:16px !important;
}
.mini-stat strong,
.summary-card strong{
  font-size:26px !important;
}
.mini-stat span,
.summary-card span,
.summary-card small{
  font-size:12px !important;
}
.metrics-clean-grid,
.metric-grid,
.content-card-grid,
.bottom-card-grid,
.action-card-grid,
.action-grid{
  gap:12px !important;
}
.metric-card,
.premium-card,
.card,
.client-card,
.profile-card{
  border-radius:18px !important;
}
.metric-card{
  padding:14px !important;
  gap:12px !important;
}
.metric-icon{
  width:42px !important;
  height:42px !important;
  border-radius:12px !important;
  font-size:20px !important;
}
.metric-card h4{
  font-size:12px !important;
  margin-bottom:4px !important;
}
.metric-card strong{
  font-size:26px !important;
}
.metric-card small{
  font-size:11px !important;
}
.premium-card,
.card{
  padding:16px !important;
  box-shadow:0 10px 24px rgba(16,38,84,.05) !important;
}
.section-head,
.card-head{
  margin-bottom:12px !important;
}
.section-head h3,
.card-head h3,
.form-head-premium h3,
.profile-summary-card h3{
  font-size:20px !important;
  margin:4px 0 6px !important;
}
.section-kicker,
.card-head a,
.card-head span,
.section-head a,
.module-subtitle,
.premium-form-subtitle{
  font-size:12px !important;
}
.module-subtitle,
.premium-form-subtitle{
  line-height:1.45;
}
.form-head-premium{
  padding:16px 18px !important;
  gap:12px !important;
}
.form-badge-premium{
  min-width:150px !important;
  padding:12px 14px !important;
  border-radius:14px !important;
}
.form-badge-premium strong{
  font-size:13px;
}
.form-badge-premium small{
  font-size:11px !important;
}
.form-card{
  padding:16px !important;
}
.polished-form-grid,
.modern-form-grid{
  gap:14px !important;
}
.polished-form-grid{
  padding:16px 18px !important;
}
.polished-form-grid label,
label{
  font-size:13px !important;
  margin-bottom:6px !important;
}
.polished-form-grid input,
.polished-form-grid select,
.polished-form-grid textarea,
.input-icon-wrap input,
textarea,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="file"]{
  padding:11px 13px !important;
  border-radius:12px !important;
  font-size:14px !important;
}
.input-icon-wrap input{
  padding-left:42px !important;
  padding-right:42px !important;
}
.input-icon{
  font-size:18px !important;
  left:14px !important;
}
.input-icon.right{
  right:14px !important;
}
textarea{
  min-height:92px !important;
}
.btn-primary-action,
.btn-secondary-action,
.login-btn{
  padding:10px 14px !important;
  border-radius:12px !important;
  font-size:14px !important;
}
.form-actions-inline,
.premium-form-actions,
.client-card-actions{
  gap:10px !important;
}
.table-wrap{
  overflow:auto;
  background:#fff;
  border:1px solid #e2eaf5;
  border-radius:16px;
}
table{
  min-width:100%;
}
th,
td{
  padding:9px 10px !important;
  font-size:13px !important;
  white-space:nowrap;
}
td{
  color:#223457;
}
th{
  font-size:12px !important;
}
.tag,
.client-badge{
  padding:5px 9px !important;
  font-size:11px !important;
}
.info-card-row,
.schedule-card-row,
.activity-item,
.schedule-item,
.list-line,
.linked-case-list li{
  padding:10px 0 !important;
}
.info-card-row.simple,
.schedule-card-row,
.linked-case-list li{
  padding:10px 12px !important;
}
.row-icon,
.bullet-icon{
  width:34px !important;
  height:34px !important;
  border-radius:10px !important;
  font-size:16px !important;
}
.finance-stat-grid{
  gap:10px !important;
  margin-bottom:12px !important;
}
.finance-stat{
  padding:12px 14px !important;
  border-radius:14px !important;
}
.finance-stat strong{
  font-size:20px !important;
}
.bar-chart-card,
.fake-chart{
  padding:14px !important;
  border-radius:16px !important;
}
.bar-chart-grid{
  min-height:190px !important;
  gap:12px !important;
}
.bar-stack{
  height:160px !important;
}
.legend-row{
  margin-top:8px !important;
  font-size:12px !important;
}
.action-tile{
  padding:14px 12px !important;
  min-height:unset !important;
}
.action-tile strong{
  font-size:14px !important;
}
.action-tile small{
  font-size:11px !important;
}
.client-card-top h4{
  font-size:18px !important;
}
.client-linked-box,
.case-files-card,
.case-upload-box{
  border-radius:14px !important;
  padding:14px !important;
}
.profile-summary-meta{
  width:min(470px,100%) !important;
  gap:10px !important;
}
.profile-summary-meta div{
  padding:12px 14px !important;
  border-radius:14px !important;
}
.profile-summary-meta strong{
  font-size:14px !important;
}
.profile-grid-3{
  gap:14px !important;
}
.footnote,
.empty-state,
.empty-mini,
.case-upload-help{
  font-size:12px !important;
}
@media (max-width:1100px){
  .app-shell.premium-shell{
    grid-template-columns:220px minmax(0,1fr);
  }
  .premium-sidebar{
    width:220px;
  }
  .content-frame,
  .premium-topbar,
  .alert{
    max-width:100%;
  }
}
@media (max-width:980px){
  .premium-sidebar{
    width:min(78vw,280px) !important;
  }
  .premium-content{
    padding:12px 12px 18px !important;
  }
  .premium-topbar{
    padding:12px 14px !important;
  }
}
@media (max-width:760px){
  .premium-card,
  .card,
  .metric-card{
    padding:14px !important;
  }
  .premium-searchbar input,
  .searchbar input{
    width:100%;
  }
  th,
  td{
    white-space:normal;
  }
}



/* LOGIN FIT + ACCESS HOTFIX 2026-04-18 */
body.login-page.refined-login{
  min-height:100dvh;
  height:100dvh;
  padding:clamp(12px,2vh,22px) clamp(12px,2vw,22px);
  overflow:hidden;
}
.login-shell.exact-login{
  width:min(1280px,100%);
  height:calc(100dvh - clamp(24px,4vh,44px));
  min-height:0;
  max-height:860px;
  grid-template-columns:minmax(360px,0.98fr) minmax(380px,0.92fr);
  border-radius:30px;
  overflow:hidden;
}
.exact-hero,
.exact-card-wrap{
  min-height:0;
  height:100%;
}
.hero-inner{
  padding:clamp(20px,2.6vh,34px) clamp(22px,2.4vw,36px);
  gap:16px;
}
.hero-logo-wrap{
  margin-top:0;
}
.hero-logo-wrap img{
  width:min(250px,58%);
}
.hero-copy-block{
  gap:8px;
}
.exact-hero h1{
  font-size:clamp(34px,3.5vw,54px);
  margin:10px 0 6px;
}
.exact-hero p{
  font-size:clamp(13px,1.1vw,17px);
  letter-spacing:clamp(2px,.3vw,4px);
}
.hero-divider{
  margin:14px auto 12px;
  width:min(280px,72%);
}
.hero-tagline{
  max-width:420px;
  font-size:clamp(13px,1vw,15px);
  line-height:1.35;
}
.hero-bottom-block{
  margin-top:0;
}
.scales-illustration{
  font-size:clamp(74px,6.2vw,110px);
  margin:6px 0 10px;
}
.hero-values{
  gap:16px;
  font-size:14px;
  margin-bottom:8px;
}
.hero-bottom-block small{
  font-size:14px;
}
.exact-card-wrap{
  padding:clamp(16px,2vh,24px) clamp(16px,1.8vw,24px);
}
.lady-justice{
  right:26px;
  top:18px;
  font-size:112px;
}
.exact-card{
  width:min(500px,100%);
  max-height:none;
  overflow:hidden;
  border-radius:24px;
  padding:24px 24px 22px;
}
.exact-card h2{
  font-size:clamp(34px,3.1vw,56px);
}
.exact-card > p{
  margin-top:8px;
  font-size:15px;
}
.gold-mark{
  margin:12px 0 16px;
  font-size:24px;
}
.gold-mark:before,
.gold-mark:after{
  width:56px;
  margin:0 10px;
}
label{
  margin:10px 0 6px !important;
}
.input-icon-wrap{
  margin-bottom:4px;
}
.compact-login-options{
  margin:10px 0 12px;
}
.login-support-pill{
  padding:10px 12px;
  font-size:13px;
}
.recaptcha-wrap{
  margin:12px 0 10px;
}
.recaptcha-wrap > div{
  transform:scale(.94);
  transform-origin:center top;
}
.login-btn{
  margin-top:2px;
}
.card-separator{
  margin:14px 0 12px;
  gap:10px;
}
.card-separator span{
  max-width:92px;
}
.card-separator em{
  font-size:14px;
}
.security-panel{
  padding:14px 14px;
  gap:12px;
  border-radius:16px;
}
.security-panel strong{
  font-size:16px;
  margin-bottom:4px;
}
.security-panel p{
  font-size:13px;
  line-height:1.35;
}
.shield-icon{
  font-size:28px;
}
@media (max-height:920px){
  body.login-page.refined-login{
    padding:12px;
  }
  .login-shell.exact-login{
    height:calc(100dvh - 24px);
    max-height:none;
  }
  .hero-logo-wrap img{
    width:min(210px,52%);
  }
  .exact-hero h1{
    font-size:clamp(30px,3.1vw,46px);
  }
  .hero-tagline{
    font-size:13px;
  }
  .scales-illustration{
    font-size:74px;
    margin:2px 0 6px;
  }
  .hero-values{
    font-size:13px;
    gap:10px;
  }
  .hero-bottom-block small{
    display:none;
  }
  .lady-justice{
    font-size:88px;
    top:12px;
    right:18px;
  }
  .exact-card{
    padding:20px 20px 18px;
  }
  .security-panel{
    display:none;
  }
  .card-separator{
    margin:10px 0 6px;
  }
}
@media (max-height:820px){
  .hero-inner{
    padding:18px 20px;
  }
  .hero-logo-wrap img{
    width:min(170px,46%);
  }
  .exact-hero h1{
    font-size:30px;
  }
  .hero-divider,
  .hero-bottom-block{
    display:none;
  }
  .exact-card h2{
    font-size:32px;
  }
  .gold-mark{
    margin:10px 0 12px;
  }
}
@media (max-width:980px){
  body.login-page.refined-login{
    height:auto;
    min-height:100dvh;
    overflow:auto;
  }
  .login-shell.exact-login{
    height:auto;
    max-height:none;
    grid-template-columns:1fr;
  }
  .security-panel{
    display:flex;
  }
  .hero-bottom-block,
  .hero-divider{
    display:block;
  }
}


/* FACTURAS MODULE 20260418 */
.invoice-module-shell {
    gap: 22px;
}

.invoice-module-head,
.invoice-form-card,
.invoice-history-card,
.invoice-preview-stage {
    border: 1px solid rgba(17, 45, 98, 0.1);
    box-shadow: 0 18px 40px rgba(12, 33, 73, 0.08);
}

.invoice-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.invoice-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    gap: 22px;
    align-items: start;
}

.invoice-form-grid {
    gap: 16px;
}

.invoice-client-highlight {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(12, 35, 88, 0.95), rgba(20, 70, 137, 0.92));
    color: #fff;
}

.invoice-client-highlight small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 4px;
}

.invoice-client-highlight strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.45;
}

.invoice-lines-card {
    padding: 18px;
    border-radius: 20px;
    background: #f8fbff;
    border: 1px solid rgba(17, 45, 98, 0.08);
}

.invoice-lines-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.invoice-lines-head h4 {
    margin: 4px 0 0;
    font-size: 1.05rem;
    color: #14315f;
}

.invoice-lines-table-wrap,
.invoice-history-table-wrap,
.invoice-line-table-wrap {
    overflow-x: auto;
}

.invoice-lines-table,
.invoice-history-table,
.invoice-line-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-lines-table th,
.invoice-lines-table td,
.invoice-history-table th,
.invoice-history-table td,
.invoice-line-table th,
.invoice-line-table td {
    border-bottom: 1px solid rgba(17, 45, 98, 0.09);
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
    font-size: 0.92rem;
}

.invoice-lines-table th,
.invoice-history-table th,
.invoice-line-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #60779e;
    background: rgba(22, 67, 131, 0.05);
}

.invoice-lines-table input {
    min-width: 86px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(17, 45, 98, 0.12);
    background: #fff;
    padding: 10px 12px;
}

.invoice-lines-table td:nth-child(2) input {
    min-width: 220px;
}

.invoice-line-total {
    color: #0a2a66;
    font-size: 0.95rem;
}

.invoice-remove-row {
    border: none;
    background: rgba(196, 46, 46, 0.1);
    color: #b12020;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.2rem;
}

.invoice-total-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.invoice-total-box {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f6f9ff;
    border: 1px solid rgba(17, 45, 98, 0.08);
}

.invoice-total-box span {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6a7f9f;
    margin-bottom: 6px;
}

.invoice-total-box strong {
    font-size: 1.1rem;
    color: #0b2559;
}

.invoice-total-box.total {
    background: linear-gradient(135deg, #0b2559, #154b95);
}

.invoice-total-box.total span,
.invoice-total-box.total strong {
    color: #fff;
}

.invoice-action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.invoice-mail-btn {
    background: linear-gradient(135deg, #144a92, #0b2559);
}

.invoice-history-table td strong,
.invoice-history-table td small {
    display: block;
}

.invoice-history-table td small {
    color: #7b8ca7;
    margin-top: 4px;
}

.invoice-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.invoice-row-actions a {
    color: #0f3a7a;
    text-decoration: none;
    font-weight: 600;
}

.invoice-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.invoice-status-pill.status-borrador {
    background: rgba(122, 138, 163, 0.16);
    color: #52627a;
}

.invoice-status-pill.status-emitida {
    background: rgba(22, 106, 204, 0.14);
    color: #1556a1;
}

.invoice-status-pill.status-enviada {
    background: rgba(35, 130, 86, 0.14);
    color: #17623f;
}

.invoice-status-pill.status-pagada {
    background: rgba(218, 166, 23, 0.18);
    color: #876407;
}

.invoice-preview-stage {
    padding: 18px;
}

.invoice-preview-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.invoice-preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.invoice-sheet {
    background: #ffffff;
    border: 1px solid rgba(17, 45, 98, 0.1);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(15, 38, 83, 0.07);
}

.invoice-sheet-header {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.invoice-brand-box {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 2px solid rgba(20, 63, 122, 0.18);
    border-radius: 24px;
    background: linear-gradient(135deg, #f7fbff, #eef5ff);
}

.invoice-brand-logo-wrap {
    width: 94px;
    height: 94px;
    border-radius: 24px;
    background: radial-gradient(circle at 30% 30%, rgba(17, 61, 126, 0.16), rgba(17, 61, 126, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.invoice-brand-logo-wrap img {
    max-width: 82px;
    max-height: 82px;
    object-fit: contain;
}

.invoice-doc-label {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #61789f;
    margin-bottom: 6px;
}

.invoice-brand-box h2 {
    margin: 0 0 4px;
    font-size: 1.8rem;
    line-height: 1.05;
    color: #0f285b;
}

.invoice-brand-box p {
    margin: 0;
    color: #6980a5;
}

.invoice-meta-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0b2559, #15458b);
    color: #fff;
}

.invoice-meta-box small {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    margin-bottom: 6px;
}

.invoice-meta-box strong {
    font-size: 1rem;
}

.invoice-top-grid,
.invoice-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.invoice-summary-grid {
    grid-template-columns: 1.1fr 0.8fr 1fr;
    align-items: stretch;
}

.invoice-box,
.invoice-breakdown-card,
.invoice-qr-card,
.invoice-totals-card {
    border-radius: 22px;
    border: 1px solid rgba(17, 45, 98, 0.1);
    background: #fbfdff;
    padding: 18px;
}

.invoice-box-title {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(17, 61, 126, 0.08);
    color: #0f3a7a;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.invoice-box-body p {
    margin: 0 0 8px;
    color: #30486e;
}

.invoice-summary-pair {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(17, 45, 98, 0.1);
}

.invoice-summary-pair:last-child {
    border-bottom: none;
}

.invoice-summary-pair span {
    color: #60779e;
}

.invoice-summary-pair strong {
    color: #12315d;
    text-align: right;
}

.invoice-summary-pair.total strong {
    font-size: 1.22rem;
}

.invoice-qr-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.qr-art {
    width: 132px;
    height: 132px;
    border: 7px solid #0f285c;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(11,37,89,0.9) 12%, transparent 12% 24%, rgba(11,37,89,0.9) 24% 36%, transparent 36% 48%, rgba(11,37,89,0.9) 48% 60%, transparent 60% 72%, rgba(11,37,89,0.9) 72% 84%, transparent 84%),
        linear-gradient(rgba(11,37,89,0.9) 12%, transparent 12% 24%, rgba(11,37,89,0.9) 24% 36%, transparent 36% 48%, rgba(11,37,89,0.9) 48% 60%, transparent 60% 72%, rgba(11,37,89,0.9) 72% 84%, transparent 84%),
        radial-gradient(circle at 16% 16%, #0b2559 0 15%, transparent 16%),
        radial-gradient(circle at 84% 16%, #0b2559 0 15%, transparent 16%),
        radial-gradient(circle at 16% 84%, #0b2559 0 15%, transparent 16%),
        #fff;
    background-size: 18px 18px, 18px 18px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.invoice-sheet-footer {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(11, 37, 89, 0.06);
    color: #4e678f;
    font-size: 0.88rem;
}

@media (max-width: 1220px) {
    .invoice-admin-grid {
        grid-template-columns: 1fr;
    }

    .invoice-client-highlight,
    .invoice-total-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invoice-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .invoice-sheet-header,
    .invoice-top-grid,
    .invoice-preview-toolbar {
        grid-template-columns: 1fr;
        display: grid;
    }

    .invoice-client-highlight,
    .invoice-total-panel {
        grid-template-columns: 1fr;
    }

    .invoice-brand-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-meta-box {
        grid-template-columns: 1fr 1fr;
    }
}

@media print {
    body {
        background: #fff !important;
    }

    .sidebar,
    .topbar,
    .alert,
    .invoice-module-head,
    .invoice-form-card,
    .invoice-history-card,
    .invoice-preview-toolbar.no-print {
        display: none !important;
    }

    .app-shell,
    .premium-content,
    .content-frame,
    .invoice-preview-stage,
    .invoice-sheet {
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #fff !important;
    }
}
