.pl-0{
  padding-left: 0px;
}

.mb-0{
  margin-bottom:0px;
}
.second-step-overlay{
    position: relative;
    overflow: hidden;
    opacity: 0.3;
}
.second-step-overlay:after{
    content: "";
    background: transparent;
    position: absolute;
    width: 100%;
    height: 2000px;
    top: 0;
    left: 0;
}

.fieldset-custom{
    margin-bottom: 15px;
    padding-bottom: 10px;
}
.fieldset-filters{
    border: solid 2px #90C3D4;
}
.fieldset-required{
    border: solid 2px #A1D490;
}
.fieldset-label{
    background: #FFF;
    position: relative;
    top: -10px;
    left: 10px;
    color: #8B8986;
    padding:5px;
}

.panel-footer.bg-warning{
    background-color: #fcf8e3 !important;
    padding: 10px 20px 20px 20px;
}

.skin-blue .form-control:focus{
    border-color: #0b5b8e;
}

.form-control,
.select2-container.form-control {
    border: 1px solid;
    border-color: #e0e0e0;
    border-radius: 5px;
    height: 40px;
}

::placeholder{
    color: #e0e0e0;
}

.select2-container .select2-choice {
    height: 100% !important;
    line-height: 2.02857 !important;
}
.select2-container .select2-choice .select2-arrow b, .select2-container .select2-choice div b {
    background-position: 0 8px !important;
}

.select2-container .select2-choice abbr {
    top: 55% !important;
}

.form-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}
.form-card legend {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0rem 2rem;
  align-items: center;
}

.radio-label {
  display: flex;
  align-items: center;
  padding:1rem 2rem;
  margin-bottom: 0.5em;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: background-color 0.2s, border-color 0.2s;
}

.radio-label:hover {
  background-color: #e6e6e6;
}

.radio-input {
  position: absolute;
  opacity: 0;
}

.radio-input:checked + .radio-label,
.radio-input:checked + .custom-error-label + .radio-label {
  border-color: #e0e0e0;
  outline: 2px solid #90C3D4;
}

.radio-input:focus + .radio-label {
  outline: 2px solid #90C3D4;
}

.radio-inner-circle {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid #888;
  border-radius: 50%;
  margin-right: 0.5em;
  transition: border-color 0.2s;
  position: relative;
}

.radio-label:hover .radio-inner-circle {
  border-color: #555;
}

.radio-input:checked + .radio-label .radio-inner-circle,
.radio-input:checked + .custom-error-label + .radio-label .radio-inner-circle {
  border-color: #90C3D4;
}

.radio-input:checked + .radio-label .radio-inner-circle::after,
.radio-input:checked + .custom-error-label + .radio-label .radio-inner-circle::after {
  content: '';
  display: block;
  width: 0.5em;
  height: 0.5em;
  background-color: #90C3D4;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* === Checkbox visual === */
.checkbox-inner {
  position: relative;
  width: 20px;
  min-width: 20px;
  height: 20px;
  background-color: #eee;
  border-radius: 4px;
  margin-right: 0.75em;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.checkbox-inner::after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* === Checked === */
.radio-input:checked + .radio-label .checkbox-inner {
  background-color: #2196F3;
  box-shadow: 0 3px 7px rgba(33, 150, 243, 0.3);
}

.radio-input:checked + .radio-label .checkbox-inner::after {
  display: block;
  animation: checkAnim 0.2s forwards;
}

/* === Focus === */
.radio-input:focus + .radio-label {
  outline: 2px solid #90C3D4;
}

/* === Animación del check === */
@keyframes checkAnim {
  0% {
    height: 0;
  }
  100% {
    height: 10px;
  }
}

.custom-error-label {
  flex-basis: 100%;
  order: 1;
  font-size: 14px;
}

#jobRequestFormS3 .alert-success{
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 1rem;
  height: 82%;
}


.custom-file-upload {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: space-between;
  gap: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cacaca;
  background-color: rgba(255, 255, 255, 1);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0px 48px 35px -48px rgba(0,0,0,0.1);
}

.custom-file-upload .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-file-upload .icon svg {
  height: 80px;
  fill: rgba(75, 85, 99, 1);
}

.custom-file-upload .text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-file-upload .text span {
  font-weight: 400;
  color: rgba(75, 85, 99, 1);
}

.custom-file-upload input {
  display: none;
}

.d-flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.align-items-center {
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.modalLarge .modal-dialog{
          width: 100%;
          max-width: 1000px !important; 
          margin: 2rem auto 
        }
        .modalLarge{
          width: 100%;
          margin: 0 auto;
          padding: 0;
          height: 98%;
        }
        .flex-wrap {
          flex-wrap: wrap;
        }
        .gap-y-4 {
          gap: 1rem 0;
        }
        .modalSmall .modal-dialog{
          width: 96%;
          margin: 2rem auto;
        }

        .tabs-equal {
          display: flex;
          flex-wrap: wrap; 
        }

        .tabs-equal > li {
          flex: 1 1 auto;     
          text-align: center; 
        }

        .tabs-equal > li > a {
          width: 100%; 
        }
  

        @media (max-width:576px){
        .radio-group {
          display: flex;
          flex-wrap: nowrap;
          gap: 0rem 2rem;
          align-items: stretch;
          flex-direction: column;
          }
        }
        @media (max-width: 992px) {
          .modalLarge {
            margin: 0 auto;
            padding: 2rem 0;
            height: 100%;
          }
          .modalLarge .modal-dialog{
            width: 95%;
            margin: 0 auto;
          }
        }
        @media (min-width: 768px) {
          .modal-dialog {
              width: 600px;
              margin: auto;
          }
        }

/* ==========================================================================
   ✨ Modern UI/UX Tokens: Smart Absence Calculator & Drag-and-Drop Uploader
   ========================================================================== */
/* ==========================================================================
   ✨ Modern UI/UX Tokens: Request Form Modal, Hero Banners, Smart Absence Card & Dropzone
   ========================================================================== */

/* Modern Modal Body Container */
.rh-request-modal-body {
    padding: 0 4px;
    font-family: inherit;
}

/* Dynamic Hero Header Banner */
.rh-request-hero-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    animation: rhHeroFadeIn 0.3s ease-out;
}

@keyframes rhHeroFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.rh-request-hero-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.rh-request-hero-info {
    flex: 1;
}

.rh-request-hero-title {
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.2px;
}

.rh-request-hero-subtitle {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Banner Color Variants */
.rh-request-hero-banner.rh-hero-vacation {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
}
.rh-request-hero-banner.rh-hero-vacation .rh-request-hero-icon {
    background: #f59e0b;
    color: #ffffff;
}

.rh-request-hero-banner.rh-hero-permission {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}
.rh-request-hero-banner.rh-hero-permission .rh-request-hero-icon {
    background: #2563eb;
    color: #ffffff;
}

.rh-request-hero-banner.rh-hero-medical {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}
.rh-request-hero-banner.rh-hero-medical .rh-request-hero-icon {
    background: #059669;
    color: #ffffff;
}

.rh-request-hero-banner.rh-hero-overtime {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #e9d5ff;
}
.rh-request-hero-banner.rh-hero-overtime .rh-request-hero-icon {
    background: #7c3aed;
    color: #ffffff;
}

.rh-request-hero-banner.rh-hero-document {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #e2e8f0;
}
.rh-request-hero-banner.rh-hero-document .rh-request-hero-icon {
    background: #475569;
    color: #ffffff;
}

.rh-request-hero-banner.rh-hero-schedule {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-color: #99f6e4;
}
.rh-request-hero-banner.rh-hero-schedule .rh-request-hero-icon {
    background: #0d9488;
    color: #ffffff;
}

.rh-request-hero-banner.rh-hero-training {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: #c7d2fe;
}
.rh-request-hero-banner.rh-hero-training .rh-request-hero-icon {
    background: #4f46e5;
    color: #ffffff;
}

.rh-request-hero-banner.rh-hero-retirement {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: #fecdd3;
}
.rh-request-hero-banner.rh-hero-retirement .rh-request-hero-icon {
    background: #e11d48;
    color: #ffffff;
}

/* Modern Form Cards (Grouping) */
.rh-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px 12px 18px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.rh-form-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.rh-form-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.rh-form-card-title i {
    color: #3b82f6;
    font-size: 13px;
}

/* Modern Inputs & Form Controls */
#request_form label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
    letter-spacing: 0.1px;
}

#request_form .form-control {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

#request_form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

#request_form .input-group-addon {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0 8px 8px 0;
    color: #64748b;
    font-size: 13px;
    transition: all 0.2s ease;
}

#request_form .input-group .form-control {
    border-radius: 8px 0 0 8px;
}

#request_form .input-group-addon:first-child {
    border-radius: 8px 0 0 8px;
    border-right: 0;
}

#request_form .input-group-addon:first-child + .form-control {
    border-radius: 0 8px 8px 0;
}

#request_form .input-group:has(.form-control.request-invalid) .input-group-addon {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

#request_form .input-group .form-control.request-invalid {
    box-shadow: none !important;
}

/* Select2 Modern Overrides for Request Form */
#request_form .select2-container .select2-choice {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    height: 38px;
    line-height: 36px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    font-size: 13px;
    padding-left: 12px;
}

#request_form .select2-container.select2-dropdown-open .select2-choice {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

#request_form .select2-container .select2-choice .select2-arrow {
    background: transparent;
    border-left: none;
    width: 28px;
}

/* Validación compartida de solicitudes (Select2 3 y 4). */
#request_form label.request-required::after {
    content: " *";
    color: #b91c1c;
    font-weight: 700;
}

#request_form .request-validation-error {
    display: block;
    clear: both;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

#request_form .form-control.request-invalid,
#request_form .select2-container .request-invalid,
#request_form .select2-container.select2-dropdown-open .request-invalid {
    /* El tema de Select2 también define estas propiedades con !important. */
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15) !important;
}

/* Smart Absence & Vacation Balance Card */
.rh-smart-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.rh-smart-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    border-color: #94a3b8;
}

.rh-smart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.rh-smart-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rh-smart-card-title i {
    color: #2563eb;
    font-size: 14px;
}

.rh-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
}

.rh-badge-info {
    background-color: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.rh-badge-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.rh-smart-stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.rh-stat-item {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.rh-stat-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.rh-stat-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.rh-stat-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    margin: 4px 0 2px 0;
}

.rh-stat-sub {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 500;
}

/* Vacation Consumption Progress Bar */
.rh-balance-progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.rh-balance-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.rh-smart-card-footer {
    font-size: 11.5px;
    color: #475569;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tactile Modern Check Cards */
.rh-check-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin-bottom: 8px;
    width: 100%;
}

.rh-check-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.rh-check-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rh-check-card-box {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rh-check-card input[type="checkbox"]:checked ~ .rh-check-card-box {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.rh-check-card:has(input[type="checkbox"]:checked) {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.rh-check-card-content {
    flex: 1;
}

.rh-check-card-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: block;
}

.rh-check-card-sub {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-top: 1px;
}

/* Drag & Drop Upload Zone */
.rh-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 4px;
}

.rh-dropzone:hover, .rh-dropzone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.rh-dropzone-icon {
    font-size: 28px;
    color: #94a3b8;
    margin-bottom: 6px;
    transition: color 0.25s ease;
}

.rh-dropzone:hover .rh-dropzone-icon, .rh-dropzone.dragover .rh-dropzone-icon {
    color: #3b82f6;
}

.rh-dropzone-text {
    font-size: 12.5px;
    color: #475569;
    margin: 0 0 4px 0;
}

.rh-dropzone-hint {
    font-size: 11px;
    color: #94a3b8;
    display: block;
}

.rh-file-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rh-file-icon {
    font-size: 26px;
    margin-right: 12px;
}

.rh-file-info {
    flex: 1;
    overflow: hidden;
}

.rh-file-name {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rh-file-size {
    display: block;
    font-size: 11px;
    color: #64748b;
}

/* Reposition & Schedule Tables Container Card */
.rh-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.rh-table-card table.display {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.rh-table-card table.display thead th {
    background: #1e293b;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 8px 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: none;
}

.rh-table-card table.display tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12.5px;
    color: #334155;
}

/* Modal Actions Footer */
.rh-modal-footer-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    margin-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.rh-btn-cancel {
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.rh-btn-cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.rh-btn-submit {
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.rh-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.rh-btn-submit:disabled {
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   ⏰ Modern TimePicker (MTP) Styles
   ========================================================================== */
.mtp-popover {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 12px 14px;
    width: 260px;
    font-family: inherit;
    user-select: none;
    animation: mtpFadeIn 0.18s ease-out;
}

@keyframes mtpFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.mtp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.mtp-display {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.mtp-display-time {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.5px;
}

.mtp-display-period {
    font-size: 11px;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 4px;
    padding: 2px 6px;
}

.mtp-btn-now {
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.mtp-btn-now:hover {
    background: #eff6ff;
    text-decoration: underline;
}

.mtp-quick-section {
    margin-bottom: 8px;
}

.mtp-quick-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 4px;
    letter-spacing: 0.4px;
}

.mtp-quick-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mtp-pill {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s;
}

.mtp-pill:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
}

.mtp-pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.mtp-body {
    display: flex;
    gap: 8px;
    height: 155px;
    margin-bottom: 8px;
}

.mtp-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border-radius: 6px;
    padding: 4px;
    border: 1px solid #e2e8f0;
}

.mtp-col-title {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2px;
}

.mtp-col-scroll {
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
}

.mtp-col-scroll::-webkit-scrollbar {
    width: 4px;
}
.mtp-col-scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.mtp-item {
    width: 100%;
    background: transparent;
    border: none;
    padding: 5px 0;
    text-align: center;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.mtp-item:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.mtp-item.active {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700;
}

.mtp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

/* ==========================================================================
   ✨ Modern Slim Top Progress Bar for Global AJAX
   ========================================================================== */
#progressBar_main {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 3px !important;
    z-index: 99999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: opacity 0.2s ease;
}

#progressBar_main .progress-bar {
    height: 3px !important;
    line-height: 3px !important;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #10b981) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.7) !important;
    border-radius: 0 2px 2px 0 !important;
}

/* Evitar overlays que bloqueen las tablas */
.rh-table-skeleton-overlay {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ==========================================================================
   ✨ Modern Request Detail & Approval Stepper
   ========================================================================== */
.rh-request-detail-wrapper {
    font-family: inherit;
    color: #1e293b;
}

.rh-detail-header-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.rh-detail-user-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rh-detail-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.rh-detail-user-meta {
    flex: 1;
    overflow: hidden;
}

.rh-employee-name {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rh-meta-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.rh-type-pill {
    display: inline-block;
    background: #e2e8f0;
    color: #334155;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: capitalize;
}

.rh-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
}

.rh-status-badge.status-demanded {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.rh-status-badge.status-progress {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.rh-status-badge.status-approved {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.rh-status-badge.status-denied {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Stepper Component */
.rh-stepper-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 10px 14px 10px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rh-stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 440px;
    margin: 0 auto;
}

.rh-stepper-track {
    position: absolute;
    top: 18px;
    left: 45px;
    right: 45px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 4px;
}

.rh-stepper-progress {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
}

.rh-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    text-align: center;
}

.rh-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.rh-step.completed .rh-step-circle {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.rh-step.active .rh-step-circle {
    background: #2563eb;
    border-color: #93c5fd;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    animation: rhPulse 1.8s infinite;
}

.rh-step.denied .rh-step-circle {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.rh-step-title {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 2px;
}

.rh-step-sub {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 500;
}

@keyframes rhPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Info Cards */
.rh-detail-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.rh-info-section-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rh-dates-grid {
    margin: 0 -4px;
}

.rh-date-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
}

.rh-date-pill-alt {
    border-left: 3px solid #3b82f6;
}

.rh-date-pill-label {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.rh-date-pill-val {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2px;
}

.rh-description-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    min-height: 48px;
    white-space: pre-wrap;
}

.rh-badge-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
}

.rh-discount-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rh-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.rh-pill-tag.rh-pill-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.rh-pill-tag.rh-pill-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.rh-pill-tag.rh-pill-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.rh-custom-alert {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12.5px;
    margin-bottom: 12px;
}

.rh-btn-approve {
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 16px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
    transition: all 0.2s;
}

.rh-btn-approve:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.35);
}

.rh-btn-deny {
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 16px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
    transition: all 0.2s;
}

.rh-btn-deny:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   ✨ MULTI-STEP WIZARD ENGINE & 360° EXECUTIVE PROFILE (GestiónRH)
   ========================================================================== */

/* --- 1. Contenedor Wizard Moderno --- */
.rh-wizard-container {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
    padding: 20px 24px 16px 24px;
    position: relative;
}

.rh-wizard-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.rh-wizard-current-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rh-wizard-step-badge {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.rh-wizard-step-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.rh-autosave-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.3s;
}

.rh-autosave-pill.saved {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.rh-autosave-pill i {
    font-size: 13px;
}

/* --- 2. Barra de Progreso Superior --- */
.rh-wizard-progress-track {
    height: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.rh-wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 3. Stepper Pills (Pasos Interactivos) --- */
.rh-wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 8px;
}

.rh-wizard-step-item {
    flex: 1;
    position: relative;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rh-wizard-step-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    background: transparent;
    border: none;
    width: 100%;
    padding: 6px 4px;
    border-radius: 10px;
    transition: all 0.2s;
}

.rh-wizard-step-btn:hover {
    background: #f8fafc;
}

.rh-wizard-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #cbd5e1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.rh-wizard-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    transition: color 0.2s;
}

/* Estado Activo */
.rh-wizard-step-item.active .rh-wizard-step-circle {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: scale(1.08);
}

.rh-wizard-step-item.active .rh-wizard-step-label {
    color: #1d4ed8;
    font-weight: 700;
}

/* Estado Completado */
.rh-wizard-step-item.completed .rh-wizard-step-circle {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.rh-wizard-step-item.completed .rh-wizard-step-label {
    color: #047857;
}

/* Ocultar pestañas tabs legacy cuando el wizard nuevo está activo */
.rh-has-wizard .nav-tabs.tabs-equal {
    display: none !important;
}

/* --- 4. Hero Card 360° para Expediente del Empleado --- */
.rh-profile-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
    border-radius: 14px;
    padding: 24px;
    color: #ffffff;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rh-profile-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.rh-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.rh-hero-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.rh-hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.rh-hero-avatar {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    object-fit: cover;
    background: #334155;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #cbd5e1;
    font-weight: 700;
}

.rh-hero-avatar-initials {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.rh-hero-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10b981;
    border: 3px solid #1e293b;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
}

.rh-hero-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rh-hero-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rh-hero-code-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.rh-hero-mode-pill {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.rh-hero-name {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.rh-hero-position {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rh-hero-position i {
    color: #38bdf8;
}

/* Quick Stats Grid */
.rh-hero-stats-grid {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rh-hero-stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 14px;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.2s;
}

.rh-hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.rh-hero-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rh-hero-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.rh-hero-stat-value.text-accent-green {
    color: #34d399;
}

.rh-hero-stat-value.text-accent-blue {
    color: #60a5fa;
}

/* --- 5. Tarjetas Seccionales Modernas (.rh-section-card) --- */
.rh-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rh-section-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.rh-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.rh-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.rh-icon-blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.rh-icon-indigo {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.rh-icon-emerald {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.rh-icon-amber {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.rh-icon-purple {
    background: #faf5ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
}

.rh-icon-slate {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.rh-section-title-wrap {
    display: flex;
    flex-direction: column;
}

.rh-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.rh-section-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* --- 6. Dropzone para Subida de Fotografía y Documentos --- */
.rh-dropzone-uploader {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.rh-dropzone-uploader:hover,
.rh-dropzone-uploader.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-1px);
}

.rh-dropzone-icon {
    font-size: 32px;
    color: #3b82f6;
    margin-bottom: 8px;
    display: inline-block;
}

.rh-dropzone-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.rh-dropzone-help {
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
}

.rh-dropzone-preview-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.rh-dropzone-preview-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- 7. Barra de Acciones del Wizard (Bottom Toolbar) --- */
.rh-wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 16px 20px;
    border-radius: 0 0 12px 12px;
    margin-top: 20px;
    gap: 12px;
}

.rh-btn-prev {
    border-radius: 8px;
    font-weight: 600;
    padding: 9px 18px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    transition: all 0.2s;
}

.rh-btn-prev:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.rh-btn-next {
    border-radius: 8px;
    font-weight: 700;
    padding: 9px 22px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s;
}

.rh-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

.rh-btn-finish {
    border-radius: 8px;
    font-weight: 700;
    padding: 9px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: all 0.2s;
}

.rh-btn-finish:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    color: #ffffff;
}

/* Responsive Wizard Stepper */
@media (max-width: 768px) {
    .rh-wizard-nav {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .rh-wizard-step-label {
        display: none;
    }
    
    .rh-wizard-step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .rh-profile-hero {
        padding: 16px;
    }
    
    .rh-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rh-hero-stats-grid {
        width: 100%;
        justify-content: space-between;
    }
    
    .rh-hero-stat-card {
        flex: 1;
        min-width: 80px;
        padding: 6px 10px;
    }
}

/* ==========================================================================
   ✨ Modern Sub-Modal Dialogs (Estudios, Experiencia, Referencias)
   ========================================================================== */
.rh-submodal-container {
    padding: 6px 4px;
    font-family: inherit;
    color: #1e293b;
}

.rh-submodal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.rh-submodal-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.rh-icon-academic {
    background: #e0f2fe;
    color: #0284c7;
}

.rh-icon-work {
    background: #ede9fe;
    color: #7c3aed;
}

.rh-icon-ref {
    background: #dcfce7;
    color: #16a34a;
}

.rh-submodal-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.rh-submodal-desc {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.rh-submodal-field {
    margin-bottom: 12px;
}

.rh-submodal-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.rh-submodal-field .form-control {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 8px 12px !important;
    height: 38px !important;
    font-size: 13px !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.rh-submodal-field .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.rh-submodal-field .select2-container .select2-choice {
    border-radius: 8px !important;
    height: 38px !important;
    line-height: 36px !important;
    border: 1px solid #cbd5e1 !important;
}

.rh-check-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin-bottom: 10px;
}

.rh-check-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.rh-check-card input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    cursor: pointer;
    accent-color: #2563eb;
}

.rh-check-card-label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin: 0;
    cursor: pointer;
}

.rh-submodal-upload {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.rh-submodal-upload:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.rh-submodal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.rh-btn-submodal-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    cursor: pointer;
}

.rh-btn-submodal-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

.rh-submodal-field .input-group {
    display: flex;
    width: 100%;
}

.rh-submodal-field .input-group-addon {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #64748b;
    border-radius: 8px 0 0 8px;
    font-size: 13px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
}

.rh-submodal-field .input-group .form-control {
    border-radius: 0 8px 8px 0 !important;
}

.rh-submodal-field .input-group .form-control:first-child {
    border-radius: 8px 0 0 8px !important;
}

.rh-submodal-field .input-group-addon:last-child {
    border-radius: 0 8px 8px 0 !important;
    border-left: none;
}

.rh-submodal-field .input-group-addon:first-child {
    border-right: none;
}

/* ==========================================================================
   ✨ Universal Modern Modal System (Global SaaS Dialog Redesign)
   ========================================================================== */

/* 1. Backdrop con desenfoque suave */
.modal-backdrop.in {
    opacity: 0.5 !important;
    background-color: #0f172a !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
}

/* 2. Dialog Container & Animación fluida */
.modal-dialog {
    margin: 25px auto !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modalSmall .modal-dialog {
    max-width: 780px !important;
    width: 92% !important;
}

.modalLarge .modal-dialog {
    max-width: 1100px !important;
    width: 95% !important;
}

.modalBig .modal-dialog {
    max-width: 950px !important;
    width: 94% !important;
}

/* 3. Card Frame del Modal */
.modal-content {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden !important;
}

/* 4. Cabecera Ejecutiva SaaS (.modal-header) */
.modal-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 16px 24px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 58px !important;
}

.modal-header .modal-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* Badges de Acción Contextual en Cabecera */
.rh-modal-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 6px;
}

.rh-modal-tag-create {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.rh-modal-tag-edit {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.rh-modal-tag-view {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.rh-modal-title-text {
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
}

/* 5. Botón de Cerrar Circular Flotante */
.modal-header .close,
.bootbox-close-button {
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    opacity: 0.85 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #e2e8f0 !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modal-header .close:hover,
.bootbox-close-button:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
    transform: translateY(-50%) rotate(90deg) scale(1.05) !important;
    opacity: 1 !important;
}

.modal-body > .bootbox-close-button {
    top: 14px !important;
    right: 14px !important;
    transform: none !important;
    z-index: 2 !important;
}

.modal-body > .bootbox-close-button:hover {
    transform: rotate(90deg) scale(1.05) !important;
}

.modal-body > .bootbox-close-button ~ .bootbox-body,
.modal-body:has(> .bootbox-close-button) > .bootbox-body {
    padding-right: 40px;
}

/* 6. Cuerpo del Modal Optimizado */
.modal-body {
    padding: 22px 26px !important;
    background: #ffffff !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
}

.modal-content:has(.bootstrap-datetimepicker-widget),
.modal-body:has(.bootstrap-datetimepicker-widget) {
    overflow: visible !important;
}

/* Un modal largo conserva su scroll aunque se abra el calendario: si no, el contenido se sale de la caja */
.modal-content:has(.rh-body-scroll .bootstrap-datetimepicker-widget) {
    overflow: hidden !important;
}
.modal-body.rh-body-scroll:has(.bootstrap-datetimepicker-widget) {
    overflow-y: auto !important;
}

/* Eliminar gap redundante si el contenido ya tiene wizard o hero card */
.rh-modal-compact-header .modal-header,
.modal:has(.rh-wizard-container) .modal-header,
.modal:has(.rh-employee-hero-card) .modal-header {
    min-height: 50px !important;
    padding: 12px 24px !important;
}

.rh-modal-compact-header .modal-body,
.modal:has(.rh-wizard-container) .modal-body,
.modal:has(.rh-employee-hero-card) .modal-body {
    padding-top: 16px !important;
}

.modal-body .rh-wizard-container,
.modal-body .rh-employee-hero-card {
    margin-top: 0 !important;
}

/* ==========================================================================
   ✨ SISTEMA DE DISEÑO MODERNO: TABLAS Y DATATABLES EN SINTONÍA CON FORMULARIOS
   ========================================================================== */

/* 1. Card Contenedora Principal */
.custom-panel,
.panel-default.custom-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
    padding: 16px 22px !important;
    margin-top: 15px !important;
    margin-bottom: 25px !important;
}

.custom-panel .panel-body {
    padding: 10px 6px !important;
}

/* ==========================================================================
   ✨ CABECERAS Y TÍTULOS DE MÓDULO UNIFICADOS (OFICIAL EufoRH.IA)
   ========================================================================== */

/* 1. Contenedor de Título de Página */
.content .custom-panel > .panel-body > .col-md-12 > .row:first-child,
.content .custom-panel > .row:first-child,
.rh-page-header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 4px !important;
    margin-bottom: 14px !important;
}

.content .custom-panel > .panel-body > .col-md-12 > .row:first-child > .col-md-1,
.content .custom-panel > .row:first-child > .col-md-1,
.rh-page-header > .col-md-1 {
    width: auto !important;
    padding: 0 !important;
    margin-right: 12px !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.content .custom-panel > .panel-body > .col-md-12 > .row:first-child > .col-md-11,
.content .custom-panel > .panel-body > .col-md-12 > .row:first-child > .col-md-12,
.content .custom-panel > .row:first-child > .col-md-11,
.content .custom-panel > .row:first-child > .col-md-12,
.rh-page-header > .col-md-11,
.rh-page-header > .col-md-12 {
    width: auto !important;
    padding: 0 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    flex: 1 !important;
}

/* 2. Ícono del Título */
.app-title-icon,
.custom-panel .row:first-child img,
.panel-body > .row:first-child img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    object-fit: contain !important;
    margin: 0 !important;
    margin-right: 10px !important;
    margin-top: 0 !important; /* Elimina margin-top: 30px hardcodeado en vistas legacy */
    float: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.08)) !important;
}

/* 3. Títulos H1 (Cubre .app-title y h1 planos de todas las grillas) */
.app-title,
.custom-panel h1,
.panel-body h1,
.rh-page-title-wrap h1 {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tratar saltos de línea <br> en títulos como un espacio limpio para que no partan en dos líneas ni se peguen las palabras */
.app-title br,
.custom-panel h1 br,
.panel-body h1 br,
.custom-panel h2 br,
.panel-body h2 br {
    display: inline-block !important;
    width: 0.32em !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    vertical-align: baseline !important;
    content: "" !important;
}

/* Subtítulos o texto secundario en H1 (<small>) */
.app-title small,
.custom-panel h1 small,
.panel-body h1 small {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    margin-left: 2px !important;
    display: inline !important;
}

/* 4. Barra Superior de Acciones y Filtros (Toolbar) - EufoRH.IA */
.rh-toolbar-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 10px !important;
    margin-bottom: 12px !important;
}

.rh-toolbar-left {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.rh-toolbar-right {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: auto !important;
    flex-wrap: wrap !important;
}

/* Barra de Metadatos de Planilla (Estado / Pagada el / Pagada por) */
.rh-meta-status-bar {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    font-size: 12.5px !important;
    color: #475569 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    margin-top: 8px !important;
    margin-bottom: 10px !important;
}

.rh-meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.rh-meta-label {
    font-weight: 700 !important;
    color: #334155 !important;
}

.rh-meta-val {
    color: #0f172a !important;
    font-weight: 600 !important;
}

.rh-meta-sep {
    color: #cbd5e1 !important;
    font-size: 14px !important;
}

.rh-info-banner {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 6px !important;
    color: #166534 !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
}

.rh-row-align-end {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.rh-update-banner {
    display: none;
    align-items: center;
    gap: 8px;
    background-color: #fefce8;
    border: 1px solid #fde047;
    border-radius: 6px;
    color: #854d0e;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.rh-update-banner.is-visible {
    display: flex;
}

.rh-update-banner i {
    font-size: 15px;
    color: #ca8a04;
    flex-shrink: 0;
}

.rh-excluded-banner {
    display: none;
    background-color: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 6px;
    color: #9a3412;
    padding: 8px 14px;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.rh-excluded-banner.is-visible {
    display: block;
}

.rh-excluded-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 600;
}

.rh-excluded-head i {
    font-size: 15px;
    color: #ea580c;
    flex-shrink: 0;
}

.rh-excluded-head .btn-link {
    color: #9a3412;
    font-weight: 600;
    text-decoration: underline;
    padding: 0;
}

.rh-excluded-banner ul {
    margin: 6px 0 0 23px;
    padding: 0;
    max-height: 160px;
    overflow-y: auto;
}

#btn-generate-paysheet.rh-needs-update {
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.5) !important;
}

.rh-info-banner i {
    font-size: 15px !important;
    color: #16a34a !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   ✨ ESTILIZACIÓN Y CENTRADO DE SELECT2 (Unificado EufoRH.IA)
   ========================================================================== */

/* Grupo de selectores de barra de herramientas */
.rh-select-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.rh-select-group .select2-container,
#s2id_selPaysheet,
#s2id_selPaysheetPayment {
    min-width: 210px !important;
    width: auto !important;
}

/* 1. Contenedor del botón Select2 */
.select2-container .select2-choice {
    display: flex !important;
    align-items: center !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    line-height: 1 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    outline: none !important;
    transition: all 0.15s ease !important;
}

.select2-container.select2-container-active .select2-choice,
.select2-container.select2-dropdown-open .select2-choice {
    border-color: #c8202e !important;
    box-shadow: 0 0 0 2px rgba(200, 32, 46, 0.15) !important;
}

/* 2. Contenido Seleccionado (.select2-chosen) - Centrado Vertical Absoluto */
.select2-container .select2-choice > .select2-chosen,
.select2-container .select2-chosen {
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
    line-height: 1 !important;
    padding: 0 0 0 10px !important;
    margin: 0 !important;
    margin-right: 28px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    flex: 1 !important;
}

/* Cuando allowclear está activo, reservar espacio para la 'x' */
.select2-container.select2-allowclear .select2-choice > .select2-chosen,
.select2-container.select2-allowclear .select2-chosen {
    margin-right: 48px !important;
}

/* 3. Badge interno (ej. [Actual] en planillas) */
.select2-chosen .label,
.select2-chosen .label-success {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #059669 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    padding: 0 6px !important;
    height: 18px !important;
    border-radius: 3px !important;
    line-height: 1 !important;
    margin: 0 !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
}

/* 4. Botón Limpiar ('x') Centrado Verticalmente */
.select2-container .select2-choice abbr.select2-search-choice-close,
.select2-container .select2-choice abbr {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 28px !important;
    margin: 0 !important;
    width: 14px !important;
    height: 14px !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #94a3b8 !important;
    background: none !important;
    cursor: pointer !important;
    outline: none !important;
    transition: color 0.15s ease !important;
}

.select2-container.select2-allowclear .select2-choice abbr {
    display: inline-flex !important;
}

.select2-container.select2-allowclear .select2-choice abbr::before {
    content: "×" !important;
}

.select2-container.select2-allowclear .select2-choice abbr:hover {
    color: #334155 !important;
}

/* 5. Flecha Desplegable (.select2-arrow) - Caret Centrado y Nítido */
.select2-container .select2-choice .select2-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 100% !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border-left: 1px solid #e2e8f0 !important;
}

.select2-container .select2-choice .select2-arrow b {
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 4px solid #64748b !important;
    background: none !important;
    margin: 0 !important;
    vertical-align: middle !important;
    transition: transform 0.15s ease !important;
}

.select2-container.select2-dropdown-open .select2-choice .select2-arrow b {
    border-top: none !important;
    border-bottom: 4px solid #64748b !important;
}

/* Todos los botones de la barra de herramientas a una altura uniforme (30px) */
.btn-primary.button-create,
.button-create,
.button-create-multiple,
#btnUploadEmployees,
#btnDownloadFixed,
#refresh,
.button-new-request,
#toggle,
#btn-generate-paysheet,
#paid-paysheet,
#addObservation,
#addObservationF,
#generate-report .button-generate,
.button-generate,
.btn-default.btn-md {
    height: 30px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 4px !important;
    line-height: 1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    vertical-align: middle !important;
    transition: all 0.15s ease !important;
    outline: none !important;
}

.btn-primary.button-create,
.button-create,
.button-create-multiple {
    background: #c8202e !important;
    border: none !important;
    color: #ffffff !important;
}
.btn-primary.button-create:hover,
.button-create:hover,
.button-create-multiple:hover {
    background: #a81a28 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(200, 32, 46, 0.3) !important;
}

#generate-report {
    display: inline-flex !important;
    vertical-align: middle !important;
    margin: 0 !important;
}

#generate-report .button-generate {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
}

/* Filtro por estado alineado */
.custom-panel .text-right:has(#filterStatus),
.panel-body .text-right:has(#filterStatus) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: 0 !important;
}

/* Select de filtro de estado e inputs de control */
#filterStatus,
.dataTables_length select {
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    height: 28px !important;
    padding: 2px 8px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.15s ease !important;
    outline: none !important;
}

#filterStatus:focus,
.dataTables_length select:focus {
    border-color: #c8202e !important;
    box-shadow: 0 0 0 2px rgba(200, 32, 46, 0.15) !important;
}

/* Buscador DataTables y Controles */
.dataTables_filter {
    margin-bottom: 6px !important;
}

.dataTables_filter label {
    font-weight: 600 !important;
    color: #475569 !important;
    font-size: 11.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
}

.dataTables_filter input[type="search"],
.dataTables_filter input {
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    height: 28px !important;
    padding: 2px 8px !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    margin-left: 4px !important;
    transition: all 0.15s ease !important;
    outline: none !important;
    width: 140px !important;
}

.dataTables_filter input:focus {
    border-color: #c8202e !important;
    box-shadow: 0 0 0 2px rgba(200, 32, 46, 0.15) !important;
}

.dataTables_length label {
    font-weight: 500 !important;
    color: #475569 !important;
    font-size: 11.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
}

/* 3. Contenedor de Tabla Tipo Tarjeta Elevada Oficial EufoRH.IA */
.dataTables_wrapper,
.table-responsive {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    overflow-x: auto !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    margin-top: 6px !important;
    margin-bottom: 10px !important;
}

/* Evitar doble borde en contenedores exteriores que contienen dataTables_wrapper */
.rh-table-wrap,
.rh-table-container,
div[style*="overflow-x: auto"]:has(> .dataTables_wrapper) {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Fila superior de DataTables (Buscar / Longitud) compacta y sin espacios muertos */
.dataTables_wrapper > .row:first-child {
    margin: 0 !important;
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.dataTables_wrapper > .row:first-child > .col-sm-6,
.dataTables_wrapper > .row:first-child > [class*="col-"] {
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.dataTables_wrapper > .row:first-child > [class*="col-"]:last-child {
    margin-left: auto !important;
}

.dataTables_wrapper > .row:first-child > .col-sm-6:first-child:empty {
    display: none !important;
}

.dataTables_wrapper > .row:first-child .dataTables_filter {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.dataTables_wrapper > .row:first-child .dataTables_filter label {
    margin: 0 !important;
}

/* Fila inferior de DataTables (Info / Paginación) */
.dataTables_wrapper>.row:last-child {
    margin: 0 !important;
    padding: 4px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

.dataTables_wrapper>.row:last-child>.col-sm-5,
.dataTables_wrapper>.row:last-child>.col-sm-7,
.dataTables_wrapper>.row:last-child>.col-sm-6 {
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* 4. Reseteo y Tipografía de Tabla (Manrope, Sin bordes dobles, Ultra-Compacto) */
table.dataTable,
.custom-theme table.dataTable,
table.dataTable.table-bordered,
table.display.table-condensed,
table.table-condensed,
table.table,
#gridPaysheetPayment {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    width: 100% !important;
    border: none !important;
    background: #ffffff !important;
    margin-bottom: 0 !important;
    font-size: 11.5px !important;
}

/* 5. Cabecera de Tabla Oficial EufoRH.IA (Rojo Marca #c8202e Compacto) */
.custom-theme thead,
thead,
table.dataTable thead,
table.dataTable thead th,
.table-bordered>thead>tr>th,
.custom-theme .table-bordered>thead>tr>th,
table.display.table-condensed thead th,
#gridPaysheetPayment thead th {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: #c8202e !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    padding: 4px 8px !important;
    height: 28px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 2px solid #a81a28 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

/* Fila de agrupación en Cabecera (ej: DESCUENTOS) */
table thead th.text-center,
table.dataTable thead th.text-center,
#gridPaysheetPayment thead th.text-center,
#gridPaysheetPayment thead th[colspan] {
    text-align: center !important;
    font-size: 10px !important;
    letter-spacing: 0.05em !important;
    background-color: #b91a27 !important;
    padding: 3px 6px !important;
}

/* Indicadores de Ordenamiento Limpios en Blanco */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none !important;
    position: relative !important;
    cursor: pointer !important;
    padding-right: 14px !important;
}

table.dataTable thead .sorting:after {
    content: "↕" !important;
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.4 !important;
    font-size: 10px !important;
    color: #ffffff !important;
}

table.dataTable thead .sorting_asc:after {
    content: "↑" !important;
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 10px !important;
}

table.dataTable thead .sorting_desc:after {
    content: "↓" !important;
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 10px !important;
}

/* 6. Filas y Celdas de Datos - Densidad Ultra-Compacta (JUNTITAS como en EufoRH.IA) */
table.dataTable tbody tr,
table.display.table-condensed tbody tr,
table.table-condensed tbody tr,
#gridPaysheetPayment tbody tr {
    transition: background-color 0.1s ease !important;
    background-color: #ffffff !important;
    height: 26px !important;
    border: none !important;
}

table.dataTable tbody tr:hover,
table.dataTable.table-striped tbody tr:hover,
table.display.table-condensed tbody tr:hover,
#gridPaysheetPayment tbody tr:hover {
    background-color: #f8fafc !important;
}

/* Celdas individuales: filas ultra compactas (padding 3px 8px, sin bordes verticales) */
table.dataTable tbody td,
.custom-theme .table-bordered>tbody>tr>td,
.table-bordered>tbody>tr>td,
table.display.table-condensed tbody td,
table.table-condensed tbody td,
table.table tbody td,
#gridPaysheetPayment tbody td {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 3px 8px !important;
    font-size: 11.5px !important;
    color: #334155 !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* El calendario (bootstrap-datetimepicker) también usa table.table-condensed: con el nowrap de arriba los meses y
   los años quedaban en una sola fila fuera del recuadro. Aquí recuperan el salto de línea. */
.bootstrap-datetimepicker-widget table.table-condensed tbody td {
    white-space: normal !important;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14) !important;
    width: 280px !important;
}

.bootstrap-datetimepicker-widget table,
.bootstrap-datetimepicker-widget table.table-condensed {
    font-size: 13px !important;
    background: transparent !important;
}

.bootstrap-datetimepicker-widget table thead,
.bootstrap-datetimepicker-widget table thead tr,
.bootstrap-datetimepicker-widget table thead th {
    background: #ffffff !important;
    color: #334155 !important;
    border: none !important;
    height: auto !important;
    padding: 6px 4px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

.bootstrap-datetimepicker-widget table thead th.picker-switch {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-transform: capitalize;
    border-radius: 8px !important;
}

.bootstrap-datetimepicker-widget table thead th.prev,
.bootstrap-datetimepicker-widget table thead th.next {
    color: #c8202e !important;
    border-radius: 8px !important;
    width: 34px !important;
}

.bootstrap-datetimepicker-widget table thead th.picker-switch:hover,
.bootstrap-datetimepicker-widget table thead th.prev:hover,
.bootstrap-datetimepicker-widget table thead th.next:hover {
    background: #fdecee !important;
    color: #c8202e !important;
}

.bootstrap-datetimepicker-widget table thead th.disabled,
.bootstrap-datetimepicker-widget table thead th.disabled:hover {
    background: transparent !important;
    color: #cbd5e1 !important;
}

.bootstrap-datetimepicker-widget table thead th.dow {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 6px 0 !important;
}

.bootstrap-datetimepicker-widget table tbody tr,
.bootstrap-datetimepicker-widget table tbody tr:hover {
    background: transparent !important;
}

.bootstrap-datetimepicker-widget table tbody td {
    border: none !important;
    padding: 2px !important;
    background: transparent !important;
}

.bootstrap-datetimepicker-widget table td.day {
    height: 34px !important;
    width: 34px !important;
    line-height: 30px !important;
    border-radius: 8px !important;
    color: #1e293b !important;
}

.bootstrap-datetimepicker-widget table td.day.old,
.bootstrap-datetimepicker-widget table td.day.new {
    color: #cbd5e1 !important;
}

.bootstrap-datetimepicker-widget table td.day.weekend:not(.active):not(.disabled) {
    color: #64748b !important;
}

.bootstrap-datetimepicker-widget table td.day:hover,
.bootstrap-datetimepicker-widget table td span:hover {
    background: #fdecee !important;
    color: #c8202e !important;
}

.bootstrap-datetimepicker-widget table td.day.today:before {
    border-bottom-color: #c8202e !important;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover,
.bootstrap-datetimepicker-widget table td span.active,
.bootstrap-datetimepicker-widget table td span.active:hover {
    background: #c8202e !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.bootstrap-datetimepicker-widget table td.active.today:before {
    border-bottom-color: #ffffff !important;
}

.bootstrap-datetimepicker-widget table td span {
    border-radius: 8px !important;
    color: #1e293b !important;
    height: 46px !important;
    line-height: 46px !important;
    text-transform: capitalize;
}

.bootstrap-datetimepicker-widget table td span.old {
    color: #cbd5e1 !important;
}

.bootstrap-datetimepicker-widget table td.disabled,
.bootstrap-datetimepicker-widget table td.disabled:hover,
.bootstrap-datetimepicker-widget table td span.disabled,
.bootstrap-datetimepicker-widget table td span.disabled:hover {
    background: transparent !important;
    color: #e2e8f0 !important;
    cursor: not-allowed;
}

.bootstrap-datetimepicker-widget .picker-switch.accordion-toggle a,
.bootstrap-datetimepicker-widget a[data-action] {
    color: #c8202e !important;
}

.bootstrap-datetimepicker-widget a[data-action]:hover {
    background: #fdecee !important;
}

table.dataTable tbody tr:last-child td,
table.display.table-condensed tbody tr:last-child td,
#gridPaysheetPayment tbody tr:last-child td {
    border-bottom: none !important;
}

/* 7. Filas de Agrupación por Departamento (Recursos Humanos, Operaciones, etc.) */
table.dataTable tbody tr.group,
table.dataTable tbody tr.bg-success,
table.display.table-condensed tbody tr.group,
table.display.table-condensed tbody tr.bg-success,
#gridPaysheetPayment tbody tr.group,
#gridPaysheetPayment tbody tr.bg-success,
.mock-dept-row {
    background-color: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    height: 26px !important;
}

table.dataTable tbody tr.group td,
table.dataTable tbody tr.bg-success td,
table.display.table-condensed tbody tr.group td,
table.display.table-condensed tbody tr.bg-success td,
#gridPaysheetPayment tbody tr.group td,
#gridPaysheetPayment tbody tr.bg-success td,
.mock-dept-row td {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    padding: 3px 8px !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: none !important;
    border-right: none !important;
    line-height: 1.2 !important;
}

/* 8. Fila de Totales Oficial EufoRH.IA (Rosa Pastel, Borde Rojo Superior, CERO Líneas Verticales) */
table.dataTable tfoot,
#gridPaysheetPayment tfoot,
tfoot#table-footer,
table.dataTable tbody tr.total-row,
table.dataTable tbody tr.totals-row,
.mock-totals-row {
    background-color: #fef2f4 !important;
    border-top: 2px solid #c8202e !important;
    border-bottom: none !important;
}

table.dataTable tfoot tr,
#gridPaysheetPayment tfoot tr,
tfoot#table-footer tr,
.mock-totals-row {
    background-color: #fef2f4 !important;
    height: 28px !important;
    border: none !important;
    border-top: 2px solid #c8202e !important;
}

table.dataTable tfoot tr td,
#gridPaysheetPayment tfoot tr td,
tfoot#table-footer tr td,
.table-bordered>tfoot>tr>td,
.custom-theme .table-bordered>tfoot>tr>td,
input[type="text"] .table-bordered>tfoot>tr>td,
input[type="password"] .table-bordered>tfoot>tr>td,
input[type="email"] .table-bordered>tfoot>tr>td,
.mock-totals-row td {
    background-color: #fef2f4 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    padding: 4px 8px !important;
    border-top: 2px solid #c8202e !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: none !important;
    border-right: none !important; /* ELIMINA DEFINITIVAMENTE LÍNEAS ROJAS VERTICALES */
    white-space: nowrap !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
}

/* Columna de Salario Neto Destacada (Verde Esmeralda Oficial) */
#gridPaysheetPayment tbody tr:not(.group):not(.bg-success) td:nth-last-child(2),
#gridPaysheetPayment tfoot tr td:nth-last-child(2),
.mock-neto {
    color: #166534 !important;
    font-weight: 700 !important;
}

/* Columna de numeración # */
table.dataTable tbody td:first-child,
table.dataTable thead th:first-child,
table.display.table-condensed tbody td:first-child,
table.display.table-condensed thead th:first-child,
#gridPaysheetPayment thead th:first-child,
#gridPaysheetPayment tbody td:first-child {
    font-weight: 600 !important;
    text-align: center !important;
    width: 32px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

table.dataTable tbody td:first-child {
    color: #64748b !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td:first-child {
    width: auto !important;
    padding-left: 30px !important;
    text-align: left !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td:first-child:before {
    top: 50% !important;
    margin-top: -10px;
}

/* Fila desplegada por el "+": Responsive 1.0.5 arma una lista sin clase; sin viñetas, alineada a la
   izquierda y con saltos de línea (la tabla usa nowrap y cortaba el texto) */
table.dataTable > tbody > tr.child > td,
table.dataTable > tbody > tr.child > td * {
    white-space: normal !important;
    text-align: left;
}

table.dataTable > tbody > tr.child ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

table.dataTable > tbody > tr.child ul li {
    padding: 6px 0;
    border-bottom: 1px solid #efefef;
}

table.dataTable > tbody > tr.child ul li:last-child {
    border-bottom: none;
}

table.dataTable > tbody > tr.child span.dtr-title {
    display: inline-block;
    min-width: 110px;
    font-weight: 600;
}

table.dataTable thead th:first-child {
    color: #ffffff !important;
}

/* 9. Badges de Estado Redondeados (Pills) Oficiales EufoRH.IA - Compactos */
table.dataTable .label,
table.display.table-condensed .label,
#paysheet-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 7px !important;
    border-radius: 9999px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    box-shadow: none !important;
    line-height: 1.2 !important;
}

/* Solicitado / Pendiente (Ámbar suave) */
table.dataTable .label-warning,
table.dataTable .label.label-warning,
table.display.table-condensed .label-warning,
table.display.table-condensed .label.label-warning,
#paysheet-status.label-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

/* En Proceso (Azul cielo) */
table.dataTable .label-info,
table.dataTable .label.label-info,
table.display.table-condensed .label-info,
table.display.table-condensed .label.label-info,
#paysheet-status.label-primary {
    background-color: #dbeafe !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}

/* Aprobado / Pagada (Verde esmeralda) */
table.dataTable .label-success,
table.dataTable .label.label-success,
table.display.table-condensed .label-success,
table.display.table-condensed .label.label-success,
#paysheet-status.label-success {
    background-color: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
}

/* Denegado / Rechazado / Inactivo (Rojo suave) */
table.dataTable .label-danger,
table.dataTable .label.label-danger,
table.display.table-condensed .label-danger,
table.display.table-condensed .label.label-danger {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

/* Estado por defecto / Archivado */
table.dataTable .label-default,
table.dataTable .label.label-default,
table.display.table-condensed .label-default,
table.display.table-condensed .label.label-default {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
    border: 1px solid #e5e7eb !important;
}

/* 10. Botones de Acción (Micro-Buttons 24x24px) Oficiales EufoRH.IA */
table.dataTable .btn-group,
table.display.table-condensed .btn-group,
#gridPaysheetPayment .btn-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    white-space: nowrap !important;
}

table.dataTable .btn-group .btn,
table.display.table-condensed .btn-group .btn,
#gridPaysheetPayment .btn-group .btn {
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    border: none !important;
    transition: all 0.15s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

/* Editar (Ámbar oficial) */
table.dataTable .btn-group .button-edit,
table.dataTable .btn-group .btn-warning,
table.display.table-condensed .btn-group .button-edit,
table.display.table-condensed .btn-group .btn-warning,
#gridPaysheetPayment .btn-group .button-edit {
    background-color: #f59e0b !important;
    color: #ffffff !important;
}
table.dataTable .btn-group .button-edit:hover,
table.dataTable .btn-group .btn-warning:hover,
#gridPaysheetPayment .btn-group .button-edit:hover {
    background-color: #d97706 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3) !important;
}

/* Eliminar (Rojo oficial) */
table.dataTable .btn-group .button-delete,
table.dataTable .btn-group .btn-danger,
table.display.table-condensed .btn-group .button-delete,
table.display.table-condensed .btn-group .btn-danger,
#gridPaysheetPayment .btn-group .btn-danger {
    background-color: #ef4444 !important;
    color: #ffffff !important;
}
table.dataTable .btn-group .button-delete:hover,
table.dataTable .btn-group .btn-danger:hover,
#gridPaysheetPayment .btn-group .btn-danger:hover {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3) !important;
}

/* Detalle / Info (Azul oficial) */
table.dataTable .btn-group .button-detail,
table.dataTable .btn-group .btn-primary,
table.display.table-condensed .btn-group .button-detail,
table.display.table-condensed .btn-group .btn-primary,
#gridPaysheetPayment .btn-group .btn-primary {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}
table.dataTable .btn-group .button-detail:hover,
table.dataTable .btn-group .btn-primary:hover,
#gridPaysheetPayment .btn-group .btn-primary:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3) !important;
}

/* Subir Archivo / Aprobar (Verde oficial) */
table.dataTable .btn-group .button-uploud,
table.dataTable .btn-group .btn-info,
table.dataTable .btn-group .btn-success,
table.display.table-condensed .btn-group .button-uploud,
table.display.table-condensed .btn-group .btn-info,
table.display.table-condensed .btn-group .btn-success,
#gridPaysheetPayment .btn-group .btn-success {
    background-color: #10b981 !important;
    color: #ffffff !important;
}
table.dataTable .btn-group .button-uploud:hover,
table.dataTable .btn-group .btn-info:hover,
table.dataTable .btn-group .btn-success:hover,
#gridPaysheetPayment .btn-group .btn-success:hover {
    background-color: #059669 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3) !important;
}

/* Ver / Previsualizar / Otros (Slate oficial) */
table.dataTable .btn-group .button-view,
table.dataTable .btn-group .btn-default,
table.display.table-condensed .btn-group .button-view,
table.display.table-condensed .btn-group .btn-default,
#gridPaysheetPayment .btn-group .btn-default {
    background-color: #64748b !important;
    color: #ffffff !important;
}
table.dataTable .btn-group .button-view:hover,
table.dataTable .btn-group .btn-default:hover,
#gridPaysheetPayment .btn-group .btn-default:hover {
    background-color: #475569 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(71, 85, 105, 0.3) !important;
}

/* 11. Barra de Herramientas de Planilla Oficial EufoRH.IA */
#btn-generate-paysheet {
    color: #334155 !important;
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    height: 28px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.15s ease !important;
}
#btn-generate-paysheet:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

#paid-paysheet {
    color: #ffffff !important;
    background-color: #f97316 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 4px 12px !important;
    height: 28px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 1px 3px rgba(249, 115, 22, 0.3) !important;
    transition: all 0.15s ease !important;
}
#paid-paysheet:hover {
    background-color: #ea580c !important;
}

#addObservation,
#generate-report button {
    background-color: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    height: 28px !important;
    padding: 4px 8px !important;
    font-size: 11.5px !important;
    transition: all 0.15s ease !important;
}
#addObservation:hover,
#generate-report button:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* Banner de Información Verde Compacto Oficial EufoRH.IA */
.bg-success,
div.bg-success {
    background-color: #dcfce7 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 4px !important;
    color: #166534 !important;
    padding: 5px 12px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
}

/* Select2 Compacto en Toolbar */
.select2-container .select2-choice {
    height: 28px !important;
    line-height: 26px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    background: #ffffff !important;
    padding: 0 8px !important;
}
.select2-container .select2-choice .select2-arrow b {
    background-position: 0 1px !important;
}

/* 12. Paginación Oficial EufoRH.IA */
.dataTables_info {
    font-size: 11.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    padding-top: 6px !important;
}

.dataTables_paginate {
    padding-top: 4px !important;
    text-align: right !important;
}

.dataTables_paginate .pagination {
    margin: 0 !important;
    gap: 2px !important;
    display: inline-flex !important;
}

.dataTables_paginate .pagination>li>a,
.dataTables_paginate .pagination>li>span {
    border: 1px solid #cbd5e1 !important;
    border-radius: 3px !important;
    margin: 0 1px !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    padding: 2px 7px !important;
    min-width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    transition: all 0.15s ease !important;
    outline: none !important;
}

.dataTables_paginate .pagination>li>a:hover {
    background-color: #fef2f4 !important;
    color: #c8202e !important;
    border-color: #fecaca !important;
}

.dataTables_paginate .pagination>.active>a,
.dataTables_paginate .pagination>.active>span,
.dataTables_paginate .pagination>.active>a:hover,
.dataTables_paginate .pagination>.active>span:hover {
    background: #c8202e !important;
    border-color: #c8202e !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(200, 32, 46, 0.25) !important;
}

.dataTables_paginate .pagination>.disabled>a,
.dataTables_paginate .pagination>.disabled>span {
    color: #cbd5e1 !important;
    background: #f8fafc !important;
    border-color: #f1f5f9 !important;
    cursor: not-allowed !important;
}

/* ==========================================================================
   🌟 FASE 3: TALENT ACQUISITION & RECRUITER KANBAN BOARD 🌟
   ========================================================================== */

/* 1. Recruiter View Switcher (Pill Toggle) */
.rh-jr-toolbar-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.rh-jr-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.rh-view-switch-pills {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.rh-view-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.rh-view-pill:hover {
    color: #1e293b;
}

.rh-view-pill.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.rh-view-pill i {
    font-size: 13px;
}

.rh-view-pill.active i {
    color: #3b82f6;
}

/* 2. Recruiter Kanban Container & Search Filter */
#rhKanbanViewContainer {
    width: 100%;
    margin-top: 10px;
}

.rh-kanban-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
}

.rh-kanban-search-box {
    position: relative;
    max-width: 340px;
    width: 100%;
}

.rh-kanban-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
}

.rh-kanban-search-input {
    width: 100%;
    height: 36px;
    padding: 6px 12px 6px 34px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    outline: none !important;
    transition: all 0.15s ease !important;
}

.rh-kanban-search-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.rh-kanban-stats-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}

.rh-kanban-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rh-kanban-stat-badge {
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 11px;
}

/* 3. Kanban Columns Grid */
.rh-kanban-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    width: 100%;
    min-height: 540px;
}

@media (max-width: 1200px) {
    .rh-kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .rh-kanban-board {
        grid-template-columns: 1fr;
    }
}

.rh-kanban-col {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    max-height: 75vh;
    min-height: 400px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.rh-kanban-col.drag-over {
    background: #eff6ff !important;
    border: 2px dashed #3b82f6 !important;
    transform: scale(1.008);
}

.rh-col-pending {
    border-top: 4px solid #3b82f6;
}

.rh-col-process {
    border-top: 4px solid #8b5cf6;
}

.rh-col-approved {
    border-top: 4px solid #10b981;
}

.rh-col-rejected {
    border-top: 4px solid #ef4444;
}

.rh-col-archived {
    border-top: 4px solid #64748b;
}

.rh-kanban-col-header {
    padding: 14px 16px 10px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rh-kanban-col-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rh-kanban-col-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.rh-col-pending .rh-kanban-col-icon {
    background: #eff6ff;
    color: #2563eb;
}

.rh-col-process .rh-kanban-col-icon {
    background: #f5f3ff;
    color: #7c3aed;
}

.rh-col-approved .rh-kanban-col-icon {
    background: #ecfdf5;
    color: #059669;
}

.rh-col-rejected .rh-kanban-col-icon {
    background: #fef2f2;
    color: #dc2626;
}

.rh-col-archived .rh-kanban-col-icon {
    background: #f1f5f9;
    color: #475569;
}

.rh-kanban-col-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.2px;
}

.rh-kanban-count-pill {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.rh-col-pending .rh-kanban-count-pill {
    background: #dbeafe;
    color: #1e40af;
}

.rh-col-process .rh-kanban-count-pill {
    background: #ede9fe;
    color: #5b21b6;
}

.rh-col-approved .rh-kanban-count-pill {
    background: #d1fae5;
    color: #065f46;
}

.rh-col-rejected .rh-kanban-count-pill {
    background: #fee2e2;
    color: #991b1b;
}

.rh-col-archived .rh-kanban-count-pill {
    background: #e2e8f0;
    color: #334155;
}

.rh-kanban-cards-body {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 200px;
}

.rh-kanban-cards-body::-webkit-scrollbar {
    width: 5px;
}
.rh-kanban-cards-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* 4. Kanban Card */
.rh-kanban-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: grab;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.rh-kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

.rh-kanban-card:active {
    cursor: grabbing;
}

.rh-kanban-card.is-dragging {
    opacity: 0.45;
    transform: scale(0.97);
}

.rh-k-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rh-k-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e2e8f0;
    flex-shrink: 0;
}

.rh-k-avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.rh-k-candidate-info {
    overflow: hidden;
    flex: 1;
}

.rh-k-candidate-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rh-k-date {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rh-k-job-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rh-k-job-pill i {
    color: #64748b;
}

.rh-k-status-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.rh-tag-pending {
    background: #eff6ff;
    color: #1d4ed8;
}

.rh-tag-process {
    background: #f5f3ff;
    color: #6d28d9;
}

.rh-tag-approved {
    background: #ecfdf5;
    color: #047857;
}

.rh-tag-rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.rh-tag-archived {
    background: #f1f5f9;
    color: #475569;
}

.rh-k-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
    margin-top: 6px;
}

.rh-k-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.rh-k-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
}

.rh-k-btn-edit:hover {
    color: #2563eb;
    border-color: #93c5fd;
    background: #eff6ff;
}

.rh-k-btn-status:hover {
    color: #059669;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.rh-k-btn-file:hover {
    color: #7c3aed;
    border-color: #c4b5fd;
    background: #f5f3ff;
}

.rh-k-btn-print:hover {
    color: #0284c7;
    border-color: #bae6fd;
    background: #f0f9ff;
}

.rh-kanban-empty {
    text-align: center;
    padding: 30px 15px;
    color: #94a3b8;
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rh-kanban-empty i {
    font-size: 26px;
    color: #cbd5e1;
}

/* 5. Enhanced Document Uploader (uploadJobRequestForm) */
.rh-modal-doc-viewer-wrap {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.rh-modal-doc-viewer-header {
    background: #f8fafc;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

.rh-modal-doc-viewer-iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
    background: #525659;
}








/* Select2 de formulario (Select2 3 copia "form-control" al contenedor): el contenedor no dibuja borde y la caja
   interna ocupa los 40px de los demás campos. Antes se veían dos bordes y la caja medía 30px, pegada arriba, por
   las reglas de .select2-choice de más arriba (alto y max-height de 30px). Los filtros compactos, sin form-control,
   no cambian; los de selección múltiple tampoco. */
.select2-container.form-control:not(.select2-container-multi) {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.select2-container.form-control .select2-choice {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    line-height: 38px !important;
    border-color: #e0e0e0 !important;
    border-radius: 5px !important;
}
.select2-container.form-control .select2-choice,
.select2-container.form-control .select2-choice > .select2-chosen {
    font-family: inherit !important;   /* la del contenedor, que tiene form-control como los demás campos */
}
.select2-container.form-control .select2-choice > .select2-chosen {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #555 !important;
}

/* Carga de contratos desde Excel */
.ci-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ci-step { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: #334155; }
.ci-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 8px; font-size: 13px; }
.ci-filters { margin-left: auto; }
.ci-table-wrap { max-height: 55vh; overflow: auto; border: 1px solid #e2e8f0; border-radius: 6px; }
.ci-table { margin: 0; font-size: 12px; white-space: nowrap; }
.ci-table thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; }
.ci-table th:nth-child(-n+3), .ci-table td:nth-child(-n+3) { position: sticky; background: #fff; z-index: 2; box-sizing: border-box; }
.ci-table thead th:nth-child(-n+3) { background: #f8fafc; z-index: 3; }
.ci-table th:nth-child(1), .ci-table td:nth-child(1) { left: 0; width: 34px; min-width: 34px; max-width: 34px; }
.ci-table th:nth-child(2), .ci-table td:nth-child(2) { left: 34px; width: 48px; min-width: 48px; max-width: 48px; text-align: center; font-weight: 600; }
.ci-table th:nth-child(3), .ci-table td:nth-child(3) { left: 82px; width: 104px; min-width: 104px; max-width: 104px; box-shadow: 2px 0 0 #cbd5e1; }
.ci-table .ci-input { min-width: 110px; height: 28px; font-size: 12px; }
.ci-table .ci-input-error { border-color: #dc2626 !important; background: #fef2f2 !important; }
.ci-table .ci-input-warning { border-color: #d97706 !important; background: #fffbeb !important; }
.ci-system { color: #475569; font-style: italic; }
.ci-remove { color: #dc2626; padding: 0 4px; }
.ci-remove:hover, .ci-remove:focus { color: #991b1b; }
.ci-messages { white-space: normal; min-width: 260px; }
.cf-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cf-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cf-filters select { width: 130px; }
.cf-filters input { width: 240px; max-width: 100%; }
.cf-table { margin: 0; font-size: 12px; white-space: nowrap; }
.cf-table thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; }
.cf-table td { vertical-align: middle !important; }
.cf-table .cf-row-done td { background: #f0fdf4; }
.cf-table .cf-empty { text-align: center; color: #64748b; padding: 24px; }
.cf-chip-finished { background: #e2e8f0; color: #334155; }
.cf-actions .ci-msg-error { white-space: normal; max-width: 240px; }
.cf-pick { position: relative; overflow: hidden; margin: 0; }
.cf-pick input[type=file] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cf-done { color: #15803d; font-weight: 600; margin-right: 4px; }
.cf-busy { color: #475569; }
.ci-chip { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.ci-chip-ok { background: #dcfce7; color: #166534; }
.ci-chip-error { background: #fee2e2; color: #991b1b; }
.ci-msg-error { color: #dc2626; }
.ci-msg-warning { color: #b45309; }
.ci-msg-ok { color: #15803d; }
.ci-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.ph-info, .ph-period-data { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 12px; padding: 10px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13px; }
.ph-info span, .ph-period-data span { display: block; font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }
.ph-info b, .ph-period-data b { color: #0f172a; }
.ph-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
.ph-tab { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; font-size: 12px; color: #334155; }
.ph-tab:hover { border-color: #94a3b8; }
.ph-tab.active { border-color: #2563eb; background: #eff6ff; box-shadow: inset 0 -2px 0 #2563eb; }
.ph-tab-label { font-weight: 600; white-space: nowrap; }
.ph-tab-meta { color: #64748b; white-space: nowrap; }
.ph-period { margin-bottom: 10px; }
.ph-period .ph-period-data { margin-bottom: 8px; }
.ph-types { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-bottom: 12px; font-size: 13px; }
.ph-types > span { font-weight: 600; color: #334155; }
.ph-types label { margin: 0; font-weight: 500; cursor: pointer; }
.ph-notice { margin-bottom: 8px; padding: 8px 12px; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px; color: #334155; }

#request_form .rh-permission-mode {
    display: flex;
    gap: 8px;
}

#request_form .rh-permission-mode-option {
    flex: 1;
    margin: 0;
    font-weight: 600;
    cursor: pointer;
}

#request_form .rh-permission-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#request_form .rh-permission-mode-option span {
    display: block;
    text-align: center;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #475569;
    background: #ffffff;
    transition: all 0.15s ease;
}

#request_form .rh-permission-mode-option:hover span {
    border-color: #93c5fd;
    color: #1d4ed8;
}

#request_form .rh-permission-mode-option input:checked + span {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 1px #2563eb;
}

#request_form .rh-permission-mode-option input:checked + span::after {
    content: " \2713";
    font-weight: 700;
}

#request_form .rh-permission-mode.request-invalid .rh-permission-mode-option span {
    border-color: #dc2626;
    background: #fef2f2;
}

#request_form .rh-permission-notice {
    margin-bottom: 10px;
    padding: 9px 14px;
    font-size: 12.5px;
    border-radius: 8px;
}

#request_form .rh-slot-hidden {
    visibility: hidden;
}

@media (max-width: 991px) {
    #request_form .rh-slot-hidden {
        display: none !important;
    }
}
