﻿:root{font:16px/1.5 "Segoe UI",system-ui,sans-serif;color:#1b2d43;background:#f2f5f9;--nav:#14263f;--blue:#175aba;--line:#dce3ed;--muted:#566780;--green:#096a59;--red:#b02e38}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;background:white;color:#203958;padding:.55rem .85rem;font-weight:600;font-size:.875rem}button:hover{background:#edf3fc}button:disabled{opacity:.55;cursor:wait}button.primary{background:var(--blue);border-color:var(--blue);color:white}button.danger{color:var(--red)}button.small{font-size:.875rem;padding:.35rem .6rem}a{color:#1357a5}input,select,textarea{border:1px solid #a9b8ca;border-radius:6px;background:white;color:#152940;padding:.55rem;min-width:0;width:100%}textarea{min-height:90px}label{display:flex;flex-direction:column;gap:.35rem;font-size:.875rem;font-weight:600}input[type=checkbox]{width:auto}h1,h2,h3,p{margin-top:0}h1{font-size:1.65rem;line-height:1.25;margin-bottom:.4rem}h2{font-size:1.18rem}h3{font-size:1rem}p{margin-bottom:1rem}.muted,small{color:var(--muted)}small{font-size:.875rem}.shell{display:grid;grid-template-columns:242px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--nav);color:#fff;padding:1.6rem 1rem;position:sticky;top:0;height:100vh;overflow:auto}.brand{font-size:1.25rem;font-weight:750;padding:0 .6rem 1.4rem}.brand small{display:block;color:#a7bfdc;font-weight:400;margin-top:.3rem}.sidebar button{display:block;width:100%;text-align:left;border:0;color:#d7e5f7;background:transparent;margin:.2rem 0;font-weight:500}.sidebar button:hover,.sidebar button.active{background:#2c4362;color:white}.sidebar .nav-label{font-size:.875rem;color:#a7bfdc;margin:1.25rem .6rem .35rem}.main{padding:1.8rem;min-width:0}.topbar,.pagehead,.actions,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.topbar{margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--line);font-size:.875rem}.topbar .actions,.actions{justify-content:flex-start}.pagehead{align-items:flex-start;margin-bottom:1.4rem}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.card,.panel{background:white;border:1px solid var(--line);border-radius:10px;padding:1.2rem}.card .label{color:var(--muted);font-size:.875rem;margin-bottom:.5rem}.card .value{font-size:1.7rem;font-weight:730;font-variant-numeric:tabular-nums;line-height:1.2}.card small{display:block;margin-top:.5rem}.panel{margin-bottom:1.25rem}.panel.credit{border-top:4px solid #4464bf;background:#f8faff}.positive{color:var(--green)}.negative{color:var(--red)}.badge{display:inline-block;font-size:.875rem;background:#edf2f8;border-radius:6px;padding:.15rem .5rem;white-space:nowrap}.badge.good{background:#e5f4ee;color:#075b48}.badge.warn{background:#fff0ce;color:#7a4d00}.badge.bad{background:#ffe9ec;color:#9a2331}.notice{padding:.8rem 1rem;border-left:4px solid #da971e;background:#fff6e2;border-radius:5px;margin-bottom:1rem}.notice.info{border-color:#4c77b9;background:#edf4ff}.tablewrap{width:100%;overflow:auto;background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:1.2rem}table{border-collapse:collapse;width:100%;font-size:.875rem}th{text-align:left;padding:.75rem;white-space:nowrap;color:#42536d;background:#edf2f8;font-weight:650}td{padding:.7rem .75rem;border-bottom:1px solid #e7ecf3;vertical-align:top}tr:last-child td{border:0}tr:hover td{background:#fafcff}.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.row-actions{display:flex;gap:.35rem;flex-wrap:wrap;min-width:160px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.full{grid-column:1/-1}.toolbar{background:white;border:1px solid var(--line);padding:.8rem;border-radius:8px;margin:1rem 0;justify-content:flex-start}.toolbar label{min-width:140px;flex:1}.toolbar button{align-self:end}.empty{padding:2rem;color:var(--muted);text-align:center}.login{max-width:450px;margin:8vh auto;padding:2rem;background:white;border:1px solid var(--line);border-radius:12px}.login .brand{padding:0 0 1rem;color:var(--nav)}.login form{display:grid;gap:1rem}.loading{padding:4rem;text-align:center;color:var(--muted)}dialog{padding:0;border:1px solid var(--line);border-radius:12px;width:min(92vw,780px);max-height:90vh;color:#1b2d43}dialog::backdrop{background:#101b2cb0}#dialog-content{padding:1.6rem}dialog .actions{margin-top:1.3rem;justify-content:flex-end}.dialoghead{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.2rem}.dialoghead h2{margin:0}.error{color:#ac2634;font-weight:600;margin-top:.8rem;white-space:pre-wrap}#toast{position:fixed;bottom:1rem;left:50%;transform:translateX(-50%);background:#18344d;color:white;border-radius:8px;padding:.8rem 1.2rem;max-width:90vw;z-index:20;display:none}#toast.show{display:block}.purchase-line{border:1px solid var(--line);padding:1rem;border-radius:8px;margin-top:1rem}.definition{color:#42536d;font-size:.875rem}.catalog-card{margin-bottom:.8rem}.catalog-card h3{margin-bottom:.3rem}.catalog-meta{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:.7rem}.catalog-card details{margin-top:.6rem}.catalog-card summary{cursor:pointer;color:#1b59a6}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.inline-check{flex-direction:row;align-items:center}.subnav{display:flex;gap:.5rem;margin:1.2rem 0;flex-wrap:wrap}.subnav button.selected{background:#e1ebfb;border-color:#7196ce}.definition-list dt{font-weight:700;margin-top:1.2rem}.definition-list dd{margin:.25rem 0 0}.audit-detail{white-space:pre-wrap;word-break:break-word;font-size:.875rem}.balance{font-weight:700;color:#1c4c83}.voided{opacity:.6;text-decoration:line-through}
@media(max-width:900px){.shell{grid-template-columns:185px minmax(0,1fr)}.main{padding:1rem}.sidebar{padding:1rem .5rem}.twocol{grid-template-columns:1fr}}
@media(max-width:650px){.shell{display:block}.sidebar{position:relative;height:auto;padding:1rem}.brand{padding-bottom:.6rem}.sidebar nav{display:flex;flex-wrap:wrap;gap:.3rem}.sidebar button{width:auto;margin:0}.sidebar .nav-label{display:none}.main{padding:1rem}.formgrid{grid-template-columns:1fr}.full{grid-column:auto}.cards{grid-template-columns:1fr 1fr}.card{padding:.8rem}.card .value{font-size:1.3rem}.toolbar label{min-width:100%}}
@media print{.sidebar,.topbar,.toolbar,.pagehead .actions,button,#toast,dialog{display:none!important}.shell{display:block}.main{padding:0}.tablewrap{overflow:visible}table{font-size:11px}.panel,.card{break-inside:avoid}}
/* ACCOUNT_RGV_PORTADA_TARJETAS_R2_START */
body{background:#eef3f8}
.rgv-shell{grid-template-columns:260px minmax(0,1fr)}
.sidebar{background:linear-gradient(180deg,#102843 0%,#0d2138 100%);padding:1.35rem .9rem;box-shadow:8px 0 24px rgba(20,38,63,.08)}
.brand{padding:.2rem .65rem 1.25rem;border-bottom:1px solid rgba(255,255,255,.09);margin-bottom:.7rem}
.brand-title{display:block;font-size:1.35rem;letter-spacing:-.02em}
.sidebar .nav-label{text-transform:uppercase;letter-spacing:.08em;font-size:.68rem;color:#7f9bbb;margin:1.2rem .65rem .35rem}
.sidebar button{border-radius:9px;padding:.62rem .75rem;color:#dce8f6}
.sidebar button:hover,.sidebar button.active{background:#1e5f9f;color:#fff;box-shadow:inset 3px 0 0 #6fc3ff}
.main{padding:1.55rem 1.7rem 2rem}
.topbar{background:#fff;border:1px solid var(--line);border-radius:12px;padding:.75rem 1rem;margin-bottom:1.35rem;box-shadow:0 5px 16px rgba(34,55,82,.05)}
.topbar-role{color:var(--muted);font-size:.875rem}
.pagehead h1{font-size:1.85rem;letter-spacing:-.025em}
.dashboard-kpis{grid-template-columns:repeat(5,minmax(150px,1fr));gap:.8rem}
.dashboard-kpis .card{border:0;border-radius:14px;box-shadow:0 6px 18px rgba(32,52,78,.07);min-height:126px;position:relative;overflow:hidden}
.dashboard-kpis .card:after{content:"";position:absolute;width:72px;height:72px;border-radius:50%;right:-28px;bottom:-30px;background:#edf4ff}
.dashboard-kpis .card .label{font-weight:650;color:#456079}
.dashboard-kpis .card .value{font-size:1.62rem;position:relative;z-index:1}
.dashboard-section{margin:1.2rem 0 1.4rem}
.section-title{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:.75rem}
.section-title h2{margin-bottom:.15rem;font-size:1.25rem}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:.85rem}
.module-card{display:flex;align-items:center;gap:.85rem;text-align:left;padding:1rem;border:1px solid #dce5ef;border-radius:14px;background:#fff;min-height:104px;box-shadow:0 5px 16px rgba(36,57,82,.06);transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.module-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(36,57,82,.11);background:#fff;border-color:#c1d1e2}
.module-icon{width:54px;height:54px;min-width:54px;display:grid;place-items:center;border-radius:13px;font-size:.92rem;font-weight:800;background:#e9f2ff;color:#1760b5}
.module-copy{display:flex;flex-direction:column;gap:.28rem;min-width:0;flex:1}
.module-copy strong{font-size:1.02rem;color:#193550}
.module-copy small{line-height:1.35;color:#5a6b7e}
.module-arrow{font-size:1.6rem;color:#7890aa}
.module-card.purple .module-icon{background:#f1ebff;color:#7047c7}
.module-card.green .module-icon{background:#e8f7ef;color:#12805c}
.module-card.orange .module-icon{background:#fff0e5;color:#c86418}
.module-card.teal .module-icon{background:#e4f7f6;color:#087a77}
.module-card.slate .module-icon{background:#edf1f5;color:#4f6072}
.dashboard-columns{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.dashboard-panel{border:0;border-radius:14px;box-shadow:0 5px 16px rgba(36,57,82,.06)}
.panel-title,.account-row,.account-value{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.panel-title{margin-bottom:.7rem}.panel-title h2{margin:0}.panel-title small{display:block;margin-top:.2rem}
.account-row{padding:.72rem 0;border-top:1px solid #edf1f5}.account-row:first-of-type{border-top:0}.account-row small{display:block;margin-top:.12rem}.account-value{font-variant-numeric:tabular-nums;font-weight:700}
.inventory-preview{margin-top:1rem}
.inventory-preview .tablewrap{margin-bottom:0;box-shadow:none}
@media(max-width:1200px){.dashboard-kpis{grid-template-columns:repeat(3,minmax(170px,1fr))}.module-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}}
@media(max-width:900px){.rgv-shell{grid-template-columns:205px minmax(0,1fr)}.dashboard-columns{grid-template-columns:1fr}.dashboard-kpis{grid-template-columns:repeat(2,minmax(150px,1fr))}}
@media(max-width:650px){.rgv-shell{display:block}.dashboard-kpis,.module-grid{grid-template-columns:1fr}.module-card{min-height:86px}.main{padding:1rem}.topbar{border-radius:9px}}
/* ACCOUNT_RGV_PORTADA_TARJETAS_R2_END */
/* ACCOUNT_RGV_CAPTURA_RAPIDA_R3_START */
.quick-entry-panel{margin:1rem 0 1.2rem;border:1px solid #cbd9e8;border-radius:14px;box-shadow:0 5px 16px rgba(36,57,82,.06);padding:1rem 1.1rem}
.quick-entry-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.85rem}
.quick-entry-head h2{margin:0 0 .18rem;font-size:1.12rem}
.quick-entry-head p{margin:0}
.quick-kind-toggle{display:inline-flex;gap:.25rem;padding:.25rem;border-radius:10px;background:#edf2f8;border:1px solid #d8e1ec}
.quick-kind-button{border:0;background:transparent;min-width:92px;padding:.48rem .8rem}
.quick-kind-button:hover{background:#fff}
.quick-kind-button.selected[data-kind="expense"]{background:#b63c47;color:#fff;box-shadow:0 2px 6px rgba(88,31,38,.18)}
.quick-kind-button.selected[data-kind="income"]{background:#17805d;color:#fff;box-shadow:0 2px 6px rgba(21,90,68,.18)}
.quick-entry-grid{display:grid;grid-template-columns:145px minmax(250px,2fr) minmax(210px,1.35fr) 150px 92px;gap:.75rem;align-items:end}
.quick-entry-grid label{margin:0}
.quick-save{height:42px;align-self:end}
.quick-entry-foot{margin-top:.55rem}
#quick-entry-form .error:empty{display:none}
@media(max-width:1150px){.quick-entry-grid{grid-template-columns:140px minmax(220px,2fr) minmax(190px,1.2fr);}.quick-entry-grid .quick-save{width:100%}}
@media(max-width:760px){.quick-entry-head{align-items:flex-start;flex-direction:column}.quick-kind-toggle{width:100%}.quick-kind-button{flex:1}.quick-entry-grid{grid-template-columns:1fr}.quick-save{width:100%}}
/* ACCOUNT_RGV_CAPTURA_RAPIDA_R3_END */
/* ACCOUNT_RGV_TIPO_PRIMERO_R4_START */
.quick-entry-r4{padding:1rem 1.1rem}
.quick-entry-r4 .quick-entry-head{margin-bottom:.75rem}
.quick-entry-r4 .quick-entry-head h2{font-size:1.08rem}
.quick-entry-grid-r4{display:grid;grid-template-columns:190px 135px minmax(230px,1.7fr) minmax(230px,1.35fr) 145px minmax(170px,1fr) 105px;gap:.65rem;align-items:end}
.quick-kind-field{display:flex;flex-direction:column;gap:.32rem;min-width:0}
.quick-field-label{font-size:.76rem;font-weight:700;color:#42566c;text-transform:uppercase;letter-spacing:.035em}
.quick-entry-r4 .quick-kind-toggle{display:flex;width:100%;padding:.2rem}
.quick-entry-r4 .quick-kind-button{flex:1;min-width:0;padding:.55rem .55rem;font-weight:700}
.quick-entry-r4 .quick-kind-button.selected[data-kind="expense"]{background:#b63c47;color:#fff}
.quick-entry-r4 .quick-kind-button.selected[data-kind="income"]{background:#17805d;color:#fff}
.quick-entry-grid-r4 label{margin:0;min-width:0}
.quick-entry-grid-r4 input,.quick-entry-grid-r4 select{width:100%}
.quick-receipt input[type="file"]{padding:.43rem .45rem;background:#fff}
.quick-entry-grid-r4 .quick-save{height:42px;width:100%;white-space:nowrap}
@media(max-width:1450px){.quick-entry-grid-r4{grid-template-columns:190px 135px minmax(220px,1.5fr) minmax(220px,1.25fr) 145px 105px}.quick-receipt{grid-column:1 / span 3}.quick-entry-grid-r4 .quick-save{grid-column:6}}
@media(max-width:900px){.quick-entry-grid-r4{grid-template-columns:1fr 1fr}.quick-kind-field{grid-column:1 / -1}.quick-receipt{grid-column:1 / -1}.quick-entry-grid-r4 .quick-save{grid-column:auto}}
@media(max-width:620px){.quick-entry-grid-r4{grid-template-columns:1fr}.quick-kind-field,.quick-receipt{grid-column:auto}}
/* ACCOUNT_RGV_TIPO_PRIMERO_R4_END */

/* ACCOUNT_RGV_DESCRIPCIONES_R5B_START */
#quick-description-list{display:none}
.quick-entry-r4 input[list="quick-description-list"]{background:#fff}
.quick-entry-r4 input[list="quick-description-list"]:focus{outline:2px solid rgba(30,118,210,.18)}
/* ACCOUNT_RGV_DESCRIPCIONES_R5B_END */



/* ACCOUNT_RGV_CATEGORIA_BUSCABLE_R6C_START */
#quick-entry-form input[name="category_label"]{
  min-width:220px;
}
#quick-entry-form input[name="category_label"]::placeholder{
  color:#64748b;
}
/* ACCOUNT_RGV_CATEGORIA_BUSCABLE_R6C_END */


/* ACCOUNT_RGV_BILINGUE_DEEPL_R7B_START */
.lang-toggle{font-weight:800;min-width:54px}
.quick-entry-bilingual .quick-translate-cell{display:flex;flex-direction:column;gap:6px;align-self:end}
.quick-entry-bilingual .quick-translation-preview{min-height:18px;color:#64748b;line-height:1.25}
.quick-entry-bilingual input[name="category_label"]{font-weight:700}
/* ACCOUNT_RGV_BILINGUE_DEEPL_R7B_END */

/* ACCOUNT_RGV_R8_ICONS_STYLE_START */
.account-icon{display:inline-flex;align-items:center;justify-content:center;min-width:1.35rem;margin-right:.25rem;font-size:1.15rem}
.module-icon{font-size:1.45rem}
.account-row strong::first-letter{letter-spacing:.01em}
.quick-translation-preview{display:block;max-width:100%;white-space:normal}
/* ACCOUNT_RGV_R8_ICONS_STYLE_END */

/* ACCOUNT_RGV_R9_DESCRIPTION_STYLE_START */
.quick-translate-cell{align-self:end;display:flex;gap:.5rem;align-items:center}
.quick-translate-cell button.small{min-width:2.75rem;width:auto;padding:.55rem .75rem;font-size:1rem}
.quick-translation-preview{font-size:.85rem;color:#405072}
/* ACCOUNT_RGV_R9_DESCRIPTION_STYLE_END */
/* ACCOUNT_RGV_R9C_LAYOUT_CSS_START */
.quick-entry-panel-r9c{
  overflow: visible !important;
}
#quick-entry-form.quick-entry-form-r9c{
  width: 100%;
}
#quick-entry-form .quick-translate-hidden-r9c,
#quick-entry-form [data-action="translate-description"],
#quick-entry-form .quick-translate-cell{
  display: none !important;
}
#quick-entry-form .quick-entry-grid-r9c{
  display: grid !important;
  grid-template-columns:
    minmax(190px,.95fr)
    minmax(135px,.65fr)
    minmax(380px,2.35fr)
    minmax(430px,2.65fr)
    minmax(175px,.85fr)
    minmax(145px,.7fr)
    minmax(150px,.75fr) !important;
  gap: 12px !important;
  align-items: end !important;
  width: 100% !important;
}
#quick-entry-form .quick-entry-grid-r9c label,
#quick-entry-form .quick-entry-grid-r9c .r9c-kind-field,
#quick-entry-form .quick-entry-grid-r9c .r9c-receipt-field{
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: .35rem !important;
}
#quick-entry-form .quick-entry-grid-r9c label > span,
#quick-entry-form .quick-entry-grid-r9c .quick-field-label{
  font-weight: 700 !important;
  font-size: .82rem !important;
  text-transform: uppercase !important;
  color: #243a5a !important;
}
#quick-entry-form .quick-entry-grid-r9c input,
#quick-entry-form .quick-entry-grid-r9c select,
#quick-entry-form .quick-entry-grid-r9c button{
  box-sizing: border-box !important;
}
#quick-entry-form .r9c-description-field{
  min-width: 380px !important;
}
#quick-entry-form .r9c-category-field{
  min-width: 430px !important;
}
#quick-entry-form .r9c-description-field input,
#quick-entry-form .r9c-category-field input{
  width: 100% !important;
}
#quick-entry-form .r9c-amount-field input{
  width: 100% !important;
}
#quick-entry-form .r9c-save-field{
  width: 100% !important;
  min-height: 42px !important;
  align-self: end !important;
}
#quick-entry-form .r9c-translation-preview{
  grid-column: 3 / span 2 !important;
  min-height: 1rem !important;
  font-size: .82rem !important;
  color: #405072 !important;
  padding-left: .1rem !important;
}
@media (max-width: 1450px){
  #quick-entry-form .quick-entry-grid-r9c{
    grid-template-columns:
      minmax(180px,.9fr)
      minmax(130px,.65fr)
      minmax(340px,2.1fr)
      minmax(380px,2.35fr)
      minmax(160px,.8fr)
      minmax(135px,.7fr)
      minmax(140px,.7fr) !important;
  }
  #quick-entry-form .r9c-description-field{ min-width: 340px !important; }
  #quick-entry-form .r9c-category-field{ min-width: 380px !important; }
}
@media (max-width: 1200px){
  #quick-entry-form .quick-entry-grid-r9c{
    grid-template-columns: 1fr 1fr 2fr 2fr !important;
  }
  #quick-entry-form .r9c-translation-preview{
    grid-column: 3 / span 2 !important;
  }
  #quick-entry-form .r9c-save-field{
    grid-column: 1 / span 2 !important;
  }
}
@media (max-width: 820px){
  #quick-entry-form .quick-entry-grid-r9c{
    grid-template-columns: 1fr !important;
  }
  #quick-entry-form .r9c-translation-preview,
  #quick-entry-form .r9c-save-field{
    grid-column: auto !important;
  }
}
/* ACCOUNT_RGV_R9C_LAYOUT_CSS_END */
/* ACCOUNT_RGV_R9D_CATEGORY_POPOVER_CSS_START */
.rgv-category-popover-r9d{
  position: fixed !important;
  z-index: 999999 !important;
  max-height: 320px !important;
  overflow: auto !important;
  background: #ffffff !important;
  border: 1px solid #b8c5d8 !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .22) !important;
  padding: 6px !important;
  font-size: 13px !important;
}
.rgv-category-item-r9d{
  display: block !important;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
  padding: 9px 10px !important;
  border-radius: 9px !important;
  cursor: pointer !important;
  color: #10233f !important;
}
.rgv-category-item-r9d:hover,
.rgv-category-item-r9d[aria-selected="true"]{
  background: #eaf2ff !important;
}
.rgv-category-main-r9d{
  display: block !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
.rgv-category-detail-r9d{
  display: block !important;
  margin-top: 2px !important;
  color: #52627a !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
.rgv-category-empty-r9d{
  padding: 12px !important;
  color: #64748b !important;
}
#quick-entry-form input[name="category_label"]{
  min-width: 420px !important;
}
/* ACCOUNT_RGV_R9D_CATEGORY_POPOVER_CSS_END */

