:root {
  --font-main: 'Nunito Sans', system-ui, sans-serif;
  --bg: #f6f7f4;
  --card: #ffffff;
  --text: #374151;
  --muted: #9099a8;
  --border: #eef1eb;
  --shadow: 0 10px 28px rgba(54, 63, 77, 0.05);
  --shadow-soft: 0 8px 20px rgba(54, 63, 77, 0.04);
  --sidebar-w: 292px;
  --topbar-h: 84px;
  --theme: #6dc242;
  --theme-strong: #5db13a;
  --theme-soft: #eef5e8;
  --theme-text: #63ae41;
  --icon-default: #6f7887;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; appearance: none; -webkit-appearance: none; background: none; border: none; padding: 0; color: inherit; }
svg { width: 1em; height: 1em; stroke-width: 1.85; }
button svg,
button .lucide {
  display: inline-block !important;
  vertical-align: middle;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  stroke-width: 1.9;
  color: currentColor;
  flex-shrink: 0;
  overflow: visible;
}
.icon-slot:not(svg) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: currentColor;
}
.icon-slot svg,
svg.icon-slot,
.lucide.icon-slot {
  display: inline-block !important;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
  color: currentColor;
  fill: none;
  stroke: currentColor;
}

button .icon-slot,
button svg.icon-slot,
button .lucide.icon-slot {
  display: inline-block !important;
  vertical-align: middle;
}

/* Estilos para SVG generados por Lucide */
svg[class*="lucide"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell { min-height: 100vh; display: flex; }
.app-frame {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
}

.sidebar-shell {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
}

.app-content-column {
  min-width: 0;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #ecefe8;
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 2px 0 10px rgba(30, 42, 64, 0.025);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 18px;
  border-bottom: 1px solid #f0f1ee;
}
.brand-mark {
  width: 26px;
  height: 28px;
  border-radius: 11px 15px 15px 11px;
  background: var(--theme);
}
.brand-copy {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}
.brand-name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .1px;
  color: #2f3441;
}
.brand-version {
  font-size: 15px;
  font-weight: 800;
  color: #4e5665;
}
.nav-main { display: flex; flex-direction: column; gap: 8px; }
.sidebar-user-card {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #edf0ea;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faf7 100%);
  box-shadow: 0 10px 24px rgba(54, 63, 77, 0.05);
}
.sidebar-user-avatar {
  flex-shrink: 0;
}
.sidebar-user-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sidebar-user-name {
  font-size: 14px;
  font-weight: 800;
  color: #4f5968;
  line-height: 1.2;
}
.sidebar-user-profile {
  font-size: 12px;
  font-weight: 700;
  color: #8f98a6;
  line-height: 1.2;
}
.nav-item,
.nav-subitem {
  min-height: 58px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  color: #5f6877;
  font-size: 15px;
  font-weight: 700;
}
.nav-subitem {
  min-height: 48px;
  padding-left: 34px;
  font-size: 14px;
  font-weight: 600;
  color: #667080;
}
.nav-item:hover,
.nav-subitem:hover { background: #f8f9f6; }
.nav-icon,
.nav-arrow,
.nav-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-default);
}
.nav-icon { width: 18px; height: 18px; }
.nav-icon-sm { width: 16px; height: 16px; }
.nav-arrow {
  margin-left: auto;
  width: 15px;
  height: 15px;
  color: #7d8696;
}

/* Estilos para SVG generados por Lucide dentro de botones */
button .nav-icon svg,
button .icon-slot svg {
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2;
}
.nav-group.active-soft > a,
.nav-item-open { background: #f6f7f3; }
.nav-icon-theme,
.nav-item-open .nav-icon-theme,
.child-open .nav-icon-theme { color: var(--theme-text); }
.active-soft > a span:not(.nav-arrow),
.child-open > a span:not(.nav-arrow) { color: var(--theme-text); }
.nav-subgroup { display: flex; flex-direction: column; gap: 4px; }
.nav-children {
  padding: 6px 0 0 48px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-child {
  min-height: 36px;
  display: flex;
  align-items: center;
  color: #586273;
  font-size: 14px;
  font-weight: 600;
}
.nav-child.active { color: var(--theme-text); }

.main-wrap { flex: 1; min-width: 0; }
.topbar {
  min-height: var(--topbar-h);
  background: #fff;
  border-bottom-left-radius: 34px;
  border-bottom-right-radius: 34px;
  box-shadow: 0 8px 24px rgba(55, 63, 76, .045);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}
.mobile-menu { display: none; border: 0; background: transparent; color: #667081; }
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.topbar-context {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 4px 0 2px;
}
.topbar-context-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.topbar-context-label {
  font-size: 12px;
  font-weight: 800;
  color: #6f7887;
  line-height: 1.1;
}
.topbar-context-value {
  max-width: 170px;
  font-size: 14px;
  font-weight: 700;
  color: #4f5968;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-divider {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(224, 229, 220, 0) 0%, #e4e9df 18%, #e4e9df 82%, rgba(224, 229, 220, 0) 100%);
  flex-shrink: 0;
}
.topbar-context-divider {
  height: 38px;
}
.topbar-icon {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  color: #596373;
  position: relative;
  padding: 0;
}
.topbar-icon .icon-slot,
.menu-dots .icon-slot,
.mobile-menu .icon-slot { color: inherit; }
.topbar-icon svg,
.menu-dots svg,
.mobile-menu svg { width: 17px; height: 17px; }
.badge {
  position: absolute;
  top: -11px;
  right: -11px;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--theme);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar-user-menu {
  position: relative;
  margin-left: 4px;
}
.topbar-user-trigger {
  min-height: 52px;
  padding: 6px 10px 6px 18px;
  border-radius: 999px;
  border: 1px solid #edf0ea;
  background: linear-gradient(180deg, #ffffff 0%, #f8faf7 100%);
  box-shadow: 0 8px 18px rgba(54, 63, 77, 0.04);
  color: #4f5968;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.topbar-user-trigger:hover,
.topbar-user-trigger:focus-visible,
.topbar-user-menu.is-open .topbar-user-trigger {
  border-color: #dce8d4;
  box-shadow: 0 12px 28px rgba(54, 63, 77, 0.08);
  transform: translateY(-1px);
}
.topbar-user-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
  max-width: 170px;
}
.topbar-user-role {
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-user-name {
  font-size: 14px;
  font-weight: 800;
  color: #4f5968;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.topbar-user-email {
  font-size: 11px;
  font-weight: 700;
  color: #8f98a6;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.topbar-user-avatar {
  flex-shrink: 0;
}
.topbar-user-caret {
  width: 15px;
  height: 15px;
  color: #8b93a1;
  transition: transform 0.18s ease;
}
.topbar-user-menu.is-open .topbar-user-caret {
  transform: rotate(180deg);
}
.topbar-user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(380px, calc(100vw - 24px));
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #eef1eb;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(31, 41, 55, 0.12);
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 80;
}
.topbar-user-menu.is-open .topbar-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.topbar-user-panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-user-panel-copy {
  min-width: 0;
}
.topbar-user-panel-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #2f3441;
}
.topbar-user-panel-email {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #8e97a5;
  word-break: break-word;
}
.topbar-user-panel-avatar {
  width: 68px;
  height: 68px;
  box-shadow: inset 0 0 0 8px #f4f3ef;
  border: 1px solid #ece8e2;
}
.topbar-user-divider {
  height: 1px;
  background: #ecefe7;
  margin: 18px 0;
}
.topbar-user-item {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 16px;
  color: #4d5664;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.topbar-user-item:hover,
.topbar-user-item:focus-visible {
  background: #f5f8f1;
  color: var(--theme-text);
}
.topbar-user-item-danger {
  color: #b05252;
}
.topbar-user-item-danger:hover,
.topbar-user-item-danger:focus-visible {
  background: #fff2f2;
  color: #d14b4b;
}
.topbar-user-item .icon-slot,
.topbar-user-item svg {
  width: 17px;
  height: 17px;
  color: currentColor;
}
.topbar-user-item + .topbar-user-item {
  margin-top: 4px;
}
.avatar {
  position: relative;
  border-radius: 50%;
  background: #efede8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar-sm { width: 48px; height: 48px; }
.avatar-lg {
  width: 100px;
  height: 100px;
  box-shadow: inset 0 0 0 10px #f4f3ef;
  border: 1px solid #ece8e2;
}
.avatar-face {
  width: 100%;
  height: 100%;
  position: relative;
  background:
    radial-gradient(circle at 50% 39%, #f4d0b7 0 18%, transparent 18.3%),
    radial-gradient(circle at 43% 36%, #3f413e 0 1.6%, transparent 1.8%),
    radial-gradient(circle at 57% 36%, #3f413e 0 1.6%, transparent 1.8%),
    radial-gradient(circle at 50% 42.5%, #db9167 0 1.7%, transparent 1.9%),
    radial-gradient(circle at 50% 63%, #cec6bb 0 28%, transparent 28.3%),
    radial-gradient(circle at 50% 25%, #cd7433 0 19%, transparent 19.3%),
    radial-gradient(circle at 50% 28%, #d5853f 0 15%, transparent 15.3%),
    linear-gradient(transparent 0 100%);
}
.content-area { padding: 28px 28px 36px; }
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.page-title {
  margin: 0 0 0px;
  font-size: 1.625rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.6px;
  color: #4D4D4D;
}
.breadcrumbs {
  font-size: 12px; 
  font-weight: 600;
  color: #9ca5b3;
  display: flex;
  gap: 14px;
  align-items: center;
}
.menu-dots {
  width: 50px;
  height: 50px;
  border-radius: 20px;
  border: 0;
  background: #fff;
  color: #5f6978;
  box-shadow: var(--shadow-soft);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 24px;
}
.left-column,
.right-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card {
  background: var(--card);
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1eb;
}
.profile-card { padding: 32px 28px 30px; }
.profile-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.profile-name {
  margin: 0;
  font-size: .875rem;
  line-height: 1.05;
  font-weight: 900;
  text-align: center;
  letter-spacing: -.45px;
  color: #273142;
}
.profile-role {
  margin: 6px 0 24px;
  text-align: center;
  font-size: 14px;
  color: #98a1af;
  font-weight: 600;
}
.profile-actions {
  display: grid;
  grid-template-columns: 1fr .82fr 62px;
  gap: 12px;
  margin-bottom: 16px;
}
.btn {
  min-height: 36px;
  border-radius: 1rem;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.btn .icon-slot,
.btn svg.icon-slot,
.btn .lucide,
.btn > svg {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  color: currentColor;
}

.btn > span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.profile-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
  flex-shrink: 0;
}

.btn-primary .icon-slot,
.btn-primary svg,
.btn-primary .lucide {
  color: #fff;
}

.btn-soft .icon-slot,
.btn-soft svg,
.btn-soft .lucide,
.btn-icon .icon-slot,
.btn-icon svg,
.btn-icon .lucide {
  color: currentColor;
}


.btn-primary {
  background: var(--theme);
  color: #fff;
  box-shadow: 0 12px 22px color-mix(in srgb, var(--theme) 18%, transparent);
}
.btn-soft,
.btn-icon {
  background: #f4f6f2;
  color: var(--theme-text);
}
.btn-icon { padding: 0; }
.overview-pill {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  border-radius: 22px;
  background: #f7f8f4;
  border: 1px solid #eef1eb;
  gap: 11px;
  padding: 0 24px;
  color: var(--theme-text);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 20px;
}
.profile-links {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #5f667a;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.profile-link span {
  line-height: 1;
}

.profile-link .icon-slot,
.profile-link svg {
  width: 18px;
  height: 18px;
  color: #7a8194;
  stroke-width: 1.9;
  flex-shrink: 0;
}

.profile-link:hover {
  background: #f5f8f2;
  color: #72bf44;
}

.profile-link:hover .icon-slot,
.profile-link:hover svg {
  color: #72bf44;
}

.profile-link.active {
  background: #f1f7ea;
  color: #72bf44;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(114, 191, 68, 0.04);
}

.profile-link.active .icon-slot,
.profile-link.active svg {
  color: #72bf44;
}





.achievements-card { padding: 26px 28px; }
.section-title {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 800;
  color: #404958;
}
.achievement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}
.achievement-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #556071;
}
.achievement-icon {
  width: 40px;
  height: 40px;
  border-radius: 15px;
  background: var(--theme-soft);
  color: var(--theme-text);
}
.achievement-count {
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f6f6f3;
  color: #848d9c;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.metric-card {
  background: #fff;
  border-radius: 28px;
  min-height: 110px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1eb;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.metric-icon {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.metric-icon svg { width: 27px; height: 27px; }
.soft-green { background: #eef4e5; color: #84b966; }
.soft-mint { background: #e6f4ee; color: #61b990; }
.soft-cyan { background: #e4f5fb; color: #5ebee0; }
.soft-blue { background: #e7eefc; color: #6b89eb; }
.metric-label {
  font-size: 14px;
  font-weight: 700;
  color: #8d96a7;
  margin-bottom: 6px;
}
.metric-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #273142;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.1;
}
.metric-trend {
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.metric-trend .icon-slot,
.metric-trend .icon-slot svg,
.metric-trend svg.icon-slot { width: 11px; height: 11px; }
.metric-trend.up { color: #77c453; }
.metric-trend.up .icon-slot svg { fill: currentColor; }
.metric-trend.down { color: #ec8097; }
.metric-trend.down .icon-slot svg { transform: rotate(180deg); fill: currentColor; }
.projects-card {
  padding: 28px 30px 30px;
  position: relative;
}
.projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.projects-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #273142;
}
.view-all {
  gap: 5px;
  font-size: 15px;
  font-weight: 800;
  color: #6f7888;
}
.view-all .icon-slot,
.view-all .icon-slot svg,
.view-all svg.icon-slot { width: 15px; height: 15px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.project-box {
  border: 1px solid #eceee9;
  border-radius: 28px;
  padding: 22px 20px 20px;
  background: #fff;
}
.project-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.project-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #f6f7f4;
  color: #707885;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.project-icon-wrap .icon-slot,
.project-icon-wrap .icon-slot svg,
.project-icon-wrap svg.icon-slot { width: 19px; height: 19px; }
.project-title-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.project-title-wrap h4 {
  margin: 0;
  font-size: 19px;
  line-height: 1.18;
  font-weight: 900;
  color: #273142;
}
.project-badge {
  min-width: 68px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f7f7f4;
  color: #8b93a2;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.project-box p {
  margin: 0 0 18px 58px;
  max-width: 250px;
  color: #9aa3b1;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}
.project-stats {
  margin-left: 58px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.project-stats span {
  min-width: 58px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f7f8f4;
  color: #77bd4f;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.project-stats .icon-slot,
.project-stats .icon-slot svg,
.project-stats svg.icon-slot { width: 13px; height: 13px; }
.project-stats span:nth-child(2) { color: #5fa85f; }
.project-stats span:nth-child(3) { color: #77bd4f; }
.project-stats span.blue { color: #63b4f1; }
.floating-tools {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}
.floating-tools button {
  width: 52px;
  height: 52px;
  border-radius: 18px 0 0 18px;
  border: 0;
  background: #fff;
  box-shadow: var(--shadow-soft);
  color: var(--theme-text);
}
.floating-tools .icon-slot,
.floating-tools .icon-slot svg,
.floating-tools svg.icon-slot { width: 18px; height: 18px; }

@media (max-width: 1260px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .projects-grid,
  .metrics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .app-frame {
    min-height: 100vh;
    width: 100%;
  }

  .sidebar-shell {
    width: 0 !important;
    min-width: 0 !important;
    flex: 0 0 0 !important;
    overflow: visible;
    background: transparent !important;
    box-shadow: none !important;
  }

  .app-content-column {
    width: 100%;
    min-width: 0;
  }

  .sidebar {
    width: 280px;
    position: fixed;
    top: 0;
    left: -300px;
    height: 100vh;
    min-height: 100vh;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 40px rgba(0, 0, 0, 0.15);
    background: #fff;
    padding: 20px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .sidebar.active { left: 0; }
  body.menu-open { overflow: hidden; }
  .mobile-menu { display: flex !important; align-items: center; justify-content: center; z-index: 10000; position: relative; }
  .topbar {
    border-radius: 0 0 26px 26px;
    position: relative;
    z-index: 9997;
    padding: 16px 20px;
    align-items: flex-start;
    gap: 14px;
  }
  .main-wrap { width: 100%; flex: 1; }
  .content-area { padding: 24px 18px 28px; width: 100%; }
  .topbar-actions {
    gap: 14px;
    flex: 1;
  }
  .topbar-context {
    gap: 14px;
  }
  .topbar-context-value {
    max-width: 150px;
  }
  .topbar-divider {
    height: 36px;
  }
}

@media (max-width: 720px) {
  .page-title { font-size: 28px; }
  .profile-name { font-size: 26px; }
  .profile-actions { grid-template-columns: 1fr; }
  .projects-card { padding-inline: 20px; }
  .project-box p,
  .project-stats { margin-left: 0; }
  .project-head { align-items: center; }
  .project-title-wrap { flex-direction: column; align-items: flex-start; }
  .floating-tools { display: none; }
  .topbar {
    padding: 14px 16px 18px;
  }
  .topbar-actions {
    width: 100%;
    gap: 10px 12px;
    align-items: flex-start;
  }
  .topbar-context {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    justify-content: initial;
    padding: 10px 0 0;
    border-top: 1px solid #eef1eb;
  }
  .topbar-context-item {
    gap: 5px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #edf0ea;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf7 100%);
    box-shadow: 0 8px 20px rgba(54, 63, 77, 0.04);
  }
  .topbar-context-value {
    max-width: none;
    font-size: 13px;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    overflow-wrap: anywhere;
  }
  .topbar-context-divider {
    display: none;
  }
  .topbar-actions > .topbar-divider {
    display: none;
  }
  .topbar-user-trigger {
    min-height: 46px;
    padding: 6px 8px;
    gap: 8px;
  }
  .topbar-user-role,
  .topbar-user-name,
  .topbar-user-email { display: none; }
}

@media (max-width: 560px) {
  .topbar-context {
    grid-template-columns: 1fr;
  }
}
/* ===== General toolbar / pills ===== */
.toolbar-actions,
.sst-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.toolbar-pill,
.sst-filter-pill {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #edf0ea;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: #5f697a;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.toolbar-pill .icon-slot,
.toolbar-pill svg,
.sst-filter-pill .icon-slot,
.sst-filter-pill svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.toolbar-pill .icon-slot svg,
.toolbar-pill svg,
.sst-filter-pill .icon-slot svg,
.sst-filter-pill svg {
  stroke: currentColor;
  fill: none;
}

.sst-filter-pill-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: auto !important;
  padding: 8px 16px !important;
}

.sst-filter-pill-icon .icon-slot {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}

.sst-filter-pill-icon .icon-slot svg {
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  fill: none !important;
}

.toolbar-icon-pill,
.sst-icon-pill {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid #edf0ea;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: #8b94a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.toolbar-icon-pill .icon-slot,
.toolbar-icon-pill svg,
.sst-icon-pill .icon-slot,
.sst-icon-pill svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.toolbar-icon-pill .icon-slot svg,
.toolbar-icon-pill svg,
.sst-icon-pill .icon-slot svg,
.sst-icon-pill svg {
  stroke: currentColor;
  fill: none;
}

.toolbar-pill:hover,
.toolbar-icon-pill:hover {
  background: #fbfcfa;
}

.toolbar-pill.is-soft {
  background: #f8faf7;
}

.toolbar-pill.is-wide {
  min-width: 270px;
  justify-content: space-between;
}

.toolbar-pill.is-medium {
  min-width: 174px;
}

/* ===== General forms ===== */
.form-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-card {
  background: var(--card);
  border-radius: 34px;
  border: 1px solid #eef1eb;
  box-shadow: var(--shadow);
  padding: 34px 36px;
}

.form-section + .form-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid #f0f2ee;
}

.form-section-title {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 700;
  color: #343d4d;
  letter-spacing: -0.02em;
}

.form-section-subtitle {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 800;
  color: #626c7d;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px 22px;
}

.form-col-12 { grid-column: span 12; }
.form-col-8 { grid-column: span 8; }
.form-col-6 { grid-column: span 6; }
.form-col-4 { grid-column: span 4; }
.form-col-3 { grid-column: span 3; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.form-label {
  font-size: 0.875rem;
  line-height: 1.2;
  font-weight: 300;
  color: #525b6b;
}

.form-hint {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #9ca5b3;
  font-weight: 600;
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 40px;
  border-radius: 20px;
  border: 1px solid #dfe5dd;
  background: #ffffff;
  color: #4d5666;
  padding: 0 20px;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-textarea {
  min-height: 132px;
  padding: 16px 20px;
  resize: vertical;
}

.form-control::placeholder,
.form-textarea::placeholder {
  color: #adb5c0;
  font-size: 14px;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: color-mix(in srgb, var(--theme) 34%, #dfe5dd);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme) 10%, transparent);
}

.form-select-wrap {
  position: relative;
}

.form-select {
  appearance: none;
  padding-right: 54px;
}

.form-select-wrap .icon-slot {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca5b3;
  pointer-events: none;
}

.form-tags {
  min-height: 54px;
  border-radius: 20px;
  border: 1px solid #dfe5dd;
  background: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.form-tag {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f6f2;
  color: #626c7d;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-tag .icon-slot,
.form-tag svg {
  width: 14px;
  height: 14px;
  color: #a4acb8;
}

.form-tag-input {
  flex: 1;
  min-width: 120px;
  border: 0;
  outline: none;
  font: inherit;
  color: #626c7d;
  background: transparent;
  padding: 4px 0;
}

.form-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn-secondary {
  min-width: 148px;
  background: #f4f6f2;
  color: #606a7a;
}

.btn-primary-solid {
  min-width: 168px;
  background: var(--theme);
  color: #ffffff;
  box-shadow: 0 12px 22px color-mix(in srgb, var(--theme) 18%, transparent);
}

.btn-secondary .icon-slot,
.btn-secondary svg,
.btn-primary-solid .icon-slot,
.btn-primary-solid svg {
  color: currentColor;
  stroke: currentColor;
  fill: none;
}

.btn-icon-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  background: #fff1f2;
  color: var(--sst-danger);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-icon-danger:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.btn-icon-danger svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 980px) {
  .toolbar-actions,
  .sst-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .issues-head {
    align-items: stretch;
  }

  .issues-toolbar {
    width: 100%;
  }

  .issues-toolbar .issues-tool-btn,
  .issues-toolbar .issues-add-btn {
    flex: 1 1 160px;
  }

  .toolbar-pill.is-wide {
    min-width: 0;
    width: 100%;
  }

  .form-card {
    padding: 28px 22px;
    border-radius: 28px;
  }

  .form-col-8,
  .form-col-6,
  .form-col-4,
  .form-col-3 {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .toolbar-actions,
  .sst-head-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-head,
  .issues-head {
    gap: 14px;
  }

  .toolbar-pill,
  .sst-filter-pill {
    width: 100%;
    justify-content: space-between;
  }

  .issues-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .issues-toolbar .issues-tool-btn,
  .issues-toolbar .issues-add-btn {
    width: 100%;
    flex: none;
    justify-content: center;
  }

  .toolbar-icon-pill,
  .sst-icon-pill {
    align-self: flex-end;
  }

  .form-grid {
    gap: 18px;
  }

  .form-section-title {
    font-size: 1.08rem;
  }

  .form-card-actions {
    flex-direction: column-reverse;
  }

  .btn-secondary,
  .btn-primary-solid {
    width: 100%;
  }
}

.issues-page {
  width: 100%;
}

.issues-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.issues-title {
  margin: 0 0 6px;
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1px;
  color: #4a4f57;
}

.issues-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #a0a7b2;
}

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

.issues-tool-btn,
.issues-add-btn {
  border: 0;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.issues-tool-btn {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.issues-add-btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.issues-search-wrap {
  position: relative;
  margin-bottom: 22px;
}

.issues-search {
  width: 100%;
  height: 40px;
  border-radius: 24px;
  border: 2px solid rgba(109, 194, 66, 0.45);
  background: #fff;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(109, 194, 66, 0.04);
  padding: 0 70px 0 20px;
  font-size: 17px;
  color: #5b6372;
}

.issues-search::placeholder {
  color: #9aa2af;
  font-size: 15px;
}

.issues-search:focus {
  border-color: var(--theme);
  box-shadow: 0 0 0 4px rgba(109, 194, 66, 0.08);
}

.issues-search-btn {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #c0c5cf;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.issues-search-btn .icon-slot,
.issues-search-btn svg {
  width: 22px;
  height: 22px;
}

.issues-table {
  width: 100%;
}

.issues-table-head,
.issues-row {
  display: grid;
  grid-template-columns: 44px minmax(320px, 2.3fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(150px, .9fr) minmax(120px, .7fr);
  align-items: center;
  gap: 12px;
}

.issues-table-head {
  padding: 0 18px 14px;
  color: #5f6672;
  font-size: 15px;
  font-weight: 900;
}

.issues-table-head > div:not(:first-child) {
  position: relative;
  padding-left: 14px;
}

.issues-table-head > div:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: #ecefe8;
}

.issues-row {
  background: #fff;
  border: 1px solid #eef1eb;
  box-shadow: var(--shadow);
  border-radius: 30px;
  min-height: 84px;
  padding: 0 18px;
  margin-bottom: 14px;
}

.col-issue,
.col-assignee,
.col-category,
.col-date,
.col-status {
  font-size: 15px;
  font-weight: 700;
  color: #5d6470;
}

.col-issue {
  font-size: 17px;
  color: #5a606b;
}

.check-wrap {
  position: relative;
  display: inline-flex;
  width: 22px;
  height: 22px;
}

.check-wrap input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.check-wrap span {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1.6px solid #d9ddd5;
  background: #fff;
  display: inline-block;
  transition: all .2s ease;
}

.check-wrap input:checked + span {
  background: var(--theme);
  border-color: var(--theme);
  box-shadow: inset 0 0 0 5px #fff;
}

.issue-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.issue-user img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 44px;
  box-shadow: 0 3px 10px rgba(55, 63, 76, 0.08);
}

.issue-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f6672;
}

.issue-category-icon {
  color: var(--theme-text);
}

.issue-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fdeff2;
  color: #df6a84;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.issue-status .icon-slot,
.issue-status svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 1100px) {
  .issues-title {
    font-size: 2.35rem;
  }

  .issues-table-head,
  .issues-row {
    grid-template-columns: 44px minmax(250px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(130px, .9fr) minmax(110px, .7fr);
  }
}

@media (max-width: 860px) {
  .issues-head {
    flex-direction: column;
    align-items: stretch;
  }

  .issues-toolbar {
    justify-content: flex-start;
  }

  .issues-table-head {
    display: none;
  }

  .issues-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 18px 16px;
    min-height: auto;
    border-radius: 24px;
  }

  .issues-row > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .issues-row .col-check {
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .issues-row > div[data-label]::before {
    content: attr(data-label);
    color: #98a1af;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .2px;
    flex: 0 0 92px;
    text-transform: uppercase;
  }

  .col-issue {
    display: block !important;
  }

  .col-issue::before {
    display: block;
    margin-bottom: 6px;
  }

  .col-issue[data-label] {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .col-assignee,
  .col-category,
  .col-date,
  .col-status {
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .issues-title {
    font-size: 1.95rem;
  }

  .issues-search {
    height: 56px;
    border-radius: 20px;
    font-size: 15px;
  }

  .issues-tool-btn {
    width: 42px;
    height: 42px;
    border-radius: 16px;
  }

  .issues-add-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 18px;
    font-size: 14px;
  }

  .issues-row {
    padding: 16px;
  }

  .issues-row > div[data-label]::before {
    flex-basis: 78px;
    font-size: 11px;
  }

  .issue-user img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .col-issue {
    font-size: 15px;
  }
}

/*CLIENTE CSS */
.issues-page {
  width: 100%;
}

.issues-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

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

.issues-tool-btn,
.issues-add-btn {
  border: none;
  background: #fff;
  box-shadow: var(--shadow-soft);
  color: #5d6470;
  border-radius: 18px;
  transition: all .25s ease;
}

.issues-tool-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.issues-add-btn {
  min-height: 46px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.issues-tool-btn:hover,
.issues-add-btn:hover {
  transform: translateY(-1px);
  color: var(--theme);
}

.issues-table-wrap {
  width: 100%;
}

.issues-table-wrap .dataTables_wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.issues-table-wrap .dataTables_bottom {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.issues-table-wrap .dataTables_filter {
  float: none !important;
  width: 100%;
  margin-bottom: 22px;
}

.issues-table-wrap .dataTables_filter label {
  width: 100%;
  position: relative;
  display: block;
  font-size: 0;
}

.issues-table-wrap .dataTables_filter label::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.35-4.35"></path></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  opacity: 0.5;
  pointer-events: none;
}

.issues-table-wrap .dataTables_filter input {
  width: 100% !important;
  margin-left: 0 !important;
  height: 44px;
  border-radius: 18px;
  padding: 0 70px 0 20px;
  font-size: 17px !important;
  box-sizing: border-box;
  transition: all 0.2s ease;
  border: 2px solid rgba(109, 194, 66, 0.45);
  background: #fff;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(109, 194, 66, 0.04);
  font-size: 17px;
  color: #5b6372;
}

.issues-table-wrap .dataTables_filter input:focus {
  border-color: #d1d5db;
  background: #fff;
  box-shadow: none;
}

.issues-table-wrap .dataTables_filter input::placeholder {
  color: #9aa2af;
  font-size: 15px;
}

.issues-table-wrap .dataTables_length,
.issues-table-wrap .dataTables_info {
  color: #7a8494;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  padding-right: 10px;
}

.issues-table-wrap .dataTables_length {
  display: none;
}

.issues-table-wrap .dataTables_info {
  margin-left: auto;
}

.issues-table-wrap .dataTables_paginate {
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  gap: 4px;
}

.issues-table-wrap .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  border: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  color: #5d6470 !important;
  box-shadow: none !important;
  margin-left: 0 !important;
  padding: 8px 12px !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.issues-table-wrap .dataTables_paginate .paginate_button:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

.issues-table-wrap .dataTables_paginate .paginate_button.current {
  background: var(--theme-soft) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-text) !important;
  font-weight: 700;
}

table.issues-datatable {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 14px !important;
  background: transparent;
}

table.issues-datatable thead th {
  background: transparent !important;
  border-bottom: none !important;
  color: #5f6672 !important;
  font-size: .75rem !important;
  font-weight: 700;
  padding: 0 16px 12px !important;
  white-space: nowrap;
  text-align: left;
}

table.issues-datatable thead th:first-child {
  width: 44px;
}

table.issues-datatable tbody tr {
  border-bottom: 1px solid #eef1eb !important;
  border-radius: 12px !important;
  overflow: visible;
}

table.issues-datatable tbody td {
    background: #fff !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 16px !important;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #5d6470;
    overflow: visible;
}

table.dataTable.display > tbody > tr.odd > .sorting_1, 
table.dataTable.order-column.stripe > tbody > tr.odd > .sorting_1, table.dataTable.display > tbody > tr > .sorting_1, table.dataTable.order-column.stripe > tbody > tr > .sorting_1 {
    background: #ffffff !important;
}

table.issues-datatable tbody td:first-child {
  border-left: none !important;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

table.issues-datatable tbody td:last-child {
  border-right: none !important;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.issue-title-cell {
  font-size: .075rem;
  color: #5a606b;
  line-height: 1.35;
}

.check-wrap {
  position: relative;
  display: inline-flex;
  width: 22px;
  height: 22px;
}

.check-wrap input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.check-wrap span {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1.6px solid #d9ddd5;
  background: #fff;
  display: inline-block;
  transition: all .2s ease;
}

.check-wrap input:checked + span {
  background: var(--theme);
  border-color: var(--theme);
  box-shadow: inset 0 0 0 5px #fff;
}

.issue-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.issue-user img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 42px;
}

.issue-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f6672;
  white-space: nowrap;
}

#PlanificacionTareasTable tbody td:nth-child(2) .issue-category {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  max-width: 100%;
  white-space: normal;
}

#PlanificacionTareasTable tbody td:nth-child(2) .issue-category span:last-child {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.issue-category-icon {
  color: var(--theme-text);
}

.issue-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme) 18%, transparent);
  color: var(--theme);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.issue-status .icon-slot,
.issue-status svg {
  width: 15px;
  height: 15px;
}

table.dataTable.no-footer {
  border-bottom: none !important;
}

.dataTables_wrapper .dataTables_scroll {
  overflow: visible;
}

/* Responsive for issues/clients (991px, 768px) — consolidated into bottom responsive blocks */


/*===== Form Upload Component ===== */
.form-upload {
  position: relative;
  width: 100%;
}

.form-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.form-upload-box {
  width: 100%;
  min-height: 124px;
  border: 1px dashed #cfd8e3;
  border-radius: 24px;
  background: #f9fbfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-upload-box:hover {
  border-color: #86b738;
  background: #f7fbef;
}

.form-upload-box .icon-slot {
  width: 22px;
  height: 22px;
  color: #86b738;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-upload-title {
  font-size: 15px;
  font-weight: 800;
  color: #243b63;
  line-height: 1.2;
}

.form-upload-text {
  font-size: 13px;
  color: #7f8da3;
  line-height: 1.4;
}

.form-upload-preview {
  display: none;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: #ffffff;
}

.form-upload-preview.is-visible {
  display: flex;
}

.form-upload-preview-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
  background: #f4f7fb;
  border: 1px solid #dbe3ec;
  padding: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.form-upload-file-name {
  font-size: 14px;
  font-weight: 700;
  color: #243b63;
  line-height: 1.4;
  word-break: break-word;
}


/*===== assinacion de perfiles ===== */
.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.assigned-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.assigned-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #d6e6ff;
  font-size: 14px;
  font-weight: 600;
  color: #244a7c;
}

.assigned-profile-badge button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
}


/*===== Issue status interactivity ===== */
.issue-status {
  cursor: pointer;
}



.form-select {
  font-size: 13px;
  line-height: 1.2;
}




/*===== CSS para Actions y botón + Tarea===== */
.task-project-row {
  position: relative;
  transition: transform 0.2s ease;
}

.task-project-row > td[colspan] {
  /*padding: 18px 24px !important;*/
  border-bottom: 0 !important;
  border: 1px solid #eef3f8 !important;
  border-radius: 24px;
  background: #ffffff !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.task-project-row:hover > td[colspan] {
  border-color: #e3ebf3 !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.11);
}

.task-project-row .task-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.task-project-row .task-project-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
}

.task-project-row .task-project-toggle {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #6b7a90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.task-project-row .task-project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f2fbeb 0%, #edf8e8 100%);
  color: #65b32e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.task-project-row .task-project-badge .icon-slot,
.task-project-row .task-project-toggle .icon-slot,
.task-project-row .task-add-btn .icon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.task-project-row .task-project-badge .icon-slot svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.1;
}

.task-project-row .task-project-name {
  font-size: 14px;
  font-weight: 700;
  color: #54ae34;
  cursor: pointer;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-project-row .task-project-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 11px;
  border-radius: 12px;
  background: #f3f5f8;
  font-size: 16px;
  font-weight: 800;
  color: #4d5c73;
  flex-shrink: 0;
}

.task-project-row .task-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid #eef3f8;
  border-radius: 18px;
  background: #ffffff;
  color: #2f3a4c;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.task-project-row .task-add-btn:hover {
  border-color: #a8d568;
  color: #4fa42f;
  background: #f8fbea;
}

.task-project-row .task-add-btn .icon-slot {
  width: 18px;
  height: 18px;
}

.task-name-cell {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 700;
  color: #2f3a4c;
}

.task-name-cell > span:last-child {
  min-width: 0;
}

.task-row-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex: 0 0 16px;
  flex-shrink: 0;
  color: #99a3b3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.task-actions-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.task-actions-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #697586;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.task-actions-btn:hover {
  background: #f3f5f8;
  color: #2f3a4c;
}

.task-actions-btn .icon-slot {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.task-actions-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  padding: 8px;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  display: none;
  z-index: 30;
}

.task-actions-dropdown.is-open .task-actions-menu {
  display: block;
}

table.issues-datatable tbody td:last-child {
  position: relative;
  overflow: visible;
}

.task-actions-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2f3a4c;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.task-actions-item:hover {
  background: #f5f7fa;
}

.task-actions-item .icon-slot {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.task-actions-item-danger {
  color: #d14343;
}

.task-actions-item-danger:hover {
  background: #fff3f3;
}

/*===== Mejoras visuales planificación ===== */

.task-project-row .task-project-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 18px;
  min-width: 0;
}

.task-project-row .task-progress-bar {
  width: 168px;
  height: 8px;
  background: #e7ebf1;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.task-project-row .task-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #86d65f 0%, #65b32e 100%);
  transition: width 0.4s ease;
}

.task-project-row .task-progress-text {
  font-size: 15px;
  font-weight: 700;
  color: #4d5c73;
  white-space: nowrap;
}

.task-priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}

.task-priority .icon-slot {
  width: 15px;
  height: 15px;
}

.task-priority-high {
  color: #c43d4b;
  background: #fef2f2;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.task-priority-medium {
  color: #b8860b;
  background: #fef9ec;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.task-priority-low {
  color: #3cb97c;
  background: #edf8ef;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.task-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.task-status-badge .icon-slot {
  width: 15px;
  height: 15px;
}

.task-status-pending {
  background: #f2f3f5;
  color: #3b3f45;
}

.task-status-progress {
  background: #eef5ff;
  color: #2b5fb8;
}

.task-status-done {
  background: #edf8ef;
  color: #2f7a41;
}

.task-status-overdue {
  background: #fff1e8;
  color: #c2410c;
}

.task-status-cancelled {
  background: #fff1f2;
  color: #be123c;
}

.task-status-warning {
  background: #fff7e8;
  color: #b45309;
}

.task-status-paused {
  background: #eef2ff;
  color: #4338ca;
}

.task-comments {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4c5565;
  font-weight: 700;
}

.task-comments .icon-slot {
  width: 16px;
  height: 16px;
  color: #8e97a6;
}

.task-date-danger {
  color: #c43d4b;
  font-weight: 700;
  background: #fef2f2;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
}

.task-date-danger .icon-slot {
  width: 14px;
  height: 14px;
}

/*===== RESPONSIVE — Tabla de datos con scroll horizontal ===== */
.issues-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/*===== RESPONSIVE — Tablet (≤980px) ===== */
@media (min-width: 721px) and (max-width: 980px) {
  .topbar {
    min-height: 68px;
    height: auto;
    padding: 14px 18px;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .topbar-actions > .topbar-divider {
    display: none;
  }

  .topbar-context {
    min-width: 0;
    gap: 12px;
    padding: 0;
  }

  .topbar-context-item {
    min-width: 0;
    flex: 1 1 0;
  }

  .topbar-context-value {
    max-width: none;
    font-size: 13px;
  }

  .topbar-user-menu {
    margin-left: 0;
    justify-self: end;
  }

  .topbar-user-trigger {
    min-height: 48px;
    max-width: 220px;
    padding: 6px 10px 6px 12px;
    gap: 10px;
  }

  .topbar-user-copy,
  .topbar-user-role,
  .topbar-user-name {
    max-width: 120px;
  }

  .topbar-user-role {
    display: none;
  }

  .task-project-row > td[colspan] {
    padding: 16px 18px !important;
  }

  .task-project-row .task-project-header {
    flex-wrap: wrap;
    gap: 14px;
  }

  .task-project-row .task-project-header-left {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }

  .task-project-row .task-project-progress {
    margin-left: 0;
    width: 100%;
  }

  .task-project-row .task-progress-bar {
    flex: 1;
    width: auto;
    max-width: 200px;
  }

  table.issues-datatable {
    min-width: 700px;
  }

  .issues-table-wrap .dataTables_filter input {
    height: 48px;
    border-radius: 16px;
    font-size: 15px;
  }
}

/*===== RESPONSIVE — Mobile grande / Tablet pequeña (≤768px) ===== */
@media (max-width: 768px) {
  .content-area {
    padding: 18px 14px 24px;
  }

  .page-head,
  .sst-page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .issues-head {
    flex-direction: column;
    align-items: stretch;
  }

  .issues-toolbar {
    width: 100%;
  }

  .issues-add-btn {
    flex: 1;
    justify-content: center;
  }

  .task-project-row .task-project-name {
    font-size: 15px;
  }

  .task-project-row .task-add-btn span:last-child {
    display: none;
  }

  .metric-card {
    padding: 18px 16px;
    gap: 14px;
  }

  .metric-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .metric-icon svg {
    width: 22px;
    height: 22px;
  }

  .profile-actions {
    flex-direction: column;
  }

  table.issues-datatable thead th {
    font-size: 0.7rem !important;
    padding: 0 10px 10px !important;
  }

  table.issues-datatable tbody td {
    padding: 12px 10px !important;
    font-size: 0.8rem;
  }

  .issue-user img {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .issue-user {
    font-size: 12px;
  }

  .issue-category {
    font-size: 12px;
  }

  .task-status-badge {
    font-size: 11px;
    padding: 5px 8px;
  }

  .task-priority {
    font-size: 12px;
  }

  .dataTables_bottom {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .issues-table-wrap .dataTables_info {
    margin-left: 0;
    text-align: center;
  }

  .issues-table-wrap .dataTables_paginate {
    justify-content: center;
  }
}

/*===== RESPONSIVE — Mobile (≤560px) ===== */
@media (max-width: 560px) {
  :root {
    --topbar-h: 60px;
  }

  .content-area {
    padding: 14px 10px 20px;
  }

  .topbar {
    padding: 0 14px;
    height: 60px;
    border-radius: 0 0 18px 18px;
  }

  .page-title {
    font-size: 1.15rem;
  }

  .breadcrumbs {
    font-size: 12px;
  }

  .card {
    border-radius: 20px;
  }

  .issues-search {
    height: 44px;
    border-radius: 16px;
    font-size: 14px;
    padding: 0 50px 0 14px;
  }

  .issues-tool-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .issues-add-btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 16px;
    font-size: 13px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: auto;
    padding: 16px 14px;
  }

  .form-card {
    padding: 20px 14px;
    border-radius: 20px;
  }

  .task-project-row > td[colspan] {
    padding: 14px 16px !important;
  }

  .task-project-row .task-project-badge {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .task-project-row .task-project-name {
    font-size: 14px;
  }

  .task-project-row .task-add-btn {
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 14px;
  }

  .task-project-row .task-progress-bar {
    max-width: 130px;
  }

  .task-project-row .task-project-count {
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    font-size: 13px;
  }

  .task-project-row .task-progress-text {
    font-size: 13px;
  }

  table.issues-datatable {
    min-width: 580px;
  }

  table.issues-datatable thead th {
    font-size: 0.65rem !important;
    padding: 0 8px 8px !important;
  }

  table.issues-datatable tbody td {
    padding: 10px 8px !important;
    font-size: 0.75rem;
  }

  .task-name-cell {
    font-size: 12px;
    gap: 8px;
  }

  .task-comments {
    font-size: 12px;
  }

  .project-box {
    border-radius: 20px;
    padding: 18px 16px 16px;
  }

  .projects-card {
    padding: 22px 16px;
  }

  .section-title {
    font-size: 15px;
  }

  .achievement-row {
    min-height: 48px;
  }

  .form-card-actions {
    flex-direction: column-reverse;
  }

  .btn-secondary,
  .btn-primary-solid {
    width: 100%;
  }
}




/*===== indicator-module ==== */
.indicator-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.indicator-module-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid #e7edf5;
  border-radius: 22px;
  background: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.indicator-module-card:hover {
  transform: translateY(-2px);
  border-color: #b9e7bf;
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.10);
}

.indicator-module-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf9ee;
  color: #57b33e;
}

.indicator-module-icon .icon-slot {
  width: 24px;
  height: 24px;
}

.indicator-module-content {
  flex: 1;
}

.indicator-module-content h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #24364d;
}

.indicator-module-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #7b8aa0;
}

.indicator-module-arrow {
  color: #9aa9bc;
}

@media (max-width: 1100px) {
  .indicator-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .indicator-module-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}




/*===== CSS para KPIs ==== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.kpi-card {
  background: #f8fbf8;
  border: 1px solid #e5efe5;
  border-radius: 20px;
  padding: 20px;
}

.kpi-label {
  display: block;
  font-size: 13px;
  color: #7b8aa0;
  margin-bottom: 8px;
}

.kpi-value {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: #24364d;
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .kpi-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}




 
/*===== Sidebar ===== */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
}

.layout,
.app-layout,
.wrapper,
.main-layout {
  min-height: 100vh;
}

/* Sidebar — base layout handled by base.css */
.sidebar {
  overflow-y: auto;
  overflow-x: hidden;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  border-bottom: 1px solid #eef1eb;
}

.brand-logo {
  width: 175px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-copy {
  flex: 1;
  min-width: 0;
}

.brand-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #263249;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /*background: #f0f2f5;
  border: 1px solid #d8dce6;
  border-radius: 20px;
  padding: 4px 8px;
  display: inline-block;*/
}

.brand-version {
  display: none;
}

/* Contenido interno del menú */
.nav-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-bottom: 24px;
}

/* Submenús */
.nav-subgroup {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
  margin-top: 0;
}

.nav-subgroup.submenu-open,
.nav-subgroup.active {
  max-height: 500px;
  opacity: 1;
  margin-top: 6px;
}

.nav-toggle {
  cursor: pointer;
}

.nav-arrow {
  transition: transform 0.25s ease;
}

.nav-toggle.expanded .nav-arrow {
  transform: rotate(180deg);
}

/* Base visual sugerida */
.nav-item,
.nav-subitem,
.nav-child {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 16px;
  transition: background 0.25s ease, color 0.25s ease;
}

/* ACTIVO REAL: opción seleccionada */
.nav-item.active,
.nav-subitem.active,
.nav-child.active {
  background: rgba(116, 184, 54, 0.14);
  color: #5fb236;
  font-weight: 600;
}

.nav-item.active::before,
.nav-subitem.active::before,
.nav-child.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 6px;
  background: #43a047;
}

/* Color de iconos y texto del item activo */
.nav-item.active .nav-icon,
.nav-subitem.active .nav-icon-sm,
.nav-child.active,
.nav-item.active .nav-arrow,
.nav-subitem.active .nav-arrow {
  color: #5fb236;
}

/* PADRE ACTIVO: solo resalta el grupo contenedor */
.nav-item.active-parent {
  color: #5fb236;
  font-weight: 600;
}

.nav-item.active-parent .nav-icon,
.nav-item.active-parent .nav-arrow {
  color: #5fb236;
}

/* Hover opcional */
.nav-item:hover,
.nav-subitem:hover,
.nav-child:hover {
  background: rgba(0, 0, 0, 0.03);
}



/*===== EXTRAS ===== */ 
  .menu-acciones {
    min-width: 150px;
    border-radius: 1.125rem;
  }
  
  .menu-acciones.hidden {
    display: none;
  }
  
  .menu-acciones button {
    border: none;
    background: none;
    cursor: pointer;
  }
  
  .menu-acciones button:last-child {
    border-bottom: none;
  }





/*===== EXTRAS ===== */ 
  .sst-filter-pill-icon{
    border-radius: 1px;
    min-height: unset !important;
    font-weight: 500;
}


/**===== acciones del listado ===== */
  .menu-acciones {
    min-width: 150px;
  }
  
  .menu-acciones.hidden {
    display: none !important;
  }
  
  .menu-acciones button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
  }
  
  .menu-acciones button:last-child {
    border-bottom: none;
  }

  /* Estilos para los iconos SVG en el menú */
  .menu-acciones .icon-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center; 
  }

  .menu-acciones .icon-slot svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    stroke-width: 2;
    fill: none !important;
    display: inline-block !important;
    vertical-align: middle;
    color: currentColor !important;
    stroke: currentColor !important;
  }

  .menu-acciones button:hover .icon-slot svg {
    stroke-width: 2.5;
  }


/* ========================================================================
   PATCH — Compatibilidad Lucide + .icon-slot en botones (Chrome)
   Mantiene estilos existentes y solo refuerza la visualización de iconos.
   ======================================================================== */

button,
.btn,
.issues-tool-btn,
.issues-add-btn,
.toolbar-pill,
.toolbar-icon-pill,
.sst-filter-pill,
.sst-icon-pill,
.topbar-icon,
.topbar-logout,
.mobile-menu,
.menu-dots,
.task-add-btn,
.task-actions-btn,
.task-actions-item,
.btn-icon-danger,
.floating-tools button {
  -webkit-tap-highlight-color: transparent;
}

/* Contenedor del icono antes o después de que Lucide lo reemplace por SVG */
button .icon-slot,
.btn .icon-slot,
.issues-tool-btn .icon-slot,
.issues-add-btn .icon-slot,
.toolbar-pill .icon-slot,
.toolbar-icon-pill .icon-slot,
.sst-filter-pill .icon-slot,
.sst-icon-pill .icon-slot,
.topbar-icon .icon-slot,
.topbar-logout .icon-slot,
.mobile-menu .icon-slot,
.menu-dots .icon-slot,
.task-add-btn .icon-slot,
.task-actions-btn .icon-slot,
.task-actions-item .icon-slot,
.btn-icon-danger .icon-slot,
.floating-tools button .icon-slot {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  line-height: 0 !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
  color: currentColor !important;
}

/* SVG final generado por Lucide dentro de botones */
button .icon-slot svg,
button svg.icon-slot,
button svg.lucide,
button [class*="lucide-"],
.btn .icon-slot svg,
.btn svg.icon-slot,
.btn svg.lucide,
.issues-tool-btn svg,
.issues-add-btn svg,
.toolbar-pill svg,
.toolbar-icon-pill svg,
.sst-filter-pill svg,
.sst-icon-pill svg,
.topbar-icon svg,
.topbar-logout svg,
.mobile-menu svg,
.menu-dots svg,
.task-add-btn svg,
.task-actions-btn svg,
.task-actions-item svg,
.btn-icon-danger svg,
.floating-tools button svg {
  display: block !important;
  width: 1em !important;
  height: 1em !important;
  min-width: 1em !important;
  min-height: 1em !important;
  max-width: none !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: currentColor !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  vector-effect: non-scaling-stroke;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  pointer-events: none;
}

/* Tamaños estándar para evitar colapso del SVG en Chrome */
button .icon-slot,
button svg.icon-slot,
button svg.lucide,
.btn .icon-slot,
.btn svg.icon-slot,
.btn svg.lucide,
.issues-tool-btn .icon-slot,
.issues-tool-btn svg,
.issues-add-btn .icon-slot,
.issues-add-btn svg,
.toolbar-pill .icon-slot,
.toolbar-pill svg,
.toolbar-icon-pill .icon-slot,
.toolbar-icon-pill svg,
.sst-filter-pill .icon-slot,
.sst-filter-pill svg,
.sst-icon-pill .icon-slot,
.sst-icon-pill svg,
.topbar-icon .icon-slot,
.topbar-icon svg,
.topbar-logout .icon-slot,
.topbar-logout svg,
.mobile-menu .icon-slot,
.mobile-menu svg,
.menu-dots .icon-slot,
.menu-dots svg,
.task-add-btn .icon-slot,
.task-add-btn svg,
.task-actions-btn .icon-slot,
.task-actions-btn svg,
.task-actions-item .icon-slot,
.task-actions-item svg,
.btn-icon-danger .icon-slot,
.btn-icon-danger svg,
.floating-tools button .icon-slot,
.floating-tools button svg {
  width: 18px !important;
  height: 18px !important;
}

/* Variantes pequeñas ya usadas en tu sistema */
.topbar-logout .icon-slot,
.topbar-logout svg,
.btn-icon-danger .icon-slot,
.btn-icon-danger svg,
.task-project-toggle .icon-slot,
.task-project-toggle svg,
.task-row-icon .icon-slot,
.task-row-icon svg,
.task-actions-item .icon-slot,
.task-actions-item svg,
.task-priority .icon-slot,
.task-priority svg,
.task-date-danger .icon-slot,
.task-date-danger svg,
.form-tag .icon-slot,
.form-tag svg {
  width: 16px !important;
  height: 16px !important;
}

.metric-trend .icon-slot,
.metric-trend .icon-slot svg,
.metric-trend svg.icon-slot,
.project-stats .icon-slot,
.project-stats .icon-slot svg,
.project-stats svg.icon-slot,
.view-all .icon-slot,
.view-all .icon-slot svg,
.view-all svg.icon-slot {
  flex-shrink: 0 !important;
  overflow: visible !important;
}

/* Cuando Lucide reemplaza el span por svg, asegurar herencia del color del botón */
button svg.lucide,
button svg[class*="lucide-"],
.btn svg.lucide,
.btn svg[class*="lucide-"],
.issues-tool-btn svg.lucide,
.issues-add-btn svg.lucide,
.toolbar-pill svg.lucide,
.toolbar-icon-pill svg.lucide,
.sst-filter-pill svg.lucide,
.sst-icon-pill svg.lucide,
.topbar-icon svg.lucide,
.topbar-logout svg.lucide,
.mobile-menu svg.lucide,
.menu-dots svg.lucide,
.task-add-btn svg.lucide,
.task-actions-btn svg.lucide,
.task-actions-item svg.lucide,
.btn-icon-danger svg.lucide,
.floating-tools button svg.lucide {
  color: inherit !important;
  stroke: currentColor !important;
}

/* Previene problemas de alineación o recorte en Chrome */
button,
.btn,
.issues-tool-btn,
.issues-add-btn,
.toolbar-pill,
.toolbar-icon-pill,
.sst-filter-pill,
.sst-icon-pill,
.topbar-icon,
.topbar-logout,
.mobile-menu,
.menu-dots,
.task-add-btn,
.task-actions-btn,
.task-actions-item,
.btn-icon-danger,
.floating-tools button {
  align-items: center;
}

button .icon-slot + span,
.btn .icon-slot + span,
.issues-add-btn .icon-slot + span,
.task-add-btn .icon-slot + span,
.task-actions-item .icon-slot + span,
.topbar-logout .icon-slot + span {
  line-height: 1.1;
}

/* ========================================================================
   Floating Filter Panel
   ======================================================================== */

.filter-popover-anchor {
  position: relative;
}

.filter-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e7edf5;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.filter-popover.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.filter-popover-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: #324256;
}

.filter-popover-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.filter-popover-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-popover-label {
  font-size: 12px;
  font-weight: 700;
  color: #7b8aa0;
}

.filter-popover-date {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfe7f0;
  border-radius: 14px;
  background: #f8fbfd;
  color: #334155;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.filter-popover-date:focus {
  border-color: #97c96e;
  box-shadow: 0 0 0 4px rgba(151, 201, 110, 0.12);
  background: #ffffff;
}

.filter-popover-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.filter-popover-apply {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  background: #72bf44;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(114, 191, 68, 0.2);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.filter-popover-apply:hover {
  background: #63ae41;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .filter-popover {
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 24px));
  }
}

/* ========================================================================
   Mobile Shell Refresh
   ======================================================================== */

.topbar-mobile-brand,
.topbar-mobile-context-card {
  display: none;
}

@media (max-width: 980px) {
  body {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 28%, #f5f8fc 100%);
  }

  .main-wrap {
    background: transparent;
  }

  .topbar {
    min-height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 12px;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  }

  .mobile-menu {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: #0f4a8a;
  }

  .mobile-menu .icon-slot,
  .mobile-menu svg {
    width: 24px !important;
    height: 24px !important;
  }

  .topbar-mobile-brand {
    display: none;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
  }

  .topbar-mobile-brand-logo {
    display: block;
    width: auto;
    height: 50px;
    max-width: 100%;
  }

  .topbar-actions {
    width: auto;
    margin-left: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
  }

  .topbar-actions > .topbar-divider,
  .topbar-context,
  .topbar-user-menu {
    display: none !important;
  }

  .topbar-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: #0f4a8a;
  }

  .topbar-icon .icon-slot,
  .topbar-icon svg {
    width: 25px !important;
    height: 25px !important;
  }

  .badge {
    top: -4px;
    right: -2px;
    min-width: 28px;
    height: 28px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(109, 194, 66, 0.22);
  }

  .topbar-mobile-context-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    margin: 12px 18px 0;
    padding: 10px 12px;
    border-radius: 20px;
    border: 1px solid rgba(166, 227, 181, 0.9);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.045);
  }

  .topbar-mobile-context-divider {
    width: 1px;
    margin: 8px 6px;
    background: linear-gradient(180deg, rgba(212, 226, 205, 0) 0%, #e1e7df 18%, #e1e7df 82%, rgba(212, 226, 205, 0) 100%);
  }

  .topbar-mobile-context-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 2px;
  }

  .topbar-mobile-context-item-client {
    padding-right: 0;
  }

  .topbar-mobile-context-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f5fbf2 0%, #edf8ea 100%);
    color: #2cab32;
  }

  .topbar-mobile-context-icon .icon-slot,
  .topbar-mobile-context-icon svg {
    width: 22px !important;
    height: 22px !important;
  }

  .topbar-mobile-context-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .topbar-mobile-context-label {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    color: #76859a;
  }

  .topbar-mobile-context-value {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    color: #14213d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-mobile-context-caret {
    margin-left: auto;
    color: #29a329;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .content-area {
    padding: 20px 18px 32px !important;
  }

  .page-head,
  .issues-head,
  .sst-page-head {
    gap: 12px;
    margin-bottom: 18px;
  }

  .page-title {
    color: #13254b;
  }

  .breadcrumbs {
    font-size: 14px;
    font-weight: 700;
    color: #718096;
  }
}

@media (max-width: 720px) {
  .topbar {
    gap: 10px;
    padding: 14px 16px 10px;
  }

  .topbar-mobile-brand-logo {
    height: 46px;
  }

  .topbar-mobile-context-card {
    margin: 10px 14px 0;
    padding: 9px 10px;
    border-radius: 18px;
  }

  .content-area {
    padding: 18px 14px 28px !important;
  }

  .form-page {
    gap: 16px;
  }

  .form-card {
    border-radius: 28px;
    padding: 24px 18px;
  }

  .form-control,
  .form-select,
  .form-textarea,
  .form-tags {
    border-radius: 18px;
  }

  .page-title {
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
  }

  .topbar-mobile-context-value {
    font-size: 12.5px;
  }
}

@media (max-width: 560px) {
  .topbar-mobile-context-card {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: 0;
  }

  .topbar-mobile-context-divider {
    display: block;
  }

  .topbar-mobile-context-item {
    padding-inline: 2px;
  }

  .topbar-mobile-context-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .topbar-mobile-context-label {
    font-size: 11px;
  }

  .topbar-mobile-context-value {
    font-size: 11.5px;
  }
}
