@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/* CUSTOM bootstrap CSS */

/* Evaluation Scorecard Styles */

/* Category Navigation */
.category-nav-item {
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.category-nav-item:hover {
  background-color: #f8f9fa !important;
}

.category-nav-item.active {
  border-left-color: #0d6efd;
  font-weight: 600;
}

.category-nav-item .progress {
  border-radius: 4px;
}

/* Evaluation Table */
.evaluation-table {
  font-size: 0.9rem;
}

.evaluation-table th {
  font-weight: 600;
  color: #495057;
  background-color: #f8f9fa;
  border: none;
  padding: 0.75rem 0.5rem;
}

.evaluation-table td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
  border-color: #e9ecef;
}

.metric-row:hover {
  background-color: #f8f9fa;
}

/* Radio Button Groups */
.evaluation-table .btn-group-sm .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.2rem;
}

.evaluation-table .btn-check:checked + .btn-outline-success {
  background-color: #198754;
  border-color: #198754;
  color: white;
}

.evaluation-table .btn-check:checked + .btn-outline-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

.evaluation-table .btn-check:checked + .btn-outline-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

/* Notes textarea */
.evaluation-table textarea {
  resize: vertical;
  min-height: 32px;
  transition: height 0.2s ease;
}

.evaluation-table textarea:focus {
  min-height: 60px;
}

/* Progress indicators */
.progress {
  height: 8px;
  background-color: #e9ecef;
}

.progress-bar {
  transition: width 0.3s ease;
}

/* Category summary card */
.border-info {
  border-color: #0dcaf0 !important;
}

/* Save status indicator */
.text-success {
  color: #198754 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-danger {
  color: #dc3545 !important;
}

/* Sticky positioning */
.sticky-top {
  position: sticky !important;
  top: 20px !important;
  z-index: 1020;
}

/* Navigation buttons */
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .evaluation-table {
    font-size: 0.8rem;
  }
  
  .evaluation-table th,
  .evaluation-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .btn-group-sm .btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }
  
  .sticky-top {
    position: relative !important;
    top: auto !important;
  }
}

/* Focus states for accessibility */
.btn-check:focus + .btn {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

textarea:focus,
.btn:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Animation for category transitions */
.category-section {
  transition: opacity 0.2s ease;
}

.category-section.d-none {
  opacity: 0;
}

/* Badge styling */
.badge {
  font-size: 0.7rem;
  padding: 0.35em 0.65em;
}

/* Card enhancements */
.card {
  border: 1px solid #dee2e6;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

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

/* Table hover effects */
.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.025);
}

/* Loading states */
.saving-indicator {
  opacity: 0.7;
  pointer-events: none;
}

/* Error states */
.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Scorecard total score circle - make it smaller */
.card-body .display-6 {
  font-size: 2.5rem !important; /* Smaller than default 3.5rem */
  line-height: 1.1 !important;
  margin-bottom: 0.25rem !important;
}

/* Scorecard radar chart component */
.cursor-pointer {
  cursor: pointer;
}

.rounded-circle:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Grade display specific styles */
[data-controller*="scorecard-toggle"] .fw-bold {
  user-select: none;
  transition: all 0.2s ease;
}

/* Superscript styling for grades */
[data-controller*="scorecard-toggle"] sup {
  font-size: 0.7em;
  top: -0.3em;
  line-height: 0;
}
@import url("https://npmcdn.com/flatpickr/dist/themes/dark.css");
.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: 100%;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: center;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  /* -webkit-flex-grow: 1; */
  /* flex-grow: 1; */
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}
/* 
 * Estilos para filtros de operaciones con cards
 * Compatible con WCAG 2.1 AA
 */

/* Estilos base para cards de filtro */
.filter-status-card {
  display: inline-block;
  position: relative;
  transition: all 0.15s ease-in-out;
}

.filter-status-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15) !important;
}

/* Estado activo de los filtros */
.filter-status-card.active {
  background: #0d6efd !important;
  color: white;
}

.filter-status-card.active i,
.filter-status-card.active span {
  color: white !important;
}

.filter-status-card.active .badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

/* Estados de enfoque para accesibilidad */
.filter-status-card:focus {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

/* Responsive - ajustes para pantallas pequeñas */
@media (max-width: 768px) {
  .filter-status-card .card-body {
    padding: 0.4rem !important;
    font-size: 0.875rem;
  }
  
  .filter-status-card i {
    font-size: 0.9rem !important;
  }
  
  .filter-status-card .badge {
    font-size: 0.75rem;
  }
}

/* Estados de alta visibilidad para usuarios que prefieren movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .filter-status-card {
    transition: none;
  }
  
  .filter-status-card:hover {
    transform: none;
  }
}

/* Tema de alto contraste */
@media (prefers-contrast: high) {
  .filter-status-card:focus {
    outline-width: 4px;
    outline-offset: 3px;
  }
  
  .filter-status-card.active {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
  }
}

/* Asegurar que los elementos ocultos no sean focusables */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
 body{
  --default-status-color: #52565e;
  --blue-status-color: #0077c8;
  --purple-status-color: #52057f;
  --carmesi-status-color: #bf033b;
  --green-status-color: #008000;
  --teal-status-color: #4a8594;
  --dark-status-color: #000000;
  --amber-status-color: #ffc107;
  --cyan-status-color: #00c4cc;

 }

 .circle-status{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.5;
 }
 .circle-status:hover{
  cursor: pointer;
  opacity: 1;
 }
 .circle-status.selected{
  opacity: 1;
 }
.bg-default-status-color{
  background-color: var(--default-status-color);
}
.bg-blue-status-color{
  background-color: var(--blue-status-color);
}
 .bg-purple-status-color{
  background-color: var(--purple-status-color);
 }
 .bg-carmesi-status-color{
  background-color: var(--carmesi-status-color);
 }
 .bg-green-status-color{
  background-color: var(--green-status-color);
 }
 .bg-teal-status-color{
  background-color: var(--teal-status-color);
 }
 .bg-dark-status-color{
  background-color:   var(--dark-status-color);
 }
 .bg-amber-status-color{
  background-color: var(--amber-status-color);
 }
 .default-status-color{
  color: var(--default-status-color);
 }
 .blue-status-color{
  color: var(--blue-status-color);
 }
 .purple-status-color{
  color: var(--purple-status-color);
 }
 .carmesi-status-color{
  color: var(--carmesi-status-color);
 }
 .green-status-color{
  color: var(--green-status-color);
 }
 .teal-status-color{
  color: var(--teal-status-color);
 }
 .dark-status-color{
  color: var(--dark-status-color);
 }
 .amber-status-color{
  color: var(--amber-status-color);
 }
 
 
 
 
 a{
  text-decoration: none !important;
 }
 


 .text-warning {
    color: #ffc107; /* Ámbar */
  }
  
  .text-orange {
    color: #fd7e14; /* Naranja */
  }
  
  .text-danger {
    color: #dc3545; /* Rojo */
  }


body{
  --unity: 4px;
}

.h-2{
  height: calc(var(--unity) * 2);
}
.h-4{
  height: calc(var(--unity) * 4)
}
.h-8{
  height: calc(var(--unity) * 8)
}
.h-10{
  height: calc(var(--unity) * 10)
}
.h-12{
  height: calc(var(--unity) * 12)
}
.h-16{
  height: calc(var(--unity) * 16)
}

/* Badge Outline Styles */
.badge-outline {
  background-color: transparent !important;
  border: 1px solid;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
}

.badge-outline-primary {
  color: var(--bs-primary) !important;
  border-color: var(--bs-primary);
}

.badge-outline-secondary {
  color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary);
}

.badge-outline-success {
  color: var(--bs-success) !important;
  border-color: var(--bs-success);
}

.badge-outline-danger {
  color: var(--bs-danger) !important;
  border-color: var(--bs-danger);
}

.badge-outline-warning {
  color: var(--bs-warning) !important;
  border-color: var(--bs-warning);
}

.badge-outline-info {
  color: var(--bs-info) !important;
  border-color: var(--bs-info);
}

.badge-outline-dark {
  color: var(--bs-dark) !important;
  border-color: var(--bs-dark);
}

/* Hover states */
.badge-outline-primary:hover {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
}

.badge-outline-secondary:hover {
  background-color: var(--bs-secondary) !important;
  color: #fff !important;
}

.badge-outline-success:hover {
  background-color: var(--bs-success) !important;
  color: #fff !important;
}

.badge-outline-danger:hover {
  background-color: var(--bs-danger) !important;
  color: #fff !important;
}

.badge-outline-warning:hover {
  background-color: var(--bs-warning) !important;
  color: #fff !important;
}

.badge-outline-info:hover {
  background-color: var(--bs-info) !important;
  color: #fff !important;
}

.badge-outline-dark:hover {
  background-color: var(--bs-dark) !important;
  color: #fff !important;
}
