:root {
  --kt-app-sidebar-width: 180px;
  --kt-app-sidebar-width-actual: 180px;

  /* === Identidad base === */
  --bs-primary: #0067ff;
  --bs-secondary: #e4e6ef;
  --bs-dark: #02001c;
  --bs-light: #f9fafb;
  --bs-white: #ffffff;

  /* === Colores funcionales === */
  --bs-success: #00b894;
  --bs-info: #00c2ff;
  --bs-warning: #ffc700;
  --bs-danger: #ff4d4d;

  /* === Keenthemes (Metronic) === */
  --kt-primary: #0067ff;
  --kt-text-primary: #0067ff;
  --kt-component-active-bg: #0067ff;
  --kt-form-check-input-checked-bg-color-solid: #0067ff;
  --kt-component-hover-color: #0067ff;
  --kt-menu-link-color-hover: #0067ff;
  --kt-menu-link-color-active: #0067ff;

  --kt-form-check-input-checked-bg-color: #0067ff;
  --kt-form-check-input-checked-border-color: #0067ff;

  --bs-link-color: #0067ff;
  --kt-primary-active: #004ecc;
  --bs-link-color-active: #004ecc;
  --kt-primary-light: #e6f0ff;
  --kt-primary-inverse: #ffffff;

  --kt-secondary: #e4e6ef;
  --kt-secondary-active: #b5b5c3;
  --kt-secondary-light: #e3fbff;
  --kt-secondary-inverse: #02001c;

  --kt-success: #00b894;
  --kt-success-active: #009670;
  --kt-success-light: #d2f8e8;
  --kt-success-inverse: #ffffff;

  --kt-info: #00c2ff;
  --kt-info-active: #0099cc;
  --kt-info-light: #e0f8ff;
  --kt-info-inverse: #ffffff;

  --kt-warning: #ffc700;
  --kt-warning-active: #e6b200;
  --kt-warning-light: #fff6d9;

  --kt-danger: #ff4d4d;
  --kt-danger-active: #d93636;
  --kt-danger-light: #ffe1e1;
  --kt-danger-inverse: #ffffff;

  /* === Escala de grises === */
  --kt-gray-100: #f9fafb;
  --kt-gray-200: #eff2f5;
  --kt-gray-300: #e4e6ef;
  --kt-gray-400: #b5b5c3;
  --kt-gray-500: #a1a5b7;
  --kt-gray-600: #7e8299;
  --kt-gray-700: #5e6278;
  --kt-gray-800: #3f4254;
  --kt-gray-900: #02001c;

  /* === Gradientes === */
  --kt-primary-gradient: linear-gradient(135deg, #0067ff 0%, #22e7ff 100%);
  --kt-dark-gradient: linear-gradient(135deg, #02001c 0%, #1a1a40 100%);
}

.btn.btn-rounded{
  border-radius: 50vh;
}

.pagination{
  --bs-pagination-active-bg: #0067ff;
  --kt-pagination-hover-color: #0067ff;
}

[data-kt-app-layout="dark-sidebar"] .app-sidebar{
  background-color: var(--bs-dark);
}

body, .modal{
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.modal.fade .modal-dialog {
    transition-duration: 80ms !important;
    transition-timing-function: ease-out !important;
    transform: none !important;
}

.modal.fade {
    transition-duration: 80ms !important;
}

.modal-backdrop.fade {
    transition-duration: 80ms !important;
}

.bgi-size-contain{
  background-size: contain !important;
}

#kt_app_sidebar,
.drawer.drawer-on{
  padding-top: env(safe-area-inset-top);
}

.form-check:not(.form-switch) .form-check-input[type="checkbox"] {
  display: flex;
}

[data-kt-indicator="on"] > .indicator-progress {
  margin: 0 auto;
}

[data-kt-app-sidebar-minimize="on"]{
  --kt-app-sidebar-width:70px;
}

.select2-results.administrar{
  padding-bottom: 45px;
}

.z-9{
  z-index: 9;
}

.preview-documento-a4 {
  width: 100%;
  max-width: 800px;
  background: white;
  position: relative;
}

.ratio-documento-a4 {
  position: relative;
}

.documento-a4 {
  width: 800px;
  min-height: calc(800px * 297 / 210);
  box-sizing: border-box;
  transform-origin: top left;
  box-shadow: 0px 10px 20px rgba(0,0,0,0.2);
}

.documento-a4 #documento{
  padding: 15mm;
}

.hover{
  cursor: pointer;
}

.limpiarInput{
  display: none !important;
}

.limpiarInput.mostrar{
  display: inline-flex !important;
}

[data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"] .app-sidebar:not(:hover) .app-sidebar-menu .menu-title-hide{
  display: none;
}

[data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"] .app-sidebar:not(:hover) .app-sidebar-menu i{
  padding: 0;
}

#filtros.show > *,
#filtros.collapsing > *{
  margin-bottom: 5px;
}

.modal-header{
  padding-bottom: 15px;
}

.app-sidebar-logo {
  justify-content: center;
}

.acortar-texto {
  position: relative;
}

.acortar-texto > * {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  position: absolute;
  width: 100%;
  padding-right: 50px;
}

.acortar-texto:before {
  content: '';
  display: inline-block;
}

.editor.ql-container{
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.ql-toolbar.ql-snow {
  border: none;
  background-color: #f5f8fa;
  margin-bottom: 1px;
}

.ql-toolbar.ql-snow .ql-picker-label,
.ql-toolbar.ql-snow button{
  opacity: 0.5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow .ql-picker-label.ql-active,
.ql-toolbar.ql-snow button.ql-active{
  opacity: 1;
}

.descripcion p{
  margin: 0;
}

#tarea .ql-toolbar.ql-snow{
  border-radius: 0;
  margin-top: 1px;
}

.table tr.ordenable a p,
.table tr.ordenable a li,
.table tr.ordenable a ol{
  color: var(--kt-text-gray-700) !important;
}

/*Quitar controles de los input type number*/

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

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

.menu-item .menu-link .menu-icon {
  justify-content: left;
  width: 16px;
  margin-right: 8px;
}

.menu-item .menu-link .menu-bullet {
  justify-content: left;
  width: 8px;
  margin-right: 5px;
}

.menu-sub .menu-item .menu-link {
  padding-top: 6px;
  padding-bottom: 6px;
}

.app-header{
  height: calc(var(--kt-app-header-height) + env(safe-area-inset-top));
}

[data-kt-app-header-fixed="true"] .app-header {
  padding-top: env(safe-area-inset-top);
  z-index: 100;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
}

[data-kt-app-header-fixed="true"] .app-wrapper {
  margin-top: var(--kt-app-header-height);
}

#kt_app_sidebar_logo {
  height: var(--kt-app-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-shrink: 0;
}

[data-kt-visible="on"] {
  display: flex !important;
}

[data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"] .app-sidebar:not(:hover) .menu-column {
  margin-left: 5px;
}

[data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"] .app-sidebar:not(:hover) .buscador span {
    padding-left: 25px;
}

[data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"] .app-sidebar:not(:hover) #kt_help_toggle i {
    padding-right: 0;
}

/*Mobiscroll*/

#calendario .evento-pasado{
  opacity: 0.5;
}

.mbsc-ios.mbsc-eventcalendar .mbsc-calendar-header, .mbsc-ios.mbsc-eventcalendar .mbsc-calendar-week-days,
.mbsc-ios.mbsc-eventcalendar-schedule .mbsc-calendar-day, .mbsc-ios.mbsc-schedule-wrapper{
  background-color: #ffffff;
}

.mbsc-ios.mbsc-calendar-width-md .mbsc-schedule-all-day-wrapper {
  height: auto;
  max-height: none;
}

.mbsc-ios.mbsc-calendar-controls {
  padding: 20px 25px;
  justify-content: space-between;
  border-bottom: 1px solid var(--bs-card-border-color);
}

.mbsc-ios.mbsc-calendar-cell,
.mbsc-ios.mbsc-calendar-header,
.mbsc-ios.mbsc-calendar-wrapper,
.mbsc-ios.mbsc-schedule-all-day-wrapper,
.mbsc-ios.mbsc-schedule-header,
.mbsc-ios.mbsc-schedule-header-item,
.mbsc-ios.mbsc-schedule-all-day-item::after,
.mbsc-ios.mbsc-schedule-column,
.mbsc-ios.mbsc-schedule-item,
.mbsc-ios.mbsc-schedule-resource,
.mbsc-ios.mbsc-schedule-resource-group,
.mbsc-ios.mbsc-timeline-column,
.mbsc-ios.mbsc-timeline-day::after,
.mbsc-ios.mbsc-timeline-footer,
.mbsc-ios.mbsc-timeline-footer-date,
.mbsc-ios.mbsc-timeline-header,
.mbsc-ios.mbsc-timeline-header-column,
.mbsc-ios.mbsc-timeline-header-date,
.mbsc-ios.mbsc-timeline-header-month,
.mbsc-ios.mbsc-timeline-header-week,
.mbsc-ios.mbsc-timeline-resource,
.mbsc-ios.mbsc-timeline-resource-footer-cont,
.mbsc-ios.mbsc-timeline-resource-header-cont,
.mbsc-ios.mbsc-timeline-row,
.mbsc-ios.mbsc-timeline-row-date,
.mbsc-ios.mbsc-timeline-row-group::after,
.mbsc-ios.mbsc-timeline-sidebar-footer-cont,
.mbsc-ios.mbsc-timeline-sidebar-header-cont,
.mbsc-ios.mbsc-timeline-sidebar-resource,
.mbsc-ios.mbsc-timeline-slot-header,
.mbsc-ios.mbsc-timeline-slots,
.mbsc-ios.mbsc-calendar-day::after{
  border-color: var(--bs-card-border-color);
}
.mbsc-ios.mbsc-schedule-wrapper{
  margin-top: 0;
}

.mbsc-ios.mbsc-calendar-grid {
  border-top: none;
}

.mbsc-calendar-button.mbsc-button.mbsc-reset {
  padding: 0;
}

.md-custom-header-controls {
    display: flex;
    flex: 1 0 auto;
    justify-content: center;
    align-items: center;
}

.md-custom-header-nav,
.md-custom-header-view {
    width: 180px;
}

.md-custom-header-button.mbsc-button {
    font-size: 20px;
    height: auto;
    padding: 0;
    margin: 0;
}

.md-custom-header .mbsc-segmented {
    width: 110px;
    float: right;
    margin-top: 0;
    margin-bottom: 0;
}

.md-custom-header .mbsc-material.mbsc-segmented,
.md-custom-header .mbsc-windows.mbsc-segmented {
    padding: 0;
}

.md-custom-header .mbsc-segmented .mbsc-segmented-button {
    font-size: 20px;
    height: 32px;
    padding: 0;
}

#calendario .mbsc-calendar-week-day.mbsc-flex-1-0-0.mbsc-ios.mbsc-ltr{
  text-align: center;
}

.mbsc-ios.mbsc-calendar-width-md .mbsc-calendar-day-labels .mbsc-calendar-day-inner {
  min-height: 120px;
}

.mbsc-schedule-all-day-cont {
  margin-bottom: 20px;
}

#calendario .single-day-event-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 7px;
}

#calendario .single-day-event {
    margin-left: 8px;
}

#calendario .multi-day-event {
    padding-left: 5px;
}

#calendario .mbsc-calendar-text {
  font-size: 11px;
  font-weight: 500;
}

.mbsc-popover-list{
  width: 100%;
}

.symbol.trabajando {
  position: relative;
}

.symbol.trabajando .borde {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 2px solid #00a3ff;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  animation: radar 1s infinite;
  opacity: 0;
}

.symbol.trabajando .borde.t35 {
  width: 42px;
  height: 42px;
}

.image-input.image-input-outline .image-input-wrapper {
  border: none;
  box-shadow: none;
}

.image-input.image-input-outline .image-input-wrapper.image-input-wrapper.bgi-size-contain{
  background-size: contain;
}

.grid_carpetas {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.upload_dropzone{
  position: relative;
}

.upload_dropzone.hover:after{
  content: '';
  position: absolute;
  z-index: 9;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--kt-primary);
  opacity: 0.3;
  border-radius: 5px;
}

@keyframes radar {
  0% {
    border: 2px solid #00a3ff;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    padding: 22px;
  }

}

.input-group {
  flex-wrap: nowrap;
}

/*Responsive*/

@media (min-width: 992px){

  [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"] .app-sidebar:not(:hover) #kt_app_sidebar_logo .app-sidebar-logo-minimize {
    display: inline-block;
  }

  [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"] .app-sidebar:not(:hover) #kt_app_sidebar_logo .app-sidebar-logo-default {
    display: none;
  }

}

@media (max-width: 992px){

  button.mbsc-calendar-button.mbsc-reset.mbsc-font.mbsc-button.mbsc-ios.mbsc-ltr.mbsc-button-flat{
    font-size: 11px;
  }

  .daterangepicker {
    position: absolute; !important;
    left: 50% !important;
    top: 10px !important;
    width: 250px;
    margin-left: -125px;
  }

}

@media (max-width: 472px){

  .app-container{
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .container-movil{
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
  }
  
  .container-movil > .card,
  .container-movil > .card > .card-header:first-child{
    border-radius: 0 !important;
  } 

}