:root {
  --color-style-light: #007bff;
  --color-style-medium: #0056b3;
  --color-style-shadow: rgba(0, 123, 255, 0.25);
}

.brand-link .brand-image {
  opacity: 0.9 !important;
  background-color: white !important;
}

.login-logo b {
  color: #007bff;
}

.login-logo img {
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.main-footer {
  padding-top: 5px;
  padding-bottom: 5px;
}

/* ── Iconos PNG del sidebar ──────────────────────────────────────────────── */
[class^="icon-"] {
  padding-left: 10px;
  padding-right: 10px;
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: left center;
  filter: brightness(0) invert(1);
}

.icon-admin {
  background-image: url("/image/icon-admin.png");
}
.icon-company {
  background-image: url("/image/icon-company.png");
}
.icon-user {
  background-image: url("/image/icon-user.png");
}
.icon-permission {
  background-image: url("/image/icon-permission.png");
}
.icon-error {
  background-image: url("/image/icon-error.png");
}
.icon-task {
  background-image: url("/image/icon-task.png");
}
.icon-backup {
  background-image: url("/image/icon-backup.png");
}
.icon-email {
  background-image: url("/image/icon-email.png");
}

.session-subtitle {
  background-color: #f1f1f1;
  padding: 5px;
  border-radius: 0.5rem;
  color: var(--color-style-light);
  margin-bottom: 1rem;
  border-left: 4px solid var(--color-style-light);
  text-align: center;
  font-size: 14pt;
  font-weight: bold;
}

.error-content {
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
}

.log-date {
  font-weight: bold;
}

.log-type-info {
  font-weight: bold;
  color: #0d6efd;
}

.log-type-error {
  font-weight: bold;
  color: #dc3545;
}

.input-wrapper {
  width: 80%;
}

@media (max-width: 768px) {
  .input-wrapper {
    width: 100%;
  }
}

.company-logo {
  max-width: 150px;
  max-height: 80px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.input-text-style {
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  background-color: #fff;
  width: 100%;
  max-width: 100%;
}

.input-file-style {
  border: 2px solid var(--color-style-light);
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  outline: none;
  background-color: #fff;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  font-family: inherit;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
}

.input-file-style:focus {
  border-color: var(--color-style-medium);
  box-shadow: 0 0 0 0.2rem var(--color-style-shadow);
}

.select-style {
  border-radius: 0.5rem;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  appearance: none;
  background-color: #fff;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23007bff" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

.content-header h1 {
  color: var(--color-style-light);
  font-size: 16pt;
  font-weight: bold;
}

/* ── Badges de estado ────────────────────────────────────────────────────── */
.status-1,
.status-2,
.status-3,
.status-4,
.status-5,
.status-6,
.status-7,
.status-8,
.status-9,
.status-10,
.status-11,
.status-12,
.status-13,
.status-14,
.status-15,
.status-16 {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 1rem;
}

/* Estados generales */
/* Activo */
.status-1 {
  background-color: #198754;
  color: #fff;
}

/* Inactivo */
.status-2 {
  background-color: #6c757d;
  color: #fff;
}

/* Estados de facturas */
/* Recibido */
.status-3 {
  background-color: #0d6efd;
  color: #fff;
}

/* Legalizando */
.status-4 {
  background-color: #ffc107;
  color: #212529;
}

/* Aceptado */
.status-5 {
  background-color: #198754;
  color: #fff;
}

/* Rechazado */
.status-6 {
  background-color: #dc3545;
  color: #fff;
}

/* ── Badges de actividad ─────────────────────────────────────────────────── */
.activity-online,
.activity-last_seen,
.activity-no_activity {
  padding: 0.5rem 1rem;
  font-size: 14px;
  border-radius: 1rem;
  color: #fff;
}

.activity-online {
  background-color: #4caf50;
}
.activity-last_seen {
  background-color: #9e9e9e;
}
.activity-no_activity {
  background-color: #bdbdbd;
}

.now-rap {
  white-space: nowrap;
}
