:root {
  --bc-navy: #123b66;
  --bc-navy-deep: #0d2f52;
  --bc-blue: #0f5aa8;
  --bc-gold: #c9a23a;
  --bc-page: #f7f8fa;
  --bc-text: #1f2937;
  --bc-muted: #6b7280;
  --bc-side: 248px;
  --bc-logo-h: 34px;
  --bc-font: "Montserrat", "Segoe UI", sans-serif;
}

body {
  background: var(--bc-page);
  color: var(--bc-text);
  font-family: var(--bc-font);
}

.bc-app {
  display: flex;
  min-height: 100vh;
}

.bc-sidebar,
.bc-topbar {
  background: linear-gradient(180deg, var(--bc-navy) 0%, var(--bc-navy-deep) 100%);
  color: #fff;
}

.bc-sidebar {
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--bc-side);
  min-height: 100vh;
  width: var(--bc-side);
}

.bc-side-label {
  color: var(--bc-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 1.15rem 1.25rem 0.45rem;
  text-transform: uppercase;
}

.bc-nav {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0 1rem;
}

.bc-link {
  align-items: center;
  border-left: 3px solid transparent;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 0.75rem;
  padding: 0.72rem 1.25rem;
  text-decoration: none;
}

.bc-link svg {
  flex: 0 0 auto;
  opacity: 0.85;
}

.bc-link:hover {
  background: rgba(15, 90, 168, 0.35);
  border-left-color: var(--bc-gold);
  color: #fff;
  text-decoration: none;
}

.bc-link.is-active {
  background: linear-gradient(90deg, rgba(15, 90, 168, 0.5), rgba(15, 90, 168, 0.08) 75%, transparent);
  border-left-color: var(--bc-gold);
  color: #fff;
  font-weight: 700;
}

.bc-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.bc-topbar {
  align-items: center;
  box-shadow: 0 3px 14px rgba(13, 47, 82, 0.28);
  display: flex;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.4rem 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.bc-menu-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  display: none;
  height: 38px;
  width: 38px;
}

.bc-brand {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  min-width: 0;
}

.bc-brand img {
  background: #fff;
  border-radius: 6px;
  display: block;
  flex: 0 0 auto;
  height: var(--bc-logo-h);
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.bc-modulo {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}

.bc-user {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

.bc-user__name {
  font-size: 0.88rem;
  font-weight: 700;
}

.bc-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.7rem;
  text-transform: uppercase;
}

.bc-logout:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.bc-content {
  flex: 1 1 auto;
}

.bc-content .container-fluid {
  max-width: 1280px;
}

.bc-app.is-open .bc-sidebar {
  transform: none;
}

@media (max-width: 991.98px) {
  .bc-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bc-sidebar {
    bottom: 0;
    left: 0;
    position: fixed;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 30;
  }

  .bc-brand img {
    height: 28px;
  }

  .bc-user__name {
    display: none;
  }
}

.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-main {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.login-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(18, 59, 102, 0.1);
  padding: 2rem 1.75rem 1.75rem;
  width: min(440px, 100%);
}

.login-card h1 {
  color: var(--bc-navy);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
}

.login-card p {
  color: var(--bc-muted);
  font-size: 0.92rem;
  margin: 0.35rem 0 1.3rem;
}

.login-label {
  color: var(--bc-navy);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  font-size: 0.95rem;
  height: 2.85rem;
  margin-bottom: 1rem;
  padding: 0 0.9rem;
  width: 100%;
}

.login-card input:focus {
  border-color: var(--bc-blue);
  box-shadow: 0 0 0 3px rgba(15, 90, 168, 0.16);
  outline: none;
}

.login-error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 10px;
  color: #b42318;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
}

.login-submit {
  background: var(--bc-blue);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  height: 2.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: 100%;
}

.login-submit:hover {
  background: #0c4a8c;
}

.login-footer {
  color: var(--bc-muted);
  font-size: 0.8rem;
  padding: 1.2rem 1rem 1.6rem;
  text-align: center;
}

.cuenta-busca {
  position: relative;
  min-width: 220px;
}

.flujo-busca {
  position: relative;
  margin-top: 0.35rem;
}

.xml-importar {
  overflow: hidden;
  position: relative;
}

.xml-archivo {
  cursor: pointer;
  font-size: 0;
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.cuenta-lista {
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(18, 59, 102, 0.12);
  left: 0;
  margin-top: 0.25rem;
  max-height: 220px;
  overflow: auto;
  position: absolute;
  right: 0;
  z-index: 5;
}

.cuenta-opcion {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  display: block;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  text-align: left;
  width: 100%;
}

.cuenta-opcion:hover {
  background: #f3f6fb;
  color: var(--bc-navy);
}

.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

a.bc-importe {
  border-bottom: 1px dotted var(--bc-blue);
  color: inherit;
  text-decoration: none;
}

a.bc-importe:hover {
  color: var(--bc-blue);
}

.ef-meses {
  font-size: 0.78rem;
  white-space: nowrap;
}

.ef-meses th,
.ef-meses td {
  text-align: right;
}

.ef-meses th:first-child,
.ef-meses td:first-child,
.ef-meses th:nth-child(2),
.ef-meses td:nth-child(2) {
  text-align: left;
}
