
/* --------------------------------------------------------------------------
   Globalne uproszczenia interfejsu
   -------------------------------------------------------------------------- */

#view-time > .section:first-child {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#view-time > .section:first-child .metrics {
  gap: clamp(22px, 3vw, 44px);
}

#view-time > .section:first-child .stat {
  padding: 0 !important;
  border: 0 !important;
}

#view-clients > .clients-insights-intro {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.modal-close-btn,
.icon-action-btn,
.action-menu-btn,
[data-dismiss-analysis-alert] {
  border: 0 !important;
  box-shadow: none !important;
}

.badge {
  background: var(--chip-neutral-bg) !important;
  color: var(--text-soft) !important;
}

.task-pill,
.badge,
.nav-count,
.info-settings-pill,
.task-count-pill,
.inline-filter-toggle {
  border: 0 !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Wspólny wygląd list: wpisy czasu, klienci i klienci w analizie
   -------------------------------------------------------------------------- */

#entriesList,
.time-entries-section,
.clients-list-section {
  /* Respect the semantic section surface. In administrator light mode this
     inherits transparent from the list-shell contract instead of forcing the
     legacy gray list-section background. */
  background: var(--section-surface, var(--list-section-surface)) !important;
  border: 0 !important;
  box-shadow: none !important;
}


#view-clients.active {
  display: flex !important;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden !important;
}

#view-clients .clients-list-section {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

#view-clients .clients-list-section > .tt-scroll-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

#clientsList {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto;
  padding: 0 4px 24px 0;
}

.app-list-row {
  position: relative;
  min-height: 0;
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 12px;
  padding: 11px 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--row-surface) !important;
  box-shadow: 0 4px 16px rgba(32, 42, 63, .065) !important;
  transition: background .15s ease, box-shadow .15s ease;
}

.app-list-row--entry {
  min-height: 84px;
}

.app-list-row--analysis {
  min-height: 60px;
}

/* Klienci korzystają z tej samej zwartej wysokości co taski. */
#clientsList .app-list-row--client {
  min-height: 0;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 10px !important;
}

#clientsList .app-list-row--client .row-main {
  align-self: center;
}

#clientsList .app-list-row--client .row-meta {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.app-list-row:hover {
  background: var(--row-surface) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.app-list-row.selected {
  background: rgba(57, 104, 246, 0.15) !important;
  border: 0 !important;
  box-shadow: 0 5px 16px rgba(32, 42, 63, .055) !important;
}

.list-select-control,
.task-select-control {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--control-check-bg);
  color: transparent;
  cursor: pointer;
  transition: none;
}

.list-select-control svg,
.task-select-control svg {
  width: 10px;
  height: 10px;
  opacity: 0;
  transition: opacity .15s ease;
}

.list-select-control[aria-pressed="true"] svg,
.task-card--selected .task-select-control svg,
.task-select-control[aria-pressed="true"] svg {
  opacity: 1;
}

.list-select-control[aria-pressed="true"],
.list-select-control[aria-pressed="true"]:hover,
.list-select-control[aria-pressed="true"]:focus-visible,
.list-select-control[aria-pressed="true"]:active,
.task-card--selected .task-select-control,
.task-card--selected .task-select-control:hover,
.task-card--selected .task-select-control:focus-visible,
.task-card--selected .task-select-control:active,
.task-select-control[aria-pressed="true"],
.task-select-control[aria-pressed="true"]:hover,
.task-select-control[aria-pressed="true"]:focus-visible,
.task-select-control[aria-pressed="true"]:active {
  background: var(--accent) !important;
  color: #ffffff !important;
}

