[hidden]{display:none!important}:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#183540;background:#f3f6f6;font-size:16px;--green:#146753;--line:#d5e0e1}*{box-sizing:border-box}body{margin:0}.top{background:#fff;border-bottom:1px solid var(--line);padding:18px max(20px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:18px;text-decoration:none;color:inherit}.brand img{width:135px;height:48px;object-fit:contain}.brand span{font-size:.85rem;color:#60747d}main{max-width:1180px;margin:36px auto;padding:0 22px}.intro{display:flex;gap:20px;align-items:start;justify-content:space-between;margin-bottom:24px}h1{font-size:1.85rem;margin:6px 0 12px;line-height:1.15}h2{font-size:1.15rem;margin:0 0 18px}h3{font-size:1.05rem;margin:0 0 10px}.eyebrow{color:var(--green);font-size:.75rem;font-weight:750;letter-spacing:.13em;text-transform:uppercase}p{line-height:1.55}.muted,small{color:#60747d}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;min-width:0}.login{max-width:470px;margin:65px auto}.grid{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:24px}.stack{display:grid;gap:16px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.spread{justify-content:space-between}.accounts .card{padding:20px}.email{overflow-wrap:anywhere;font-weight:700;margin:0 0 8px}label{display:grid;gap:7px;font-size:.85rem;font-weight:650;margin:14px 0}input,select,textarea{font:inherit;color:inherit;background:white;border:1px solid #aebfc3;border-radius:7px;min-height:44px;padding:10px 12px;width:100%;min-width:0}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #84bcaf;outline-offset:2px}button,.button{font:inherit;font-size:.88rem;border:1px solid #b8cbcd;border-radius:7px;background:white;color:#183540;padding:11px 15px;cursor:pointer;min-height:44px;text-decoration:none;display:inline-block}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--green);border-color:var(--green);color:white;font-weight:650}.danger{color:#9b342b}.notice{background:#edf6f2;border-radius:8px;padding:13px 15px;font-size:.88rem;line-height:1.5}.badge{display:inline-block;background:#eef4f4;color:#37525b;border-radius:100px;padding:5px 10px;font-size:.77rem;font-weight:650}.badge.active{background:#e4f3eb;color:#146753}.badge.pending{background:#fff2d8;color:#79551c}.badge.off{background:#f3eaea;color:#8b3a32}.filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:20px 0}.filters label{flex:1;min-width:150px;margin:0}.filters label:first-child{flex:2}#results{display:grid;gap:14px}.invoice{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px}.invoice h2{margin-bottom:6px;overflow-wrap:anywhere}.amount{font-size:1.2rem;font-weight:750;text-align:right}.invoice .muted{margin:5px 0}.tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.full{width:100%}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tabs [aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}#status:not(:empty){position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:10;max-width:min(90vw,620px);background:#163c46;color:white;padding:14px 20px;border-radius:9px;box-shadow:0 5px 20px #0002}dialog{border:1px solid var(--line);border-radius:14px;max-width:700px;width:calc(100% - 28px);max-height:90vh;padding:24px;overflow:auto;color:inherit}dialog::backdrop{background:#163c4677}dl{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}dt{font-size:.8rem;color:#60747d}dd{margin:5px 0 0;overflow-wrap:anywhere}.note{white-space:pre-wrap;overflow-wrap:anywhere}.list-item{border-top:1px solid var(--line);padding:12px 0}.secret{font-family:ui-monospace,monospace}.mobile-notice{display:none}.account-actions label{margin:0}.account-actions{margin-top:14px;align-items:end}.account-actions select{max-width:180px}.error{color:#922f27}.empty{padding:40px;text-align:center;color:#60747d}@media(max-width:850px){.owner-only{display:none!important}.mobile-notice{display:block}.grid{grid-template-columns:1fr}.top{padding:14px 18px}.brand span{display:none}.intro{display:block}.intro .button{margin:10px 0}main{margin-top:24px;padding:0 16px}.login{margin:28px auto}.card{padding:20px}.invoice{grid-template-columns:1fr}.amount{text-align:left}.filters label{min-width:130px}dl{grid-template-columns:1fr 1fr}.top button{padding:9px;font-size:.8rem}h1{font-size:1.6rem}}

input[type=checkbox]{width:auto;min-height:20px}.review h4{margin:0 0 12px}.review{margin:10px 0}.invoice{flex-wrap:wrap}#review-controls{margin-top:24px}

.invoice{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}.invoice>label{align-self:start;margin:0}@media(max-width:850px){.invoice{grid-template-columns:1fr}}

.private-message{padding:16px 0;border-bottom:1px solid #d5e0e1}.message-compose{margin-top:18px}.message-compose textarea{width:100%;font:inherit}.message-list strong{overflow-wrap:anywhere}

@media(max-width:600px){#detail .export-options{display:grid;grid-template-columns:1fr}#detail .export-options select{width:100%;min-width:0}}

/* Portada del acceso de asesoría. Activa solo en la pantalla de inicio de sesión. */
body.advisor-access {
  --access-ink: #112b48;
  --access-green: #076a65;
  --access-muted: #405965;
  background: radial-gradient(ellipse at 10% 0%, #e4f3ed, transparent 55%), #f2f6f7;
}
body.advisor-access .advisor-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px;
}
body.advisor-access .workspace {width: min(100%, 1140px);}
body.advisor-access .topbar {display: none;}
body.advisor-access #app {max-width: none; margin: 0; padding: 0;}
body.advisor-access #status:empty {margin: 0;}
.advisor-access-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid #cedfdd;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 28px 70px -44px #24475966;
}
.advisor-access-brand {
  display: grid;
  align-content: center;
  gap: clamp(24px, 4vw, 54px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(38px, 6vw, 79px);
  background:
    radial-gradient(ellipse at 12% 5%, #f9fcfa, transparent 67%),
    linear-gradient(145deg, #eef8f4, #d6edeb 70%, #b9dfdc);
}
.advisor-access-brand::before,
.advisor-access-brand::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}
.advisor-access-brand::before {
  width: 88%;
  height: 61%;
  right: -22%;
  bottom: -29%;
  background: linear-gradient(130deg, #63c4b5, #1a797d 72%, #174867);
  clip-path: polygon(0 14%, 19% 3%, 46% 45%, 71% 3%, 100% 14%, 62% 92%, 43% 97%);
  opacity: .67;
}
.advisor-access-brand::after {
  width: 68%;
  height: 45%;
  right: -13%;
  bottom: -30%;
  background: linear-gradient(145deg, #578c9a, #183d64);
  clip-path: polygon(0 13%, 19% 3%, 44% 43%, 68% 1%, 98% 11%, 61% 95%, 43% 100%);
  opacity: .4;
}
.advisor-access-logo {
  display: block;
  width: min(100%, 326px);
  height: auto;
}
.advisor-access-brand h1 {
  margin: 0;
  color: var(--access-ink);
  font-size: clamp(2.55rem, 4.2vw, 3.75rem);
  font-weight: 740;
  letter-spacing: -.066em;
  line-height: 1.02;
}
.advisor-access-brand h1 span {display: block;}
.advisor-access-card {
  align-self: center;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: clamp(32px, 5.1vw, 73px);
}
.advisor-access-card h2 {
  margin: 0 0 22px;
  color: var(--access-ink);
  font-size: clamp(1.65rem, 3.1vw, 2.1rem);
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1.12;
}
.advisor-access-card label {
  margin: 0 0 17px;
  color: var(--access-ink);
  font-size: .93rem;
}
.advisor-access-card input {
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #6e888d;
  border-radius: 9px;
  font-size: 1rem;
}
.advisor-access-card .primary {
  min-height: 50px;
  border-color: var(--access-green);
  border-radius: 9px;
  background: var(--access-green);
  font-size: 1rem;
  font-weight: 690;
}
.advisor-access-card .primary:hover {background: #055650;}
.advisor-access-card :is(input,button):focus-visible {
  outline: 3px solid #137d76;
  outline-offset: 3px;
}
.advisor-access-card .advisor-access-help {
  margin: 6px 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--access-green);
  text-align: left;
  font-size: .93rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.advisor-access-card small {
  display: block;
  color: var(--access-muted);
  font-size: .82rem;
  line-height: 1.47;
}
@media (max-width: 850px) {
  body.advisor-access .advisor-shell {padding: 14px;}
  body.advisor-access .workspace {max-width: 500px;}
  .advisor-access-grid {min-height: 0; grid-template-columns: 1fr; border-radius: 18px;}
  .advisor-access-brand {gap: 18px; padding: 26px 22px 30px;}
  .advisor-access-logo {width: min(75%, 250px);}
  .advisor-access-brand h1 {font-size: clamp(2rem, 9vw, 3.2rem); letter-spacing: -.058em;}
  .advisor-access-card {padding: 25px 22px 28px;}
}

/* Layout from Personal. Regenerate with QA/generar_estilos.py. */
/* personal.css */
body.advisor-invoices .app{display:grid;grid-template-columns:244px 1fr;min-height:100vh}
body.advisor-invoices .sidebar{background:var(--nav);color:#e9f0f0;padding:29px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
body.advisor-invoices .navlabel{color:#9eb2b9;text-transform:uppercase;letter-spacing:1.8px;font-size:10px;margin:24px 14px 9px;font-weight:700}
body.advisor-invoices .nav{display:grid;gap:6px}
body.advisor-invoices .nav button{border:0;background:none;color:#bacecf;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:8px;text-align:left;font-weight:500;position:relative}
body.advisor-invoices .nav button.active{background:#29454c;color:#fff}
body.advisor-invoices .nav button.active:before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:3px;border-radius:3px;background:#d5edae}
body.advisor-invoices .nav button:hover{background:#233f47;color:#fff}
body.advisor-invoices .nav svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.6;flex-shrink:0}
body.advisor-invoices .sidebottom{margin-top:auto;padding:22px 12px 0;font-size:12px;color:#b7c9cc}
body.advisor-invoices .sidebottom strong{display:block;color:#e3efee;margin-bottom:4px}
body.advisor-invoices .sidebottom span{display:inline-block;width:7px;height:7px;background:#d7ecb4;border-radius:100%;margin-right:7px}
body.advisor-invoices .workspace{min-width:0}
body.advisor-invoices .topbar{height:79px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid var(--line);background:#fff}
body.advisor-invoices .crumb{color:var(--muted);font-size:13px}
body.advisor-invoices .crumb b{color:var(--ink);font-weight:600}
body.advisor-invoices .topright{display:flex;gap:18px;align-items:center;color:var(--muted);font-size:12px}
body.advisor-invoices .content{padding:29px 38px 38px;max-width:1700px;margin:auto}
body.advisor-invoices .pagehead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}
body.advisor-invoices .metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 25px}
body.advisor-invoices .metric{border:1px solid var(--line);border-radius:10px;background:#fff;padding:19px 22px}
body.advisor-invoices .metriclabel{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}
body.advisor-invoices .metric .value{font-size:29px;font-weight:650;letter-spacing:-.8px;margin:8px 0 3px}
body.advisor-invoices .metric .hint{font-size:12px;color:var(--muted)}
body.advisor-invoices .metric.emphasis{background:#eaf3ef;border-color:#d5e6dc}
body.advisor-invoices .metric.emphasis .value{color:#145d49}
body.advisor-invoices .tablewrap{overflow-x:auto}
body.advisor-invoices #results table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;font-size:13px}
body.advisor-invoices #results th{background:#f7f9f9;font-size:10px;letter-spacing:.7px;text-transform:uppercase;font-weight:650;color:#74818a;padding:13px 17px;border-bottom:1px solid var(--line)}
body.advisor-invoices #results td{padding:20px 17px;border-bottom:1px solid #edf0f1;vertical-align:middle}
body.advisor-invoices #results td:first-child,body.advisor-invoices #results th:first-child{padding-left:22px}
body.advisor-invoices #results td:last-child,body.advisor-invoices #results th:last-child{padding-right:22px}
body.advisor-invoices #results td strong{display:block;font-weight:600}
body.advisor-invoices #results td small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
@media(min-width:1550px){
 body.advisor-invoices .content{padding-top:40px}
 body.advisor-invoices #results td{padding-top:25px;padding-bottom:25px}
}
@media(max-width:1100px){
 body.advisor-invoices .app{grid-template-columns:200px 1fr}
 body.advisor-invoices .topbar{padding:0 24px}
 body.advisor-invoices .content{padding:25px 24px}
 body.advisor-invoices .pagehead{align-items:start}
 body.advisor-invoices .metrics{gap:10px}
 body.advisor-invoices .metric{padding:16px}
 body.advisor-invoices .metric .value{font-size:25px}
}
@media(max-width:760px){
 body.advisor-invoices .app{display:block}
 body.advisor-invoices .sidebar{height:auto;position:static;padding:15px}
 body.advisor-invoices .nav{display:flex;overflow:auto}
 body.advisor-invoices .nav button{flex-shrink:0;padding:9px}
 body.advisor-invoices .navlabel,body.advisor-invoices .sidebottom{display:none}
 body.advisor-invoices .topbar{height:55px;padding:0 18px}
 body.advisor-invoices .content{padding:22px 16px}
 body.advisor-invoices .pagehead{flex-direction:column;gap:17px}
 body.advisor-invoices .metrics{grid-template-columns:1fr}
 body.advisor-invoices .metric{padding:13px 17px}
 body.advisor-invoices .metric .value{font-size:25px;margin:2px 0}
 body.advisor-invoices .topright{gap:8px}
}
body.advisor-invoices .logo-panel{background:#fff;border-radius:8px;overflow:hidden;padding:0 5px}
body.advisor-invoices .logo-panel img{display:block;width:100%;height:auto}
body.advisor-invoices .navlabel{margin-top:17px}
body.advisor-invoices .tablewrap th,body.advisor-invoices .tablewrap td{padding-left:13px;padding-right:13px}
body.advisor-invoices .sidebottom strong{font-size:12px}
@media(max-width:760px){
 body.advisor-invoices .logo-panel{width:185px}
}
body.advisor-invoices .tablewrap td{padding-top:15px;padding-bottom:15px}
body.advisor-invoices .sidebottom{font-size:11px;padding-top:12px}
body.advisor-invoices .sidebar{padding-top:20px;padding-bottom:18px}
body.advisor-invoices .nav button{padding-top:10px;padding-bottom:10px}
body.advisor-invoices .navlabel{margin-top:14px}
body.advisor-invoices .topright{gap:10px}
@media(max-width:760px){
 body.advisor-invoices .sidebar{position:relative;width:auto;height:auto}
 body.advisor-invoices .nav{display:flex;flex-wrap:wrap}
 body.advisor-invoices .nav button{flex:1;min-width:145px}
 body.advisor-invoices .pagehead{display:block}
 body.advisor-invoices .metrics{grid-template-columns:1fr!important}
 body.advisor-invoices .tablewrap{overflow:auto}
 body.advisor-invoices .topbar{padding:12px}
 body.advisor-invoices .content{padding:16px}
}
@media(max-width:760px){
 body.advisor-invoices .app{display:block}
 body.advisor-invoices .workspace{min-width:0}
 body.advisor-invoices .sidebar{position:static;padding:16px}
 body.advisor-invoices .topbar{position:static;height:auto;min-height:70px;flex-wrap:wrap;gap:8px}
 body.advisor-invoices .topright{flex-wrap:wrap}
 body.advisor-invoices .crumb{display:none}
 body.advisor-invoices .nav button{min-width:130px;font-size:13px;padding:9px}
 body.advisor-invoices .content{padding:16px}
 body.advisor-invoices .tablewrap{max-width:100%}
 body.advisor-invoices .brand .logo-panel{width:160px}
}
/* common.css */
body.advisor-invoices .sidebar .brand{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0 8px 18px;margin-bottom:6px;border-bottom:1px solid #ffffff20}
body.advisor-invoices .sidebar .brand .logo-panel{width:100%;box-sizing:border-box}
body.advisor-invoices .sidebar .product-name{padding:16px 0 0;text-align:center}
body.advisor-invoices .product-kicker{display:block;font-size:9px;font-weight:600;letter-spacing:3px;color:#9ebbbf;line-height:1.5}
body.advisor-invoices .product-title{display:block;margin-top:4px;font-size:20px;font-weight:700;letter-spacing:-.6px;line-height:1.25;color:#fff}
body.advisor-invoices .product-title span{color:#4ed4c3;font-weight:400}
body.advisor-invoices .sidebar .nav{gap:8px}
body.advisor-invoices .sidebar .nav button{border:1px solid #ffffff30;background:#ffffff09;border-radius:12px;min-height:46px;color:#e4efef;margin-bottom:7px;transition:background .15s,border-color .15s;box-shadow:0 2px 4px #0000000d}
body.advisor-invoices .sidebar .nav button:hover{background:#ffffff16;border-color:#70c4ba}
body.advisor-invoices .sidebar .nav button:focus-visible{outline:3px solid #79e1d3;outline-offset:3px}
body.advisor-invoices .sidebar .nav button.active{background:#166e63;border-color:#51c7b5;color:#fff;font-weight:700;box-shadow:0 3px 10px #0002}
body.advisor-invoices .sidebar .nav button.active:before{background:#89eddb}
@media(max-width:760px){
 body.advisor-invoices .sidebar .brand{display:grid;grid-template-columns:minmax(120px,160px) minmax(0,1fr);align-items:center;gap:18px;padding:0 0 16px;margin-bottom:14px}
 body.advisor-invoices .sidebar .product-name{padding:0;text-align:left}
 body.advisor-invoices .sidebar .product-kicker{font-size:9px;letter-spacing:2px}
 body.advisor-invoices .sidebar .product-title{font-size:20px;max-width:180px}
 body.advisor-invoices .sidebar .nav{display:flex;flex-wrap:wrap;gap:8px;overflow:visible}
 body.advisor-invoices .sidebar .nav button{min-width:130px;flex:1 1 140px;min-height:48px;padding:12px;font-size:13px;margin-bottom:0}
}
@media(max-width:360px){
 body.advisor-invoices .sidebar .brand{grid-template-columns:130px 1fr;gap:12px}
 body.advisor-invoices .sidebar .product-title{font-size:17px}
}
@media(min-width:761px){
 body.advisor-invoices .sidebar{box-sizing:border-box;height:100vh;height:100dvh;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#739499 #15313a}
 body.advisor-invoices .sidebar>*{flex-shrink:0}
}
@media(min-width:761px){
 body.advisor-invoices .sidebar{overflow:hidden;padding:16px 14px;position:sticky;top:0}
 body.advisor-invoices .sidebar .brand{padding:0 6px 10px;margin-bottom:0}
 body.advisor-invoices .sidebar .brand .logo-panel{max-width:165px;margin:auto}
 body.advisor-invoices .sidebar .product-name{padding-top:10px}
 body.advisor-invoices .sidebar .product-title{font-size:18px}
 body.advisor-invoices .sidebar .nav{gap:5px}
 body.advisor-invoices .sidebar .nav button{min-height:40px;padding:9px 10px;margin:0;font-size:13px;gap:8px}
}
@media(min-width:761px) and (max-height:850px){
 body.advisor-invoices .sidebar{padding-top:10px;padding-bottom:10px}
 body.advisor-invoices .sidebar .brand .logo-panel{max-width:130px}
 body.advisor-invoices .sidebar .brand{padding-bottom:6px}
 body.advisor-invoices .sidebar .product-name{padding-top:6px}
 body.advisor-invoices .sidebar .product-kicker{font-size:8px;letter-spacing:2px}
 body.advisor-invoices .sidebar .product-title{font-size:16px}
 body.advisor-invoices .sidebar .nav{gap:4px}
 body.advisor-invoices .sidebar .nav button{min-height:34px;padding:7px 9px;font-size:12px}
}
body.advisor-invoices .invoice-table{max-height:60vh;max-height:60dvh;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-color:#708c91 #eef3f3}
body.advisor-invoices .invoice-table thead th{position:sticky;top:0;z-index:2;background:#f2f6f6;padding:10px 12px;white-space:normal}
@media(max-width:760px){
 body.advisor-invoices .invoice-table{max-height:65vh;max-height:65dvh}
}
body.advisor-invoices .invoice-table{max-height:none;overflow-x:auto;overflow-y:hidden;scrollbar-gutter:auto;overscroll-behavior:auto}
body.advisor-invoices .invoice-table thead th{position:static}
body.advisor-invoices .tablewrap thead th{text-align:center!important}

/* Advisor-specific layout of the components shared with Personal. */
body.advisor-invoices {
  --ink: #192a35;
  --muted: #687782;
  --line: #dce5e8;
  --nav: #152c35;
  --green: #126650;
  background: #f4f6f6;
  color: var(--ink);
}
body.advisor-invoices .app { grid-template-columns: 244px minmax(0, 1fr); }
body.advisor-invoices .sidebar>.nav { align-content: start; }
body.advisor-invoices .sidebar .brand img { width: 100%; height: auto; }
body.advisor-invoices .sidebar .product-kicker { display: block; color: #9ebbbf; }
body.advisor-invoices .sidebar .product-title { display: block; color: #fff; }
body.advisor-invoices .sidebar .product-title span { display: inline; color: #4ed4c3; font-size: inherit; }
body.advisor-invoices .sidebar .sidebottom { margin-top: auto; }
body.advisor-invoices .topbar>.brand { display: none; }
body.advisor-invoices .topbar { min-height: 58px; justify-content: space-between; }
body.advisor-invoices .crumb span { margin-inline: 8px; color: #839298; }
body.advisor-invoices .content { width: 100%; max-width: 1700px; }
body.advisor-invoices .pagehead h1 { margin-bottom: 8px; }
body.advisor-invoices .pagehead p { margin: 0; color: var(--muted); font-size: 0.85rem; }
body.advisor-invoices .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
body.advisor-invoices .metriclabel { text-transform: uppercase; }
body.advisor-invoices .metric .hint { line-height: 1.35; }
.invoice-panel {
  overflow: hidden;
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.invoice-panel-head,.invoice-tools,.invoice-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  gap: 8px 14px;
}
.invoice-panel-head,.invoice-pagination { border-bottom: 1px solid var(--line); }
.invoice-panel-head h2 { margin: 0; font-size: 0.94rem; }
.invoice-panel .filters { margin: 0; padding: 16px 22px; background: #fafbfb; border-bottom: 1px solid var(--line); }
.invoice-panel .filters label { min-width: 0; font-size: 0.8rem; }
.invoice-panel .review-filter-option { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.invoice-pagination { font-size: 0.8rem; }
.invoice-pagination label { display: flex; align-items: center; white-space: nowrap; margin: 0; font-size: inherit; }
.invoice-pagination select { min-height: 36px; padding: 6px 8px; }
.invoice-pagination .row { justify-content: space-between; }
.invoice-panel button { min-height: 36px; padding: 8px 11px; font-size: 0.8rem; }
.invoice-panel button:disabled { cursor: default; }
body.advisor-invoices #results { display: block; }
body.advisor-invoices #results .invoice-table { max-width: 100%; -webkit-overflow-scrolling: touch; }
body.advisor-invoices #results table { min-width: 900px; }
body.advisor-invoices #results td { white-space: normal; overflow-wrap: anywhere; }
body.advisor-invoices #results .money,
body.advisor-invoices #results td:nth-child(-n+4),
body.advisor-invoices #results .balance-due { white-space: nowrap; }
.invoice-table .select-cell { width: 42px; text-align: center; }
.invoice-table .select-cell input { appearance: auto; accent-color: var(--green); width: 17px; height: 17px; min-height: 0; margin: 0; }
.invoice-panel .invoice-reference { color: var(--green); text-align: left; border-color: transparent; padding: 6px 0; }
.invoice-panel .view-invoice { white-space: nowrap; overflow-wrap: normal; }
.invoice-reference:hover { text-decoration: underline; }
.invoice-table .tags { margin: 0; gap: 3px; }
.invoice-table .badge { padding: 4px 7px; font-size: 0.7rem; overflow-wrap: normal; }
body.advisor-invoices #results .balance-due { color: var(--green); font-weight: 700; }
.invoice-scroll-hint { display: none; }
.invoice-tools { justify-content: flex-start; background: #f3f7f7; border-top: 1px solid var(--line); }
.invoice-tools label { margin: 0; font-size: 0.79rem; }
.invoice-tools select { min-width: 140px; min-height: 36px; padding: 6px 8px; }
.invoice-panel .empty { margin: 0; }
body.advisor-invoices #detail { border-radius: 12px; }
body.advisor-invoices #detail>.row:first-child { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }

@media (min-width: 761px) {
  body.advisor-invoices .topbar { height: 70px; }
}
@media (max-width: 1100px) {
  body.advisor-invoices .app { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 1200px) {
  .invoice-scroll-hint { display: block; margin: 0; padding: 8px 16px; color: #536d74; background: #f8fafa; font-size: 0.8rem; }
}
@media (max-width: 760px) {
  body.advisor-invoices .sidebar .sidebottom { display: none; }
  body.advisor-invoices .sidebar .navlabel { display: none; }
  body.advisor-invoices .sidebar .nav button { gap: 6px; padding-inline: 9px; }
  body.advisor-invoices .sidebar .nav svg { width: 17px; height: 17px; }
  body.advisor-invoices .topbar { min-height: 54px; padding: 6px 16px; }
  #session-tools .row { gap: 6px; }
  body.advisor-invoices .pagehead { display: flex; flex-direction: row; align-items: start; gap: 8px; margin-bottom: 12px; }
  #refresh-invoices { padding: 7px 8px; white-space: nowrap; font-size: 0.76rem; }
  body.advisor-invoices .metrics { grid-template-columns: 1fr!important; margin-bottom: 14px; }
  .invoice-panel-head,.invoice-tools,.invoice-pagination { padding: 10px 12px; }
  .invoice-panel-head .row { gap: 5px; }
  .invoice-panel-head .row button { padding: 6px 7px; }
  .invoice-panel .filters { padding: 10px 12px; gap: 8px; }
  .invoice-panel .filters label { min-width: min(100%, 110px); }
  .invoice-panel .filters input,.invoice-panel .filters select { font-size: 16px; }
  .invoice-panel .filters .review-filter-option { flex: 1 1 100%; min-height: 27px; }
  .invoice-pagination .row { width: 100%; }
  body.advisor-invoices #results table { min-width: 1100px; }
  body.advisor-invoices #results td,body.advisor-invoices #results th { padding: 12px 10px; }
  .invoice-table .select-cell input { width: 21px; height: 21px; }
}

/* Tabla, filtros y acciones de las dos vistas de asesores. */
body.advisor-invoices .advisor-page-actions { justify-content: flex-end; max-width: 100%; }
body.advisor-invoices .owner-unavailable {
  background: #edf1f2;
  border-color: #d7e0e3;
  color: #65767d;
  cursor: default;
  opacity: 1;
}
body.advisor-invoices .pagehead .primary.owner-unavailable { background: #dcebe6; color: #476a61; }
body.advisor-invoices .metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
body.advisor-invoices .advisor-finalized-metrics { grid-template-columns: minmax(0,440px); }
body.advisor-invoices .advisor-invoice-help {
  margin: 0;
  padding: 14px 22px 0;
  color: var(--muted);
  background: #fafbfb;
  font-size: 0.82rem;
}
body.advisor-invoices .advisor-management-filters {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border-bottom: 0;
  padding-bottom: 12px;
}
body.advisor-invoices .advisor-management-filters label,
body.advisor-invoices .advisor-management-filters #multiple-stores {
  min-width: 0;
  width: 100%;
}
body.advisor-invoices #multiple-stores { display: grid; gap: 7px; font-size: 0.8rem; font-weight: 650; }
body.advisor-invoices #store-multi { position: relative; }
body.advisor-invoices #store-summary {
  background: white;
  border: 1px solid #aebfc3;
  border-radius: 7px;
  padding: 12px;
  cursor: pointer;
  min-height: 44px;
  overflow-wrap: anywhere;
}
body.advisor-invoices .advisor-store-menu {
  position: absolute;
  z-index: 3;
  inset-inline-end: 0;
  width: min(260px,100%);
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: white;
  box-shadow: 0 5px 16px #192a3520;
}
body.advisor-invoices #store-options { max-height: 200px; overflow-y: auto; }
body.advisor-invoices .advisor-store-option { display: flex; align-items: center; padding: 4px 0; }
body.advisor-invoices .advisor-store-option input { accent-color: var(--green); }
body.advisor-invoices .advisor-search-filters {
  display: flex;
  justify-content: flex-start;
  padding-top: 0;
}
body.advisor-invoices .advisor-search-filters>label { flex: 0 1 300px; }
body.advisor-invoices .advisor-search-filters>label:first-child { flex: 0 1 405px; }
body.advisor-invoices .advisor-search-filters .review-filter-option { flex: 0 1 auto; }
body.advisor-invoices .advisor-search-filters #review-mark-filter { flex: 0 1 160px; }
body.advisor-invoices .advisor-search-filters input[aria-invalid=true] { border-color: #9b342b; }
body.advisor-invoices .advisor-management-filters select:disabled {
  color: #687782;
  background: #edf1f2;
  cursor: default;
}
body.advisor-invoices .invoice-panel-head #export-controls>span { font-size: 0.8rem; color: #315a60; }
body.advisor-invoices .invoice-tools { border-top: 0; border-bottom: 1px solid var(--line); }
body.advisor-invoices .invoice-tools small { flex-basis: 100%; }
body.advisor-invoices .invoice-tools .advisor-bulk-downloads { gap: 7px; }
body.advisor-invoices .invoice-pagination+.tablefoot,
body.advisor-invoices #results+.invoice-pagination { border-top: 1px solid var(--line); }
body.advisor-invoices .tablefoot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 22px;
  color: var(--muted);
  font-size: 0.78rem;
}
body.advisor-invoices .invoice-scroll-top { overflow-x: auto; overflow-y: hidden; height: 14px; }
body.advisor-invoices .invoice-scroll-top>div { height: 1px; }
body.advisor-invoices #results table { min-width: 1080px; }
body.advisor-invoices #results th,
body.advisor-invoices #results td { padding: 12px 10px; }
body.advisor-invoices #results th { line-height: 1.25; white-space: normal; }
body.advisor-invoices #results .advisor-sort {
  padding: 1px 3px;
  min-height: 24px;
  border: 0;
  background: none;
  text-transform: inherit;
  line-height: inherit;
  font: inherit;
  color: inherit;
}
body.advisor-invoices #results .advisor-sort:hover { text-decoration: underline; text-underline-offset: 3px; }
body.advisor-invoices #results td:nth-child(3) { white-space: nowrap; }
body.advisor-invoices #results td:nth-child(4) { white-space: normal; }
body.advisor-invoices #results .advisor-row-notes { min-width: 85px; max-width: 230px; white-space: pre-wrap; }
body.advisor-invoices .advisor-pay-check { display: flex; align-items: center; gap: 5px; margin: 0; }
body.advisor-invoices .advisor-pay-check input { flex: 0 0 auto; padding: 0; }
body.advisor-invoices .advisor-row-mark { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0 0 5px; }
body.advisor-invoices .advisor-row-mark small { min-width: 68px; overflow-wrap: normal; }
body.advisor-invoices .advisor-row-mark .advisor-list-switch {
  width: 36px;
  min-height: 23px;
  border-radius: 15px;
  padding: 2px;
  background: #78848c;
  border-color: #78848c;
}
body.advisor-invoices .advisor-list-switch[aria-checked=true] { background: #13765b; border-color: #13765b; }
body.advisor-invoices .advisor-list-switch span { width: 17px; height: 17px; background: white; border-radius: 50%; display: block; }
body.advisor-invoices .advisor-list-switch[aria-checked=true] span { transform: translateX(12px); }
body.advisor-invoices .advisor-row-buttons { display: grid; gap: 4px; }
body.advisor-invoices .advisor-row-buttons button {
  font-size: 0.73rem;
  min-height: 30px;
  padding: 5px 7px;
  overflow-wrap: normal;
}
body.advisor-invoices .advisor-row-buttons button:disabled { cursor: default; }
@media (min-width:1500px) {
  body.advisor-invoices .advisor-management-filters { grid-template-columns: 1.1fr 1fr .8fr .9fr 1fr 1.15fr 1.2fr; }
}
@media (min-width:761px) and (max-width:1100px) {
  body.advisor-invoices .advisor-management-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  body.advisor-invoices .pagehead { display: block; }
  body.advisor-invoices .advisor-page-actions { justify-content: flex-start; margin-top: 10px; }
  body.advisor-invoices .advisor-page-actions button { font-size: 0.78rem; padding: 6px 8px; min-height: 36px; }
  body.advisor-invoices .advisor-invoice-help { padding: 10px 12px 0; }
  body.advisor-invoices .advisor-management-filters { grid-template-columns: minmax(0,1fr); }
  body.advisor-invoices .advisor-store-menu { inset-inline: 0 auto; width: min(260px,100%); }
  body.advisor-invoices .advisor-search-filters>label,
  body.advisor-invoices .advisor-search-filters>label:first-child { flex: 1 1 100%; }
  body.advisor-invoices .advisor-search-filters #review-mark-filter { flex: 0 1 160px; }
  body.advisor-invoices #results table { min-width: 1400px; }
  body.advisor-invoices .tablefoot { padding: 10px 12px; }
}


body.advisor-invoices .advisor-reference-line { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }

body.advisor-invoices #results table:has([data-invoice-sort=due]) td:nth-child(4),
body.advisor-invoices #results table:has([data-invoice-sort=due]) td:nth-child(4) strong {
  white-space: nowrap;
  overflow-wrap: normal;
}
body.advisor-invoices #results td:nth-last-child(3) { min-width: 104px; overflow-wrap: normal; }
body.advisor-invoices #results td:has(.advisor-reference-line) { min-width: 95px; }
@media (min-width: 761px) and (max-width: 1500px) {
  body.advisor-invoices #results th,
  body.advisor-invoices #results td { padding-inline: 8px; }
}
