/*
 * ARIA CORE HR v0.4.2 — Selector de fecha/hora visual blindado.
 * Regla: toda fecha/hora visible debe usar el lenguaje aprobado en Asistencia > Marcaciones.
 * Alcance deliberadamente limitado a módulos y portales; NO afecta el dashboard Inicio.
 */

/* Base compartida dentro de la aplicación */
body.vfrrhh-page .vfrrhh-app :is(
  .vfrrhh-personal,
  .vfrrhh-legajos,
  .vfrrhh-attendance-module,
  .vfrrhh-configuration
) :is(input[type="date"],input[type="time"],input[type="datetime-local"]),
body.vfrrhh-page .vfrrhh-app .vflv-pane :is(input[type="date"],input[type="time"],input[type="datetime-local"]),
body.vfrrhh-page .vfrrhh-app :is(.vflv-modal,.vflv-drawer) :is(input[type="date"],input[type="time"],input[type="datetime-local"]){
  height:40px!important;
  min-height:40px!important;
  width:100%!important;
  margin:0!important;
  padding:0 11px!important;
  border:1px solid #dce5ef!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#294763!important;
  font-family:inherit!important;
  font-size:11.5px!important;
  font-weight:600!important;
  line-height:1!important;
  box-shadow:0 1px 2px rgba(28,55,88,.018)!important;
  outline:0!important;
  color-scheme:light!important;
  transition:border-color .14s ease,box-shadow .14s ease,background .14s ease!important;
}

body.vfrrhh-page .vfrrhh-app :is(
  .vfrrhh-personal,
  .vfrrhh-legajos,
  .vfrrhh-attendance-module,
  .vfrrhh-configuration
) :is(input[type="date"],input[type="time"],input[type="datetime-local"]):hover,
body.vfrrhh-page .vfrrhh-app .vflv-pane :is(input[type="date"],input[type="time"],input[type="datetime-local"]):hover,
body.vfrrhh-page .vfrrhh-app :is(.vflv-modal,.vflv-drawer) :is(input[type="date"],input[type="time"],input[type="datetime-local"]):hover{
  border-color:#c7d7e8!important;
  background:#fff!important;
}

body.vfrrhh-page .vfrrhh-app :is(
  .vfrrhh-personal,
  .vfrrhh-legajos,
  .vfrrhh-attendance-module,
  .vfrrhh-configuration
) :is(input[type="date"],input[type="time"],input[type="datetime-local"]):focus,
body.vfrrhh-page .vfrrhh-app .vflv-pane :is(input[type="date"],input[type="time"],input[type="datetime-local"]):focus,
body.vfrrhh-page .vfrrhh-app :is(.vflv-modal,.vflv-drawer) :is(input[type="date"],input[type="time"],input[type="datetime-local"]):focus{
  border-color:#9fc4f5!important;
  box-shadow:0 0 0 3px rgba(20,104,230,.08)!important;
}

/* Calendario/reloj: icono nativo conservado por accesibilidad, pero integrado visualmente. */
body.vfrrhh-page .vfrrhh-app :is(input[type="date"],input[type="time"],input[type="datetime-local"])::-webkit-calendar-picker-indicator{
  width:16px!important;
  height:16px!important;
  padding:4px!important;
  margin-left:7px!important;
  border-radius:6px!important;
  cursor:pointer!important;
  opacity:.68!important;
  transition:opacity .14s ease,background .14s ease!important;
}
body.vfrrhh-page .vfrrhh-app :is(input[type="date"],input[type="time"],input[type="datetime-local"])::-webkit-calendar-picker-indicator:hover{
  opacity:1!important;
  background:#eef5ff!important;
}

/* Los filtros de fecha usan la misma escala aprobada de Asistencia/Marcaciones. */
body.vfrrhh-page .vfrrhh-app :is(.vfa-filters,.vfp-filters,.vflv-toolbar,.vfcfg-filterbar) :is(input[type="date"],input[type="time"]){
  width:auto!important;
  min-width:142px!important;
  flex:0 1 158px!important;
}

/* Portal móvil del empleado y página pública de autorización. */
:is(.vfpb-app,.vfap-app) :is(input[type="date"],input[type="time"],input[type="datetime-local"]){
  width:100%!important;
  min-height:46px!important;
  height:46px!important;
  padding:0 12px!important;
  border:1px solid #d8e3ee!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#193755!important;
  font:600 13px/1 Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  box-shadow:0 1px 2px rgba(28,55,88,.02)!important;
  outline:0!important;
  color-scheme:light!important;
  transition:border-color .14s ease,box-shadow .14s ease!important;
}
:is(.vfpb-app,.vfap-app) :is(input[type="date"],input[type="time"],input[type="datetime-local"]):focus{
  border-color:#9fc4f5!important;
  box-shadow:0 0 0 3px rgba(20,104,230,.09)!important;
}
:is(.vfpb-app,.vfap-app) :is(input[type="date"],input[type="time"],input[type="datetime-local"])::-webkit-calendar-picker-indicator{
  width:18px!important;
  height:18px!important;
  padding:5px!important;
  border-radius:7px!important;
  opacity:.7!important;
  cursor:pointer!important;
}
:is(.vfpb-app,.vfap-app) :is(input[type="date"],input[type="time"],input[type="datetime-local"])::-webkit-calendar-picker-indicator:hover{
  opacity:1!important;
  background:#eef5ff!important;
}

@media(max-width:700px){
  body.vfrrhh-page .vfrrhh-app :is(.vfa-filters,.vfp-filters,.vflv-toolbar,.vfcfg-filterbar) :is(input[type="date"],input[type="time"]){
    width:100%!important;
    min-width:0!important;
    flex:1 1 150px!important;
  }
}
