/* ADM YO EMPRENDO · PREMIUM CLARITY 1.2
   Área de trabajo clara + panel lateral espresso + detalles caramelo metálico.
   Diseñado solo para legibilidad y apariencia, sin alterar lógica de aplicación.
   La hoja se carga después de premium-metallic.css.
*/
:root {
  --adm-cream:#FAF6F0;
  --adm-paper:#FFFDF9;
  --adm-paper-2:#F6EEE5;
  --adm-espresso:#2B1D17;
  --adm-mocha:#6B4A3A;
  --adm-caramel:#C48A5A;
  --adm-latte:#E7D6C1;
  --adm-ink:#33261D;
  --adm-muted:#705B4D;
  --adm-border:#E3D2C0;
  --adm-shadow:0 12px 30px rgba(65,37,23,.085),inset 0 1px 0 rgba(255,255,255,.95);
  --bg:var(--adm-cream);
  --panel:var(--adm-paper);
  --ink:var(--adm-ink);
  --muted:var(--adm-muted);
  --line:var(--adm-border);
  --shadow:var(--adm-shadow);
  color-scheme:light;
}
body { font-family:Inter,'Segoe UI',system-ui,-apple-system,sans-serif!important; font-size:14px!important; line-height:1.53; }
.app-bg { display:none!important; }
.shell,.main {
  background:
    radial-gradient(ellipse 45% 35% at 98% 0%,rgba(196,138,90,.115),transparent 85%),
    radial-gradient(ellipse 50% 35% at 0% 100%,rgba(231,214,193,.35),transparent 88%),
    linear-gradient(165deg,#FAF6F0,#F8F1E9 72%,#F1E6DB)!important;
  color:var(--adm-ink)!important;
}
.main { min-height:100vh; }
.content {padding:25px 26px 42px!important; max-width:1680px;}
/* Premium dark chrome, always high contrast. */
.sidebar {box-shadow:14px 0 40px rgba(47,28,16,.13)!important;}
.brand strong {font-size:16px!important;line-height:1.25}
.brand small,.side-profile small {font-size:11px!important;}
.nav {padding-right:4px;}
.nav-group {margin:11px 0 16px;}
.nav-group>span {font-size:10px!important; letter-spacing:.12em!important;}
.nav button {min-height:41px;display:flex;gap:12px!important;font-size:14px!important;font-weight:710!important;line-height:1.15;padding:9px 12px!important;}
.nav button>span {color:inherit!important;line-height:1.25;}
.nav button.active {box-shadow:inset 4px 0 0 #F4D0A8,0 10px 16px rgba(10,5,2,.16)!important;}
.topbar {min-height:70px!important;padding:10px 22px!important;}
.topbar .avatar {flex:0 0 auto;}
.topbar .top-search {min-height:39px!important;font-size:13px!important;line-height:1.4;}
.portal-btn {font-size:12px!important; min-height:37px;}
.connection {font-size:11px!important;}
/* Page-level title and guidance. */
.title {margin-bottom:21px!important;align-items:flex-end;}
.title h1 {color:var(--adm-espresso)!important; text-shadow:none!important;font-size:clamp(25px,2.3vw,34px)!important;line-height:1.17; letter-spacing:-.036em;}
.title small {color:#90684D!important;font-size:11px!important;font-weight:900!important;letter-spacing:.11em!important;}
.title-actions {gap:8px!important;flex-wrap:wrap;}
.title-actions>.btn {min-height:42px;}
.muted,.panel small,.panel p,.panel .muted,.modal .muted,.filterbar small,.small {color:var(--adm-muted)!important;}
.small {font-size:12px!important;}
label,.filterbar label,.panel label,.modal label {color:#4B3629!important;font-size:13px!important;font-weight:760!important;}
/* Contrast-rich paper surfaces, rather than espresso-on-espresso. */
.panel,.filterbar,.modal,.table-wrap,.report-sheet,.checkout-card,
.academic-report,.auth-card,
.report-stat,.report-pay-grid>div,.projection-grid>div,.bank-balance-card,
.channel-card,.simple-bank-card,.simple-company-card {
  background:linear-gradient(162deg,#FFFEFC 0%,#FBF7F1 83%,#F8EFE4 100%)!important;
  color:var(--adm-ink)!important;
  border:1px solid var(--adm-border)!important;
  box-shadow:var(--adm-shadow)!important;
}
.panel.flat {background:linear-gradient(135deg,#FCF6EE,#F1E4D5)!important;}
.panel::before {background:linear-gradient(90deg,transparent,rgba(168,110,65,.35),transparent);}
.panel:hover,.metric:hover {box-shadow:0 18px 38px rgba(70,39,20,.13)!important;border-color:#D9BA98!important;}
.panel h1,.panel h2,.panel h3,.modal h1,.modal h2,.modal h3,
.report-section h2,.report-section h3,.report-section-title h3,.academic-report-section h3,
.company-card h2,.company-card h3,.class-card h2,.class-card h3 {
  color:var(--adm-espresso)!important;text-shadow:none!important;
}
.panel h2,.modal h2 {font-size:17px!important;line-height:1.25;}
.panel p,.panel small,.class-card small {color:var(--adm-muted)!important;}
.panel-head {gap:12px;align-items:center;}
.panel-head p {font-size:12px!important;margin-top:5px;}
.cards {gap:15px!important;grid-template-columns:repeat(auto-fit,minmax(185px,1fr))!important;}
.metric {padding:19px 19px 16px!important;min-height:132px;}
.metric .ico {width:47px!important;height:47px!important;font-size:25px!important;
  background:linear-gradient(140deg,#F9E9D4,#E8CAB1)!important;
  border:1px solid #E4C3A1!important;box-shadow:0 5px 10px rgba(124,83,48,.10)!important;}
.metric .value {color:var(--adm-espresso)!important;font-size:clamp(23px,2.0vw,31px)!important;line-height:1.16;margin-top:14px!important;}
.metric .label {color:#715645!important;font-size:12px!important;font-weight:720!important;line-height:1.4;margin-top:6px!important;}
.metric::after {background:radial-gradient(circle,rgba(224,183,133,.20),transparent 69%)!important;}
/* Brushed caramel action buttons, with deliberately legible secondary controls. */
.btn {min-height:38px; font-size:13px!important;padding:9px 13px!important;line-height:1.35!important;border-radius:11px!important;font-weight:790!important;letter-spacing:.008em;}
.btn.sm {font-size:12px!important;min-height:34px;padding:7px 10px!important;}
.btn.primary,.yoe-brand-save {background:linear-gradient(112deg,#F6DAB7 0%,#DDA774 27%,#C48A5A 57%,#F1CCA3 83%,#BD8051 100%)!important;color:#2B1D17!important;border-color:#BF8E66!important;}
.btn.secondary,.btn.ghost {background:linear-gradient(140deg,#FFFAF4,#ECDAC6)!important;color:#503528!important;border:1px solid #CDB39C!important;text-shadow:none!important;box-shadow:inset 0 1px 0 #FFF,0 4px 10px rgba(97,56,28,.09)!important;}
.btn.warning {background:linear-gradient(125deg,#F5E2C3,#E4C59A)!important;color:#6D451C!important;border-color:#D6A56B!important;}
.btn.success {background:linear-gradient(125deg,#D6E9D8,#AFD4BB)!important;color:#245238!important;border-color:#8EBBA0!important;}
.btn.danger {background:linear-gradient(135deg,#8E454B,#6B2E33)!important;color:#FFF8F5!important;border-color:#AD696C!important;}
.btn:focus-visible {outline:3px solid #D38C4F!important;outline-offset:2px!important;}
.quick-tabs {gap:8px!important;}
.quick-tabs button {font-size:12px!important;font-weight:760!important;min-height:36px;
  background:#FCF5ED!important;color:#56392B!important;border:1px solid #DCC3A9!important;box-shadow:none!important;}
.quick-tabs button.active {background:linear-gradient(110deg,#D59C6B,#E6BA8D)!important;color:#2C1D16!important;border-color:#C48A5A!important;box-shadow:0 4px 11px rgba(117,66,31,.14)!important;}
.quick-tabs button:hover:not(.active) {background:#F1E0CD!important;color:#3B281C!important;}
/* Inputs and forms */
.filterbar {gap:12px!important;padding:16px 18px!important;align-items:end;}
.filterbar label {min-width:160px;}
.field,input,select,textarea,.panel input,.panel select,.panel textarea,.modal input,.modal select,.modal textarea,
.yoe-brand-grid input,.yoe-brand-grid textarea {
  background:#FFFEFC!important;color:#322319!important;border:1px solid #CDB8A4!important;
  box-shadow:0 1px 3px rgba(37,20,12,.025)!important;
  min-height:40px;font-size:14px!important;border-radius:10px!important;
}
.field:focus,input:focus,select:focus,textarea:focus {outline:2px solid #C48A5A!important;outline-offset:1px!important;border-color:#BB7F4D!important;box-shadow:0 0 0 4px rgba(196,138,90,.12)!important;}
input::placeholder,textarea::placeholder {color:#8C7666!important;opacity:1!important;}
option,optgroup {color:#33261D;background:#FFFBF6;}
input[type="color"] {min-height:44px!important;}
input[type="checkbox"],input[type="radio"] {min-height:auto!important;width:18px;height:18px;}
/* Data tables */
.table-wrap {overflow-x:auto;}
.table {font-size:13px!important;line-height:1.47;}
.table th,.report-table th {
  background:linear-gradient(120deg,#654431,#4E3426)!important;color:#FFF4E9!important;
  padding:12px 13px!important;font-size:11px!important;font-weight:830!important;letter-spacing:.03em;
  border-bottom:1px solid #86614A!important;white-space:nowrap;
}
.table td,.report-table td {color:#322319!important;padding:12px 13px!important;border-bottom:1px solid #E9DDD0!important;font-size:13px!important;vertical-align:middle;}
.table td small,.report-table td small {color:#765E4E!important;font-size:11.5px!important;}
.table tbody tr:nth-child(even) td {background:rgba(238,221,201,.20)!important;}
.table tbody tr:hover td,.report-table tbody tr:hover td {background:rgba(196,138,90,.13)!important;}
.table td b,.table td strong {font-weight:800;}
.tag,.tag.gray {background:#EFE4D7!important;color:#65432F!important;border:1px solid #D8BDA4!important;font-size:11px!important;padding:5px 9px!important;}
.tag.amber {background:#FFF1CF!important;color:#875C18!important;border-color:#EAC880!important;}
.tag.red {background:#FBE5E1!important;color:#963F46!important;border-color:#E7B8B5!important;}
.tag.blue {background:#E5EFFA!important;color:#315A8C!important;border-color:#B8CFE7!important;}
/* Nested cards, selection and status blocks */
.company-card,.class-card,.company-card-fin,.company-selector>*,.operation-card,
.academic-kpi,.academic-kpi.featured,.sale-totals,.checkout-card .sale-totals,
.cart-item,.schedule-chip,.class-meta>div,.company-method-grid span,
.checkout-heading,.checkout-section,.checkout-choice,.payment-row-premium,.checkout-bag,.payment-index,.payment-choice,
.closing-main-card,.closing-entry-card,.closing-compare-grid>div,
.report-pay-grid>div,.channel-card,.report-stat,.projection-grid>div,.simple-kpi,
.simple-report-controls,.simple-expected-note,.simple-bank-card-head,.simple-flow-table-wrap {
  background:linear-gradient(143deg,#FFFDF9,#F7EBDD)!important;color:#35251B!important;border-color:#E1CDB7!important;
  box-shadow:0 4px 15px rgba(80,48,29,.045)!important;
}
.company-card h2,.company-card h3,.class-card h2,.class-card h3,.checkout-heading h2,.checkout-choice b,.checkout-label,.company-method-grid b {color:#36251A!important;}
.company-card small,.class-card small,.class-meta small,.company-method-grid small,.checkout-choice small,
.checkout-heading p,.schedule-summary,.bank-balance-card small {color:#745744!important;}
.company-card:hover,.class-card:hover {border-color:#C48A5A!important;transform:translateY(-2px);}
.company-card.active {outline:2px solid #C48A5A!important;}
.company-card .money,.company-card-fin .money {color:var(--adm-espresso)!important;font-size:23px!important;}
.rank-row {border-color:#E3D1C1!important;}
.alert-row,.alert-row.info {background:#F7EBDD!important;border-color:#E4C6A6!important;}
.alert-row.critical {background:#FBE9E6!important;border-color:#E8B3AD!important;}
.alert-row.warning {background:#FFF4DB!important;border-color:#E9C786!important;}
.alert-row b,.alert-row strong {color:#3B291D!important;}
.alert-row span small {color:#6F5445!important;}
/* Reports: dark luxury headings, ivory body. */
.report-sheet,.academic-report {background:var(--adm-paper)!important;color:var(--adm-ink)!important;}
.academic-report-header,.report-hero,.simple-report-head {
  background:radial-gradient(ellipse at 90% -20%,rgba(252,219,175,.25),transparent 64%),linear-gradient(115deg,#2B1D17,#765039 72%,#8F6042)!important;
  color:#FFF7EE!important;
}
.academic-report-header h2,.report-hero h2,.simple-report-head h2 {color:#FFF7EE!important;}
.academic-report-header small,.academic-report-header p,.simple-report-head p {color:#FFE5CE!important;}
.academic-report-section {border-color:#E3D2C0!important;}
.academic-report-section h3,.report-section h3 {color:#34251B!important;}
.academic-kpi small,.simple-kpi small {color:#705548!important;}
.academic-kpi strong,.simple-kpi strong {color:#352219!important;}
.report-footer {background:#F5EBDF!important;color:#5D4230!important;}
.simple-flow-table th {background:#69472F!important;color:#FFF6EB!important;}
.simple-flow-table td {background:#FFFBF7!important;color:#34251C!important;}
.simple-bank-card small,.simple-company-card small,.simple-expected-note {color:#6F5746!important;}
/* Login and brand modal intentionally retain Espresso immersive atmosphere. */
.auth-card,.auth-card-wrap .auth-card {background:linear-gradient(145deg,#FFF9F2,#F0DFCC)!important;color:#382719!important;}
.auth-card h2,.auth-card p,.auth-card label,.auth-card small {color:#473529!important;}
.auth-card .field,.auth-card input {background:#FFFDF9!important;color:#33261D!important;}
.yoe-brand-modal {color:#FFF7EE!important;background:linear-gradient(145deg,#493126,#251912)!important;}
.yoe-brand-grid label {color:#FFF3E6!important;}
.yoe-brand-grid input,.yoe-brand-grid textarea {color:#33261D!important;}
.modal-back {background:rgba(27,16,9,.70)!important;}
.modal-head {background:transparent!important;}
.modal-head button {background:#F3E2D0!important;color:#5F3B28!important;border-color:#CFB397!important;}
.dim-chip {background:#F2E1D0!important;color:#774E30!important;}
.toast {background:#3E281C!important;color:#FFF4E8!important;}
/* Extra informative components created for practical bank / enrollment management. */
.adm-info-strip {display:flex;gap:14px;align-items:flex-start;padding:17px 21px;border-radius:17px;background:linear-gradient(105deg,#FFF3E1,#F6E4D0)!important;border:1px solid #E5C49F;box-shadow:0 5px 18px rgba(87,49,27,.06);margin-bottom:16px;}
.adm-info-emoji {display:grid;place-items:center;background:#EBD0B4;border-radius:15px;min-width:45px;height:45px;font-size:23px;}
.adm-info-strip strong {font-size:16px;color:#442D1E;}
.adm-info-strip p {margin:4px 0 0;color:#5C4434;font-size:13px;line-height:1.55;}
.adm-stats-mini {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px;}
.adm-stats-mini>div {display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;gap:2px 9px;padding:14px 17px;border:1px solid var(--adm-border);background:rgba(255,253,249,.85);border-radius:15px;}
.adm-stats-mini>div>span {grid-row:1/3;font-size:22px;align-self:center;}
.adm-stats-mini b {font-size:22px;color:#322118;line-height:1;}
.adm-stats-mini small {font-size:11px;color:#765845;}
.adm-bank-unit {margin-bottom:17px!important;}
.adm-bank-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:16px;margin-top:15px;}
.adm-bank-card {padding:19px!important;display:flex;flex-direction:column;gap:11px;min-height:250px;}
.adm-bank-card.is-inactive {opacity:.84;}
.adm-bank-card-head {display:flex;align-items:center;gap:12px;min-width:0;}
.adm-bank-card-head .bank-logo {width:55px;height:55px;flex:0 0 55px;}
.adm-bank-card-head h2 {font-size:19px!important;margin:0 0 5px;overflow-wrap:anywhere;}
.adm-bank-card-head>div {min-width:0;}
.adm-bank-card>small {font-size:12px!important;color:#7A5D4D!important;}
.adm-bank-balance {font-size:clamp(22px,2vw,30px);font-weight:880;color:#332116;line-height:1.18;letter-spacing:-.025em;overflow-wrap:anywhere;}
.adm-bank-foot {font-size:12px!important;margin:0;color:#786050!important;}
.adm-bank-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid #E9DCCC;}
.adm-bank-actions>.btn {flex:1 1 auto;}
.adm-danger-summary {padding:18px;border:1px solid #E7CAB2;border-radius:15px;background:#FFF6EB;margin:5px 0 16px;color:#483021;}
.adm-danger-summary>b,.adm-danger-summary>strong {font-size:18px;color:#2B1D17;}
.adm-danger-summary p {font-size:13px!important;color:#5E4839!important;line-height:1.55;}
.adm-reference-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:14px;}
.adm-reference-grid span {padding:10px;border:1px solid #E5CFBA;background:#FFFDF9;border-radius:9px;text-transform:capitalize;font-size:12px;}
.adm-reference-grid b {display:block;color:#4B3020;font-size:18px;}
.adm-withdraw-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0;}
.adm-withdraw-metrics span {display:block;background:#FFFDF9;border:1px solid #E8D1BA;border-radius:10px;padding:9px;color:#6A503C;font-size:12px;}
.adm-withdraw-metrics b {display:block;font-size:17px;color:#322016;overflow-wrap:anywhere;}
.adm-safe-alert {background:#FFF0E9;border:1px solid #EAB6A6;border-radius:13px;padding:13px 15px;color:#763D2F;}
.adm-safe-alert p {color:#763D2F!important;font-size:13px!important;margin:5px 0;}
.adm-safe-note {background:#F0E6DB;border:1px solid #DAC3AB;border-radius:10px;padding:12px 14px;font-size:12px;color:#594230;}
.adm-check-row {display:flex!important;gap:10px;align-items:flex-start;font-size:13px!important;font-weight:760!important;margin-top:14px;cursor:pointer;}
.adm-check-row input {margin-top:2px;flex:0 0 auto;}
.adm-modal-actions {display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:13px;}
.adm-modal-actions .btn {min-height:42px;}
/* Column and modal behavior on narrow screens. */
@media(max-width:1100px){.content{padding:21px 18px 35px!important;}.topbar{padding-inline:12px!important;}}
@media(max-width:770px){
 .content {padding:18px 13px 30px!important;}
 .title {align-items:flex-start;flex-direction:column;gap:12px!important;}
 .title h1 {font-size:26px!important;}
 .title-actions {width:100%;}
 .adm-stats-mini {gap:7px;}
 .adm-stats-mini>div {padding:11px 9px;grid-template-columns:1fr;}
 .adm-stats-mini>div>span {grid-row:auto;}
 .adm-bank-grid {grid-template-columns:1fr;}
 .adm-withdraw-metrics {grid-template-columns:1fr 1fr;}
 .adm-reference-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .table th,.table td {padding:10px!important;}
 .filterbar {padding:12px!important;}
 .filterbar label {flex:1 1 175px;}
 .top-search {min-width:0;}
 .btn {font-size:13px!important;}
}
@media(max-width:460px){
 .cards {grid-template-columns:1fr!important;gap:10px!important;}
 .metric {min-height:120px;padding:13px!important;}
 .metric .value {font-size:21px!important;}
 .metric .label {font-size:11px!important;}
 .adm-info-strip{padding:14px;gap:10px;}
 .adm-bank-actions .btn{flex:1 1 100%;}
 .adm-withdraw-metrics{grid-template-columns:1fr;}
 .modal{max-width:calc(100vw - 18px)!important;}
 input,select,textarea,.field {font-size:16px!important;}
}
@media(prefers-reduced-motion:reduce){
 body::before,.btn,.panel,.company-card,.class-card,.portal-btn {animation:none!important;transition:none!important;}
}
@media print {
 :root {--bg:#fff;--panel:#fff;--ink:#212121;--muted:#424242;--line:#ddd;color-scheme:light;}
 html,body,.main,.shell,.content {background:#fff!important;color:#202020!important;}
 .panel,.report-sheet,.academic-report,.table-wrap,.simple-bank-card,.simple-company-card,.academic-kpi,.simple-kpi {background:#fff!important;color:#212121!important;box-shadow:none!important;border-color:#ddd!important;}
 .title,.topbar,.sidebar,.adm-info-strip,.adm-stats-mini,.adm-modal-actions {display:none!important;}
 .academic-kpi strong,.simple-kpi strong,.academic-report-section h3,.report-section h3 {color:#212121!important;}
 .academic-report-header,.report-hero,.simple-report-head {background:#514034!important;color:#fff!important;print-color-adjust:exact;-webkit-print-color-adjust:exact;}
 .academic-report-header h2,.report-hero h2,.simple-report-head h2 {color:#fff!important;}
 .table th,.report-table th,.simple-flow-table th {background:#ece6de!important;color:#212121!important;border-bottom:1px solid #bbb!important;}
 .table td,.report-table td,.simple-flow-table td {background:#fff!important;color:#212121!important;}
}
