.portal-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg, #eef0f3);
  font-family: 'Inter', sans-serif;
}

.portal-sidebar {
  width: 260px;
  background-color: #1a1f2c;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portal-sidebar__logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.portal-sidebar__logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.portal-sidebar__badge {
  font-family: monospace;
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.portal-sidebar__nav {
  flex: 1;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #a3aed0;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}

.portal-sidebar__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.portal-sidebar__link--active {
  color: #ffffff;
  background: #3b82f6;
}

.portal-sidebar__link--active:hover {
  background: #2563eb;
}

.portal-sidebar__user {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-sidebar__user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.portal-sidebar__user-info {
  display: flex;
  flex-direction: column;
}

.portal-sidebar__user-name {
  font-size: 13px;
  font-weight: 600;
}

.portal-sidebar__user-role {
  font-size: 11px;
  color: #a3aed0;
}

.portal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-header {
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
}

.portal-header__title h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1b212b;
}

.portal-header__subtitle {
  font-size: 11px;
  color: #8a93a3;
  font-family: monospace;
}

.portal-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-header__icon-btn {
  position: relative;
  background: none;
  border: none;
  color: #5b6473;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-header__icon-btn:hover {
  background: #f1f5f9;
}

.portal-header__badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.portal-content {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  width: 100%;
  min-width: 0;
  background-color: #ffffff;
}

.portal-embedded-content {
  padding: 0;
  margin: 0;
  width: 100%;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}
/* Modern enterprise CSS styling for the Employee Portal child application */

:root {
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-fade-in {
  animation: fadeIn var(--transition-normal) forwards;
}

.animate-fade-in-up {
  animation: fadeInUp var(--transition-normal) forwards;
}

.animate-spin {
  animation: spin 0.8s linear infinite;
}

/* Base custom classes to match rich executive styling */
.employee-portal-card {
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  border: 1px solid var(--hairline, #dee2e8);
}

.employee-portal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(27, 33, 43, 0.1);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(138, 147, 163, 0.3);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 147, 163, 0.5);
}

/* Badge variants */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'IBM Plex Mono', monospace;
}

.badge--success {
  background-color: rgba(36, 145, 95, 0.1);
  color: #24915f;
}

.badge--warning {
  background-color: rgba(220, 160, 20, 0.1);
  color: #a97a1e;
}

.badge--error {
  background-color: rgba(198, 67, 29, 0.1);
  color: #c6431d;
}

.badge--info {
  background-color: rgba(56, 104, 184, 0.1);
  color: #3868b8;
}

/* Modern tables design */
.mfe-table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(222, 226, 232, 0.7);
  background: #ffffff;
}

.mfe-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.mfe-table th {
  background: #f6f7f9;
  color: #5b6473;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid #dee2e8;
}

.mfe-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e9ecf0;
  color: #1b212b;
  font-size: 14px;
}

.mfe-table tbody tr:hover td {
  background: #f8fafc;
}
.dashboard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  color: #5b6473;
  font-weight: 500;
}

.dashboard-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
}

.dashboard__welcome {
  margin-bottom: 24px;
}

.dashboard__welcome h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1b212b;
}

.dashboard__welcome p {
  color: #5b6473;
  font-size: 14px;
}

.dashboard__metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.dashboard-metric-card {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
}

.dashboard-metric-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dashboard-metric-card__header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #5b6473;
}

.icon-blue {
  color: #3b82f6;
}
.icon-green {
  color: #10b981;
}
.icon-purple {
  color: #8b5cf6;
}

.dashboard-metric-card__body {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 32px;
  font-weight: 700;
  color: #1b212b;
  line-height: 1.1;
  font-family: 'Space Grotesk', sans-serif;
}

.metric-lbl {
  font-size: 12px;
  color: #8a93a3;
  margin-top: 4px;
  margin-bottom: 12px;
}

.metric-progress-track {
  height: 6px;
  background: #eef0f3;
  border-radius: 3px;
  overflow: hidden;
}

.metric-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.bg-blue {
  background: #3b82f6;
}
.bg-green {
  background: #10b981;
}

.projects-avatars {
  display: flex;
  margin-top: 10px;
}

.project-avatar-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.dashboard__content-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .dashboard__content-split {
    grid-template-columns: 1fr;
  }
}

.dashboard__left-col,
.dashboard__right-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-section-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1b212b;
}

/* Tasks list */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-tasks {
  padding: 20px;
  text-align: center;
  color: #8a93a3;
  font-style: italic;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #eef0f3;
  transition: transform 0.15s ease;
}

.task-item:hover {
  transform: translateX(2px);
}

.task-item__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.task-checkbox-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.task-checkbox-ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #a3aed0;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}

.task-checkbox-btn:hover .task-checkbox-ring {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.05);
}

.task-item__details {
  display: flex;
  flex-direction: column;
}

.task-name {
  font-weight: 500;
  color: #1b212b;
  font-size: 14px;
}

.task-project {
  font-size: 11px;
  color: #8a93a3;
}

.task-item__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-due-date {
  font-size: 12px;
  color: #5b6473;
  font-family: monospace;
}

/* Projects grid */
.dashboard-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.dashboard-proj-card {
  padding: 16px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #eef0f3;
}

.proj-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.proj-badge {
  font-size: 10px;
  font-family: monospace;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.proj-client {
  font-size: 11px;
  color: #8a93a3;
}

.proj-title {
  font-size: 14px;
  font-weight: 600;
  color: #1b212b;
  margin-bottom: 16px;
}

.proj-progress-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proj-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5b6473;
}

.proj-progress-bar {
  height: 4px;
  background: #eef0f3;
  border-radius: 2px;
  overflow: hidden;
}

.proj-progress-fill {
  height: 100%;
  border-radius: 2px;
}

/* Quick Actions */
.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-action-btn {
  justify-content: flex-start !important;
  text-align: left;
  gap: 10px;
  width: 100%;
}

/* Alerts */
.notif-alerts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-notif {
  color: #8a93a3;
  text-align: center;
  font-style: italic;
}

.notif-alert-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  border-left: 3px solid #dee2e8;
  background: #f8fafc;
}

.notif-alert-item--assignment {
  border-left-color: #3b82f6;
}
.notif-alert-item--due {
  border-left-color: #ef4444;
}
.notif-alert-item--update {
  border-left-color: #10b981;
}
.notif-alert-item--warning {
  border-left-color: #f59e0b;
}

.alert-icon {
  flex-shrink: 0;
  color: #5b6473;
}

.notif-alert-item--assignment .alert-icon {
  color: #3b82f6;
}
.notif-alert-item--due .alert-icon {
  color: #ef4444;
}
.notif-alert-item--update .alert-icon {
  color: #10b981;
}
.notif-alert-item--warning .alert-icon {
  color: #f59e0b;
}

.notif-alert-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-alert-title {
  font-size: 13px;
  font-weight: 600;
  color: #1b212b;
}

.notif-alert-desc {
  font-size: 12px;
  color: #5b6473;
}
.tasks-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tasks-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1b212b;
}

.tasks-header p {
  color: #5b6473;
}

.tasks-header__views {
  display: flex;
  gap: 8px;
}

.filters-bar {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
}

.filters-bar__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .filters-bar__grid {
    grid-template-columns: 1fr;
  }
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #8a93a3;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 1px solid #dee2e8;
  border-radius: 6px;
  background: #f8fafc;
  color: #1b212b;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: #3b82f6;
  background: #ffffff;
}

.select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.select-wrapper label {
  font-size: 11px;
  text-transform: uppercase;
  color: #8a93a3;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.select-wrapper select {
  padding: 10px 12px;
  border: 1px solid #dee2e8;
  border-radius: 6px;
  background: #f8fafc;
  color: #1b212b;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.select-wrapper select:focus {
  border-color: #3b82f6;
}

.tasks-loading,
.tasks-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 12px;
  color: #5b6473;
}

.tasks-empty {
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
}

.empty-icon {
  color: #a3aed0;
}

.tasks-empty h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1b212b;
}

.task-cell-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a3aed0;
  transition: color 0.15s;
}

.status-toggle-btn:hover {
  color: #3b82f6;
}

.completed-check {
  color: #10b981;
}

.line-through {
  text-decoration: line-through;
  color: #8a93a3;
}

.task-project-lbl {
  font-size: 13px;
  font-weight: 500;
  color: #3b82f6;
}

.font-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}

/* Grid layout */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.task-card {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-card__id {
  font-family: monospace;
  font-size: 11px;
  color: #8a93a3;
}

.task-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #1b212b;
}

.task-card__proj {
  font-size: 12px;
  color: #3b82f6;
  font-weight: 500;
  margin-top: -8px;
}

.task-card__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #5b6473;
  border-top: 1px solid #eef0f3;
  padding-top: 12px;
  margin-top: 8px;
}

.task-card__hours,
.task-card__due {
  display: flex;
  justify-content: space-between;
}

.task-card__action {
  margin-top: 8px;
}
.projects-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  color: #5b6473;
}

.projects-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
}

.projects-header {
  margin-bottom: 24px;
}

.projects-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1b212b;
}

.projects-header p {
  color: #5b6473;
}

.projects-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .projects-split {
    grid-template-columns: 1fr;
  }
}

.projects-list-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-list-card {
  position: relative;
  display: flex;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.project-list-card:hover {
  transform: translateY(-2px);
  border-color: #a3aed0;
}

.project-list-card--selected {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.project-list-card__color {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
}

.project-list-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 8px;
}

.project-list-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-list-card__number {
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
  color: #5b6473;
}

.project-list-card__client {
  font-size: 11px;
  color: #8a93a3;
}

.project-list-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #1b212b;
}

.project-list-card__progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #5b6473;
  margin-top: 4px;
}

.project-list-card__progress-bar {
  flex: 1;
  height: 4px;
  background: #eef0f3;
  border-radius: 2px;
  overflow: hidden;
}

.project-list-card__progress-fill {
  height: 100%;
  border-radius: 2px;
}

/* Workspace details area */
.project-workspace-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
}

.project-workspace__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #eef0f3;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.project-workspace__title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.workspace-client {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #8a93a3;
}

.project-workspace__title-group h2 {
  font-size: 22px;
  font-family: 'Space Grotesk', sans-serif;
  color: #1b212b;
  font-weight: 700;
}

.workspace-num {
  font-family: monospace;
  font-size: 12px;
  border: 1px solid;
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
}

/* Tabs */
.workspace-tabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #eef0f3;
  margin-bottom: 20px;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #5b6473;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #1b212b;
}

.tab-btn--active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  font-weight: 600;
}

/* Tab panels content */
.workspace-tab-content {
  min-height: 200px;
}

.overview-block h4 {
  font-size: 14px;
  font-weight: 600;
  color: #5b6473;
  margin-bottom: 8px;
}

.overview-block p {
  color: #1b212b;
  font-size: 14px;
  line-height: 1.6;
}

.overview-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.meta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #eef0f3;
}

.meta-icon {
  color: #3b82f6;
}

.meta-card div {
  display: flex;
  flex-direction: column;
}

.meta-card div span {
  font-size: 11px;
  color: #8a93a3;
  text-transform: uppercase;
}

.meta-card div strong {
  font-size: 14px;
  color: #1b212b;
}

/* Team panel */
.team-members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eef0f3;
  border-radius: 6px;
  background: #f8fafc;
}

.member-info h5 {
  font-size: 14px;
  color: #1b212b;
  font-weight: 600;
}

.member-info span {
  font-size: 12px;
  color: #5b6473;
}

/* Milestones panel */
.milestones-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.milestone-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #eef0f3;
  border-radius: 6px;
  background: #f8fafc;
}

.milestone-item__left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1b212b;
}

.milestone-date {
  font-size: 13px;
  color: #5b6473;
}

.completed-check {
  color: #10b981;
}

.incomplete-circle {
  color: #a3aed0;
}

/* Nested Tasks Panel */
.tasks-list-nested {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nested-task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #eef0f3;
  border-radius: 6px;
}

.nested-task-item h6 {
  font-size: 14px;
  font-weight: 500;
  color: #1b212b;
}

.nested-task-item__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.text-sm {
  font-size: 12px;
  color: #5b6473;
}

.no-tasks-text {
  color: #8a93a3;
  font-style: italic;
  text-align: center;
  padding: 24px;
}
.calendar-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  color: #5b6473;
}

.calendar-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.calendar-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1b212b;
}

.calendar-header p {
  color: #5b6473;
}

.calendar-header__actions {
  display: flex;
  gap: 8px;
}

.calendar-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
}

.calendar-card__title {
  margin-bottom: 20px;
  border-bottom: 1px solid #eef0f3;
  padding-bottom: 12px;
}

.calendar-card__title h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1b212b;
  font-family: 'Space Grotesk', sans-serif;
}

/* Grid layout for Month */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid #eef0f3;
  border-top: 1px solid #eef0f3;
}

.calendar-grid__day-hdr {
  text-align: center;
  padding: 10px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: #8a93a3;
  border-right: 1px solid #eef0f3;
  border-bottom: 1px solid #eef0f3;
  background: #f8fafc;
}

.calendar-grid__cell {
  min-height: 110px;
  padding: 8px;
  border-right: 1px solid #eef0f3;
  border-bottom: 1px solid #eef0f3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.15s;
}

.calendar-grid__cell:hover {
  background: #f8fafc;
}

.calendar-grid__cell--today {
  background: rgba(59, 130, 246, 0.03);
}

.calendar-grid__cell--today .cell-num {
  background: #3b82f6;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.calendar-grid__cell--muted {
  opacity: 0.4;
}

.cell-num {
  font-size: 12px;
  font-weight: 500;
  color: #5b6473;
}

.cell-events-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.cell-event-badge {
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 4px;
  border-left: 3px solid;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1b212b;
  font-weight: 500;
}

.evt-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Week View */
.calendar-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.calendar-week-col {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #eef0f3;
  min-height: 400px;
}

.week-col-hdr {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eef0f3;
  background: #ffffff;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.week-col-hdr span {
  font-size: 11px;
  text-transform: uppercase;
  color: #8a93a3;
  font-weight: 600;
}

.week-col-hdr strong {
  font-size: 18px;
  color: #1b212b;
  margin-top: 2px;
}

.week-col-events {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.no-events-col {
  color: #8a93a3;
  font-size: 11px;
  text-align: center;
  margin-top: 20px;
  font-style: italic;
}

.week-event-card {
  padding: 10px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.week-event-time {
  font-size: 10px;
  color: #5b6473;
}

.week-event-title {
  font-size: 12px;
  font-weight: 600;
  color: #1b212b;
}

.week-event-desc {
  font-size: 10px;
  color: #8a93a3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Day View Timeline */
.calendar-day-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item-event {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-left: 4px solid;
  border-radius: 6px;
  transition: transform 0.15s;
}

.timeline-item-event:hover {
  transform: translateX(4px);
}

.timeline-item-icon {
  flex-shrink: 0;
}

.timeline-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-time {
  font-size: 11px;
  color: #5b6473;
}

.timeline-item-details h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1b212b;
}

.timeline-item-details p {
  font-size: 13px;
  color: #8a93a3;
}
.capacity-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  color: #5b6473;
}

.capacity-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
}

.capacity-header {
  margin-bottom: 24px;
}

.capacity-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1b212b;
}

.capacity-header p {
  color: #5b6473;
}

/* Warnings and notices */
.warning-banner {
  padding: 16px;
  border-radius: 6px;
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  border-left: 4px solid;
}

.banner--error {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.banner--error p {
  color: #7f1d1d;
  font-size: 13px;
  margin-top: 2px;
}

.banner--warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.banner--warning p {
  color: #78350f;
  font-size: 13px;
  margin-top: 2px;
}

.warning-icon {
  flex-shrink: 0;
}

/* KPI stats grid */
.capacity-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.capacity-kpi-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
}

.capacity-kpi-card span {
  font-size: 12px;
  color: #8a93a3;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.capacity-kpi-card h3 {
  font-size: 32px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #1b212b;
  margin: 6px 0;
}

.capacity-kpi-card p {
  font-size: 12px;
  color: #5b6473;
}

.text-error {
  color: #c6431d;
}
.text-success {
  color: #24915f;
}

/* Charts area */
.capacity-charts-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .capacity-charts-section {
    grid-template-columns: 1fr;
  }
}

.capacity-chart-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.chart-header h4 {
  font-size: 16px;
  color: #1b212b;
  font-weight: 600;
}

.text-muted {
  color: #8a93a3;
}

/* Daily capacity bars */
.chart-bars-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 200px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef0f3;
}

.chart-bar-lane {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
}

.bar-val-lbl {
  font-size: 11px;
  color: #5b6473;
  margin-bottom: 6px;
}

.bar-track {
  width: 14px;
  height: 140px;
  background: #eef0f3;
  border-radius: 7px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  border-radius: 7px;
  transition: height 0.3s ease;
}

.bar-day-lbl {
  font-size: 12px;
  color: #8a93a3;
  margin-top: 8px;
  font-weight: 500;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 11px;
  color: #8a93a3;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bg-blue {
  background-color: #3b82f6;
}
.bg-green {
  background-color: #24915f;
}
.bg-red {
  background-color: #c6431d;
}

/* Radial rings progress gauge */
.ring-chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 200px;
}

@media (max-width: 480px) {
  .ring-chart-container {
    flex-direction: column;
    height: auto;
  }
}

.radial-progress-gauge {
  width: 120px;
  height: 120px;
}

.circular-chart {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.circle-bg {
  fill: none;
  stroke: #eef0f3;
  stroke-width: 2.8;
}

.circle {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
}

.percentage {
  fill: #1b212b;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 8px;
  font-weight: 700;
  text-anchor: middle;
}

.ring-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ring-details h5 {
  font-size: 14px;
  color: #1b212b;
  font-weight: 600;
}

.ring-details p {
  font-size: 12px;
  color: #5b6473;
  line-height: 1.5;
}
.timesheet-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  color: #5b6473;
}

.timesheet-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
}

.timesheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.timesheet-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1b212b;
}

.timesheet-header p {
  color: #5b6473;
}

/* KPI row */
.timesheet-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.timesheet-kpi-card {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
}

.timesheet-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8a93a3;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.timesheet-kpi-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1b212b;
  margin: 8px 0;
  font-family: 'Space Grotesk', sans-serif;
}

.timesheet-kpi-card p {
  font-size: 12px;
  color: #5b6473;
}

.text-blue {
  color: #3b82f6;
}
.text-green {
  color: #10b981;
}
.text-amber {
  color: #f59e0b;
}

.timesheet-table-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
}

.timesheet-table-title {
  margin-bottom: 18px;
}

.timesheet-table-title h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1b212b;
}

/* Form Styles for Dialog */
.timesheet-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 10px;
}

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

.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: #5b6473;
}

.form-field select,
.form-field input,
.form-field textarea {
  padding: 10px 12px;
  border: 1px solid #dee2e8;
  border-radius: 6px;
  font-size: 14px;
  background: #f8fafc;
  color: #1b212b;
  outline: none;
  font-family: inherit;
}

.form-field select:focus,
.form-field input:focus,
.form-field textarea:focus {
  border-color: #3b82f6;
  background: #ffffff;
}

.form-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.team-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  color: #5b6473;
}

.team-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
}

.team-header {
  margin-bottom: 24px;
}

.team-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1b212b;
}

.team-header p {
  color: #5b6473;
}

/* Grid Layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.team-member-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-member-card__top {
  display: flex;
  gap: 16px;
  align-items: center;
}

.team-member-card__identity {
  display: flex;
  flex-direction: column;
}

.team-member-card__identity h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1b212b;
}

.member-role {
  font-size: 13px;
  font-weight: 500;
  color: #3b82f6;
}

.member-dept {
  font-size: 11px;
  color: #8a93a3;
  text-transform: uppercase;
  font-weight: 600;
}

.team-member-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #eef0f3;
  padding-top: 12px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5b6473;
}

.text-muted {
  color: #8a93a3;
}

.text-link {
  color: inherit;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  color: #3b82f6;
}

.team-member-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: #eef0f3;
  color: #5b6473;
  border-radius: 4px;
}

/* Capacity bar */
.team-member-card__capacity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #eef0f3;
  padding-top: 12px;
  margin-top: auto;
}

.capacity-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #5b6473;
}

.font-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}

.text-red {
  color: #c6431d;
}

.capacity-bar {
  height: 6px;
  background: #eef0f3;
  border-radius: 3px;
  overflow: hidden;
}

.capacity-fill {
  height: 100%;
  border-radius: 3px;
}

.capacity-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #c6431d;
  font-weight: 500;
}

.warning-icon-red {
  color: #c6431d;
}
.notifications-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  color: #5b6473;
}

.notifications-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.notifications-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1b212b;
}

.notifications-header p {
  color: #5b6473;
}

.notifications-card {
  padding: 8px 0;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
}

.notifications-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  color: #5b6473;
  gap: 12px;
}

.empty-icon {
  color: #a3aed0;
}

.notifications-empty h3 {
  font-size: 18px;
  color: #1b212b;
  font-weight: 600;
}

/* List Items */
.notifications-list {
  display: flex;
  flex-direction: column;
}

.notif-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #eef0f3;
  transition: background 0.15s;
}

.notif-list-item:last-child {
  border-bottom: none;
}

.notif-list-item--unread {
  background: rgba(59, 130, 246, 0.02);
}

.notif-list-item--read {
  background: #ffffff;
  opacity: 0.8;
}

.notif-list-item__left {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.notif-icon-blue {
  color: #3b82f6;
}
.notif-icon-red {
  color: #ef4444;
}
.notif-icon-green {
  color: #10b981;
}
.notif-icon-amber {
  color: #f59e0b;
}
.notif-icon-muted {
  color: #8a93a3;
}

.notif-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-details h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1b212b;
}

.notif-details p {
  font-size: 13px;
  color: #5b6473;
}

.notif-time {
  font-size: 11px;
  color: #8a93a3;
  margin-top: 2px;
}

.read-btn {
  color: #a3aed0;
  border-radius: 50% !important;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.read-btn:hover {
  color: #10b981;
  background: rgba(16, 185, 129, 0.08) !important;
}
.profile-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  color: #5b6473;
}

.profile-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
}

.profile-header {
  margin-bottom: 24px;
}

.profile-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1b212b;
}

.profile-header p {
  color: #5b6473;
}

.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.profile-avatar-card {
  padding: 32px 24px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.profile-avatar-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1b212b;
  font-family: 'Space Grotesk', sans-serif;
}

.profile-role-badge {
  font-size: 13px;
  font-weight: 600;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  padding: 4px 12px;
  border-radius: 12px;
}

.profile-dept-lbl {
  font-size: 11px;
  color: #8a93a3;
  text-transform: uppercase;
  font-weight: 600;
}

/* Details Section */
.profile-details-card {
  padding: 32px;
  background: #ffffff;
  border: 1px solid #dee2e8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.details-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.details-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1b212b;
  border-bottom: 1px solid #eef0f3;
  padding-bottom: 8px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 480px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-icon {
  color: #3b82f6;
  flex-shrink: 0;
}

.detail-item div {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 11px;
  color: #8a93a3;
  text-transform: uppercase;
  font-weight: 600;
}

.detail-val {
  font-size: 14px;
  color: #1b212b;
  font-weight: 500;
}

.font-mono {
  font-family: 'IBM Plex Mono', monospace;
}

.text-link {
  color: inherit;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  color: #3b82f6;
}

/* Skills list */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-skill-tag {
  font-size: 12px;
  padding: 4px 12px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  border: 1px solid #dee2e8;
  font-weight: 500;
}
/* ============================================================
   WeekPicker Component Styles
   ============================================================ */

.co-week-picker {
  position: relative;
  display: inline-block;
}

.co-week-picker__trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--co-border-input, #e2e8f0);
  border-radius: 8px;
  height: 34px;
  padding: 0 12px;
  font-family: var(--co-font-sans, ui-sans-serif, sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--co-text-dark, #0f172a);
  transition: background 0.12s ease, border-color 0.12s ease;
}

.co-week-picker__trigger:hover {
  cursor: pointer;
  background: #f8fafc;
}

.co-week-picker__popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1000;
  width: 280px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--co-border-card, #e5e9f0);
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
}

.co-week-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.co-week-picker__month-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--co-text-dark, #0f172a);
}

.co-week-picker__nav-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--co-text-muted, #64748b);
  transition: background 0.12s ease;
}

.co-week-picker__nav-btn:hover {
  background: #f1f5f9;
  color: var(--co-text-dark, #0f172a);
}

.co-week-picker__day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 6px;
}

.co-week-picker__day-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--co-text-light, #94a3b8);
  text-transform: uppercase;
  padding: 4px 0;
}

.co-week-picker__weeks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.co-week-picker__week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-radius: 6px;
  transition: background 0.12s ease;
  cursor: pointer;
}

.co-week-picker__week-row--selected {
  background: var(--co-color-blue-light, #eef2ff);
}

.co-week-picker__week-row--hovered {
  background: #f1f5f9;
}

.co-week-picker__day {
  height: 32px;
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--co-font-sans, ui-sans-serif, sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: var(--co-text-dark, #0f172a);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.co-week-picker__day--other-month {
  color: var(--co-text-disabled, #b0bccd);
}

.co-week-picker__day--today {
  font-weight: 700;
  color: var(--co-color-blue, #2563eb);
}

.co-week-picker__day--selected {
  color: #1e40af;
  font-weight: 650;
}

.co-week-picker__day--first {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.co-week-picker__day--last {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.co-week-picker__footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--co-border-divider, #eef1f6);
  display: flex;
  justify-content: flex-end;
}

.co-week-picker__today-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--co-color-blue, #2563eb);
  cursor: pointer;
}

.co-week-picker__today-btn:hover {
  color: var(--co-color-blue-hover, #1d4ed8);
}
.co-breadcrumbs {
  padding: 12px 24px 14px;
}

.co-breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--co-font-sans, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 12.5px;
  line-height: 1;
}

.co-breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.co-breadcrumbs__link {
  color: var(--co-text-muted, #64748b);
  text-decoration: none;
  font-weight: 400;
  font-size: 12.5px;
  transition: color 0.15s ease;
}

.co-breadcrumbs__link:hover {
  color: var(--co-color-blue, #2563eb);
}

.co-breadcrumbs__separator {
  color: var(--co-text-light, #94a3b8);
  user-select: none;
  font-weight: 400;
}

.co-breadcrumbs__current {
  color: var(--co-text-body, #334155);
  font-weight: 600;
  font-size: 12.5px;
}
/* ============================================================
   Capacity Overview Page — CapacityOverviewPage.css
   Visual layout & styling matching Team_Capacity.html design
   ============================================================ */

:root {
  --co-font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Color Tokens */
  --co-bg-primary: #ffffff;
  --co-bg-subtle: #fafbfd;
  --co-bg-alt: #f8fafc;
  --co-bg-badge: #fafbfd;
  --co-bg-card: #ffffff;
  --co-border-card: #e5e9f0;
  --co-border-divider: #eef1f6;
  --co-border-row: #f4f6fa;
  --co-border-input: #e2e8f0;

  --co-text-dark: #0f172a;
  --co-text-heading: #1e293b;
  --co-text-body: #334155;
  --co-text-secondary: #475569;
  --co-text-muted: #64748b;
  --co-text-light: #94a3b8;
  --co-text-subtle: #8c9aad;
  --co-text-disabled: #b0bccd;

  /* Accent Colors */
  --co-color-blue: #2563eb;
  --co-color-blue-hover: #1d4ed8;
  --co-color-blue-light: #eef2ff;
  --co-color-blue-border: #e0e7ff;
  --co-color-blue-meeting: #93b4fc;

  --co-color-red: #e0574a;
  --co-color-red-dark: #b42318;
  --co-color-red-bg: #fef2f2;
  --co-color-red-border: #fecdca;

  --co-color-amber: #f59e0b;
  --co-color-amber-dark: #b45309;
  --co-color-amber-bg: #fffbeb;
  --co-color-amber-border: #fde9b4;

  --co-color-green: #10b981;
  --co-color-green-dark: #047857;
  --co-color-green-bg: #ecfdf5;
  --co-color-green-border: #c7ebd8;
}

/* Base Page Container */
.capacity-page {
  font-family: var(--co-font-sans);
  color: var(--co-text-dark);
  padding: 0 24px 32px;
  margin: 0;
  background-color: var(--co-bg-primary, #ffffff);
  min-height: 100%;
  width: 100%;
  flex: 1;
  box-sizing: border-box;
}

/* Loading State */
.co-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  color: var(--co-text-muted);
  font-family: var(--co-font-sans);
}

.co-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--co-color-blue);
  border-radius: 50%;
  animation: co-spin 0.6s linear infinite;
}

@keyframes co-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Page Header */
.co-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--co-border-card);
  margin-top: 0;
}

.co-page-header__left {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.co-page-header__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.co-page-header__title {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--co-text-dark);
}

.co-page-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid var(--co-border-input);
  font-size: 11px;
  font-weight: 600;
  color: var(--co-text-secondary);
}

.co-page-header__subtitle {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--co-text-muted);
}

.co-page-header__sync {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1;
  color: var(--co-text-light);
}

.co-page-header__sync-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--co-color-green);
}

.co-page-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.co-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.co-btn--outline {
  border: 1px solid var(--co-border-input);
  background: #ffffff;
  color: var(--co-text-secondary);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.co-btn--outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--co-text-dark);
}

.co-btn--primary {
  border: 1px solid var(--co-color-blue-hover);
  background: var(--co-color-blue);
  color: #ffffff;
  font-weight: 600;
  padding: 0 15px;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.35);
}

.co-btn--primary:hover {
  background: var(--co-color-blue-hover);
}

.co-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--co-border-input);
  border-radius: 8px;
  background: #ffffff;
  color: var(--co-text-muted);
  cursor: pointer;
  transition: all 0.12s ease;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.co-header-icon-btn:hover {
  background: #f8fafc;
  color: var(--co-text-dark);
}

/* Controls / Filter Bar */
.co-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 0 18px;
}

.co-week-stepper {
  display: flex;
  align-items: center;
  height: 34px;
  border: 1px solid var(--co-border-input);
  border-radius: 8px;
  background: #ffffff;
  position: relative;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.co-week-stepper__btn {
  width: 32px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--co-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, color 0.12s ease;
}

.co-week-stepper__btn--prev {
  border-right: 1px solid var(--co-border-divider);
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

.co-week-stepper__btn--next {
  border-left: 1px solid var(--co-border-divider);
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
}

.co-week-stepper__btn:hover {
  background: #f8fafc;
  color: var(--co-text-dark);
}

.co-week-picker-inline {
  width: auto;
}

.co-week-picker-inline .co-week-picker__trigger {
  border: 0;
  border-radius: 0;
  height: 34px;
  padding: 0 12px;
  box-shadow: none;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--co-text-heading);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.co-week-picker-inline .co-week-picker__trigger:hover {
  background: #f8fafc;
  color: var(--co-text-dark);
  cursor: pointer;
}

.co-dept-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  border: 1px solid var(--co-border-input);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.co-dept-select-wrapper:hover {
  border-color: #cbd5e1;
}

.co-dept-select-wrapper:focus-within {
  border-color: var(--co-color-blue, #2563eb);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.co-dept-select {
  height: 100%;
  padding: 0 32px 0 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--co-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--co-text-dark, #0f172a);
  cursor: pointer;
  outline: none;
  border-radius: 8px;
}

.co-dept-select option {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--co-text-dark, #0f172a);
  background-color: #ffffff;
  padding: 8px 12px;
}

.co-dept-select__icon {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: var(--co-text-muted, #64748b);
  transition: color 0.15s ease;
}

.co-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--co-border-input);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.co-search-box__icon {
  color: var(--co-text-light);
  flex-shrink: 0;
}

.co-search-box input {
  width: 190px;
  border: 0;
  outline: none;
  font-size: 12.5px;
  color: var(--co-text-dark);
  background: transparent;
}

.co-spacer {
  flex: 1;
}

.co-risk-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--co-border-input);
  border-radius: 8px;
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--co-text-muted);
  cursor: pointer;
  transition: all 0.12s ease;
}

.co-risk-btn--active {
  background: var(--co-color-red-bg);
  border-color: var(--co-color-red-border);
  color: var(--co-color-red-dark);
}

.co-density-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 3px;
  border: 1px solid var(--co-border-input);
  border-radius: 8px;
  background: #ffffff;
}

.co-density-btn {
  width: 28px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: var(--co-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.co-density-btn--active {
  background: var(--co-color-blue-light);
  color: #4338ca;
}

/* Two-column Layout Grid */
.co-grid-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.co-main-column {
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.co-sidebar-column {
  flex: 0 1 316px;
  min-width: 280px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.co-table-wrapper--refetching {
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* Common Card Container */
.co-card {
  background: #ffffff;
  border: 1px solid var(--co-border-card);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Summary Metrics Grid */
.co-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.co-metric-item {
  padding: 18px 20px;
  border-right: 1px solid var(--co-border-divider);
  border-bottom: 1px solid var(--co-border-divider);
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.co-metric-item:nth-child(4n),
.co-metric-item:last-child {
  border-right: none;
}

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

  .co-metric-item {
    border-right: 1px solid var(--co-border-divider);
  }

  .co-metric-item:nth-child(2n) {
    border-right: none;
  }
}

.co-metric-item__title {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.07em;
  color: var(--co-text-light);
  white-space: nowrap;
}

.co-metric-item__title--danger {
  color: var(--co-color-amber-dark);
}

.co-metric-item__value-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.co-metric-item__val {
  font-size: 26px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--co-text-dark);
  font-variant-numeric: tabular-nums;
}

.co-metric-item__val--danger {
  color: var(--co-color-red-dark);
}

.co-metric-item__unit {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--co-text-muted);
}

.co-metric-item__sub {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--co-text-light);
}

/* Utilization Progress Bar Section */
.co-util-section {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.co-util-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
}

.co-util-title-group {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.co-util-title {
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  color: var(--co-text-dark);
}

.co-util-target {
  font-size: 12px;
  color: var(--co-text-muted);
}

.co-util-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--co-text-muted);
}

.co-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.co-legend-chip {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.co-stacked-bar {
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 14px;
}

.co-stacked-bar__seg {
  height: 100%;
}

.co-util-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--co-text-disabled);
}

/* Department Section Card */
.co-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--co-border-divider);
}

.co-card-header__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.co-card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.2;
  color: var(--co-text-dark);
}

.co-card-subtitle {
  font-size: 11.5px;
  line-height: 1;
  color: var(--co-text-light);
}

.co-card-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--co-color-blue);
  text-decoration: none;
}

.co-card-link:hover {
  color: var(--co-color-blue-hover);
}

.co-dept-list {
  padding: 6px 20px 18px;
}

.co-dept-row {
  display: grid;
  grid-template-columns: minmax(110px, 172px) minmax(0, 1fr) 78px;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--co-border-row);
}

.co-dept-row:last-of-type {
  border-bottom: none;
}

.co-dept-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.co-dept-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--co-text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-dept-sub {
  font-size: 11px;
  line-height: 1;
  color: var(--co-text-light);
}

.co-dept-bar-track {
  position: relative;
  height: 22px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.co-dept-bar--work {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--co-color-blue);
}

.co-dept-bar--meet {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--co-color-blue-meeting);
}

.co-dept-bar--ceiling {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-left: 2px dashed #cbd5e1;
  margin-left: 95%;
}

.co-dept-bar--over {
  position: absolute;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(135deg, #e0574a 0 5px, #c9463a 5px 10px);
}

.co-dept-stat {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.co-dept-pct {
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.co-dept-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.co-dept-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  font-size: 11px;
  color: var(--co-text-light);
}

/* People Table Section */
.co-people-card {
  background: #ffffff;
  border: 1px solid var(--co-border-card);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.co-table-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.co-table-sort-label {
  font-size: 11.5px;
  color: var(--co-text-light);
}

.co-table-sort-select {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--co-border-input);
  border-radius: 7px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  color: var(--co-text-body);
  cursor: pointer;
}

.co-people-grid-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

.co-people-grid-inner {
  min-width: 816px;
}

.co-table-header-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) 112px minmax(120px, 1.2fr) 62px 56px 56px 108px 32px;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  background: var(--co-bg-subtle);
  border-bottom: 1px solid var(--co-border-divider);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--co-text-subtle);
}

.co-table-header-row div {
  white-space: nowrap;
}

.co-table-data-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) 112px minmax(120px, 1.2fr) 62px 56px 56px 108px 32px;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--co-border-row);
  transition: background 0.12s ease;
}

.co-table-data-row--dense {
  padding: 8px 20px;
}

.co-table-data-row:hover {
  background: #f8fafd;
}

.co-person-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.co-avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 600;
}

.co-person-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.co-person-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--co-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-person-role {
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--co-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-dept-cell {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--co-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-load-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.co-load-bar-track {
  position: relative;
  height: 8px;
  background: var(--co-border-divider);
  border-radius: 99px;
  overflow: hidden;
}

.co-load-bar--work {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px 0 0 99px;
}

.co-load-bar--meet {
  position: absolute;
  top: 0;
  bottom: 0;
}

.co-load-note {
  font-size: 11px;
  line-height: 1;
  color: var(--co-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-num-cell {
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.co-num-cell--planned {
  font-weight: 600;
  color: var(--co-text-heading);
}

.co-num-cell--open {
  font-weight: 500;
}

.co-num-cell--util {
  font-weight: 650;
}

.co-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.co-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.co-action-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--co-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.co-action-btn:hover {
  background: #eef2f7;
  color: var(--co-text-body);
}

.co-table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 20px;
  background: var(--co-bg-subtle);
  border-top: 1px solid var(--co-border-divider);
  font-size: 12px;
  color: var(--co-text-light);
}

/* Sidebar Panels */
.co-insight-badge-count {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--co-color-red-bg);
  border: 1px solid #fee2e2;
  font-size: 11px;
  font-weight: 600;
  color: var(--co-color-red-dark);
}

.co-insight-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--co-border-row);
  display: flex;
  gap: 11px;
  transition: background 0.12s ease;
}

.co-insight-item:hover {
  background: var(--co-bg-subtle);
}

.co-insight-item:last-child {
  border-bottom: none;
}

.co-insight-icon-box {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 650;
}

.co-insight-body-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.co-insight-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--co-text-dark);
}

.co-insight-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--co-text-muted);
}

.co-insight-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--co-color-blue);
  text-decoration: none;
}

.co-insight-action:hover {
  color: var(--co-color-blue-hover);
}

/* Band distribution */
.co-band-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-band-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 22px;
  gap: 10px;
  align-items: center;
}

.co-band-label {
  font-size: 11.5px;
  line-height: 1;
  color: var(--co-text-muted);
}

.co-band-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
}

.co-band-fill {
  height: 100%;
  border-radius: 99px;
}

.co-band-count {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--co-text-body);
  font-variant-numeric: tabular-nums;
}

.co-band-footer {
  padding-top: 11px;
  border-top: 1px solid #f1f5f9;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--co-text-light);
}

/* Multi-week horizon card */
.co-horizon-card {
  background: var(--co-bg-alt);
  border: 1px solid var(--co-border-card);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.co-horizon-title {
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.2;
  color: var(--co-text-dark);
}

.co-horizon-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--co-text-muted);
}

.co-horizon-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--co-color-amber-dark);
}

.co-horizon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--co-color-amber);
}

/* View Mode Toggle */
.co-view-toggle {
  display: inline-flex;
  align-items: center;
  height: 34px;
  border: 1px solid var(--co-border-input);
  border-radius: 8px;
  background: #ffffff;
  padding: 2px;
  gap: 2px;
}

.co-view-toggle__btn {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--co-text-muted);
  cursor: pointer;
  transition: all 0.12s ease;
}

.co-view-toggle__btn--active {
  background: var(--co-color-blue-light, #eef2ff);
  color: var(--co-color-blue, #2563eb);
  font-weight: 600;
}

/* Threshold Settings Controls */
.co-threshold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--co-border-input);
  border-radius: 8px;
  background: #ffffff;
  color: var(--co-text-muted);
  cursor: pointer;
  transition: all 0.12s ease;
}

.co-threshold-btn:hover {
  background: #f8fafc;
  color: var(--co-text-dark);
}

.co-threshold-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1000;
  width: 240px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--co-border-card);
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-threshold-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.co-threshold-title {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--co-text-dark);
}

.co-threshold-close-btn {
  border: 0;
  background: transparent;
  color: var(--co-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  transition: background 0.12s ease, color 0.12s ease;
}

.co-threshold-close-btn:hover {
  background: #f1f5f9;
  color: var(--co-text-dark);
}

.co-threshold-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.co-threshold-field label {
  font-size: 11px;
  font-weight: 500;
  color: var(--co-text-muted);
}

.co-threshold-field input {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--co-border-input);
  border-radius: 6px;
  font-size: 12px;
  color: var(--co-text-dark);
}

/* Responsive */
@media (max-width: 900px) {
  .co-sidebar-column {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* Status Pill Component Styles */
.co-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.co-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.co-status-pill--on-track {
  background: #ecfdf5;
  border: 1px solid #c7ebd8;
  color: #047857;
}

.co-status-dot--on-track {
  background: #10b981;
}

.co-status-pill--over-planned {
  background: #fef2f2;
  border: 1px solid #fecdca;
  color: #b42318;
}

.co-status-dot--over-planned {
  background: #e0574a;
}

.co-status-pill--under-planned {
  background: #fffbeb;
  border: 1px solid #fde9b4;
  color: #b45309;
}

.co-status-dot--under-planned {
  background: #f59e0b;
}