/* Login */

/* Para móviles */

/* @media (max-width: 768px) {
  #contenido {
    min-height: 800px;
  }
} */

/*  */

input[type="number"] {
  -moz-appearance: textfield;
}

.form-data {
  margin-top: 20px;
  margin-bottom: 20px;
}

.form-data .field {
  margin-bottom: 15px;
}

#contenido {
  margin-bottom: 100px;
}

.login-page #contenido {
  margin-bottom: 0;
}

#alert-error {
  margin-top: 30px;
  max-width: 300px;
  min-width: 300px;
}

.login-card {
  border-radius: 12px;
}

.login-title {
  font-weight: 700;
  color: #1f2a37;
}

.login-subtitle {
  color: #6c757d;
  font-size: 0.95rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e9ecef;
  background: #fff;
  cursor: pointer;
}

.profile-avatar.is-placeholder {
  background: #e9ecef;
}

.session-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f1f1;
}

.session-item:last-child {
  border-bottom: none;
}

.session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #f8f9fb;
  border: 1px solid #f0f0f0;
  margin-bottom: 0.65rem;
}

.session-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.session-date {
  font-weight: 600;
  color: #1f2a37;
}

.session-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.session-tags .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.badge-soft {
  background: #eef2f6;
  color: #4b5563;
}

.badge-soft-primary {
  background: #e6f0ff;
  color: #1d4ed8;
}

.badge-soft-danger {
  background: #fde8e8;
  color: #b91c1c;
}

.badge-soft-warning {
  background: #fff5e5;
  color: #b45309;
}

.badge-soft-secondary {
  background: #f1f5f9;
  color: #475569;
}

.badge-soft-android {
  background: #e7f8ee;
  color: #0f7a3b;
}

.badge-soft-ios,
.badge-soft-macos {
  background: #eef2f7;
  color: #3a4a5b;
}

.badge-soft-windows {
  background: #e8f1ff;
  color: #1e4fbf;
}

.badge-soft-linux {
  background: #fff4e5;
  color: #9a5a00;
}

.session-ip {
  font-size: 0.9rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 575.98px) {
  .session-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.navbar {
  font-size: 15px !important;
  background-color: var(--bs-black) !important;
}

.footer {
  /*margin-top: 120px;*/
  background-color: var(--bs-black) !important;
}

.container, .container-lg, .container-md, .container-sm, .container-xl {
  max-width: 1400px !important;
}

.main-column {
  /*width: 150px;*/
  /*min-height: 130px;*/
  /*margin: 9px;*/
  padding: 5px;
  border-radius: 5px;
  border-left: 2px solid #b71b24 !important;
  border-top: 2px solid #d9d9d9 !important;
  border-right: 2px solid #d9d9d9 !important;
  border-bottom: 2px solid #d9d9d9 !important;
  /*-webkit-box-shadow: 3px 3px 5px 1px rgba(135, 135, 135, 1);*/
  /*-moz-box-shadow: 3px 3px 5px 1px rgba(135, 135, 135, 1);*/
  /*box-shadow: 3px 3px 5px 1px rgba(135, 135, 135, 1);*/
  /*width: 95%;*/
}

.main-icon {
  background-color: #b71b24 !important;
  color: #fff;
  text-align: center;
  font-size: 22px;
  width: 50px;
  height: 50px;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.main-link {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.grid-js {
  min-height: 600px;
}

.form-section {
  border-radius: 14px;
  overflow: hidden;
}

.form-section .card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.section-title {
  font-weight: 700;
  color: var(--bs-info);
}

.form-datos .form-control:disabled,
.form-datos .form-control[readonly] {
  background-color: #f8f9fa;
  color: #495057;
  opacity: 1;
}

.key-field {
  font-weight: 700;
  background-color: #fff7e6;
  border-color: #f0c36d;
}

.montos-card .key-field {
  font-size: 1.05rem;
}

.doc-card {
  border-radius: 14px;
}

.doc-card .card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.doc-section-title {
  font-weight: 700;
  color: #1f2a37;
}

.doc-section-subtitle {
  font-size: 0.9rem;
  color: #6c757d;
}

.doc-empty {
  color: #6c757d;
}

#tabla-docs .gridjs-thead,
#tabla-operadores .gridjs-thead,
#tabla-estabs .gridjs-thead,
#tabla-docs thead,
#tabla-operadores thead,
#tabla-estabs thead {
  display: none;
}

#tabla-docs .gridjs-td,
#tabla-operadores .gridjs-td,
#tabla-estabs .gridjs-td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f1f1;
}

.doc-row-title {
  min-width: 0;
}

.doc-row-title .doc-name {
  min-width: 0;
}

@media (max-width: 991.98px) {
  .offcanvas-fullscreen {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
  }

  .offcanvas-fullscreen.offcanvas-end {
    transform: translateX(100%);
  }

  .offcanvas-fullscreen.offcanvas-end.show {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  th:nth-child(2), td:nth-child(2), th:nth-child(4), td:nth-child(4), th:nth-child(5), td:nth-child(5) {
    display: none;
  }
}

/* @media (max-width: 768px) {
  th:nth-child(2),
  td:nth-child(2) {
    display: none;
  }
} */

#reader {
  width: 100vw;
  height: 100vh;
}

.qr-frame {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  max-width: 350px;
  max-height: 350px;
  transform: translate(-50%, -50%);
  border: 2px solid white;
  box-sizing: border-box;
  border-radius: 10px;
  pointer-events: none;
}

.home-btn {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-radius: 5px !important;
  border: 1px solid #e6e6e6 !important;
  cursor: pointer !important;
  color: #1f2a37 !important;
  text-decoration: none !important;
  text-align: left;
  width: 100%;
  padding: 14px 12px;
  border-left: 4px solid #b71b24 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-btn .row {
  align-items: center;
}

.home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: #d9d9d9 !important;
}

.home-icon {
  color: #b71b24;
  font-size: 48px;
  font-weight: normal !important;
  padding-left: 12px;
}

.home-title {
  color: #0f172a;
  font-size: 18px !important;
  font-weight: bold !important;
  padding-left: 16px;
  margin-bottom: 4px;
}

.home-subtitle {
  color: #616161;
  font-size: 14px;
  font-weight: normal;
  padding-left: 16px;
}

.gridjs-search {
  width: 100% !important;
  padding-left: 2px;
  padding-right: 2px;
}

.gridjs-search input {
  width: 100% !important;
  max-width: none;
}

.btn-primary {
  background-color: #b71b24;
  border-color: #b71b24;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #9f161e;
  border-color: #9f161e;
}

.aprobado {
  background-color: "#2ECDA7" !important;
  color: "#2ECDA7" !important;
  padding: 4px !important;
  text-transform: uppercase !important;
}

.rechazado {
  background-color: "#E35169";
  color: "#E35169";
  padding: 4px;
  text-transform: uppercase;
}

.presentado {
  background-color: "#A2B5CD";
  color: "#A2B5CD";
  padding: 4px;
  text-transform: uppercase;
}

.vencido {
  background-color: "#18222F";
  color: "#000";
  padding: 4px;
  text-transform: uppercase;
}

.navbar-brand {
  padding-top: var(--bs-navbar-brand-padding-y);
  padding-bottom: var(--bs-navbar-brand-padding-y);
  margin-right: 0px;
  font-size: var(--bs-navbar-brand-font-size);
  color: var(--bs-navbar-brand-color);
  text-decoration: none;
  white-space: nowrap;
}

#tabla-docs .gridjs-wrapper,
#tabla-docs .gridjs-container {
  overflow-x: hidden;
}

#tabla-docs .gridjs-table {
  table-layout: fixed;
  width: 100%;
}

#tabla-docs .gridjs-td,
#tabla-docs .gridjs-th {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#tabla-docs .doc-title {
  display: block;
  word-break: break-all;
  overflow-wrap: anywhere;
}

#tabla-docs .doc-row {
  gap: 8px;
}

#tabla-docs .doc-meta {
  flex: 1 1 auto;
  min-width: 0;
}

#tabla-docs .doc-status {
  flex: 0 0 120px;
  max-width: 120px;
}

.offcanvas-body p {
  cursor: pointer;
}

.menu-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
}

.menu-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.menu-user-avatar.is-placeholder {
  background: rgba(255, 255, 255, 0.12);
}

.menu-user-name {
  font-weight: 600;
  color: #fff;
}

.menu-user-email {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
