:root {
  --brand-yellow: #FFCF06;
  --brand-yellow-dark: #E0B500;
  --brand-black: #000000;
}

body { background:#f4f5f7; }
.card-header { background:#fff; font-weight:600; }
.navbar-brand small { font-weight:400; }

/* --- Botones y acentos con la marca CitroGruas --- */
.btn-primary {
  background-color: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: var(--brand-black);
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--brand-yellow-dark) !important;
  border-color: var(--brand-yellow-dark) !important;
  color: var(--brand-black) !important;
}
.btn-outline-primary {
  color: #7a5f00;
  border-color: var(--brand-yellow-dark);
}
.btn-outline-primary:hover {
  background-color: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: var(--brand-black);
}
a { color: #7a5f00; }
a:hover { color: var(--brand-black); }

/* --- Menu lateral izquierdo (igual que SistemaPruebas-CitroGruas, con marca) --- */
.btn-toggle-menu {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 1040;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: .375rem;
  background: var(--brand-yellow);
  color: var(--brand-black);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.btn-toggle-menu:hover { background: var(--brand-yellow-dark); }
.sidebar-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 230px;
  background: var(--brand-black);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem .75rem 1rem;
  overflow-y: auto;
  z-index: 1030;
  transition: transform .2s ease;
}
.sidebar-brand {
  margin-bottom: 1.25rem;
}
.sidebar-logo-wrap {
  display: inline-block;
  background: #fff;
  border-radius: .5rem;
  padding: .5rem .6rem;
}
.sidebar-logo-wrap img { display: block; width: 100%; max-width: 170px; height: auto; }
.sidebar-brand small {
  display: block;
  margin-top: .5rem;
  color: var(--brand-yellow);
  font-weight: 600;
  letter-spacing: .02em;
}
.sidebar-user {
  font-size: .85rem;
  color: #ced4da;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
}
.sidebar-nav a {
  color: #ced4da;
  text-decoration: none;
  padding: .5rem .6rem;
  border-radius: .375rem;
  font-size: .95rem;
}
.sidebar-nav a:hover { background: #262626; color: #fff; }
.sidebar-nav a.active { background: var(--brand-yellow); color: var(--brand-black); font-weight: 600; }
.sidebar-seccion {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #868e96;
  margin: .75rem .6rem .1rem;
}
.sidebar-logout {
  color: #ced4da;
  text-decoration: none;
  padding: .5rem .6rem;
  border-top: 1px solid #333;
  margin-top: 1rem;
}
.sidebar-logout:hover { color: #fff; }
.contenido-con-sidebar { margin-left: 230px; width: calc(100% - 230px); transition: margin-left .2s ease, width .2s ease; }

body.sidebar-oculto .sidebar-menu { transform: translateX(-100%); }
body.sidebar-oculto .contenido-con-sidebar { margin-left: 0; width: 100%; }

@media (max-width: 767.98px) {
  .sidebar-menu { position: fixed; width: 230px; height: auto; }
  .contenido-con-sidebar { margin-left: 0; width: 100%; }
}

/* --- Especifico de Sistema de Incidencias --- */
.tipo-card {
  display: block;
  text-align: left;
  border: 1px solid #e2e2e2;
  border-radius: .6rem;
  background: #fff;
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.tipo-card:hover {
  border-color: var(--brand-yellow-dark);
  box-shadow: 0 .35rem .75rem rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.tipo-card .icono { font-size: 1.7rem; }
.tipo-card .nombre { font-weight: 700; margin-top: .4rem; }
.tipo-card .descripcion { font-size: .8rem; color: #6c757d; margin-top: .15rem; }

.badge-pendiente { background:#fff3cd; color:#664d03; }
.badge-aprobada { background:#d1e7dd; color:#0f5132; }
.badge-rechazada { background:#f8d7da; color:#842029; }
.badge-capturada { background:#e2e3e5; color:#41464b; }
.badge-enviada { background:#fff3cd; color:#664d03; }
.badge-autorizada { background:#cff4fc; color:#055160; }
.badge-recibida { background:#cfe2ff; color:#084298; }
.badge-aplicado { background:#d1e7dd; color:#0f5132; }

.aviso-legal {
  background:#fff8e6;
  border:1px solid #ffe69c;
  border-radius:.5rem;
  padding:.6rem .8rem;
  font-size:.8rem;
  color:#664d03;
}

.grupo-campos { display: none; }
.grupo-campos.activo { display: block; }
