:root {
  --app-bg: #f4f7fb;
  --card-bg: rgba(255, 255, 255, 0.92);
  --ink: #1d2939;
  --muted: #667085;
  --line: #d0d5dd;
  --hero-start: #ffffff;
  --hero-end: #dcecff;
}

body {
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--app-bg) 100%);
  color: var(--ink);
  min-height: 100vh;
}

.auth-body {
  min-height: 100vh;
}

.auth-layout {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 0;
}

.auth-card {
  overflow: hidden;
  border: 1px solid rgba(208, 213, 221, 0.7);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
}

.auth-card-panel {
  height: 100%;
  padding: 2rem;
}

.auth-card-panel-brand {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #ffffff;
}

.auth-brand-text {
  color: rgba(255, 255, 255, 0.82);
  max-width: 28rem;
}

.auth-card-panel-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  display: none;
}

.app-main-shell {
  min-height: 100vh;
  width: 100%;
}

.app-shell-body {
  overflow-x: hidden;
}

.app-mobile-topbar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1rem 0;
}

.app-mobile-toggle {
  border: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96)),
    #111827;
  border-radius: 0.9rem;
  padding: 0.65rem 0.8rem;
}

.app-mobile-title {
  display: flex;
  flex-direction: column;
}

.app-mobile-title strong {
  color: var(--ink);
  line-height: 1.1;
}

.app-mobile-title small {
  color: var(--muted);
}

.app-mobile-drawer {
  padding: 0 1rem;
}

.app-mobile-drawer-inner {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96)),
    #111827;
  border-radius: 1.1rem;
  padding: 1rem;
  margin-top: 0.75rem;
}

.app-content {
  padding: 0.25rem 0 1.25rem;
}

.app-content-inner {
  padding: 0 1rem 1rem;
}

.app-sidebar-brand {
  margin-bottom: 1.1rem;
}

.app-brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #ffffff;
  text-decoration: none;
}

.app-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  font-weight: 700;
}

.app-brand-copy {
  display: flex;
  flex-direction: column;
}

.app-brand-copy small {
  color: rgba(255, 255, 255, 0.62);
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.app-sidebar-section-label {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.app-side-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 54px;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.app-side-link:hover,
.app-side-link:focus {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  color: #ffffff;
}

.app-side-link.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(96, 165, 250, 0.12));
  border-color: rgba(96, 165, 250, 0.45);
  color: #ffffff;
}

.app-side-title {
  font-weight: 600;
  line-height: 1.1;
  font-size: 0.95rem;
}

.app-side-link small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.68rem;
  line-height: 1.1;
}

.app-user-name {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
}

.app-user-role {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  text-transform: capitalize;
}

.app-logout-btn {
  min-width: 88px;
}

.app-sidebar-user {
  margin-top: auto;
  padding-top: 0.95rem;
}

.app-sidebar-user-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 0.85rem;
  margin-bottom: 0.65rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
}

.hero-card,
.stat-card,
.task-card {
  background: var(--card-bg);
  border: 1px solid rgba(208, 213, 221, 0.7);
  border-radius: 1.25rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.hero-card {
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
}

.stat-card {
  padding: 1.5rem;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 2rem;
  line-height: 1;
}

.task-card {
  padding: 1.25rem;
}

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

.task-summary-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 8.6rem;
  height: 100%;
  padding: 1.15rem;
  border: 1px solid rgba(208, 213, 221, 0.82);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.task-summary-card:hover,
.task-summary-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.11);
  color: inherit;
  transform: translateY(-2px);
}

.task-summary-card.is-active {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 18px 36px rgba(15, 23, 42, 0.09);
}

.task-summary-card__label,
.task-list-panel__eyebrow {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-summary-card__value {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.05;
  margin: 0.4rem 0;
}

.task-summary-card__hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.task-summary-card--total {
  border-top: 4px solid #2563eb;
}

.task-summary-card--open {
  border-top: 4px solid #7c3aed;
}

.task-summary-card--progress {
  border-top: 4px solid #d97706;
}

.task-summary-card--waiting {
  border-top: 4px solid #0f766e;
}

.task-summary-card--done {
  border-top: 4px solid #15803d;
}

.task-list-panel {
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(208, 213, 221, 0.82);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.task-list-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.task-list-count {
  flex-shrink: 0;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

.task-filter-panel {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(208, 213, 221, 0.78);
  border-radius: 1rem;
  background: #f8fafc;
}

.task-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.task-filter-toggle__icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  transform: rotate(180deg);
}

.task-filter-toggle.collapsed .task-filter-toggle__icon {
  transform: rotate(0deg);
}

.task-filter-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1em 0.45em;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
  margin-left: 0.3rem;
}

/* ── Relatório ── */

.report-status-check {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
}

.report-status-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.report-status-check input[type="checkbox"]:not(:checked) + .task-status-pill {
  opacity: 0.38;
}

.report-status-check:hover input[type="checkbox"]:not(:checked) + .task-status-pill {
  opacity: 0.65;
}

.report-stat-card {
  padding: 1.1rem 1.25rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(208, 213, 221, 0.82);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-top: 4px solid #cbd5e1;
}

.report-stat-card--done   { border-top-color: #16a34a; }
.report-stat-card--progress { border-top-color: #2563eb; }
.report-stat-card--cancelled { border-top-color: #dc2626; }

.report-stat-card__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.report-stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.report-stat-card__hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.report-chart-wrap {
  position: relative;
  max-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-chart-wrap canvas {
  max-height: 280px;
}

.report-table thead th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-task-link {
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.report-task-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.report-action-taken {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
}

.report-priority-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2em 0.55em;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.report-priority-badge--baixa  { background: #f0fdf4; color: #15803d; }
.report-priority-badge--media  { background: #fffbeb; color: #b45309; }
.report-priority-badge--alta   { background: #fef2f2; color: #b91c1c; }

/* ── Report task cards ── */

.report-task-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.report-task-card {
  border: 1px solid rgba(208, 213, 221, 0.82);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
}

.report-task-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(208, 213, 221, 0.6);
  flex-wrap: wrap;
}

.report-task-card__title-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.report-task-card__num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.report-task-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
}

.report-task-card__badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.report-task-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0.55rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(208, 213, 221, 0.5);
  font-size: 0.8rem;
  color: #475569;
}

.report-task-card__body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-task-section {
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
}

.report-task-section--done     { background: #f0fdf4; border-left-color: #16a34a; }
.report-task-section--waiting  { background: #fffbeb; border-left-color: #d97706; }
.report-task-section--cancelled{ background: #fef2f2; border-left-color: #dc2626; }

.report-task-section__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.report-task-section__text {
  font-size: 0.9rem;
  color: #1e293b;
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
}

.report-task-card__photos {
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid rgba(208, 213, 221, 0.5);
}

.report-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.report-photo-thumb {
  position: relative;
  border: none;
  padding: 0;
  background: none;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  width: 330px;
  height: 270px;
  flex-shrink: 0;
}

.report-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s ease;
}

.report-photo-thumb:hover img {
  opacity: 0.85;
}

.report-photo-thumb__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.2rem 0.35rem;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 0.65rem;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ── Filtros aplicados no relatório ── */

.report-applied-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.1rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.report-applied-filters__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #475569;
}

.report-applied-filters__item svg {
  flex-shrink: 0;
  color: #94a3b8;
}

.report-applied-filters__label {
  color: #94a3b8;
}

.report-applied-filters__value {
  color: #0f172a;
}

.report-applied-filters__item--total {
  margin-left: auto;
  font-size: 0.875rem;
  color: #475569;
  gap: 0.3rem;
}

.report-applied-filters__item--total strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

/* ── Print / PDF ── */

.report-print-header {
  display: none;
}

@media print {
  .report-no-print,
  .report-no-print-border { display: none !important; }

  .report-print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #0f172a;
    font-size: 0.85rem;
    color: #0f172a;
  }

  .app-shell,
  .app-sidebar,
  .app-mobile-topbar,
  .app-main-shell > *:not(.app-content) {
    display: none !important;
  }

  .app-content {
    padding: 0 !important;
  }

  .app-content-inner {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .report-task-list {
    gap: 1rem;
  }

  .report-task-card {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #cbd5e1;
    box-shadow: none;
  }

  .report-photo-thumb {
    width: 270px;
    height: 222px;
  }

  .report-task-section__text {
    font-size: 0.82rem;
  }

  .task-list-panel {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

.task-simple-list {
  border: 1px solid rgba(208, 213, 221, 0.72);
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
}

.task-simple-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.task-simple-row + .task-simple-row {
  border-top: 1px solid rgba(208, 213, 221, 0.68);
}

.task-simple-row__main {
  min-width: 0;
}

.task-simple-row__title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.task-simple-row__title {
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.task-simple-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.task-simple-row__meta strong {
  color: #344054;
  font-weight: 600;
}

.task-simple-row__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-simple-row__actions form {
  margin: 0;
}

.task-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.task-status-pill--neutral {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.task-status-pill--analysis {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #6d28d9;
}

.task-status-pill--progress {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
}

.task-status-pill--waiting {
  background: #ecfeff;
  border-color: #67e8f9;
  color: #0f766e;
}

.task-status-pill--success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.task-status-pill--cancelled {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.task-photo-preview-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.task-photo-preview-button img {
  display: block;
  width: 100%;
}

.task-photo-modal-image {
  display: block;
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 0.5rem;
  background: #111827;
}

.task-photo-modal-description {
  color: rgba(255, 255, 255, 0.82);
}

.page-header {
  padding: 0.2rem 0 0.35rem;
  border-bottom: 1px solid rgba(208, 213, 221, 0.8);
}

.page-header__eyebrow {
  color: #0d6efd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-header__title {
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink);
}

.page-header__subtitle {
  color: var(--muted);
  max-width: 42rem;
}

.task-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.task-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  line-height: 1;
}

.task-tag__label {
  font-weight: 700;
  opacity: 0.72;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.task-tag__value {
  font-weight: 700;
}

.task-tag--priority {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.task-tag--neutral {
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  border-color: #d1d5db;
  color: #374151;
}

.task-tag--warning {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border-color: #fcd34d;
  color: #b45309;
}

.task-tag--success {
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  border-color: #86efac;
  color: #15803d;
}

.task-tag--analysis {
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
  border-color: #c4b5fd;
  color: #6d28d9;
}

.task-tag--info {
  background: linear-gradient(135deg, #cffafe, #ecfeff);
  border-color: #67e8f9;
  color: #0f766e;
}

.task-tag--light {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-color: #e2e8f0;
  color: #475569;
}

.task-tag--dark {
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  border-color: #cbd5e1;
  color: #0f172a;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 1rem;
  background: #fbfcfe;
}

.executor-selector {
  padding: 1rem;
  border: 1px solid rgba(208, 213, 221, 0.85);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
}

.executor-selector__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-height: 2.5rem;
}

.executor-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.18);
  color: #0b5394;
  font-size: 0.92rem;
  font-weight: 600;
}

.executor-chip__remove {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.executor-table {
  border: 1px solid rgba(208, 213, 221, 0.7);
  border-radius: 0.9rem;
  overflow: hidden;
}

.executor-table thead th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.executor-table tbody tr {
  transition: background-color 0.2s ease;
}

.executor-table tbody tr.is-selected {
  background: rgba(13, 110, 253, 0.08);
}

.executor-table__toggle-col {
  width: 2.75rem;
}

.executor-toggle-icon {
  background: none;
  border: none;
  padding: 0.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: opacity 0.15s ease;
}

.executor-toggle-icon:hover {
  opacity: 0.7;
}

.executor-toggle-icon__svg {
  color: #94a3b8;
}

.executor-toggle-icon__svg--selected {
  color: #0d6efd;
}

.kanban-board {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.kanban-column {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border: 1px solid rgba(208, 213, 221, 0.8);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.kanban-column.is-over {
  border-color: rgba(13, 110, 253, 0.48);
  box-shadow: 0 24px 50px rgba(13, 110, 253, 0.12);
  transform: translateY(-2px);
}

.kanban-column__header {
  padding: 1.2rem 1.2rem 0.9rem;
  border-bottom: 1px solid rgba(208, 213, 221, 0.7);
}

.kanban-column__eyebrow {
  color: #0d6efd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.kanban-column__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
}

.kanban-card {
  border: 1px solid rgba(208, 213, 221, 0.82);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  padding: 1rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: grab;
}

.kanban-card--compact {
  padding: 0.85rem;
}

.kanban-card__title {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
}

.kanban-card__text {
  font-size: 0.9rem;
  line-height: 1.4;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.09);
}

.kanban-card.is-dragging {
  opacity: 0.55;
  transform: rotate(1deg);
}

.kanban-card.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.kanban-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kanban-executors {
  padding-top: 0.2rem;
}

.kanban-executor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.kanban-executor-list--simple {
  gap: 0.35rem;
}

.kanban-executor-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(208, 213, 221, 0.7);
  border-radius: 0.9rem;
  background: rgba(248, 250, 252, 0.88);
}

.kanban-executor-item--simple {
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-size: 0.9rem;
  color: #334155;
}

.kanban-executor-bullet {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #3b82f6;
  flex-shrink: 0;
}

.kanban-executor-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.kanban-executor-empty {
  padding: 0.45rem 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
}

.kanban-empty {
  border: 1px dashed rgba(148, 163, 184, 0.8);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.9);
  color: var(--muted);
  text-align: center;
  padding: 1.25rem 1rem;
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.9rem;
}

.history-item__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #0d6efd;
  margin-top: 0.4rem;
  box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.12);
}

.history-item__content {
  padding: 1rem;
  border: 1px solid rgba(208, 213, 221, 0.8);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

@media (min-width: 992px) {
  .app-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .app-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 1rem;
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.99), rgba(30, 41, 59, 0.98)),
      #111827;
  }

  .app-mobile-topbar,
  .app-mobile-drawer {
    display: none;
  }

  .app-content {
    padding: 1.4rem;
  }

  .app-content-inner {
    padding: 0;
    max-width: 1400px;
  }

  .kanban-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 991.98px) {
  .app-sidebar {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .task-filter-panel .collapse.show,
  .task-filter-panel .collapsing {
    margin-top: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .auth-layout {
    padding: 1rem 0;
  }

  .auth-card-panel {
    padding: 1.25rem;
  }

  .app-side-link {
    min-height: 58px;
    padding: 0.75rem 0.85rem;
  }

  .executor-selector {
    padding: 0.85rem;
  }


  .kanban-column {
    min-height: auto;
  }

  .task-list-panel__header {
    flex-direction: column;
  }

  .task-simple-row {
    grid-template-columns: 1fr;
  }

  .task-simple-row__actions {
    width: 100%;
  }

  .task-simple-row__actions .btn,
  .task-simple-row__actions form {
    flex: 1;
  }

  .task-simple-row__actions form .btn {
    width: 100%;
  }
}
