/* =====================================================
   ADMIN SUCURSAL DASHBOARD - BASE LIMPIA 2026
===================================================== */

:root{
  --dash-bg:#f1f5f9;
  --dash-card:#ffffff;
  --dash-text:#111827;
  --dash-muted:#64748b;
  --dash-border:#e2e8f0;
  --dash-blue:#2563eb;
  --dash-blue2:#4f46e5;
}

body,
.page-wrapper,
.ad-page-content{
  background:var(--dash-bg) !important;
  color:var(--dash-text);
}

.page-content.container-fluid.dash-content-wrap{
  width:100% !important;
  max-width:none !important;
  padding:10px 28px 42px !important;
}

.adminS-dashboard-content{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box;
}

.adminS-dashboard-content > .row{
  margin-left:-9px !important;
  margin-right:-9px !important;
}

.adminS-dashboard-content > .row > [class*="col-"]{
  padding-left:9px !important;
  padding-right:9px !important;
}

/* =====================================================
   HERO SaaS
===================================================== */

.adminS-hero-pro{
  position:relative;
  overflow:hidden;
  width:100%;
  min-height:176px;
  margin:0 0 26px;
  padding:34px 38px;
  border-radius:26px;
  background:linear-gradient(135deg, var(--dash-blue) 0%, var(--dash-blue2) 100%);
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.adminS-hero-pro:before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.14;
  background-image:radial-gradient(circle, #fff 1.2px, transparent 1.2px);
  background-size:38px 38px;
}

.adminS-hero-pro:after{
  content:"";
  position:absolute;
  right:-70px;
  top:-70px;
  width:260px;
  height:260px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  box-shadow:-70px 135px 0 rgba(255,255,255,.06);
}

.adminS-hero-copy-modelo,
.adminS-hero-actions-modelo{
  position:relative;
  z-index:2;
}

.adminS-hero-date-modelo{
  display:block;
  margin-bottom:8px;
  color:#dbeafe;
  font-size:15px;
  font-weight:400;
}

.adminS-hero-copy-modelo h1{
  margin:0 0 8px !important;
  color:#ffffff !important;
  font-size:34px !important;
  line-height:1.12 !important;
  font-weight:600 !important;
  letter-spacing:-.6px;
}

.adminS-hero-copy-modelo p{
  max-width:600px;
  margin:0 !important;
  color:#e0ecff !important;
  font-size:16px !important;
  line-height:1.45 !important;
  font-weight:400 !important;
}

.adminS-hero-copy-modelo p strong{
  color:#ffffff !important;
  font-weight:500 !important;
}

.adminS-hero-actions-modelo{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.adminS-hero-actions-modelo a{
  height:48px;
  padding:0 20px;
  border-radius:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#ffffff !important;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.20);
  font-size:15px;
  font-weight:500;
  text-decoration:none !important;
}

.adminS-hero-actions-modelo a:first-child{
  background:#ffffff !important;
  color:var(--dash-blue) !important;
}






/* =====================================================
   KPI CARDS SaaS
===================================================== */

.dashboard-kpi-row{
  margin-left:-9px !important;
  margin-right:-9px !important;
  margin-bottom:26px !important;
}

.dashboard-kpi-row > div{
  padding-left:9px !important;
  padding-right:9px !important;
}

.kpi-model,
.dashboard-kpi-card{
  min-height:190px !important;
  padding:26px 28px !important;
  border-radius:20px !important;
  position:relative;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  overflow:hidden !important;
  border:1px solid var(--dash-border) !important;
  background:var(--dash-card) !important;
  text-decoration:none !important;
}

.kpi-model .dashboard-kpi-icon{
  width:50px !important;
  height:50px !important;
  border-radius:16px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:22px !important;
  margin:0 0 18px !important;
  color:#ffffff !important;
}

.kpi-model .dashboard-kpi-info h3{
  font-size:30px !important;
  font-weight:600 !important;
  margin:0 0 8px !important;
  color:#111827 !important;
  line-height:1 !important;
  letter-spacing:-.4px;
}

.kpi-model .dashboard-kpi-info p{
  font-size:15px !important;
  font-weight:400 !important;
  color:#334155 !important;
  margin:0 0 14px !important;
}

.kpi-model .dashboard-kpi-info small{
  display:block !important;
  width:100% !important;
  padding-top:13px !important;
  border-top:1px solid rgba(15,23,42,.10) !important;
  color:#64748b !important;
  font-size:13px !important;
  font-weight:400 !important;
}

.kpi-model-badge{
  position:absolute;
  top:22px;
  right:22px;
  width:31px;
  height:22px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.80);
  color:#10b981;
  font-size:14px;
  font-weight:500;
}

.kpi-model-blue{
  background:linear-gradient(135deg,#e8f3ff 0%,#dceeff 100%) !important;
  border-left:4px solid #3b82f6 !important;
}

.kpi-model-green{
  background:linear-gradient(135deg,#e5fff3 0%,#d4f8e7 100%) !important;
  border-left:4px solid #10b981 !important;
}

.kpi-model-yellow{
  background:linear-gradient(135deg,#fff8dc 0%,#fff0b2 100%) !important;
  border-left:4px solid #f59e0b !important;
}

.kpi-model-purple{
  background:linear-gradient(135deg,#f3ecff 0%,#e8ddff 100%) !important;
  border-left:4px solid #7c3aed !important;
}

.icon-blue{background:#2563eb !important;}
.icon-green{background:#10b981 !important;}
.icon-orange{background:#f59e0b !important;}
.icon-purple{background:#7c3aed !important;}













/* =====================================================
   BLOQUES INFERIORES SaaS
===================================================== */

.adminS-model-bottom-row{
  margin-top:26px;
  margin-bottom:26px;
  align-items:stretch;
}

.adminS-model-bottom-row > [class*="col-"]{
  display:flex;
}

.adminS-model-panel{
  width:100%;
  min-height:320px;
  background:#ffffff;
  border:1px solid var(--dash-border);
  border-radius:20px;
  padding:24px;
}

.adminS-model-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-bottom:16px;
  border-bottom:1px solid #e9eef5;
  margin-bottom:16px;
}

.adminS-model-panel-head div{
  display:flex;
  align-items:center;
  gap:12px;
}

.adminS-model-panel-head i{
  color:var(--dash-blue);
  font-size:18px;
}

.adminS-model-panel-head h4{
  margin:0;
  color:#111827;
  font-size:18px;
  font-weight:600;
}

.adminS-model-panel-head a{
  color:var(--dash-blue);
  font-size:14px;
  font-weight:400;
  text-decoration:none;
}

.adminS-model-empty{
  min-height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#94a3b8;
  font-size:15px;
  font-weight:400;
}

.adminS-model-rate{
  text-align:center;
  border-color:#fde68a;
}

.adminS-model-donut{
  display:flex;
  justify-content:center;
  margin:24px 0;
}

.adminS-model-donut-ring{
  width:150px;
  height:150px;
  border-radius:50%;
  background:conic-gradient(#f59e0b calc(var(--percent) * 1%), #edf2f7 0);
  display:flex;
  align-items:center;
  justify-content:center;
}

.adminS-model-donut-ring > div{
  width:110px;
  height:110px;
  border-radius:50%;
  background:#ffffff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.adminS-model-donut-ring strong{
  color:#111827;
  font-size:34px;
  font-weight:600;
  line-height:1;
}

.adminS-model-donut-ring span{
  color:#94a3b8;
  font-size:14px;
  font-weight:400;
}

.adminS-model-rate p{
  margin:0;
  color:#64748b;
  font-size:15px;
  font-weight:400;
}

.adminS-model-activity{
  background:linear-gradient(135deg,#ffffff,#f0fff7);
}

.adminS-activity-row{
  margin-bottom:18px;
}

.adminS-activity-row div:first-child,
.adminS-activity-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}

.adminS-activity-row span,
.adminS-activity-footer span{
  color:#64748b;
  font-size:15px;
  font-weight:400;
}

.adminS-activity-row strong,
.adminS-activity-footer strong{
  color:#111827;
  font-size:18px;
  font-weight:600;
}

.adminS-activity-bar{
  height:10px;
  border-radius:999px;
  background:#eef2f7;
  overflow:hidden;
}

.adminS-activity-bar em{
  display:block;
  height:100%;
  border-radius:999px;
  background:#2563eb;
}

.adminS-activity-row.green .adminS-activity-bar em{
  background:#10b981;
}

.adminS-activity-row.orange .adminS-activity-bar em{
  background:#f59e0b;
}

.adminS-activity-footer{
  border-top:1px solid #e9eef5;
  padding-top:16px;
}











/* =====================================================
   GRÁFICOS + SUNAT / CAJA SaaS
===================================================== */

.adminS-model-chart-row{
  margin-top:26px !important;
  margin-bottom:26px !important;
  align-items:stretch !important;
}

.adminS-model-chart-row > [class*="col-"]{
  display:flex !important;
}

.adminS-model-chart-panel,
.adminS-mini-card-pro{
  width:100% !important;
  background:#ffffff !important;
  border:1px solid var(--dash-border) !important;
  border-radius:20px !important;
  padding:24px !important;
}

.adminS-model-chart-head,
.adminS-sunat-head-pro,
.adminS-caja-head-pro{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:18px !important;
  margin-bottom:18px !important;
}

.adminS-model-chart-head h4,
.adminS-sunat-head-pro h4,
.adminS-caja-head-pro h4{
  margin:0 !important;
  color:#111827 !important;
  font-size:18px !important;
  font-weight:600 !important;
}

.adminS-model-chart-head p,
.adminS-sunat-head-pro p,
.adminS-caja-head-pro p{
  margin:6px 0 0 !important;
  color:#64748b !important;
  font-size:14px !important;
  font-weight:400 !important;
}

.adminS-model-chart-legend{
  display:flex !important;
  gap:14px !important;
  color:#64748b !important;
  font-size:13px !important;
  font-weight:400 !important;
}

.adminS-model-chart-legend .dot{
  width:10px !important;
  height:10px !important;
  display:inline-block !important;
  border-radius:50% !important;
  margin-right:5px !important;
}

.adminS-model-chart-legend .blue{background:#2563eb !important;}
.adminS-model-chart-legend .green{background:#10b981 !important;}

.adminS-model-chart-body{
  height:300px !important;
}

.adminS-model-chart-body.donut{
  height:300px !important;
  display:flex;
  align-items:center;
  justify-content:center;
}

.adminS-model-chart-body canvas{
  width:100% !important;
  height:100% !important;
}

.adminS-sunat-caja-row{
  margin-top:26px !important;
  margin-bottom:26px !important;
  align-items:stretch !important;
}

.adminS-sunat-caja-row > [class*="col-"]{
  display:flex !important;
}

.adminS-sunat-card-pro,
.adminS-caja-card-pro{
  width:100% !important;
  background:#ffffff !important;
  border:1px solid var(--dash-border) !important;
  border-radius:20px !important;
  padding:24px !important;
}

.adminS-sunat-head-pro span,
.adminS-caja-head-pro span{
  display:inline-flex;
  align-items:center;
  height:30px;
  padding:0 12px;
  border-radius:999px;
  background:#e6f7ff;
  color:#04779b;
  font-size:12px;
  font-weight:500;
  text-transform:uppercase;
}

.adminS-head-action-pro{
  height:38px;
  padding:0 14px;
  border-radius:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#ecfeff;
  color:#04779b !important;
  border:1px solid #bae6fd;
  font-size:14px;
  font-weight:500;
  text-decoration:none !important;
}

.adminS-sunat-grid-pro.compact{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.adminS-caja-grid-pro.compact{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.adminS-sunat-box-pro,
.adminS-caja-box-pro{
  min-height:112px;
  border-radius:18px;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.adminS-sunat-box-pro small,
.adminS-caja-box-pro small{
  font-size:12px;
  font-weight:500;
  text-transform:uppercase;
  margin-bottom:10px;
}

.adminS-sunat-box-pro strong,
.adminS-caja-box-pro strong{
  font-size:26px;
  line-height:1;
  font-weight:600;
}

.adminS-sunat-box-pro.warning,
.adminS-caja-box-pro.orange{
  background:#fff6e8;
  color:#d97706;
}

.adminS-sunat-box-pro.success,
.adminS-caja-box-pro.green{
  background:#eafaf2;
  color:#059669;
}

.adminS-sunat-box-pro.danger,
.adminS-caja-box-pro.red{
  background:#fff0f3;
  color:#dc2626;
}

.adminS-caja-box-pro.cyan{
  background:#e8fbff;
  color:#0891b2;
}









/* =====================================================
   TOP TRATAMIENTOS + RENDIMIENTO DOCTOR SaaS
===================================================== */

.adminS-produccion-doctor-row{
  margin-top:26px !important;
  margin-bottom:26px !important;
  align-items:stretch !important;
}

.adminS-produccion-doctor-row > [class*="col-"]{
  display:flex !important;
}

.adminS-rank-card{
  width:100%;
  background:#ffffff;
  border:1px solid var(--dash-border);
  border-radius:20px;
  padding:24px;
}

.adminS-rank-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}

.adminS-rank-badge{
  display:inline-flex;
  height:30px;
  align-items:center;
  padding:0 12px;
  border-radius:999px;
  background:#e6f7ff;
  color:#04779b;
  font-size:12px;
  font-weight:500;
  text-transform:uppercase;
  margin-bottom:10px;
}

.adminS-rank-head h3{
  margin:0;
  color:#111827;
  font-size:22px;
  font-weight:500;
}

.adminS-rank-head p{
  margin:8px 0 0;
  color:#64748b;
  font-size:15px;
  font-weight:400;
}

.adminS-rank-icon{
  width:52px;
  height:52px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ecfeff;
  color:#04779b;
  font-size:22px;
}

.adminS-rank-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.adminS-rank-item{
  display:flex;
  align-items:center;
  gap:15px;
  padding:16px;
  border:1px solid #e6eef8;
  border-radius:18px;
  background:#f8fbff;
}

.adminS-rank-number{
  width:44px;
  height:44px;
  border-radius:14px;
  background:#2563eb;
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:17px;
  font-weight:500;
  flex:0 0 44px;
}

.adminS-rank-info{
  flex:1;
  min-width:0;
}

.adminS-rank-info strong{
  display:block;
  color:#111827;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.adminS-rank-info span{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:13px;
  font-weight:400;
}

.adminS-rank-money{
  color:#111827;
  font-size:14px;
  font-weight:500;
  white-space:nowrap;
}

.adminS-doctor-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.adminS-doctor-item{
  display:flex;
  gap:14px;
  padding:16px;
  border:1px solid #e6eef8;
  border-radius:18px;
  background:#ffffff;
}

.adminS-doctor-avatar{
  width:46px;
  height:46px;
  border-radius:50%;
  background:#2563eb;
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  font-weight:500;
  flex:0 0 46px;
}

.adminS-doctor-info{
  flex:1;
  min-width:0;
}

.adminS-doctor-info strong{
  display:block;
  color:#111827;
  font-size:14px;
  font-weight:600;
}

.adminS-doctor-info > span{
  display:block;
  color:#64748b;
  font-size:13px;
  font-weight:400;
  margin-top:3px;
}

.adminS-doctor-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:12px 0;
}

.adminS-doctor-stats b{
  display:block;
  color:#111827;
  font-size:17px;
  font-weight:600;
}

.adminS-doctor-stats small{
  color:#64748b;
  font-size:12px;
  font-weight:400;
}

.adminS-doctor-stats .green b{
  color:#059669;
}

.adminS-doctor-stats .orange b{
  color:#f59e0b;
}

.adminS-doctor-bar{
  height:7px;
  background:#eef2f7;
  border-radius:999px;
  overflow:hidden;
}

.adminS-doctor-bar em{
  display:block;
  height:100%;
  border-radius:999px;
  background:#2563eb;
}

.adminS-rank-link{
  color:#2563eb;
  font-size:14px;
  font-weight:400;
  text-decoration:none;
}











/* =====================================================
   RESPONSIVE ADMIN SUCURSAL DASHBOARD
===================================================== */

@media(max-width: 991px){

  .page-content.container-fluid.dash-content-wrap{
    padding:22px 18px 36px !important;
  }

  .adminS-hero-pro{
    min-height:auto;
    padding:28px;
    flex-direction:column;
    align-items:flex-start;
    gap:22px;
  }

  .adminS-hero-copy-modelo h1{
    font-size:30px !important;
    line-height:1.15 !important;
  }

  .adminS-hero-copy-modelo p{
    max-width:100%;
    font-size:15px !important;
  }

  .adminS-hero-actions-modelo{
    width:100%;
    justify-content:flex-start;
  }

  .adminS-hero-actions-modelo a{
    height:44px;
    padding:0 16px;
    font-size:14px;
  }

  .dashboard-kpi-row > div{
    margin-bottom:18px !important;
  }

  .kpi-model,
  .dashboard-kpi-card{
    min-height:170px !important;
  }

  .adminS-model-bottom-row > [class*="col-"],
  .adminS-model-chart-row > [class*="col-"],
  .adminS-sunat-caja-row > [class*="col-"],
  .adminS-produccion-doctor-row > [class*="col-"]{
    margin-bottom:18px !important;
  }

  .adminS-sunat-grid-pro.compact,
  .adminS-caja-grid-pro.compact{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width: 575px){

  .page-content.container-fluid.dash-content-wrap{
    padding:18px 14px 32px !important;
  }

  .adminS-hero-pro{
    padding:26px 22px;
    border-radius:22px;
  }

  .adminS-hero-date-modelo{
    font-size:14px;
  }

  .adminS-hero-copy-modelo h1{
    font-size:28px !important;
    line-height:1.12 !important;
    max-width:100%;
  }

  .adminS-hero-copy-modelo p{
    font-size:15px !important;
    line-height:1.45 !important;
    max-width:100%;
  }

  .adminS-hero-actions-modelo{
    position:relative;
    right:auto;
    top:auto;
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-top:18px;
  }

  .adminS-hero-actions-modelo a{
    width:100%;
    height:46px;
    padding:0 14px;
    border-radius:15px;
    font-size:14px;
    justify-content:center;
  }

  .dashboard-kpi-row{
    margin-left:0 !important;
    margin-right:0 !important;
  }

  .dashboard-kpi-row > div{
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .kpi-model,
  .dashboard-kpi-card{
    min-height:170px !important;
    padding:24px !important;
    border-radius:20px !important;
  }

  .adminS-model-panel,
  .adminS-model-chart-panel,
  .adminS-sunat-card-pro,
  .adminS-caja-card-pro,
  .adminS-rank-card{
    border-radius:20px !important;
    padding:20px !important;
  }

  .adminS-sunat-grid-pro.compact,
  .adminS-caja-grid-pro.compact{
    grid-template-columns:1fr;
  }

  .adminS-doctor-stats{
    grid-template-columns:repeat(3,1fr);
  }
}










/* ADMIN GENERAL CORPORATIVO */
.adminG-dashboard-pro{
    padding:18px 0 35px;
}

.adminG-hero-pro{
    background:linear-gradient(135deg,#071b3a 0%,#0f3b75 55%,#0ea5e9 100%);
    border-radius:26px;
    padding:30px;
    color:#fff;
    display:flex;
    justify-content:space-between;
    gap:25px;
    box-shadow:0 20px 45px rgba(15,23,42,.18);
    margin-bottom:22px;
}

.adminG-hero-label{
    display:inline-flex;
    align-items:center;
    gap:8px;

    padding:7px 12px;

    border-radius:999px;

    background:rgba(255,255,255,.12);

    font-size:12px;

    font-weight:500;

    letter-spacing:.2px;
}

.adminG-hero-pro h1{

    margin:14px 0 10px;

    color:#ffffff;

    font-size:38px;

    line-height:1.08;

    font-weight:600;

    letter-spacing:-1px;
}

.adminG-hero-pro p{

    max-width:720px;

    margin:0;

    color:rgba(255,255,255,.88);

    font-size:17px;

    line-height:1.6;

    font-weight:400;
}

.adminG-hero-pills{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:18px;
}

.adminG-hero-pills span{
    background:rgba(255,255,255,.13);
    border:1px solid rgba(255,255,255,.18);
    border-radius:14px;
    padding:9px 13px;
    font-size:13px;
}

.adminG-hero-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    min-width:185px;
}

.adminG-hero-btn{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    padding:13px 18px;

    border-radius:16px;

    text-decoration:none;

    font-size:15px;

    font-weight:500;

    color:#ffffff;

    border:1px solid rgba(255,255,255,.18);

    background:rgba(255,255,255,.10);

    transition:.25s;
}

.adminG-btn-white{
    background:#fff;
    color:#0f3b75;
}

.adminG-kpi-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    margin-bottom:16px;
}

.adminG-kpi-card{
    position:relative;

    min-height:168px;

    padding:20px 21px;

    border:1px solid #e6edf5;

    border-radius:18px;

    background:#ffffff;

    box-shadow:
        0 1px 2px rgba(15,23,42,.02),
        0 8px 24px rgba(15,23,42,.035);

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.adminG-kpi-card:hover{
    transform:translateY(-2px);

    border-color:#d5e1ef;

    box-shadow:
        0 2px 4px rgba(15,23,42,.025),
        0 12px 28px rgba(15,23,42,.055);
}

.adminG-kpi-icon{
    width:42px;
    height:42px;

    margin-bottom:16px;

    border-radius:13px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:17px;

    line-height:1;
}

.adminG-kpi-card h2{
    margin:0 0 6px;

    color:#0b1830;

    font-size:26px;

    line-height:1.08;

    font-weight:600;

    letter-spacing:-.6px;
}

.adminG-kpi-card p{
    margin:0 0 5px;

    color:#27364d;

    font-size:14px;

    line-height:1.35;

    font-weight:500;
}

.adminG-kpi-card span{
    display:block;

    color:#718198;

    font-size:13px;

    line-height:1.45;

    font-weight:400;
}

.kpi-blue .adminG-kpi-icon{background:#eaf2ff;color:#2563eb;}
.kpi-green .adminG-kpi-icon{background:#eafaf3;color:#10b981;}
.kpi-orange .adminG-kpi-icon{background:#fff4e5;color:#f59e0b;}
.kpi-purple .adminG-kpi-icon{background:#f3e8ff;color:#8b5cf6;}
.kpi-money .adminG-kpi-icon{background:#ecfdf5;color:#059669;}

.adminG-two-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    margin-bottom:16px;
    align-items:start;
}

.adminG-panel-card{
    min-width:0;
    height:100%;

    padding:20px;

    border:1px solid #e5edf6;
    border-radius:19px;

    background:#ffffff;

    box-shadow:
        0 1px 2px rgba(15,23,42,.02),
        0 8px 22px rgba(15,23,42,.035);
}

.adminG-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:14px;

    margin-bottom:16px;
}

.adminG-panel-head h3{
    display:flex;
    align-items:center;
    gap:8px;

    margin:0;

    color:#15233a;

    font-size:16px;
    line-height:1.3;

    font-weight:500;

    letter-spacing:-.15px;
}


.adminG-panel-head h3 i{
    color:#31547d;

    font-size:15px;

    line-height:1;
}

.adminG-panel-head > span{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-height:30px;

    padding:0 11px;

    border-radius:999px;

    background:#f1f5f9;

    color:#65758b;

    font-size:11px;

    font-weight:500;

    white-space:nowrap;
}

.adminG-mini-list{
    display:grid;

    grid-template-columns:repeat(4,minmax(0,1fr));

    gap:10px;
}

.adminG-mini-list > div,
.adminG-finance-box > div{
    min-width:0;

    padding:14px;

    border:1px solid #dce8f6;

    border-radius:14px;

    background:#f8fbff;
}

.adminG-mini-list span,
.adminG-finance-box small{
    display:block;

    color:#718198;

    font-size:12px;

    line-height:1.4;

    font-weight:400;
}

.adminG-mini-list strong,
.adminG-finance-box strong{
    display:block;

    margin-top:7px;

    color:#0b1830;

    font-size:21px;

    line-height:1.1;

    font-weight:600;

    letter-spacing:-.4px;
}

.adminG-finance-box{
    display:grid;

    grid-template-columns:repeat(3,minmax(0,1fr));

    gap:10px;
}

.adminG-empty-state{
    min-height:120px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#64748b;
    background:#f8fbff;
    border:1px dashed #cbd5e1;
    border-radius:18px;
}

.adminG-empty-state i{
    font-size:28px;
    margin-bottom:8px;
    color:#2563eb;
}

@media(max-width:991px){
    .adminG-hero-pro{
        flex-direction:column;
        padding:24px;
    }

    .adminG-hero-actions{
        flex-direction:row;
        flex-wrap:wrap;
    }

    .adminG-kpi-grid,
    .adminG-two-grid{
        grid-template-columns:1fr 1fr;
    }

    .adminG-mini-list,
    .adminG-finance-box,
    .adminG-sunat-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:575px){

  .adminG-two-grid{
    grid-template-columns:1fr;
}

.adminG-panel-card{
    padding:17px;

    border-radius:17px;
}

.adminG-panel-head{
    margin-bottom:14px;
}

.adminG-panel-head h3{
    font-size:15px;
}

.adminG-mini-list{
    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:9px;
}

.adminG-finance-box{
    grid-template-columns:1fr;

    gap:9px;
}

.adminG-mini-list > div,
.adminG-finance-box > div{
    padding:13px;

    border-radius:13px;
}

.adminG-mini-list strong,
.adminG-finance-box strong{
    font-size:19px;
}
    .adminG-dashboard-pro{
        padding:10px 0 25px;
    }

    .adminG-hero-pro{
        border-radius:20px;
        padding:20px;
    }

    .adminG-hero-pro h1{
        font-size:24px;
    }

    .adminG-kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.adminG-two-grid,
.adminG-mini-list,
.adminG-finance-box,
.adminG-sunat-grid{
    grid-template-columns:1fr;
}

.adminG-kpi-card{
    min-height:150px;

    padding:17px 15px;

    border-radius:17px;
}

.adminG-kpi-icon{
    width:38px;
    height:38px;

    margin-bottom:14px;

    border-radius:12px;

    font-size:16px;
}

.adminG-kpi-card h2{
    font-size:22px;

    letter-spacing:-.4px;
}

.adminG-kpi-card p{
    font-size:13px;
}

.adminG-kpi-card span{
    font-size:12px;
}

    .adminG-hero-actions{
        flex-direction:column;
    }
}











.adminG-ranking-list{
    display:flex;

    flex-direction:column;

    gap:12px;
}

.ranking-item{
    padding:15px 16px;

    border:1px solid #e4edf7;

    border-radius:15px;

    background:#ffffff;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.ranking-item:hover{
    transform:translateY(-1px);

    border-color:#d4e1ef;

    box-shadow:0 8px 20px rgba(15,23,42,.04);
}
.ranking-top{
    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:10px;
}

.ranking-pos{
    width:32px;
    height:32px;

    flex:0 0 32px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#2563eb;

    color:#ffffff;

    font-size:13px;

    font-weight:600;
}

.ranking-name{
    flex:1;

    min-width:0;

    padding-left:0;

    color:#27364d;

    font-size:14px;

    font-weight:500;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
}

.ranking-total{
    flex:0 0 auto;

    color:#2563eb;

    font-size:14px;

    font-weight:600;

    white-space:nowrap;
}

.ranking-bar{
    height:7px;

    overflow:hidden;

    border-radius:999px;

    background:#edf3ff;
}

.ranking-fill{
    height:100%;

    border-radius:999px;

    background:linear-gradient(90deg,#2563eb,#22c55e);
}

.ranking-footer{
    margin-top:8px;

    color:#718198;

    font-size:12px;

    font-weight:400;
}










.ranking-doctor-item .ranking-pos{
    background:#0ea5e9;
}

.doctor-fill{
    background:linear-gradient(90deg,#0ea5e9,#2563eb);
}



/* =====================================================
   ADMIN GENERAL - TOP TRATAMIENTOS PRO
===================================================== */
.adminG-ranking-item{
    margin-bottom:11px;

    padding:13px 15px;

    border:1px solid #dce8f6;

    border-radius:14px;

    background:#f8fbff;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.adminG-ranking-item:hover{
    transform:translateY(-1px);

    border-color:#cfdeee;

    box-shadow:0 7px 18px rgba(15,23,42,.04);
}

.adminG-ranking-head{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:12px;

    margin-bottom:10px;
}

.adminG-ranking-left{
    display:flex;
    align-items:center;

    min-width:0;

    gap:11px;
}

.adminG-ranking-badge{
    width:28px;
    height:28px;

    flex:0 0 28px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:9px;

    background:linear-gradient(135deg,#2563eb,#0ea5e9);

    color:#ffffff;

    font-size:12px;

    font-weight:600;
}

.adminG-ranking-left strong{
    min-width:0;

    overflow:hidden;

    color:#15233a;

    font-size:13px;

    font-weight:500;

    white-space:nowrap;

    text-overflow:ellipsis;
}

.adminG-ranking-money{
    flex:0 0 auto;

    color:#2563eb;

    font-size:13px;

    font-weight:600;

    white-space:nowrap;
}

.adminG-progress{
    height:6px;

    overflow:hidden;

    margin-bottom:7px;

    border-radius:999px;

    background:#eaf1fb;
}

.adminG-progress span{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#2563eb,#22c55e);
}

.adminG-ranking-item small{
    color:#718198;

    font-size:12px;

    font-weight:400;
}





/* ADMIN GENERAL - SUNAT CORPORATIVO */

.adminG-sunat-corp-card{
    min-height: 560px;
}

.adminG-sunat-status-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin-top:20px;
}

.sunat-status-card{
    min-height:96px;
    border-radius:16px;
    border:1px solid #dbeafe;
    background:#f8fbff;
    padding:18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.sunat-status-card strong{
    display:block;
    font-size:20px;
    font-weight:500;
    color:#06162f;
}

.sunat-status-card span{
    color:#64748b;
    font-weight:400;
}

.sunat-status-card i{
    width:48px;
    height:48px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
}

.sunat-status-card.sunat-ok{border-left:5px solid #22c55e;}
.sunat-status-card.sunat-ok i{background:#dcfce7;color:#22c55e;}

.sunat-status-card.sunat-warn{border-left:5px solid #f59e0b;}
.sunat-status-card.sunat-warn i{background:#fff7ed;color:#f59e0b;}

.sunat-status-card.sunat-bad{border-left:5px solid #ef4444;}
.sunat-status-card.sunat-bad i{background:#fee2e2;color:#ef4444;}

.adminG-sunat-chart-title{
    margin-top:28px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.adminG-sunat-chart-title h4{
    margin:0;
    font-size:18px;
    font-weight:500;
    color:#06162f;
}

.adminG-sunat-chart-title p{
    margin:5px 0 0;
    color:#64748b;
    font-weight:500;
}

.adminG-sunat-chart-title span{
    background:#f8fbff;
    border:1px solid #dbeafe;
    border-radius:14px;
    padding:10px 14px;
    font-weight:500;
    color:#334155;
}

.adminG-sunat-chart-area{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:28px;
    align-items:center;
    margin-top:20px;
}

.adminG-sunat-donut-box{
    width:280px;
    height:280px;
    position:relative;
}

.adminG-sunat-total-center{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    pointer-events:none;
}

.adminG-sunat-total-center strong{
    font-size:34px;
    font-weight:900;
    color:#06162f;
}

.adminG-sunat-total-center span{
    color:#64748b;
    font-weight:600;
}

.adminG-sunat-table-legend{
    display:flex;
    flex-direction:column;
}

.adminG-sunat-table-legend div{
    display:grid;
    grid-template-columns:20px 1fr auto;
    align-items:center;
    gap:10px;
    padding:14px 0;
    border-bottom:1px solid #e5edf8;
}

.adminG-sunat-table-legend strong{
    color:#06162f;
    font-weight:500;
}

.adminG-sunat-table-legend b{
    color:#06162f;
    font-weight:500;
}

.adminG-sunat-table-legend .dot{
    width:14px;
    height:14px;
    border-radius:50%;
}

.adminG-sunat-table-legend .dot.ok{background:#22c55e;}
.adminG-sunat-table-legend .dot.warn{background:#f59e0b;}
.adminG-sunat-table-legend .dot.bad{background:#ef4444;}

.adminG-sunat-corp-note{
    margin-top:22px;
    background:#eff6ff;
    color:#2563eb;
    border-radius:14px;
    padding:15px 18px;
    font-weight:400;
}

.adminG-sunat-corp-note i{
    margin-right:10px;
}

@media(max-width:900px){
    .adminG-sunat-status-row,
    .adminG-sunat-chart-area{
        grid-template-columns:1fr;
    }

    .adminG-sunat-donut-box{
        margin:auto;
    }
}





/* AJUSTE FINO SUNAT - CENTRADO Y FILTRO */

.adminG-sunat-donut-box{
    width: 280px !important;
    height: 280px !important;
    position: relative !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adminG-sunat-donut-box canvas{
    width: 280px !important;
    height: 280px !important;
    display: block;
}

.adminG-sunat-total-center{
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90px;
    height: 70px;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    line-height: 1;
    z-index: 3;
}

.adminG-sunat-total-center strong{
    font-size: 34px;
    font-weight: 900;
    color: #07172f;
    line-height: 1;
}

.adminG-sunat-total-center span{
    margin-top: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
}

.adminG-sunat-filter{
    height: 46px;
    min-width: 120px;
    border: 1px solid #dbeafe;
    border-radius: 15px;
    background: #f8fbff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    padding: 0 38px 0 16px;
    outline: none;
    cursor: pointer;
}

.adminG-sunat-filter:focus{
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}







.adminG-sunat-donut-box{

    width:280px;
    height:280px;

    position:relative;

    display:flex;
    justify-content:center;
    align-items:center;

}

.adminG-sunat-donut-box canvas{

    width:280px!important;
    height:280px!important;

}

.adminG-sunat-total-center{

    position:absolute;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    pointer-events:none;

}

.adminG-sunat-total-wrap{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    margin-top:2px;

}

.adminG-sunat-total-wrap strong{

    font-size:28px;

    font-weight:600;

    line-height:120px;

    color:#06162f;

}

.adminG-sunat-total-wrap small{

    margin-top:-30px;

    font-size:16px;

    font-weight:600;

    color:#5d6d84;

}







.adminG-meta-section{
    margin-top:24px;
}

.adminG-meta-card{
    background:#ffffff;
    border:1px solid #e5eef8;
    border-radius:24px;
    padding:26px;
    display:grid;
    grid-template-columns:1.6fr .9fr;
    gap:24px;
    box-shadow:0 18px 45px rgba(15,23,42,.06);
}

.adminG-meta-label{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-weight:500;
    color:#2563eb;
    margin-bottom:12px;
}

.adminG-meta-left h3{
    font-size:34px;
    font-weight:500;
    color:#071b3a;
    margin:0 0 8px;
}

.adminG-meta-left p{
    margin:0 0 16px;
    color:#64748b;
}

.adminG-meta-progress{
    height:14px;
    background:#eef4ff;
    border-radius:999px;
    overflow:hidden;
    margin-bottom:10px;
}

.adminG-meta-progress span{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#2563eb,#22c55e);
}

.adminG-meta-left small{
    font-weight:400;
    color:#334155;
}

.adminG-meta-right{
    display:grid;
    gap:14px;
}

.adminG-meta-right div{
    background:#f8fbff;
    border:1px solid #e5eef8;
    border-radius:18px;
    padding:18px;
}

.adminG-meta-right span{
    display:block;
    color:#64748b;
    font-weight:400;
    margin-bottom:6px;
}

.adminG-meta-right strong{
    font-size:22px;
    color:#071b3a;
    font-weight:500;
}

@media(max-width:767.98px){
    .adminG-meta-card{
        grid-template-columns:1fr;
        padding:20px;
    }

    .adminG-meta-left h3{
        font-size:28px;
    }
}












/* ALERTAS INTELIGENTES ADMIN GENERAL */
.adminG-alertas-section{
    margin-top: 28px !important;
    margin-bottom: 34px !important;
}

.adminG-alertas-section .adminG-panel-card{
    padding: 28px !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 45px rgba(15,23,42,.06) !important;
}

.adminG-alertas-list{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-top: 18px !important;
}

.adminG-alerta-item{
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 18px !important;
    border-radius: 20px !important;
    border: 1px solid #e5eaf3 !important;
    background: #f8fbff !important;
}

.adminG-alerta-icon{
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
}

.adminG-alerta-text strong{
    display: block !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #06162f !important;
    margin-bottom: 4px !important;
}

.adminG-alerta-text p{
    margin: 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.45 !important;
}

.adminG-alerta-item.alerta-danger{
    background: #fff5f5 !important;
    border-color: #fecaca !important;
}

.adminG-alerta-item.alerta-danger .adminG-alerta-icon{
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

.adminG-alerta-item.alerta-warning{
    background: #fffbeb !important;
    border-color: #fde68a !important;
}

.adminG-alerta-item.alerta-warning .adminG-alerta-icon{
    background: #fef3c7 !important;
    color: #f59e0b !important;
}

.adminG-alerta-item.alerta-info{
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}

.adminG-alerta-item.alerta-info .adminG-alerta-icon{
    background: #dbeafe !important;
    color: #2563eb !important;
}

.adminG-alerta-empty{
    margin-top: 18px !important;
    padding: 24px !important;
    border-radius: 20px !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
    text-align: center !important;
}

.adminG-alerta-empty i{
    font-size: 34px !important;
    margin-bottom: 8px !important;
}

.adminG-alerta-empty strong{
    display: block !important;
    font-size: 18px !important;
}

.adminG-alerta-empty p{
    margin: 6px 0 0 !important;
}

/* MÓVIL */
@media (max-width: 767.98px){
    .adminG-alertas-section{
        margin-top: 22px !important;
    }

    .adminG-alertas-section .adminG-panel-card{
        padding: 20px !important;
        border-radius: 20px !important;
    }

    .adminG-alertas-list{
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .adminG-alerta-item{
        padding: 15px !important;
        border-radius: 18px !important;
    }
}














.adminG-alerta-top{
    display:flex!important;
    justify-content:space-between!important;
    gap:10px!important;
    align-items:center!important;
}

.adminG-alerta-priority{
    font-size:11px!important;
    font-weight:500!important;
    padding:5px 10px!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#334155!important;
    border:1px solid #e2e8f0!important;
}

.adminG-alerta-footer{
    margin-top:12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
}

.adminG-alerta-footer small{
    color:#64748b!important;
    font-size:12px!important;
    font-weight:400!important;
}

.adminG-alerta-btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:8px 14px!important;
    border-radius:12px!important;
    background:#2563eb!important;
    color:#fff!important;
    font-size:12px!important;
    font-weight:500!important;
    text-decoration:none!important;
    box-shadow:0 8px 18px rgba(37,99,235,.22)!important;
}

.adminG-alerta-btn:hover{
    color:#fff!important;
    transform:translateY(-1px);
}

@media(max-width:767.98px){
    .adminG-alerta-top,
    .adminG-alerta-footer{
        flex-direction:column!important;
        align-items:flex-start!important;
    }

    .adminG-alerta-btn{
        width:100%!important;
    }
}














.restore-confirm-bg,
.restore-loading-bg{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.45);
    z-index:999999;
    display:flex;
    align-items:center;
    justify-content:center;
}

.restore-confirm-box,
.restore-loading-box{
    width:440px;
    max-width:90%;
    background:#fff;
    border-radius:24px;
    padding:34px;
    text-align:center;
    box-shadow:0 25px 80px rgba(0,0,0,.25);
}

.restore-confirm-icon{
    width:68px;
    height:68px;
    border-radius:50%;
    background:#fff7ed;
    color:#f59e0b;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 16px;
    font-size:30px;
}

.restore-confirm-box h3,
.restore-loading-box h3{
    font-weight:500;
    color:#06162f;
}

.restore-confirm-box p,
.restore-loading-box p{
    color:#64748b;
    margin-top:10px;
    line-height:1.5;
}

.restore-confirm-box small{
    display:block;
    margin-top:10px;
    color:#ef4444;
    font-weight:400;
}

.restore-confirm-actions{
    display:flex;
    gap:12px;
    justify-content:center;
    margin-top:24px;
}

.btn-cancelar-restore,
.btn-confirmar-restore{
    border:0;
    border-radius:14px;
    padding:12px 20px;
    font-weight:500;
    cursor:pointer;
}

.btn-cancelar-restore{
    background:#f1f5f9;
    color:#334155;
}

.btn-confirmar-restore{
    background:#f59e0b;
    color:#fff;
}

.restore-loading-icon{
    font-size:48px;
    color:#2563eb;
}

.restore-spinner{
    margin:24px auto 0;
    width:48px;
    height:48px;
    border:5px solid #dbeafe;
    border-top-color:#2563eb;
    border-radius:50%;
    animation:restoreSpin .8s linear infinite;
}

@keyframes restoreSpin{
    to{transform:rotate(360deg);}
}












/* =========================================================
   LIMPIAR CACHÉ — MODALES PRO
========================================================= */

.cache-pro-backdrop{
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(3px);
}

.cache-pro-modal{
    width: 440px;
    max-width: 100%;
    padding: 32px;
    border: 1px solid #e5eaf3;
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .28);
    animation: cacheModalIn .18s ease-out;
}

.cache-pro-modal h3{
    margin: 0 0 10px;
    color: #07162f;
    font-size: 22px;
    font-weight: 500;
}

.cache-pro-modal p{
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.cache-pro-icon{
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
}

.cache-pro-icon-warning{
    color: #f59e0b;
    background: #fff7db;
}

.cache-pro-icon-blue{
    color: #2563eb;
    background: #eaf2ff;
}

.cache-pro-icon-success{
    color: #16a34a;
    background: #dcfce7;
}

.cache-pro-icon-error{
    color: #ef4444;
    background: #fee2e2;
}

.cache-pro-note{
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    color: #1e40af;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 450;
    line-height: 1.5;
    text-align: left;
}

.cache-pro-note i{
    margin-right: 6px;
}

.cache-pro-actions{
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.cache-pro-btn{
    min-height: 44px;
    padding: 11px 20px;
    border: 0;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.cache-pro-btn:hover{
    transform: translateY(-1px);
}

.cache-pro-btn-cancel{
    color: #334155;
    background: #eef2f7;
}

.cache-pro-btn-confirm{
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
}

.cache-pro-btn-full{
    width: 100%;
    margin-top: 22px;
}

.cache-pro-loading{
    pointer-events: none;
}

.cache-pro-spinner{
    width: 48px;
    height: 48px;
    margin: 24px auto 0;
    border: 5px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: cacheSpin .8s linear infinite;
}

.cache-pro-result-detail{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #e5eaf3;
    border-radius: 14px;
    color: #475569;
    background: #f8fafc;
    font-size: 13px;
}

.cache-pro-result-detail strong{
    color: #0f172a;
    font-weight: 500;
}

@keyframes cacheSpin{
    to{
        transform: rotate(360deg);
    }
}

@keyframes cacheModalIn{
    from{
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }

    to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 575.98px){
    .cache-pro-modal{
        padding: 24px 18px;
        border-radius: 20px;
    }

    .cache-pro-actions{
        flex-direction: column-reverse;
    }

    .cache-pro-btn{
        width: 100%;
    }
}













#lp32-login-overlay {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(42, 181, 216, 0.22),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(5, 28, 61, 0.97),
            rgba(8, 71, 128, 0.97)
        );
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(7px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

#lp32-login-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.lp32-login-overlay-card {
    width: min(420px, 100%);
    padding: 34px 30px 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    text-align: center;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.35s ease;
}

#lp32-login-overlay.is-visible .lp32-login-overlay-card {
    transform: translateY(0) scale(1);
}

.lp32-login-overlay-logo {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            #2492ff,
            #20c8bd
        );
    box-shadow: 0 15px 32px rgba(28, 164, 225, 0.34);
}

.lp32-login-overlay-logo span {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lp32-login-overlay-spinner {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
}

.lp32-login-overlay-spinner::before,
.lp32-login-overlay-spinner::after,
.lp32-login-overlay-spinner span {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: #fff;
    border-radius: 50%;
    content: "";
    animation: lp32-spin 1s linear infinite;
}

.lp32-login-overlay-spinner::after {
    inset: 7px;
    border-width: 2px;
    border-top-color: #40ddd0;
    animation-duration: 0.75s;
    animation-direction: reverse;
}

.lp32-login-overlay-spinner span {
    inset: 15px;
    border-width: 2px;
    border-top-color: #88bfff;
    animation-duration: 0.55s;
}

.lp32-login-overlay-card h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 680;
    letter-spacing: -0.3px;
}

.lp32-login-overlay-card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.55;
}

.lp32-login-overlay-card p strong {
    color: #fff;
    font-weight: 650;
}

.lp32-login-overlay-progress {
    overflow: hidden;
    height: 6px;
    margin: 24px 0 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.lp32-login-overlay-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            #63a9ff,
            #30d5c8
        );
    animation: lp32-progress 2.8s ease forwards;
}

.lp32-login-overlay-card small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    letter-spacing: 0.2px;
}

@keyframes lp32-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes lp32-progress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .lp32-login-overlay-card {
        padding: 30px 22px 26px;
        border-radius: 20px;
    }

    .lp32-login-overlay-card h2 {
        font-size: 22px;
    }
}