html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

body.app-body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fb;
  color: #1f2937;
}

/* LAYOUT GENERAL */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar-472 {
  width: 250px;
  background: linear-gradient(180deg, #06122f 0%, #081a47 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
}

.sidebar-brand {
  text-align: center;
  margin-bottom: 28px;
}

.sidebar-logo {
  max-width: 120px;
  margin-bottom: 10px;
}

.sidebar-title {
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  color: #dbe7ff;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.sidebar-link:hover {
  background: #2c63db;
  color: #fff;
}

.sidebar-link.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar-472 {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-title {
  font-size: 28px;
  margin: 0;
  color: #0b3d91;
  font-weight: 700;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill {
  background: #eef4ff;
  color: #0b3d91;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.btn-logout {
  background: #e2231a;
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
}

.btn-logout:hover {
  background: #c71d16;
  color: #fff;
}

.content-472 {
  padding: 24px;
}

/* DASHBOARD */
.dashboard-bg {
  background:
    linear-gradient(rgba(255,255,255,0.90), rgba(255,255,255,0.90)),
    url('/images/logo-472.png') center center / 340px no-repeat;
  border-radius: 22px;
  min-height: 78vh;
  padding: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.metric-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(14, 30, 67, 0.08);
  border: 1px solid #e9eef8;
}

.metric-number {
  font-size: 34px;
  font-weight: 800;
  color: #112b6b;
  line-height: 1;
}

.metric-label {
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
}

.quick-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid #e8edf6;
  box-shadow: 0 6px 18px rgba(14, 30, 67, 0.06);
}

.quick-card h5 {
  margin-top: 14px;
  margin-bottom: 0;
  color: #1f2937;
  font-size: 18px;
}

.quick-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
}

.icon-blue { background: #e7efff; color: #2c63db; }
.icon-green { background: #e9f8ef; color: #16a34a; }
.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-orange { background: #fff1e6; color: #ea580c; }

.panel-block {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(14, 30, 67, 0.08);
  border: 1px solid #e9eef8;
}

/* LOGIN */
.login-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255,255,255,0.82), rgba(255,255,255,0.82)),
    url('/images/logo-472.png') center center / 260px no-repeat,
    #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.login-card-472 {
  width: 100%;
  max-width: 1100px;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(11, 33, 77, 0.18);
}

.login-left {
  background: linear-gradient(145deg, #031734 0%, #0b2f73 48%, #b91c1c 100%);
  color: #fff;
  padding: 56px 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.login-left h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
}

.login-left p {
  font-size: 22px;
  line-height: 1.5;
  max-width: 380px;
}

.login-right {
  padding: 42px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand {
  text-align: center;
  margin-bottom: 22px;
}

.login-brand img {
  max-width: 170px;
  margin-bottom: 16px;
}

.login-title {
  color: #0b3d91;
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
}

.form-control,
.form-select {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #d5dceb;
}

.btn-login-472 {
  width: 100%;
  background: #e2231a;
  border: none;
  color: #fff;
  border-radius: 12px;
  min-height: 50px;
  font-weight: 800;
  font-size: 16px;
}

.btn-login-472:hover {
  background: #c81e17;
  color: #fff;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  color: #6b7280;
  font-size: 13px;
}

/* TABLAS / FORMULARIOS */
.table {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.table thead th {
  background: #0b3d91;
  color: #fff;
  border-color: #0b3d91;
}

.card-soft,
.form-shell {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(14, 30, 67, 0.08);
  border: 1px solid #e9eef8;
}

.btn-primary {
  background: #2c63db;
  border-color: #2c63db;
  border-radius: 10px;
}

.btn-primary:hover {
  background: #1f4fb8;
  border-color: #1f4fb8;
}

.btn-secondary {
  border-radius: 10px;
}

@media (max-width: 991px) {
  .sidebar-472 {
    width: 210px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .login-card-472 {
    grid-template-columns: 1fr;
  }

  .login-left {
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar-472 {
    width: 100%;
  }

  .topbar-472 {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
