/* ===== Panel y Auth — AgentCars (Poppins + paleta de marca) ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
  --blue:#1947E2;      /* CTA / acento */
  --blue-d:#1236b8;
  --navy:#1A3760;      /* oscuro / sidebar / titulos */
  --navy-2:#122846;
  --gold:#F5C34B;
  --muted:#5F6973;
  --bg:#f4f6fb;
  --line:#e6e9ec;
  --ok:#1a9e4b; --ok-bg:#e6f7ec;
  --no:#d63333; --no-bg:#fde7e7;
}

body.auth_body, body.panel_body, .auth_body *:not([class^="flaticon-"]):not([class*=" flaticon-"]):not(.fas):not(.far):not(.fab), .panel_body *:not([class^="flaticon-"]):not([class*=" flaticon-"]):not(.fas):not(.far):not(.fab){ font-family:'Poppins',sans-serif; }
/* tamaños de iconos */
.panel_nav a [class^="flaticon-"]{ font-size:18px; line-height:0; }
.panel_logout a [class^="flaticon-"]{ font-size:16px; }
.ico_btn [class^="flaticon-"]{ font-size:14px; }
.auth_feats li i.fas{ font-size:11px; }
.btn-thm{ background:var(--blue); border-color:var(--blue); color:#fff; font-weight:600; }
.btn-thm:hover{ background:var(--blue-d); border-color:var(--blue-d); color:#fff; }
.form-control{ border-radius:10px; padding:11px 14px; border-color:#dfe3ea; font-size:14px; }
.form-control:focus{ border-color:var(--blue); box-shadow:0 0 0 3px rgba(25,71,226,.12); }
.form-label{ font-weight:500; font-size:13.5px; color:var(--navy); margin-bottom:5px; }

/* =====================================================
   AUTH (login / registro) — layout de 2 columnas
   ===================================================== */
.auth_body{ background:radial-gradient(1200px 600px at 20% -10%, #24457e 0%, var(--navy) 45%, var(--navy-2) 100%); min-height:100vh; margin:0; }
.auth_wrap{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.auth_shell{ width:100%; max-width:940px; background:#fff; border-radius:20px; overflow:hidden;
  display:flex; box-shadow:0 30px 80px rgba(0,0,0,.45); min-height:580px; }

/* panel de marca (izquierda) */
.auth_aside{ flex:1; background:linear-gradient(160deg,#22437c,var(--navy) 60%,var(--navy-2)); color:#fff; padding:46px 40px;
  display:flex; flex-direction:column; position:relative; }
.auth_aside::after{ content:""; position:absolute; right:-60px; bottom:-60px; width:220px; height:220px;
  border-radius:50%; background:rgba(245,195,75,.14); }
.auth_aside .brand{ height:34px; margin-bottom:auto; }
.auth_aside h2{ font-weight:700; font-size:28px; line-height:1.25; margin:0 0 14px; }
.auth_aside p.lead{ color:#c6d2e8; font-size:14.5px; margin:0 0 26px; }
.auth_feats{ list-style:none; padding:0; margin:0; }
.auth_feats li{ display:flex; align-items:center; gap:11px; padding:8px 0; font-size:14px; color:#e7edf8; }
.auth_feats li i{ width:26px; height:26px; border-radius:50%; background:rgba(255,255,255,.12);
  display:inline-flex; align-items:center; justify-content:center; color:var(--gold); font-style:normal; font-size:13px; flex-shrink:0; }

/* formulario (derecha) */
.auth_form_side{ flex:1; padding:44px 42px; display:flex; flex-direction:column; justify-content:center; }
.auth_form_side h3{ font-weight:700; color:var(--navy); font-size:23px; margin:0 0 4px; }
.auth_form_side .sub{ color:var(--muted); font-size:14px; margin:0 0 24px; }
.auth_form_side .btn-thm{ padding:12px; border-radius:10px; font-size:15px; margin-top:4px; }
.auth_foot{ text-align:center; margin-top:20px; font-size:14px; color:var(--muted); }
.auth_foot a{ color:var(--blue); font-weight:600; }
.auth_msg{ font-size:13.5px; margin-bottom:12px; }
.auth_error{ color:var(--no); background:var(--no-bg); padding:9px 13px; border-radius:9px; }
.fld{ margin-bottom:15px; }
@media(max-width:820px){
  .auth_shell{ flex-direction:column; max-width:440px; min-height:0; }
  .auth_aside{ padding:32px 30px; }
  .auth_aside .brand{ margin-bottom:22px; }
  .auth_feats{ display:none; }
}

/* =====================================================
   PANEL
   ===================================================== */
.panel_body{ background:var(--bg); margin:0; color:var(--navy); }
.panel_wrap{ display:flex; min-height:100vh; }
.panel_side{ width:256px; background:var(--navy); color:#b9c4d8; flex-shrink:0; display:flex; flex-direction:column;
  position:sticky; top:0; height:100vh; }
.panel_brand{ padding:24px 24px 16px; border-bottom:1px solid rgba(255,255,255,.08); }
.panel_brand img{ height:30px; }
.panel_biz{ padding:18px 24px; border-bottom:1px solid rgba(255,255,255,.08); }
.panel_biz strong{ color:#fff; display:block; font-size:15px; font-weight:600; }
.panel_biz span{ font-size:12.5px; color:#8ea0bd; }
.panel_nav{ list-style:none; padding:16px 12px; margin:0; flex:1; }
.panel_nav li a{ display:flex; align-items:center; gap:11px; color:#b9c4d8; padding:12px 14px; border-radius:10px;
  font-size:14.5px; font-weight:500; cursor:pointer; text-decoration:none; margin-bottom:3px; transition:.15s; }
.panel_nav li a:hover{ background:rgba(255,255,255,.07); color:#fff; }
.panel_nav li a.active{ background:var(--blue); color:#fff; box-shadow:0 6px 16px rgba(25,71,226,.4); }
.panel_logout{ padding:16px 24px; border-top:1px solid rgba(255,255,255,.08); }
.panel_logout a{ color:#ff9b9b; cursor:pointer; font-size:14px; text-decoration:none; font-weight:500; }
.panel_main{ flex:1; padding:30px 38px; min-width:0; }
.panel_topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:26px; }
.panel_topbar h2{ margin:0; font-weight:700; font-size:24px; color:var(--navy); }
.panel_menu_btn{ display:none; background:var(--navy); color:#fff; border:0; padding:9px 13px; border-radius:9px; }
@media(max-width:900px){
  .panel_side{ position:fixed; left:-266px; transition:.25s; z-index:1000; box-shadow:0 0 40px rgba(0,0,0,.4); }
  .panel_side.open{ left:0; }
  .panel_menu_btn{ display:inline-block; }
  .panel_main{ padding:22px 18px; }
}

/* stats */
.stat_row{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:18px; margin-bottom:28px; }
.stat_card{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px;
  box-shadow:0 2px 10px rgba(26,55,96,.04); position:relative; overflow:hidden; }
.stat_card .num{ font-size:30px; font-weight:700; color:var(--navy); line-height:1; }
.stat_card .lbl{ color:var(--muted); font-size:13.5px; margin-top:8px; }
.stat_card.accent{ background:linear-gradient(150deg,var(--blue),#3a63f0); border:0; }
.stat_card.accent .num, .stat_card.accent .lbl{ color:#fff; }
.stat_card.gold{ background:linear-gradient(150deg,#f5c34b,#eaa93a); border:0; }
.stat_card.gold .num, .stat_card.gold .lbl{ color:#3a2c00; }

/* cards / tablas */
.card_box{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:24px; margin-bottom:24px;
  box-shadow:0 2px 10px rgba(26,55,96,.04); }
.card_box h4{ font-weight:700; font-size:18px; margin:0; color:var(--navy); }
.card_head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.tbl{ width:100%; border-collapse:collapse; }
.tbl th, .tbl td{ text-align:left; padding:13px 10px; border-bottom:1px solid var(--line); font-size:14px; vertical-align:middle; }
.tbl th{ color:var(--muted); font-weight:600; text-transform:uppercase; font-size:11.5px; letter-spacing:.4px; }
.tbl tr:last-child td{ border-bottom:0; }
.empty{ text-align:center; color:var(--muted); padding:34px; font-size:14px; }
.badge_ok{ background:var(--ok-bg); color:var(--ok); padding:4px 12px; border-radius:20px; font-size:12px; font-weight:600; }
.badge_no{ background:var(--no-bg); color:var(--no); padding:4px 12px; border-radius:20px; font-size:12px; font-weight:600; }
.ico_btn{ border:0; background:transparent; cursor:pointer; color:var(--muted); font-size:15px; padding:5px 8px; border-radius:7px; }
.ico_btn:hover{ background:var(--bg); color:var(--navy); }
.ico_btn.del:hover{ color:var(--no); background:var(--no-bg); }
.hidden{ display:none !important; }

/* modal */
.pm_overlay{ position:fixed; inset:0; background:rgba(18,40,70,.55); display:flex; align-items:center; justify-content:center; padding:20px; z-index:1100; backdrop-filter:blur(2px); }
.pm_box{ background:#fff; width:100%; max-width:520px; border-radius:16px; padding:28px; max-height:92vh; overflow:auto; box-shadow:0 30px 80px rgba(0,0,0,.4); }
.pm_box h4{ font-weight:700; margin:0 0 20px; color:var(--navy); }
.pm_actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:10px; }
.text-muted{ color:var(--muted); }
