/* Tema de marca FixDTE (solo se carga con APP_MODE=fixdte). Azul = marca; verde = lo aprobado. */
:root {
  --green: #2563eb; --green-dark: #1d4ed8; --green-light: #dbeafe;
  --ink: #0f1b33; --bg: #f3f4f6; --muted: #5b6b86;
  --fx-navy: #13294b; --fx-deep: #0c1d36; --fx-ok: #22c55e;
}
body { font-family: "Open Sans", "Segoe UI", system-ui, sans-serif; }
h1, h2, h3, .brand { font-family: "Montserrat", "Segoe UI", system-ui, sans-serif; }
.btn { box-shadow: none; }
.btn:hover { box-shadow: 0 2px 6px rgba(37, 99, 235, .3); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.alert-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }

/* Menú lateral azul marino */
.sidebar { background: var(--fx-navy); border-right: 0; }
.brand { color: #fff; font-size: 1.25rem; font-weight: 800; }
.brand .fx-dte { color: var(--fx-ok); }
.brand-mark { background: none !important; box-shadow: none !important; width: 34px; height: 34px; border-radius: 0; }
.brand-mark img { width: 34px; height: 34px; display: block; }
.sidebar nav a { color: #cbd5e6; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar nav a.active { background: rgba(37, 99, 235, .35); color: #fff; border-left-color: var(--fx-ok); }
.nav-section-label { color: #8ea8ff; opacity: 1; }
.nav-divider, .sidebar-footer { border-color: rgba(255, 255, 255, .12); }
.me strong { color: #fff; } .me span { color: #a9b8d4; }
.sidebar .btn-ghost { color: #cbd5e6; border-color: rgba(255, 255, 255, .25); }
.hamburger { background: #fff; }
.fx-tagline { margin: -16px 8px 16px; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #8ea8ff; }

/* Ingreso */
.login-wrap { background: radial-gradient(circle at 20% 15%, #1d3a6b, transparent 55%), radial-gradient(circle at 85% 90%, #0c1d36, transparent 55%), var(--fx-deep); }
.login-card { text-align: center; }
.login-card .brand-icon { background: none; box-shadow: none; width: 72px; height: 72px; }
.login-card .brand-icon img { width: 72px; height: 72px; }
.login-card h1 { font-weight: 800; font-size: 2rem; }
.login-card h1 .fx-dte { color: var(--fx-ok); }
.login-card form { text-align: left; }
.fx-por { margin-top: 18px; font-size: .75rem; color: var(--muted); text-align: center; letter-spacing: .04em; }
.fx-por b { color: var(--fx-navy); }

/* Campanita de avisos */
#fx-bell { position: relative; margin-left: auto; margin-right: 8px; font-size: 1.25rem; text-decoration: none; padding: 4px 8px; border-radius: 10px; }
#fx-bell:hover { background: rgba(255,255,255,.12); }
#fx-bell-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 800; text-align: center; display: none; animation: fxbell 1.2s ease-in-out infinite; }
@keyframes fxbell { 0%,100% { transform: scale(1) } 50% { transform: scale(1.18) } }

/* Rejillas de formulario: todas las casillas de una fila alineadas arriba, sin sangrías distintas por etiqueta */
.grid > label { margin-top: 0; align-self: start; }
.grid > div > label:first-child { margin-top: 0; }

/* ===== Fechas y horas: selector bonito ===== */
.fx-date { position: relative; display: block; width: 100%; max-width: 280px; }
.fx-date input[type=date], .fx-date input[type=month], .fx-date input[type=time] { width: 100%; min-height: 42px; padding: 9px 44px 9px 40px; border: 1px solid var(--border-strong, #cbd5e1); border-radius: 12px; background: #fff; color: #0f172a; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.fx-date input:hover { border-color: #2563eb; }
.fx-date input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.fx-date input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fx-date .fx-ic { position: absolute; left: 12px; top: 11px; font-size: 1.05rem; pointer-events: none; }
.fx-date .fx-chev { position: absolute; right: 14px; top: 13px; width: 8px; height: 8px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: rotate(45deg); pointer-events: none; }
.fx-date-txt { display: block; margin-top: 4px; font-size: .76rem; color: var(--muted, #64748b); font-weight: 500; min-height: 1em; }
.fx-date-rap { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.fx-date-rap button { font: inherit; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border, #e2e8f0); background: #f1f5f9; color: #334155; cursor: pointer; }
.fx-date-rap button:hover { background: #dbeafe; border-color: #93c5fd; color: #1e40af; }
.fx-date.vacio input { color: #94a3b8; }
