/* @version 3.42.16 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Tokens desde .secure/design_system.md (YAML + texto) */
  --ds-background: #f9f9ff;
  --ds-on-background: #041b3c;
  --ds-on-surface-variant: #434654;
  --ds-outline: #737685;
  --ds-primary: #003d9b;
  --ds-primary-action: #0052cc;
  --ds-primary-fixed-dim: #b2c5ff;
  --ds-on-primary-fixed: #001848;
  --ds-error: #ba1a1a;
  --ds-card-border: #ebecef;
  --ds-shadow-card: 0 2px 4px rgba(0, 0, 0, 0.05);
  --ds-radius-default: 0.25rem;
  --ds-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Sobrescribe variable de Bootstrap compilado con Poppins */
  --font-family-sans-serif: var(--ds-font-sans);
}

body {
  font-family: var(--ds-font-sans);
  font-size: 14px;
  line-height: 20px;
  color: var(--ds-on-background);
  background-color: var(--ds-background);
  padding-bottom: 10em;
  padding-top: 1.3em;
  transition: 0.15s all ease !important;
}

h1,
.h1 {
  font-family: var(--ds-font-sans);
  font-size: 30px;
  font-weight: 700;
  line-height: 38px;
  letter-spacing: -0.02em;
}

h2,
.h2 {
  font-family: var(--ds-font-sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.01em;
}

h3,
.h3 {
  font-family: var(--ds-font-sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.btn {
  font-family: var(--ds-font-sans);
  font-weight: 500;
  border-radius: var(--ds-radius-default);
}

.btn-primary {
  background-color: var(--ds-primary-action);
  border-color: var(--ds-primary-action);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ds-primary);
  border-color: var(--ds-primary);
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  background-color: var(--ds-primary);
  border-color: var(--ds-primary);
}

.card {
  border-color: var(--ds-card-border);
  box-shadow: var(--ds-shadow-card);
  border-radius: var(--ds-radius-default);
}

#tiempo_display {
  min-width: 6vw !important;
  display: inline-block !important;
}

.bg-jan {
  background-color: #446f93;
}

.bg-feb {
  background-color: #2f597b;
}

.bg-mar {
  background-color: #1c4564;
}

.bg-apr {
  background-color: #08324f;
}

.bg-may {
  background-color: #00233e;
}

.bg-jun {
  background-color: #001c36;
}

.bg-jul {
  background-color: #041b36;
}

.bg-aug {
  background-color: #14223f;
}

.bg-sep {
  background-color: #292e4f;
}

.bg-oct {
  background-color: #433e63;
}

.bg-nov {
  background-color: #5a4d75;
}

.bg-dec {
  background-color: #715c87;
}

.bg-primary .card-duracion {
  color: yellow !important;
}

.tools-taskbar {
  width: 20%;
}

.cursor-pointer,
.modal-estadodecuentas {
  cursor: pointer;
}

.tools-tasklist {
  width: 65%;
}

#info_descripcion {
  overflow: hidden;
}

.btn-sidebar {
  background-color: #e1e1e1;
  padding: .5em;
  display: inline-block;
  cursor: pointer;
  margin-right: .5em;
}

#tareas-deadline .bg-info .text-danger {
  color: yellow !important;
}

#tareas-deadline .card-title {
  min-height: 3.5em;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

.txt-fechas {
  white-space: nowrap;
  padding-left: .8em;
}

/* Listado de tareas proyecto — fila tipo backlog / Jira (.secure/design_system.md) */
.table-tareas-crm {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.table-tareas-crm .tools-tasklist {
  width: auto;
  max-width: none;
}

.table-tareas-crm .tools-taskbar {
  width: auto;
  max-width: none;
}

.table-tareas-crm td.colcheck {
  padding: 0.5rem 0.35rem 0.5rem 0.25rem !important;
  box-sizing: border-box;
}

.table-tareas-crm td.crm-task-col-check-empty {
  width: 40px;
  max-width: 40px;
  padding: 0.25rem !important;
  border-left: 0 !important;
  box-sizing: border-box;
}

.table-tareas-crm tbody tr.linea-pendiente > td,
.table-tareas-crm tbody tr.linea-terminada > td {
  border-top: 1px solid var(--ds-card-border);
  vertical-align: middle;
}

.table-tareas-crm tbody tr.linea-pendiente > td:not(.colcheck):not(.crm-task-col-check-empty):not(.crm-task-toolbar-cell),
.table-tareas-crm tbody tr.linea-terminada > td:not(.colcheck):not(.crm-task-col-check-empty):not(.crm-task-toolbar-cell) {
  cursor: pointer;
}

.table-tareas-crm tbody tr.crm-task-row--today > td {
  background-color: rgba(255, 193, 7, 0.06);
}

.table-tareas-crm tbody tr.crm-task-row--overdue > td {
  background-color: rgba(186, 26, 26, 0.04);
}

.crm-task-col-main {
  padding-top: 0.875rem !important;
  padding-bottom: 0.875rem !important;
}

.subtareas_pendientes .crm-task-col-main {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Subtareas: título y meta más compactos que la tarea principal */
.table-tareas-crm .subtareas_pendientes .crm-task-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.table-tareas-crm .subtareas_pendientes .crm-task-title--done {
  font-weight: 500;
}

.table-tareas-crm .subtareas_pendientes .crm-task-meta {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.table-tareas-crm .subtareas_pendientes .crm-task-desc-flag {
  font-size: 0.8125rem;
}

.table-tareas-crm .crm-task-subtasks-wrap {
  padding: 0.65rem 0.85rem !important;
  vertical-align: top;
  background: #fff;
  border-left: 3px solid var(--ds-card-border);
  border-radius: var(--ds-radius-default);
  box-shadow: var(--ds-shadow-card);
}

.table-tareas-crm table.subtareas_pendientes {
  width: 100%;
  margin: 0;
  table-layout: fixed;
  background: transparent;
}

.table-tareas-crm table.subtareas_pendientes > tbody > tr > td {
  border-top-color: rgba(235, 236, 240, 0.9);
}

.table-tareas-crm table.subtareas_pendientes > tbody > tr:first-child > td {
  border-top: none;
}

.crm-task-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.crm-task-row-left {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1 1 0;
  min-width: 0;
}

.crm-task-row-body {
  flex: 1;
  min-width: 0;
}

.crm-task-title {
  font-family: var(--ds-font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ds-on-background);
}

.crm-task-title--done {
  font-weight: 600;
  color: var(--ds-on-surface-variant);
}

.crm-task-desc-flag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  color: var(--ds-primary-action);
  font-size: 0.875rem;
  vertical-align: middle;
  opacity: 0.85;
  cursor: help;
}

.crm-task-parent-cell {
  padding-top: 0.875rem !important;
  padding-bottom: 0.875rem !important;
}

.crm-task-parent-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.crm-task-parent-heading .crm-task-title {
  flex: 1 1 12rem;
  min-width: 0;
}

.crm-task-subcount {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--ds-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--ds-card-border);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.crm-task-subcount--pendiente {
  background: rgba(0, 82, 204, 0.08);
  color: var(--ds-primary-action);
}

.crm-task-subcount--listo {
  background: rgba(21, 128, 61, 0.1);
  color: #15803d;
}

.crm-task-meta-subresp {
  margin-top: 0.35rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.crm-task-meta-deadline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.crm-task-meta-deadline--bloqueado {
  font-weight: 600;
  color: var(--ds-on-surface-variant);
}

.crm-task-meta-deadline--bloqueado .fa-lock {
  color: var(--ds-outline);
}

.crm-task-meta-deadline--today {
  font-weight: 600;
  color: #92400e;
}

.crm-task-meta-deadline--overdue {
  font-weight: 600;
  color: var(--ds-error);
}

.crm-task-meta-deadline--bloqueado.crm-task-meta-deadline--today {
  color: #92400e;
}

.crm-task-meta-deadline--bloqueado.crm-task-meta-deadline--overdue {
  color: var(--ds-error);
}

.crm-task-meta {
  font-family: var(--ds-font-sans);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ds-on-surface-variant);
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.crm-task-meta-sep {
  opacity: 0.55;
  user-select: none;
}

.crm-task-meta-secondary {
  font-size: 0.75rem;
  margin-top: 0.35rem;
}

.crm-task-meta-secondary a {
  color: var(--ds-on-surface-variant);
}

.crm-task-meta-secondary a:hover {
  color: var(--ds-primary-action);
}

.crm-task-assignees {
  flex-shrink: 0;
  margin-left: auto;
}

.crm-task-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-family: var(--ds-font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--ds-primary-fixed-dim);
  color: var(--ds-on-primary-fixed);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--ds-card-border);
}

.table-tareas-crm .crm-task-toolbar-cell {
  vertical-align: middle !important;
  white-space: nowrap;
}

.table-tareas-crm .crm-task-kebab {
  border: none !important;
  background: transparent !important;
  color: var(--ds-on-surface-variant);
  padding: 0.3rem 0.55rem !important;
  line-height: 1;
  border-radius: var(--ds-radius-default);
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.table-tareas-crm .crm-task-kebab:hover,
.table-tareas-crm .crm-task-kebab:focus {
  background: rgba(0, 82, 204, 0.08) !important;
  color: var(--ds-primary-action);
  outline: none;
}

.table-tareas-crm .crm-task-actions-dropdown .dropdown-menu {
  font-size: 0.875rem;
  font-family: var(--ds-font-sans);
  border-color: var(--ds-card-border);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 12rem;
}

.table-tareas-crm .crm-task-actions-dropdown .dropdown-item {
  font-weight: 400;
}

.table-tareas-crm .crm-task-actions-dropdown button.dropdown-item {
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

/* Personalización */

/* Estilos para iconos de checkbox locales (reemplazo de FontAwesome) */
.colcheck {
  width: 1%;
  vertical-align: middle !important;
  padding: 0.8em 0.5rem 0.8em 0.25rem !important;
}

.btncheck {
  position: relative;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.15s ease;
  vertical-align: middle;
  line-height: 1;
  width: 20px;
  height: 20px;
}

.btncheck:hover {
  opacity: 0.7;
}

.btncheck:active {
  opacity: 0.5;
}

.btncheck .checkbox-icon {
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border: 2px solid #666;
  border-radius: 3px;
  position: relative;
  transition: all 0.15s ease;
  background: #fff;
  flex-shrink: 0;
  box-sizing: border-box;
}

.btncheck.checked .checkbox-icon {
  background: #666;
  border-color: #666;
}

.btncheck.checked .checkbox-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 9px;
  margin-left: -3px;
  margin-top: -6px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  box-sizing: border-box;
  display: block;
}

/*
 * Sidebar
 */

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  /* Behind the navbar */
  padding: 10vh 0 0;
  /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  padding-bottom: 9em;
  overflow-x: hidden;
  overflow-y: auto;
  /* Scrollable contents if viewport is shorter than content. */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
  .sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
  }
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #999;
}

.sidebar .nav-link.active {
  color: #007bff;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

.sidebar-search .form-control {
  font-size: 0.875rem;
}

.sidebar-search .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-search .form-control:focus {
  background-color: #495057;
  border-color: #6c757d;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

.sidebar-search .input-group-text {
  color: rgba(255, 255, 255, 0.6);
}

/* Barra de búsqueda del sidebar: fija arriba y estilo disimulado */
.sidebar-search-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #23272C;
  flex-shrink: 0;
  margin: 0 -0.5rem;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.sidebar-search-bar .input-group {
  background: transparent;
  border-radius: 0;
  border: 0;
}

.sidebar-search-bar .form-control {
  background: #2c3136;
  border: none;
  color: rgba(255, 255, 255, 0.85);
}

.sidebar-search-bar #input-busqueda-proyectos {
  background: transparent;
}

.sidebar-search-bar .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.sidebar-search-bar .form-control:focus {
  background: #2c3136;
  border: none;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.sidebar-search-bar .input-group-text {
  background: #2c3136;
  border: none;
  border-left: 1px solid #373b3e;
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-search-bar .input-group-text i {
  color: rgba(255, 255, 255, 0.75);
}

/*
 * Content
 */

[role="main"] {
  padding-top: 133px;
  /* Space for fixed navbar */
}

@media (min-width: 768px) {
  [role="main"] {
    padding-top: 48px;
    /* Space for fixed navbar */
  }
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

/* Cotizaciones */

.datacomentarios {
  font-size: .9em;
  resize: none;
  height: 4.5em;
}

/* Task Week */

.task-board-programatica,
.task-board {
  background: #fff;
  display: inline-block;
  padding: 12px;
  border-radius: 3px;
  width: 100%;
  white-space: nowrap;
  overflow-x: scroll;
}

.status-card {
  width: 300px;
  margin-right: 1px;
  background: #eae8eb;
  display: inline-block;
  vertical-align: top;
}

.columna-regular {
  padding: 1px;
  padding-top: 10px;
}

.columna-hoy {
  padding: 0 !important;
  border: 1px solid #000;
  border-top: 10px solid #000;
}

.status-card .hasta-span {
  display: none !important;
}

.status-card:last-child {
  margin-right: 0px;
}

.card-header {
  width: 100%;
  padding: 10px 10px 0px 10px;
  box-sizing: border-box;
  border-radius: 3px;
  display: block;
  font-weight: bold;
}

.card-header-text {
  display: block;
}

ul.sortable {
  padding-bottom: 10px;
}

ul.sortable li:last-child {
  margin-bottom: 0px;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0px;
}

.text-row {
  padding: 8px 10px;
  margin: 5px;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  white-space: normal;
  line-height: 20px;
}

.text-row .label_tarea {
  margin-bottom: 10px;
}

.text-row .responsable {
  font-size: .9em;
  text-align: left;
}

.status-tarea-listo {
  opacity: 0.2;
  text-decoration: line-through !important;
}

.text-row .duracion {
  float: right;
  background-color: #0057b0 !important;
  color: #4ba2fb !important;
  margin-right: -10px;
  padding: 6px 4px 8px 10px;
  display: block;
  margin-top: -6px;
}

.text-row .label_pendientes {
  margin-bottom: .5em;
}

.ui-sortable-placeholder {
  visibility: inherit !important;
  background: transparent;
  border: #666 2px dashed;
}

#sortbacklog {
  overflow: hidden;
  overflow-y: scroll;
}

.card-duracion {
  display: block;
  text-align: center;
  font-weight: 100;
  font-size: 2em;
}

#nav-tab {
  background-color: #bfe4ef;
  padding: .5em .5em 0;
  border-radius: 1em 1em 0 0;
  border-bottom: 0;
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
  border: 0 !important;
  background-color: rgba(255, 255, 255, .5);
  color: #212121 !important;
  border-bottom: 0 !important;
}

.task-grupos {
  margin-left: 15px;
  border-left: 1px solid #fff;
  -webkit-box-shadow: -10px 0px 0px 0px #333;
  box-shadow: -10px 0px 0px 0px #333;
}

.grupo-finanzas {
  -webkit-box-shadow: -10px 0px 0px 0px greenyellow;
  box-shadow: -10px 0px 0px 0px greenyellow;
}

.grupo-urgente {
  -webkit-box-shadow: -10px 0px 0px 0px greenyellow;
  box-shadow: -10px 0px 0px 0px greenyellow;
}

.grupo-urgente {
  -webkit-box-shadow: -10px 0px 0px 0px orangered;
  box-shadow: -10px 0px 0px 0px orangered;
}

.grupo-importante {
  -webkit-box-shadow: -10px 0px 0px 0px orange;
  box-shadow: -10px 0px 0px 0px orange;
}

#nombre_asigndo {
  min-height: 15px;
  margin-top: .5em;
  font-size: .9em;
}

.copyonclick {
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
}

.copyonclick:hover {
  color: #000;
}

/* Animacion avisos */
.aviso {
  opacity: 1;
  animation: fade 1s linear infinite;
}


.badget-fecha {
  background: none !important;
  border: 1px solid #333 !important;
  color: #333 !important;
}

.btn-del-transaccion {
  cursor: pointer;
}

.btn-del-transaccion:hover {
  color: #007bff;
}

.tabla-transacciones tr:hover {
  background-color: #e1e1e1;
}

#list-task-now .badge-info {
  animation: parpadeo 1s infinite;
}

@keyframes fade {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* Animacion de campana */

.bell {
  -webkit-animation: ring 4s .7s ease-in-out infinite;
  -webkit-transform-origin: 50% 4px;
  -moz-animation: ring 4s .7s ease-in-out infinite;
  -moz-transform-origin: 50% 4px;
  animation: ring 4s .7s ease-in-out infinite;
  transform-origin: 50% 4px;
}

@-webkit-keyframes ring {
  0% {
    -webkit-transform: rotateZ(0);
  }

  1% {
    -webkit-transform: rotateZ(30deg);
  }

  3% {
    -webkit-transform: rotateZ(-28deg);
  }

  5% {
    -webkit-transform: rotateZ(34deg);
  }

  7% {
    -webkit-transform: rotateZ(-32deg);
  }

  9% {
    -webkit-transform: rotateZ(30deg);
  }

  11% {
    -webkit-transform: rotateZ(-28deg);
  }

  13% {
    -webkit-transform: rotateZ(26deg);
  }

  15% {
    -webkit-transform: rotateZ(-24deg);
  }

  17% {
    -webkit-transform: rotateZ(22deg);
  }

  19% {
    -webkit-transform: rotateZ(-20deg);
  }

  21% {
    -webkit-transform: rotateZ(18deg);
  }

  23% {
    -webkit-transform: rotateZ(-16deg);
  }

  25% {
    -webkit-transform: rotateZ(14deg);
  }

  27% {
    -webkit-transform: rotateZ(-12deg);
  }

  29% {
    -webkit-transform: rotateZ(10deg);
  }

  31% {
    -webkit-transform: rotateZ(-8deg);
  }

  33% {
    -webkit-transform: rotateZ(6deg);
  }

  35% {
    -webkit-transform: rotateZ(-4deg);
  }

  37% {
    -webkit-transform: rotateZ(2deg);
  }

  39% {
    -webkit-transform: rotateZ(-1deg);
  }

  41% {
    -webkit-transform: rotateZ(1deg);
  }

  43% {
    -webkit-transform: rotateZ(0);
  }

  100% {
    -webkit-transform: rotateZ(0);
  }
}

@-moz-keyframes ring {
  0% {
    -moz-transform: rotate(0);
  }

  1% {
    -moz-transform: rotate(30deg);
  }

  3% {
    -moz-transform: rotate(-28deg);
  }

  5% {
    -moz-transform: rotate(34deg);
  }

  7% {
    -moz-transform: rotate(-32deg);
  }

  9% {
    -moz-transform: rotate(30deg);
  }

  11% {
    -moz-transform: rotate(-28deg);
  }

  13% {
    -moz-transform: rotate(26deg);
  }

  15% {
    -moz-transform: rotate(-24deg);
  }

  17% {
    -moz-transform: rotate(22deg);
  }

  19% {
    -moz-transform: rotate(-20deg);
  }

  21% {
    -moz-transform: rotate(18deg);
  }

  23% {
    -moz-transform: rotate(-16deg);
  }

  25% {
    -moz-transform: rotate(14deg);
  }

  27% {
    -moz-transform: rotate(-12deg);
  }

  29% {
    -moz-transform: rotate(10deg);
  }

  31% {
    -moz-transform: rotate(-8deg);
  }

  33% {
    -moz-transform: rotate(6deg);
  }

  35% {
    -moz-transform: rotate(-4deg);
  }

  37% {
    -moz-transform: rotate(2deg);
  }

  39% {
    -moz-transform: rotate(-1deg);
  }

  41% {
    -moz-transform: rotate(1deg);
  }

  43% {
    -moz-transform: rotate(0);
  }

  100% {
    -moz-transform: rotate(0);
  }
}

@keyframes ring {
  0% {
    transform: rotate(0);
  }

  1% {
    transform: rotate(30deg);
  }

  3% {
    transform: rotate(-28deg);
  }

  5% {
    transform: rotate(34deg);
  }

  7% {
    transform: rotate(-32deg);
  }

  9% {
    transform: rotate(30deg);
  }

  11% {
    transform: rotate(-28deg);
  }

  13% {
    transform: rotate(26deg);
  }

  15% {
    transform: rotate(-24deg);
  }

  17% {
    transform: rotate(22deg);
  }

  19% {
    transform: rotate(-20deg);
  }

  21% {
    transform: rotate(18deg);
  }

  23% {
    transform: rotate(-16deg);
  }

  25% {
    transform: rotate(14deg);
  }

  27% {
    transform: rotate(-12deg);
  }

  29% {
    transform: rotate(10deg);
  }

  31% {
    transform: rotate(-8deg);
  }

  33% {
    transform: rotate(6deg);
  }

  35% {
    transform: rotate(-4deg);
  }

  37% {
    transform: rotate(2deg);
  }

  39% {
    transform: rotate(-1deg);
  }

  41% {
    transform: rotate(1deg);
  }

  43% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(0);
  }
}

.bg-gradient-primary {
  background: rgb(116, 205, 241);
  background: linear-gradient(45deg, rgba(116, 205, 241, 1) 0%, rgba(85, 168, 210, 1) 100%);
}

#work-now,
#work-today {
  padding: 1em;
  margin-top: -2em;
  margin-bottom: -2em;
  float: left;
  font-size: 1.5em;
}

#work-now {
  margin-right: -0.8em;
}

#bar-proyecto-activo {
  -webkit-box-shadow: inset 0px -5px 10px 0px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: inset 0px -5px 10px 0px rgba(0, 0, 0, 0.4);
  box-shadow: inset 0px -5px 10px 0px rgba(0, 0, 0, 0.4);
}

#tareas-recurrentes strike {
  text-decoration: none !important;
}

#bar-proyecto-activo .taskactivo {
  display: none;
}

#bar-proyecto-activo .taskactivo:first-child {
  display: block;
}

.progress_activo .progress_color {
  position: absolute;
  background: rgb(163, 123, 193);
  background: -moz-linear-gradient(90deg, rgba(163, 123, 193, 1) 0%, rgba(233, 51, 145, 1) 50%);
  background: -webkit-linear-gradient(90deg, rgba(163, 123, 193, 1) 0%, rgba(233, 51, 145, 1) 50%);
  background: linear-gradient(90deg, rgba(163, 123, 193, 1) 0%, rgba(233, 51, 145, 1) 50%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#a37bc1", endColorstr="#e93391", GradientType=1);
  width: 0px;
  height: 5px;
  animation: progres 10s infinite linear;
}

.bar-activo-pendiente {
  cursor: e-resize;
}

.bar-activo-pendiente:hover {
  color: rgb(201, 161, 231);
}

.bg-etapa-activa {
  background-color: #ffbe00;
  color: #000 !important;
}

/* ======================== */

#myBtnSubir {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Fixed/sticky position */
  bottom: 100px;
  /* Place the button at the bottom of the page */
  right: 1vh;
  /* Place the button 30px from the right */
  z-index: 99;
  /* Make sure it does not overlap */
  border: none;
  /* Remove borders */
  outline: none;
  /* Remove outline */
  background-color: #0052cc;
  /* primary-container (design system); antes #7d6391 */
  color: white;
  /* Text color */
  cursor: pointer;
  /* Add a mouse pointer on hover */
  padding: 15px;
  /* Some padding */
  border-radius: 10px;
  /* Rounded corners */
  font-size: 18px;
  /* Increase font size */
  border-radius: 30px;
  opacity: .7;
}

#myBtnSubir:hover {
  background-color: #497499;
  opacity: 1;
  /* Add a dark-grey background on hover */
}

/* ======================== */

@keyframes progres {
  0% {
    width: 0%;
    opacity: 1;
  }

  25% {
    width: 50%;
    opacity: .80;
  }

  50% {
    width: 75%;
    opacity: .50;
  }

  75% {
    width: 85%;
    opacity: .30;
  }

  100% {
    width: 100%;
    opacity: .10;
  }
}

/* Badge de comentarios: parpadeo cuando hay comentarios del cliente no leídos */
#infotarea-comentarios-badge.infotarea-badge-unread {
  animation: infotarea-badge-blink 1.35s ease-in-out infinite;
}

@keyframes infotarea-badge-blink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 82, 204, 0.4);
  }

  50% {
    opacity: 0.9;
    box-shadow: 0 0 0 5px rgba(0, 82, 204, 0);
  }
}

/* Ancho del modal de información de tarea para que los botones no se rompan */
#infotarea .modal-dialog {
  width: 900px;
  max-width: min(900px, calc(100vw - 2rem));
}

/*
 * Alto explícito respecto al viewport: si sólo hay max-height, el flex interior no acota
 * y el contenido empuja el footer fuera de la pantalla. Cabecera + pestañas + body + footer
 * caben siempre; el scroll va dentro de cada pestaña.
 */
#infotarea .modal-content {
  height: calc(100vh - 3.5rem);
  max-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#infotarea .modal-content > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

#infotarea .modal-header {
  flex-shrink: 0;
}

#infotarea .modal-footer {
  flex-shrink: 0;
}

/* Pestañas fijas: no se mueven con el scroll del modal (borde/pestañas en css/inc/proyecto.css — .infotarea-tabs--jira) */
#infotarea .modal-body #infotarea-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  flex-shrink: 0;
}

/* El body ocupa el hueco entre header y footer; cada pestaña gestiona su scroll interno */
#infotarea .modal-body {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Área de paneles: crece sólo dentro del modal-body (sin px fijos que desborden el viewport) */
#infotarea .modal-body #infotarea-tab-content {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 0.75rem;
}

#infotarea .modal-body #infotarea-tab-content > .tab-pane.active {
  flex: 1 1 0;
  min-height: 0;
}

#infotarea .tab-pane {
  min-height: 0;
  overflow: hidden;
}

/*
 * Las pestañas ocultas deben poder usar display:none de Bootstrap.
 * No forzar display:flex en #infotarea-pane-* sin .active: el ID gana especificidad
 * sobre .tab-content > .tab-pane { display:none } y los paneles ocultos siguen en el layout flex → hueco vacío al volver a Subtareas.
 */
#infotarea #infotarea-pane-subtareas.tab-pane.active {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 0;
}

/* Información: scroll solo cuando el contenido supera el espacio (sin altura fija en el body) */
#infotarea-pane-info .infotarea-body {
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Comentarios: solo la lista hace scroll (flex solo cuando la pestaña está activa) */
#infotarea #infotarea-pane-comentarios.tab-pane.active {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
}

/* El scroll vertical lo hace .infotarea-comentarios-scroll-area (evita doble scroll y recorte del compositor) */

#infotarea-comentarios-loading,
#infotarea-comentarios-empty {
  flex-shrink: 0;
}

/* Subtareas: tabla HTML con columnas Título / Responsable / Fecha (display:flex solo en .active, arriba) */

.infotarea-subtareas-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.infotarea-subtareas-meta {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#infotarea .infotarea-subtareas-loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.82);
}

#infotarea .infotarea-subtareas-loading-overlay.is-visible {
  display: flex;
}

.infotarea-subtareas-table-scroll {
  flex: 1 1 0;
  min-height: 8rem;
  overflow-y: auto;
  overflow-x: auto;
}

#infotarea .infotarea-subtareas-table {
  table-layout: fixed;
  width: 100%;
}

#infotarea .infotarea-subtareas-table thead th {
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Anchos columnas (tabla) */
#infotarea .infotarea-subtareas-col-drag { width: 2rem; }
#infotarea .infotarea-subtareas-col-check { width: 2.25rem; }
#infotarea .infotarea-subtareas-col-title-cell {
  min-width: 0;
}
#infotarea .infotarea-subtareas-col-responsable { width: 11rem; }
#infotarea .infotarea-subtareas-col-fecha { width: 6rem; }
#infotarea .infotarea-subtareas-col-actions { width: 4.75rem; text-align: right; }

#infotarea-subtareas-btn-sugerir-ia {
  line-height: 1;
  opacity: 0.72;
}
#infotarea-subtareas-btn-sugerir-ia:hover:not(:disabled) {
  opacity: 1;
}
#infotarea-subtareas-btn-sugerir-ia:disabled {
  opacity: 0.45;
}
#infotarea-subtareas-btn-sugerir-ia.infotarea-subtareas-undo-mode:not(:disabled) {
  opacity: 0.92;
}

/* Última fila: alta rápida de subtarea (reemplaza botones + / pie «Agregar subtarea») */
#infotarea .infotarea-subtask-row--readonly .infotarea-subtask-title-readonly {
  padding-top: 0.125rem;
}

#infotarea .infotarea-subtask-row--readonly .infotarea-subtareas-col-drag--readonly {
  border-bottom-color: transparent;
}

#infotarea #infotarea-subtareas-body tr.infotarea-subtareas-empty-row td.infotarea-subtareas-empty-cell {
  background-color: #fafbfc;
}

#infotarea .infotarea-subtareas-tfoot-add {
  background: #fff;
}

#infotarea .infotarea-subtareas-tfoot-add td {
  border-top: 1px solid #dee2e6;
  padding: 0.35rem;
  vertical-align: middle;
}

#infotarea .infotarea-subtareas-add-row-spacer {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

#infotarea .infotarea-subtareas-add-cell {
  padding-left: 0.15rem;
}

#infotarea .infotarea-subtareas-add-input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6c757d;
  padding: 0.2rem 0.35rem;
  font-size: 13px;
  border-radius: 0;
}

#infotarea .infotarea-subtareas-add-input::placeholder {
  color: #adb5bd;
}

#infotarea .infotarea-subtareas-add-input:focus {
  color: #212529;
  outline: none !important;
  box-shadow: none !important;
}

#infotarea #infotarea-subtareas-body tr.infotarea-subtask-row td {
  padding: 0.35rem 0.35rem;
  border-top: 1px solid #f0f1f2;
  transition: background 0.12s ease;
}

#infotarea #infotarea-subtareas-body tr.infotarea-subtask-row:first-child td {
  border-top: none;
}

#infotarea #infotarea-subtareas-body tr.infotarea-subtask-row:hover td {
  background: rgba(68, 111, 147, 0.05);
}

#infotarea[data-subtasks-orden-supported="0"] .infotarea-subtask-drag {
  visibility: hidden;
  cursor: default;
  pointer-events: none;
}

#infotarea .infotarea-subtask-drag {
  width: 1.25rem;
  flex-shrink: 0;
  text-align: center;
  cursor: grab;
  opacity: 0.25;
  font-size: 12px;
}

#infotarea .infotarea-subtask-row:hover .infotarea-subtask-drag { opacity: 0.65; }
#infotarea .infotarea-subtask-drag:active { cursor: grabbing; }

#infotarea .infotarea-subtask-check {
  width: 1.75rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 1rem;
}

#infotarea .infotarea-subtask-title {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  padding: 0.25rem 0.45rem;
  font-size: 13px;
  height: auto;
}

#infotarea .infotarea-subtask-title:focus {
  border-color: rgba(68, 111, 147, 0.35);
  background: #fff;
  box-shadow: none;
}

#infotarea .infotarea-subtask-row--listo .infotarea-subtask-title {
  text-decoration: line-through;
  color: #868e96;
}

/* Responsable */
#infotarea .infotarea-subtask-responsable {
  width: 100%;
  max-width: 11rem;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
}

#infotarea .infotarea-subtask-responsable-btn {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0.1rem 0.25rem !important;
  color: #495057;
  text-decoration: none !important;
  max-width: 100%;
}

#infotarea .infotarea-subtask-responsable-name {
  font-size: 12px;
  color: #495057;
  max-width: 7.5rem;
  overflow: hidden;
  white-space: nowrap;
}

#infotarea .infotarea-subtask-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #e9ecef;
  color: #495057;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  flex-shrink: 0;
}

#infotarea .infotarea-subtask-avatar--empty {
  background: transparent;
  border: 1px dashed #adb5bd;
  color: #adb5bd;
}

#infotarea .infotarea-subtask-responsable-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
}

/* Fecha: <label for> + input[type=date] oculto (sr-only); el clic en la etiqueta activa el control nativo en Safari/WebKit donde overlay invisible fallaba */
#infotarea .infotarea-subtask-fecha {
  width: 100%;
  max-width: 6rem;
  flex-shrink: 0;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  min-height: 1.85rem;
  min-width: 4.25rem;
}

#infotarea .infotarea-subtask-fecha-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.25rem !important;
  color: #495057;
  text-decoration: none !important;
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 0;
}

#infotarea .infotarea-subtask-fecha-btn--empty {
  color: #adb5bd;
}

#infotarea .infotarea-subtask-fecha-btn .infotarea-subtask-fecha-txt {
  font-variant-numeric: tabular-nums;
}

#infotarea .infotarea-subtask-deadline {
  position: absolute !important;
  left: 0;
  top: 0;
  z-index: 0;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0;
}

/* Acciones */
#infotarea .infotarea-subtask-actions {
  justify-content: flex-end;
}

#infotarea .infotarea-subtask-actions .btn-link {
  opacity: 0.55;
}

#infotarea .infotarea-subtask-row:hover .infotarea-subtask-actions .btn-link {
  opacity: 1;
}

#infotarea .infotarea-subtask-delete {
  opacity: 0 !important;
}

#infotarea .infotarea-subtask-row:hover .infotarea-subtask-delete {
  opacity: 0.85 !important;
}

#infotarea-subtareas-error {
  flex-shrink: 0;
}

#infotarea #infotarea-subtareas-body .ui-sortable-helper td {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Pestaña Comentarios (#infotarea): feed scroll + compositor siempre visible (flex-shrink: 0) */
#infotarea-pane-comentarios .infotarea-comentarios-pane {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#infotarea-pane-comentarios .infotarea-comentarios-toolbar {
  flex-shrink: 0;
}
#infotarea-pane-comentarios .infotarea-comentarios-scroll-area {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
#infotarea-pane-comentarios .infotarea-comentarios-composer {
  flex-shrink: 0;
  padding-bottom: 0.5rem;
}
#infotarea-pane-comentarios .infotarea-comentarios-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid #eceeef;
}
#infotarea-pane-comentarios .infotarea-comentarios-item:last-child {
  border-bottom: none;
}
#infotarea-pane-comentarios .infotarea-comentarios-avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #e9ecef;
  color: #495057;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
#infotarea-pane-comentarios .infotarea-comentarios-item-text {
  word-break: break-word;
  color: #212529;
}
#infotarea-pane-comentarios .infotarea-comentarios-react {
  opacity: 0.45;
  pointer-events: none;
  line-height: 1;
}
#infotarea-pane-comentarios .infotarea-comentarios-badge-interno {
  font-size: 10px;
  font-weight: 500;
  vertical-align: middle;
}
#infotarea-pane-comentarios .infotarea-comentarios-textarea {
  border-radius: 8px;
  resize: vertical;
  min-height: 4.5rem;
}
#infotarea-pane-comentarios .infotarea-comentarios-view-toggle .btn.active {
  background-color: #495057;
  border-color: #495057;
  color: #fff;
}

/* ========== Overlay Pomodoro (pantalla completa) ========== */
.pomodoro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  color: #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: color 0.35s ease;
}

.pomodoro-overlay .pomodoro-progress-bg,
.pomodoro-overlay .pomodoro-progress-fill,
.pomodoro-overlay .pomodoro-countdown,
.pomodoro-overlay .pomodoro-overlay-close,
.pomodoro-overlay .pomodoro-btn-action {
  transition: stroke 0.35s ease, color 0.35s ease, border-color 0.35s ease, background 0.2s ease, text-shadow 0.35s ease;
}

.pomodoro-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: #7dd3fc;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.85;
  border-radius: 50%;
  transition: opacity 0.2s, background 0.2s;
}

.pomodoro-overlay-close:hover {
  opacity: 1;
  background: rgba(125, 211, 252, 0.15);
}

.pomodoro-overlay-inner {
  text-align: center;
  max-width: 90vw;
}

.pomodoro-project-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 1.25rem;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 2rem;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(125, 211, 252, 0.12);
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.pomodoro-project-name i {
  flex-shrink: 0;
  opacity: 0.9;
}

.pomodoro-overlay.pomodoro-overlay--break .pomodoro-project-name {
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.1);
  border-color: rgba(156, 163, 175, 0.3);
  box-shadow: 0 0 20px rgba(156, 163, 175, 0.08);
}

.pomodoro-progress-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 1.5rem;
}

.pomodoro-progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pomodoro-progress-bg {
  stroke: rgba(125, 211, 252, 0.2);
}

.pomodoro-progress-fill {
  stroke: #7dd3fc;
  transition: stroke-dashoffset 0.5s linear;
}

.pomodoro-center-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem;
}

.pomodoro-center-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pomodoro-btn-action {
  width: 3rem;
  height: 3rem;
  border: 2px solid #7dd3fc;
  background: transparent;
  color: #7dd3fc;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
}

.pomodoro-btn-action:hover {
  background: rgba(125, 211, 252, 0.2);
}

.pomodoro-time-range {
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
  opacity: 0.9;
}

.pomodoro-countdown {
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  font-weight: 300;
  margin: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #b8e6fd;
  text-shadow: 0 0 20px rgba(125, 211, 252, 0.4), 0 0 40px rgba(125, 211, 252, 0.2);
  min-width: 4.2em;
}

.pomodoro-duration {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  opacity: 0.85;
}

.pomodoro-duration i {
  margin-right: 0.35rem;
}

/* Badge de pomodoros en sesión: esquina inferior izquierda, discreto */
.pomodoro-session-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  color: rgba(125, 211, 252, 0.85);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 1.5rem;
  transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.pomodoro-session-count {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  min-width: 1.25em;
  text-align: center;
}

.pomodoro-session-label {
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

/* Botón saltar etapa: esquina inferior derecha */
.pomodoro-skip {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  background: rgba(0, 0, 0, 0.4);
  color: rgba(125, 211, 252, 0.92);
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.pomodoro-skip:hover {
  opacity: 1;
  background: rgba(125, 211, 252, 0.12);
}

.pomodoro-overlay.pomodoro-overlay--break .pomodoro-skip {
  border-color: rgba(156, 163, 175, 0.25);
  color: rgba(156, 163, 175, 0.95);
}

.pomodoro-overlay.pomodoro-overlay--break .pomodoro-skip:hover {
  background: rgba(156, 163, 175, 0.12);
}

.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-skip {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.18);
}

.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-skip:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Overlay Pomodoro: tema gris durante el break (descanso) */
.pomodoro-overlay.pomodoro-overlay--break {
  color: #9ca3af;
}

.pomodoro-overlay.pomodoro-overlay--break .pomodoro-overlay-close {
  color: #9ca3af;
}

.pomodoro-overlay.pomodoro-overlay--break .pomodoro-overlay-close:hover {
  background: rgba(156, 163, 175, 0.15);
}

.pomodoro-overlay.pomodoro-overlay--break .pomodoro-progress-bg {
  stroke: rgba(156, 163, 175, 0.25);
}

.pomodoro-overlay.pomodoro-overlay--break .pomodoro-progress-fill {
  stroke: #9ca3af;
}

.pomodoro-overlay.pomodoro-overlay--break .pomodoro-btn-action {
  border-color: #9ca3af;
  color: #9ca3af;
}

.pomodoro-overlay.pomodoro-overlay--break .pomodoro-btn-action:hover {
  background: rgba(156, 163, 175, 0.2);
}

.pomodoro-overlay.pomodoro-overlay--break .pomodoro-countdown {
  color: #d1d5db;
  text-shadow: 0 0 20px rgba(156, 163, 175, 0.3), 0 0 40px rgba(156, 163, 175, 0.15);
}

.pomodoro-overlay.pomodoro-overlay--break .pomodoro-time-range,
.pomodoro-overlay.pomodoro-overlay--break .pomodoro-duration {
  color: #9ca3af;
}

.pomodoro-overlay.pomodoro-overlay--break .pomodoro-session-badge {
  color: rgba(156, 163, 175, 0.9);
  border-color: rgba(156, 163, 175, 0.2);
}

/* Overlay Pomodoro: alerta al terminar ciclo (trabajo o descanso) */
.pomodoro-overlay.pomodoro-overlay--ended {
  color: #fff;
}

.pomodoro-overlay.pomodoro-overlay--ended.pomodoro-overlay--ended-break {
  background: #b91c1c;
}

.pomodoro-overlay.pomodoro-overlay--ended.pomodoro-overlay--ended-work {
  background: #15803d;
}

.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-progress-bg,
.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-progress-fill,
.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-countdown,
.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-overlay-close,
.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-btn-action,
.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-project-name,
.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-time-range,
.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-duration,
.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-session-badge {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
}

.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-overlay-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-progress-bg {
  stroke: rgba(255, 255, 255, 0.22);
}

.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-progress-fill {
  stroke: rgba(255, 255, 255, 0.9);
}

.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-btn-action:hover {
  background: rgba(255, 255, 255, 0.15);
}

.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-project-name {
  background: rgba(0, 0, 0, 0.12);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.22);
}

.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-countdown {
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.25);
}

.pomodoro-overlay.pomodoro-overlay--ended .pomodoro-session-badge {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

#work-now {
  cursor: pointer;
}

#work-now:hover {
  opacity: 0.9;
}

/* Panorama — proyección: filas de ingreso (tono azul CRM, mismo eje que .bg-jan / badges mensuales) */
#tabla-proyeccion-panorama tbody tr.fila-ingreso-proyeccion {
  background-color: rgba(68, 111, 147, 0.1);
}
#tabla-proyeccion-panorama tbody tr.fila-ingreso-proyeccion:hover {
  background-color: rgba(68, 111, 147, 0.16);
}
#tabla-proyeccion-panorama tbody tr.fila-ingreso-proyeccion td.table-info {
  background-color: rgba(190, 229, 235, 0.95);
}

/* =============================================================================
   Inbox — tareas fijas críticas / vencidas
   Patrón documentado en .secure/UI_PATTERN_DASHBOARD_TASK_CARDS.md
   ============================================================================= */
.inbox-tareas-vencidas {
  --iv-surface: #ffffff;
  --iv-text: var(--ds-on-background);
  --iv-muted: var(--ds-on-surface-variant);
  --iv-border: var(--ds-card-border);
  --iv-shadow: var(--ds-shadow-card);
  --iv-shadow-hover: 0 8px 20px rgba(4, 27, 60, 0.09);
  --iv-radius-card: 0.5rem;
  --iv-pad-card: 1.25rem;
  --iv-gap-inner: 1rem;
  --vencida-proyecto-nombre-size: 0.8125rem;
}

.inbox-tareas-vencidas-head {
  margin-bottom: 1.25rem;
}

.inbox-tareas-vencidas-title {
  font-family: var(--ds-font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--iv-text);
  margin: 0;
}

.inbox-tareas-vencidas-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--iv-muted);
}

.inbox-tareas-vencidas-count {
  font-weight: 600;
  font-size: 0.7rem;
  vertical-align: middle;
  background: rgba(0, 82, 204, 0.08);
  color: var(--ds-primary-action);
  border: 1px solid rgba(0, 82, 204, 0.2);
}

.inbox-tareas-vencidas .vencida-card {
  background: var(--iv-surface);
  border: 1px solid var(--iv-border);
  border-radius: var(--iv-radius-card);
  box-shadow: var(--iv-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 13.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.inbox-tareas-vencidas .vencida-card:hover {
  box-shadow: var(--iv-shadow-hover);
  transform: translateY(-2px);
}

.inbox-tareas-vencidas .vencida-card-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: var(--iv-pad-card) var(--iv-pad-card) 0;
}

.inbox-tareas-vencidas .vencida-status-badge {
  display: inline-block;
  font-family: var(--ds-font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0.35rem 0.625rem;
  border-radius: var(--ds-radius-default);
  text-transform: uppercase;
}

.inbox-tareas-vencidas .vencida-status-badge--urgente {
  background: #ffdad6;
  color: #93000a;
}

.inbox-tareas-vencidas .vencida-status-badge--hoy {
  background: #fff8e6;
  color: #7c5f00;
}

.inbox-tareas-vencidas .vencida-status-badge--proxima {
  background: #dae2ff;
  color: #0040a2;
}

.inbox-tareas-vencidas .vencida-status-badge--planificada {
  background: #e8edff;
  color: #003d9b;
}

.inbox-tareas-vencidas .vencida-status-badge--backlog {
  background: #e1e2e4;
  color: #444749;
}

.inbox-tareas-vencidas .vencida-status-badge--neutral {
  background: #f1f3ff;
  color: #434654;
}

.inbox-tareas-vencidas .vencida-card-kebab {
  border: none;
  background: transparent;
  color: var(--iv-muted);
  padding: 0.25rem 0.45rem;
  line-height: 1;
  border-radius: var(--ds-radius-default);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.inbox-tareas-vencidas .vencida-card-kebab:hover,
.inbox-tareas-vencidas .vencida-card-kebab:focus {
  background: #f1f3ff;
  color: var(--iv-text);
  outline: none;
}

.inbox-tareas-vencidas .vencida-card .dropdown-menu {
  font-size: 0.8125rem;
  border-color: var(--iv-border);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 11rem;
}

.inbox-tareas-vencidas .vencida-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.75rem var(--iv-pad-card) var(--iv-pad-card);
  gap: var(--iv-gap-inner);
}

.inbox-tareas-vencidas .vencida-card-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}

.inbox-tareas-vencidas .vencida-card-title {
  font-family: var(--ds-font-sans);
  color: var(--iv-text);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inbox-tareas-vencidas .vencida-card-title a {
  color: inherit;
  text-decoration: none;
}

.inbox-tareas-vencidas .vencida-card-title a:hover {
  color: var(--ds-primary-action);
}

.inbox-tareas-vencidas .vencida-card-project {
  font-family: var(--ds-font-sans);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--iv-muted);
}

.inbox-tareas-vencidas .vencida-card-project-label {
  font-weight: 500;
  margin-right: 0.25rem;
}

.inbox-tareas-vencidas .vencida-card-project-name {
  color: var(--iv-muted);
  text-decoration: none;
  font-weight: 400;
}

.inbox-tareas-vencidas .vencida-card-project-name:hover {
  color: var(--ds-primary-action);
  text-decoration: underline;
}

.inbox-tareas-vencidas .vencida-card-footer {
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--iv-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.inbox-tareas-vencidas .vencida-card-duration,
.inbox-tareas-vencidas .vencida-card-duedate {
  font-family: var(--ds-font-sans);
  font-size: 0.8125rem;
  color: var(--iv-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.inbox-tareas-vencidas .vencida-card-duration i,
.inbox-tareas-vencidas .vencida-card-duedate i {
  opacity: 0.85;
  font-size: 0.875rem;
}

.inbox-tareas-vencidas .vencida-card-grupo {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--iv-muted);
  background: #f1f3ff;
  border: 1px solid #e0e8ff;
  padding: 0.2rem 0.45rem;
  border-radius: 0.125rem;
  text-transform: uppercase;
}

.inbox-tareas-vencidas .vencida-card-slot-empty {
  background: var(--ds-background) !important;
  border: 1px dashed #c3c6d6 !important;
  box-shadow: none !important;
  align-items: center;
  justify-content: center;
}

.inbox-tareas-vencidas .vencida-card-slot-empty:hover {
  transform: none;
  box-shadow: none !important;
}

.inbox-tareas-vencidas .vencida-slot-empty-inner {
  text-align: center;
  color: var(--iv-muted);
  padding: 1rem;
}

.inbox-tareas-vencidas .vencida-slot-empty-inner i {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  opacity: 0.45;
}

.inbox-tareas-vencidas.inbox-tareas-vencidas--en-proyecto {
  margin-top: 1.5rem;
}

.inbox-tareas-vencidas .vencida-proyecto-cloud-wrap {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ds-background);
  border: 1px solid var(--iv-border);
  border-radius: var(--iv-radius-card);
}

.inbox-tareas-vencidas .vencida-proyecto-cloud-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.625rem;
}

.inbox-tareas-vencidas .vencida-proyecto-cloud-head small {
  color: var(--iv-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.625rem;
}

.inbox-tareas-vencidas .vencida-proyecto-cloud-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.inbox-tareas-vencidas .vencida-proyecto-todos {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--ds-radius-default);
  border: 1px solid var(--iv-border);
  background: var(--iv-surface);
  color: var(--iv-text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.inbox-tareas-vencidas .vencida-proyecto-todos:hover {
  background: #f1f3ff;
}

.inbox-tareas-vencidas .vencida-proyecto-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.625rem;
}

.inbox-tareas-vencidas .vencida-proyecto-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid rgba(0, 61, 155, 0.22);
  background: rgba(232, 237, 255, 0.85);
  color: var(--ds-primary);
  font-size: var(--vencida-proyecto-nombre-size);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.3125rem 0.6875rem 0.3125rem 0.5625rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  max-width: 100%;
}

.inbox-tareas-vencidas .vencida-proyecto-tag:hover {
  box-shadow: 0 1px 4px rgba(0, 82, 204, 0.12);
}

.inbox-tareas-vencidas .vencida-proyecto-tag:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.22);
}

.inbox-tareas-vencidas .vencida-proyecto-tag .vencida-proyecto-tag-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 0.125rem;
  border: 1px solid rgba(0, 61, 155, 0.28);
  background: #fff;
  font-size: 0.55rem;
  color: var(--ds-primary-action);
  flex-shrink: 0;
}

.inbox-tareas-vencidas .vencida-proyecto-tag .vencida-proyecto-tag-check i {
  line-height: 1;
}

.inbox-tareas-vencidas .vencida-proyecto-tag--off {
  opacity: 0.55;
  background: #f1f3ff;
  border-color: #e0e8ff;
  color: var(--iv-muted);
}

.inbox-tareas-vencidas .vencida-proyecto-tag--off .vencida-proyecto-tag-check {
  border-color: #c3c6d6;
  color: transparent;
  background: #e8edff;
}

.inbox-tareas-vencidas .vencida-proyecto-tag--off .vencida-proyecto-tag-check i {
  visibility: hidden;
}

.inbox-tareas-vencidas .vencida-proyecto-nombre {
  font-size: var(--vencida-proyecto-nombre-size);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.inbox-tareas-vencidas .vencida-filtro-sin-resultados {
  text-align: center;
  color: var(--iv-muted);
  padding: 1.25rem;
  font-size: 0.875rem;
}