/* ==========================================================
   L2Elite Control Panel — estilo celeste clásico
   Fondo #B2CAFA, Tahoma 8pt, cajas con título curvo "-= Título =-"
   ========================================================== */

:root {
    --ew: 760px;          /* ancho del panel (el original usaba 593px) */
    --bg: #B2CAFA;
    --hi: #D6E7FF;
    --mid: #B5CEFF;
    --hover: #5174A0;
}

html, body { background: var(--bg); }
body {
    margin: 0;
    color: #000;
    font: 8pt Tahoma, Verdana, Geneva, sans-serif;
    overflow-x: hidden;
}
a { color: #000; text-decoration: none; transition: none; }
a:hover { color: var(--hover); }
img { border: 0; }

.ewrap { width: var(--ew); max-width: 100%; margin: 0 auto; padding: 1px 0 20px; }

/* ---------- Banner ---------- */
.ebanner {
    display: block; position: relative; overflow: hidden;
    width: 100%; height: 98px;
    border: 1px solid #000; border-bottom: 0;
    background: linear-gradient(180deg, #202a4a 0%, #4a5784 55%, #2c3558 100%);
}
.ebanner img { display: block; width: 100%; height: 98px; object-fit: cover; }
.ebanner .t {
    position: absolute; left: 0; right: 0; top: 0; bottom: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; text-align: center; text-shadow: 0 0 8px #000;
}
.ebanner .t b { font: 700 28px/1 Georgia, 'Times New Roman', serif; letter-spacing: 6px; text-transform: uppercase; }
.ebanner .t span { margin-top: 8px; font-size: 9pt; letter-spacing: 3px; text-transform: uppercase; color: #cfd8f2; }

/* ---------- Barra de menú ---------- */
.emenu {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    min-height: 24px; padding: 2px 8px;
    border: 1px solid #000;
    background: linear-gradient(180deg, var(--hi) 0%, var(--mid) 50%, var(--hi) 100%);
}
.emenu .sp { flex: 1 1 auto; }
.emenu .info { display: flex; align-items: center; gap: 8px; }

/* Botón estilo Elite (barra, formularios, dropdown) */
.ebtn, input.default, a.default, span.default, button.default {
    display: inline-block; box-sizing: border-box;
    min-height: 19px; padding: 2px 10px;
    border: 1px solid #000; border-radius: 0; box-shadow: none; transform: none;
    background: var(--bg); color: #000;
    font: 8pt/13px Tahoma, Verdana, sans-serif; letter-spacing: 0; text-transform: none; text-align: center;
    cursor: pointer; white-space: nowrap;
}
.ebtn:hover, input.default:hover, a.default:hover, span.default:hover, button.default:hover {
    background: var(--hi); color: var(--hover); box-shadow: none; transform: none;
}
.ebtn.on { background: var(--hi); font-weight: bold; }
input.default.big, a.default.big { padding: 4px 16px; font-size: 9pt; }
input.default.loading { background: #9aa9cc !important; pointer-events: none; }
a.default.sucesso, input.default.sucesso { background: #9fe0a8 !important; }
input.default.w-full, input.default[style*="width:100%"] { width: auto !important; display: inline-block !important; }

/* Desplegables */
.edrop { position: relative; }
.edrop > .ebtn::after { content: " \25BE"; font-size: 7pt; }
.edrop-menu {
    display: none; position: absolute; left: 0; top: 100%; z-index: 50;
    padding-top: 1px; min-width: 100%;
}
.edrop:hover > .edrop-menu, .edrop.open > .edrop-menu, .edrop:focus-within > .edrop-menu { display: block; }
.edrop-menu .ebtn { display: block; margin-top: -1px; text-align: left; }

/* ---------- Cajas con título curvo ---------- */
.ebox { margin-top: 17px; }
.ebox-head {
    height: 16px; line-height: 15px; text-align: center; font-weight: bold;
    border: 1px solid #000; border-bottom: 0;
    border-radius: 14px 14px 0 0 / 15px 15px 0 0;
    background: linear-gradient(180deg, #B5CEF7 0%, #CEDEFF 60%, #DEE7FF 100%);
}
.ebox-body {
    padding: 8px 10px;
    border-left: 1px solid #000; border-right: 1px solid #000;
    background: var(--bg);
    min-height: 20px;
}
.ebox-foot {
    height: 14px;
    border: 1px solid #000; border-top: 0;
    border-radius: 0 0 14px 14px / 0 0 14px 14px;
    background: linear-gradient(180deg, #DEE7FF 0%, #CEDEFF 40%, #B5CEF7 100%);
}
.ebox-body.center { text-align: center; }

/* ---------- Formularios ---------- */
.eform { margin: 4px auto; border-collapse: collapse; }
.eform td { padding: 1px 6px; font-size: 8pt; }
input.einput, .einput {
    box-sizing: border-box; width: 160px; height: 17px; padding: 0 3px;
    border: 1px solid #000; border-radius: 0; background: #fff; color: #000;
    font: 8pt Tahoma, Verdana, sans-serif; outline: none;
}
.einput:focus { background: #fffff0; }
.ebtns { margin: 10px 0 4px; text-align: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.elinks { text-align: center; margin: 6px 0; }
.elinks a { text-decoration: underline; }
.esep { display: flex; align-items: center; gap: 6px; margin: 8px 0; color: #1c2b4d; }
.esep:before, .esep:after { content: ""; flex: 1; border-top: 1px solid #5f78ad; }

/* ---------- Idioma / saldo ---------- */
.elang a { padding: 0 3px; }
.elang a.cur { font-weight: bold; text-decoration: underline; }
.ebal b { font-weight: bold; }

/* ---------- Pie ---------- */
.efoot { margin-top: 14px; text-align: center; font-size: 7pt; color: #1c2b4d; }

/* ==========================================================
   Compatibilidad con las páginas existentes (Tailwind + clases viejas)
   ========================================================== */

/* Estados: colores legibles sobre fondo claro */
.text-emerald-400, .text-emerald-300, .text-green-400 { color: #0a6a2a !important; }
.text-red-400, .text-red-300, .text-red-500 { color: #a40000 !important; }
.text-yellow-400, .text-amber-400, .text-yellow-300 { color: #7a5200 !important; }
.text-blue-400, .text-sky-400, .text-cyan-400 { color: #1f4fa8 !important; }
.text-purple-400, .text-violet-400, .text-fuchsia-400 { color: #5a2a9a !important; }
.text-orange-400 { color: #9a4a00 !important; }
.bg-emerald-500\/10 { background-color: rgba(10,106,42,.12) !important; }
.bg-red-500\/10     { background-color: rgba(164,0,0,.10) !important; }
.border-emerald-500\/20 { border-color: rgba(10,106,42,.4) !important; }
.border-red-500\/20     { border-color: rgba(164,0,0,.35) !important; }

/* Bordes y esquinas rectas como el original */
.ebox-body .rounded, .ebox-body .rounded-md, .ebox-body .rounded-lg, .ebox-body .rounded-xl,
.ebox-body .rounded-2xl, .ebox-body .rounded-full { border-radius: 0 !important; }
.ebox-body .rounded-full.inline-flex, .ebox-body span.rounded-full { border-radius: 8px !important; }
.ebox-body .shadow, .ebox-body .shadow-lg, .ebox-body .shadow-xl, .ebox-body .shadow-2xl { box-shadow: none !important; }
.ebox-body [class*="backdrop-blur"] { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Inputs de las páginas */
.ebox-body input[type="text"], .ebox-body input[type="password"], .ebox-body input[type="number"],
.ebox-body input[type="email"], .ebox-body select, .ebox-body textarea {
    background: #fff; color: #000; border: 1px solid #000; border-radius: 0; outline: none;
}
.ebox-body input:focus, .ebox-body select:focus, .ebox-body textarea:focus { box-shadow: none; background: #fffff0; }

/* Cajas viejas */
.box { background: var(--bg); border: 1px solid #000; margin-bottom: 12px; overflow: hidden; }
.box > h1 {
    display: flex; align-items: center; gap: 6px; padding: 2px 8px;
    border-bottom: 1px solid #000; background: linear-gradient(180deg, #B5CEF7, #DEE7FF);
    font: bold 8pt Tahoma, sans-serif; color: #000;
}
.box > h1 i { color: #1c2b4d; }

ul.breadcrumb { list-style: none; display: flex; gap: 6px; margin: 0 0 8px; padding: 0; font-size: 8pt; }
ul.breadcrumb li, ul.breadcrumb li a { color: #000; }
ul.breadcrumb li a:hover { color: var(--hover); }

.formpadrao { display: table; margin: 0 auto 6px; }
.formpadrao > div { display: table; }
.formpadrao .desc { width: 140px; padding: 0 10px; text-align: right; font-size: 8pt; font-weight: bold; float: left; height: 26px; line-height: 26px; color: #000; }
.formpadrao .camp { float: left; height: 26px; line-height: 26px; }
.formpadrao .camp input[type="text"], .formpadrao .camp input[type="password"], .formpadrao .camp input[type="file"], .formpadrao .camp select {
    width: 200px; height: 18px; line-height: 18px; margin: 4px 4px 0 0; padding: 0 3px;
    border: 1px solid #000; border-radius: 0; background: #fff; color: #000; font: 8pt Tahoma, sans-serif; outline: none;
}
.formpadrao textarea { width: 200px; height: 140px; margin: 0 4px 8px 0; padding: 4px; border: 1px solid #000; border-radius: 0; background: #fff; color: #000; font: 8pt Tahoma, sans-serif; }

.lines > div { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; border-bottom: 1px solid #7f98cf; font-size: 8pt; color: #000; }
.lines > div:last-child { border-bottom: 0; }
.lines > div span { font-weight: bold; font-family: Tahoma, sans-serif; font-size: 8pt; }
.lines > div.two { background: rgba(255,255,255,.35); }

.mult { padding: 8px 6px; }
.mult .selec { display: flex; gap: 4px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 6px; }
.mult .selec > div { flex-shrink: 0; cursor: pointer; padding: 4px 8px; border: 1px solid #000; background: var(--bg); display: flex; align-items: center; gap: 6px; }
.mult .selec > div:hover { background: var(--hi); }
.mult .selec > div.actived { background: #fff; font-weight: bold; }
.mult .selec > div img { width: 32px; height: 32px; border: 1px solid #000; border-radius: 0; }
.mult .selec > div > div { font-size: 8pt; white-space: nowrap; color: #000; }
.mult .selec > span { display: none; }
.mult .infos { display: none; }
.mult .infos.actived { display: block; }

.twoBox { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.opts .service { border: 1px solid #000; background: var(--bg); margin-bottom: 8px; }
.opts .service .title { display: flex; justify-content: space-between; align-items: center; padding: 3px 8px; border-bottom: 1px solid #000; background: linear-gradient(180deg, #B5CEF7, #DEE7FF); font-weight: bold; }
.opts .service .title .costs { color: #1f3a73; }
.opts .service .desc { padding: 6px 8px; border-bottom: 1px solid #7f98cf; }
.opts .service .work { padding: 8px; }
.charSelectedTxt { margin-bottom: 8px; }
.pddInner { padding: 0 6px 8px; line-height: 1.5; }

.paginate { text-align: center; padding: 8px 0; }
.paginate a, .paginate span { display: inline-block; padding: 1px 7px; margin: 0 2px; border: 1px solid #000; background: var(--bg); }
.paginate a:hover { background: var(--hi); }
.paginate span.current { background: #fff; font-weight: bold; }

label.captcha { position: relative; display: block; }
label.captcha img.captchaImage { position: absolute; left: 4px; top: 3px; }
label.captcha a { position: absolute; right: 8px; top: 6px; }
label.captcha a img { width: 18px; height: 18px; }

/* Alertas */
#v-alert-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000; align-items: center; justify-content: center; }
#v-alert-overlay.show { display: flex; }
#v-alert-box { max-width: 420px; width: 90%; padding: 14px 16px; text-align: center; background: var(--bg); border: 1px solid #000; }
#v-alert-box .msg { margin-bottom: 12px; font-size: 9pt; line-height: 1.5; color: #000; }
#v-alert-box .btn { display: inline-block; min-width: 50px; padding: 2px 14px; border: 1px solid #000; background: var(--hi); color: #000; font: 8pt Tahoma, sans-serif; cursor: pointer; }
#v-alert-box .btn:hover { color: var(--hover); }
#v-alert-box .btn.success { background: #b9ecbf; }

.pulse { animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
    .twoBox { grid-template-columns: 1fr; }
    .formpadrao .desc { width: auto; float: none; text-align: left; height: auto; line-height: 1.4; padding: 0 0 3px; }
    .formpadrao .camp { float: none; height: auto; }
    .formpadrao .camp input[type="text"], .formpadrao .camp input[type="password"], .formpadrao .camp select, .formpadrao textarea { width: 100%; }
    .emenu .sp { display: none; }
}

/* ==========================================================
   Formularios con clases Tailwind (registro, recuperar clave, etc.)
   Controles compactos como el original: 19px de alto, 8pt
   ========================================================== */
.ebox-body form.usarJquery { max-width: 340px; margin: 0 auto; }
.ebox-body form.usarJquery > div.mb-3, .ebox-body form.usarJquery > div.mb-4 { margin-bottom: 6px !important; }
.ebox-body label.block, .ebox-body form label.text-sm { display: block; margin: 0 0 1px !important; font: bold 8pt Tahoma, Verdana, sans-serif !important; color: #000 !important; }
.ebox-body input[type="text"][class*="py-"], .ebox-body input[type="password"][class*="py-"],
.ebox-body input[type="email"][class*="py-"], .ebox-body input[type="number"][class*="py-"],
.ebox-body select[class*="py-"], .ebox-body input.w-full[type="text"], .ebox-body input.w-full[type="password"], .ebox-body input.w-full[type="email"] {
    width: 100% !important; height: 19px !important; padding: 0 4px !important; box-sizing: border-box;
    font: 8pt Tahoma, Verdana, sans-serif !important; line-height: 17px; border-radius: 0 !important;
    background-color: #fff !important; color: #000 !important; border: 1px solid #000 !important; box-shadow: none !important;
}
.ebox-body select[class*="py-"] { background-image: none !important; padding: 0 2px !important; }
.ebox-body input::placeholder { color: #7a8bb0; font-size: 8pt; }
.ebox-body form.usarJquery input[type="submit"].default, .ebox-body form.usarJquery input[type="submit"].default.w-full {
    display: block !important; width: auto !important; margin: 10px auto 4px !important; padding: 2px 16px !important;
}
.ebox-body .text-center.mb-5 { margin-bottom: 8px !important; }
.ebox-body .text-center.mb-5 h2, .ebox-body h2.font-display { font: bold 9pt Tahoma, Verdana, sans-serif !important; color: #000 !important; }
.ebox-body .text-center.mb-5 p, .ebox-body p.text-xs { font-size: 8pt !important; color: #1c2b4d !important; }
.ebox-body h3.font-display, .ebox-body h3.font-semibold { font: bold 8pt Tahoma, Verdana, sans-serif !important; color: #000 !important; }
.ebox-body p.text-sm, .ebox-body .text-sm { font-size: 8pt !important; }
.ebox-body .text-xs { font-size: 8pt !important; }
