:root {
  --primary-dark: #1a365d;
    --primary-medium: #2d3748;
    --primary-light: #4a5568;
    --accent-blue: #3182ce;
    --accent-light: #63b3ed;
    --text-light: #e2e8f0;
    --text-lighter: #f7fafc;
    --bg-dark: #0f1419;
    --bg-card: #1e293b;
    --border-color: #334155;
    --success: #48bb78;
    --warning: #ed8936;
    --error: #f56565;
    --paused: #9f7aea;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] {
    --primary-dark: #f8fafc;
    --primary-medium: #e2e8f0;
    --primary-light: #cbd5e1;
    --accent-blue: #2c5aa0;
    --accent-light: #63b3ed;
    --text-light: #2d3748;
    --text-lighter: #1a202c;
    --bg-dark: #f1f5f9;
    --bg-card: #ffffff;
    --border-color: #d1d5db;
    --success: #2f855a;
    --warning: #c05621;
    --error: #c53030;
    --paused: #6b46c1;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

.theme-selector {
    background: var(--bg-card);
    color: var(--text-light);
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.theme-selector-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.theme-logo { font-weight: 600; color: var(--text-lighter); font-size: 16px; }
.theme-switch { position: relative; display: inline-block; width: 60px; height: 30px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.theme-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: linear-gradient(145deg, #667eea, #764ba2);
    transition: all 0.4s ease;
    border-radius: 34px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.theme-slider:before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: all 0.4s ease;
    border-radius: 50%;
    z-index: 2;
}
.theme-switch input:checked + .theme-slider { background: linear-gradient(145deg, #ff9a9e, #fad0c4); }
.theme-switch input:checked + .theme-slider:before { transform: translateX(30px); background: #f8f9fa; }
.theme-icon { position: absolute; top: 50%; transform: translateY(-50%); font-size: 12px; z-index: 1; }
.theme-icon.sun { left: 8px; opacity: 0; }
.theme-icon.moon { right: 8px; opacity: 1; }
.theme-switch input:checked + .theme-slider .theme-icon.sun { opacity: 1; }
.theme-switch input:checked + .theme-slider .theme-icon.moon { opacity: 0; }

.container { max-width: 1600px; margin: 0 auto; padding: 20px; }

.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-blue) 100%);
    color: var(--text-lighter);
    margin-bottom: 30px;
    padding: 25px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.logo { display: flex; align-items: center; gap: 20px; }
.logo i {
    font-size: 3rem;
    background: var(--text-lighter);
    color: var(--primary-dark);
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}
.logo h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 5px; }
.subtitle { font-size: 1.05rem; opacity: 0.9; font-weight: 300; }

.dashboard { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 18px; margin-bottom: 24px; }
.card, .panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.card { padding: 22px; border-left: 4px solid var(--accent-blue); }
.card span { display: block; color: var(--accent-light); font-size: 0.9rem; margin-bottom: 8px; font-weight: 600; }
.card strong { color: var(--text-lighter); font-size: 2rem; }
.panel { padding: 25px; margin-bottom: 28px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-header h2 { color: var(--text-lighter); font-size: 1.45rem; }
.panel-header p { margin-top: 6px; opacity: 0.85; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 18px; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--text-lighter); font-size: 0.92rem; font-weight: 600; }
input, select, textarea {
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text-light);
    background: var(--primary-medium);
    outline: none;
    transition: all 0.3s ease;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}
.span-2 { grid-column: span 2; }

.form-actions, .filters { display: flex; gap: 12px; flex-wrap: wrap; }
button {
  border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25); }
.primary { color: #fff; background: linear-gradient(135deg, var(--accent-blue), var(--accent-light)); }
.secondary { color: #fff; background: linear-gradient(135deg, #4a5568, #718096); }
.ghost { color: #fff; background: linear-gradient(135deg, var(--error), #fc8181); }
#btnCancelarEdicao { display: none; }
.filters { margin-bottom: 16px; }
.filter-field { flex: 1; min-width: 210px; gap: 6px; font-size: 0.78rem; font-weight: 600; }
.filter-field span { color: rgba(226, 232, 240, 0.78); }
.table-wrapper { overflow: auto; border: 1px solid var(--border-color); border-radius: 12px; }
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.18);
}
.table-limit-info { color: var(--accent-light); font-size: 0.86rem; font-weight: 600; }
.table-limit-info:empty { display: none; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pagination:empty { display: none; }
.pagination-button {
  padding: 7px 11px;
  border: 1px solid var(--border-color);
  color: var(--text-lighter);
  background: var(--primary-medium);
  font-size: 0.8rem;
}
.pagination-button.active {
  color: #fff;
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
}
.pagination-button:disabled { cursor: not-allowed; opacity: 0.62; transform: none; box-shadow: none; }
table { width: 100%; min-width: 1300px; border-collapse: collapse; background: var(--bg-card); }
th, td { padding: 13px; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; font-size: 0.88rem; }
th { position: sticky; top: 0; z-index: 1; color: #fff; background: var(--primary-medium); }
tr:hover td { background: rgba(99, 179, 237, 0.08); }
.badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 5px 10px; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.badge.p0 { background: #c6f6d5; color: #22543d; }
.badge.p1 { background: #fefcbf; color: #975a16; }
.badge.p2 { background: #feebc8; color: #9c4221; }
.badge.p3 { background: #fed7d7; color: #9b2c2c; }
.badge.atrasado { background: #fed7d7; color: #9b2c2c; }
.badge.em-progresso { background: #bee3f8; color: #2c5282; }
.badge.pausado { background: #e9d8fd; color: #553c9a; }
.badge.finalizado { background: #c6f6d5; color: #22543d; }
.actions { display: flex; gap: 8px; }
.actions button { padding: 8px 10px; font-size: 0.8rem; }
.empty { text-align: center; opacity: 0.85; padding: 28px; }

@media (max-width: 900px) {
  .dashboard, .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .panel-header, .logo, .table-footer { align-items: flex-start; flex-direction: column; }
    .pagination { justify-content: flex-start; }
}

.auth-panel {
  max-width: 980px;
  margin: 34px auto 28px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.auth-card {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 44px 30px 38px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.auth-copy { text-align: center; margin-bottom: 8px; }
.auth-copy h2 {
  color: var(--text-lighter);
  font-size: clamp(2rem, 8vw, 2.7rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 8px;
}
.auth-copy p {
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.88rem;
  line-height: 1.45;
}
.auth-form { display: grid; gap: 22px; }
.auth-form label {
  gap: 6px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.9rem;
  font-weight: 500;
}
.auth-form input {
  min-height: 34px;
  border: 1px solid rgba(226, 232, 240, 0.65);
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
  color: #172033;
  background: rgba(226, 232, 240, 0.96);
}
.auth-form input:focus {
  border-color: var(--text-lighter);
  box-shadow: 0 0 0 4px rgba(99, 179, 237, 0.22);
}
.auth-form .primary {
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  font-size: 1.25rem;
  color: var(--text-lighter);
  background: linear-gradient(135deg, #4a5568, #718096);
}
.password-field { position: relative; display: block; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--primary-dark);
  background: transparent;
  transform: translateY(-50%);
  box-shadow: none;
}
.password-toggle:hover {
  color: var(--accent-blue);
  transform: translateY(-50%);
  box-shadow: none;
}
.help-text { font-size: 0.85rem; opacity: 0.8; }
.logged-user { margin-right: 10px; color: var(--text-lighter); font-weight: 600; }
.logout-button { padding: 8px 12px; }
.users-list { display: flex; flex-wrap: wrap; gap: 10px; }
.user-pill { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: var(--primary-medium); color: var(--text-lighter); border: 1px solid var(--border-color); font-weight: 600; }

@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; }
  .theme-controls { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 480px) {
  .auth-card { border-radius: 30px; padding: 34px 22px 30px; }
  .auth-copy p { text-align: left; }
}

.theme-controls { display: flex; align-items: center; gap: 10px; }
.theme-logo-link { text-decoration: none; }
.nav-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.admin-container { max-width: 1100px; }
.admin-user-form { margin-bottom: 22px; }
.users-list-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.user-card { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--primary-medium); color: var(--text-light); }
.user-card strong { color: var(--text-lighter); }

.user-card span { font-size: 0.9rem; opacity: 0.9; }
.user-password-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  color: var(--text-lighter);
  background: var(--primary-light);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.user-password-button:hover { filter: brightness(1.12); }
.dashboard-panel { overflow: hidden; }
.dashboard-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.dashboard { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.card:nth-child(3) { border-left-color: var(--success); }
.card:nth-child(4) { border-left-color: var(--error); }
.card:nth-child(5) { border-left-color: var(--paused); }
.card:nth-child(6) { border-left-color: var(--warning); }
.collaborator-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 8px 0 24px;
}
.collaborator-card, .chart-card {
  background: rgba(99, 179, 237, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.collaborator-card { display: grid; gap: 6px; padding: 14px; }
.collaborator-card strong, .chart-card h3 { color: var(--text-lighter); }
.collaborator-card span, .collaborator-card small { opacity: 0.88; }
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}
.chart-card { min-height: 330px; padding: 18px; }
.chart-card h3 { margin-bottom: 14px; font-size: 1rem; }
.chart-card canvas { width: 100% !important; height: 260px !important; }
.completed-activities-card { display: flex; flex-direction: column; }
.completed-activities-list { flex: 1; min-height: 260px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.completed-activities-list ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.completed-activities-list li { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid rgba(99, 179, 237, 0.22); border-radius: 10px; background: rgba(99, 179, 237, 0.08); }
.completed-activities-list strong { color: var(--text-lighter); line-height: 1.3; }
.completed-activities-list small { color: var(--text-secondary); line-height: 1.35; }
.completed-activities-empty { margin: 0; padding: 16px; }
.dashboard-empty { grid-column: 1 / -1; border: 1px dashed var(--border-color); border-radius: 12px; }

@media (max-width: 900px) {
  .dashboard, .form-grid, .charts-grid { grid-template-columns: 1fr; }
  .delivery-date-field { width: 100%; }
  .chart-card { min-height: 300px; }
}

.section-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-lighter);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  padding: 13px 18px;
  box-shadow: none;
}

.tab-button:hover {
  background: rgba(99, 179, 237, 0.12);
  box-shadow: none;
}

.tab-button.active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 18px rgba(49, 130, 206, 0.18);
}

.records-area {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.records-header { margin-top: 0; }

@media (max-width: 640px) {
  .section-tabs { flex-direction: column; align-items: stretch; gap: 8px; }
  .tab-button { justify-content: center; border-radius: 8px; }
}

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.16);
  box-shadow: none;
}

.user-menu-trigger:hover,
.user-menu-trigger[aria-expanded="true"] {
  transform: none;
  box-shadow: none;
  background: rgba(148, 163, 184, 0.28);
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #f8fafc;
  background: #75838a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.user-avatar-large {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1100;
  width: min(310px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 20px;
  background: #353535;
  color: #f8fafc;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.user-menu-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 14px;
}

.logged-user {
  display: block;
  margin: 0;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.2;
}

.user-menu-profile small {
  display: block;
  margin-top: 2px;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.8rem;
  text-transform: capitalize;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 4px;
  border: 0;
  border-top: 1px solid rgba(248, 250, 252, 0.14);
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.user-menu-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transform: none;
  box-shadow: none;
}

.user-menu-item i {
  width: 20px;
  font-size: 1rem;
  text-align: center;
}

.user-menu[hidden],
.user-menu-panel[hidden],
.user-menu-item[hidden] {
  display: none;
}

#btnCancelarEdicaoSemanal { display: none; }
.weekly-activities-section {
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}
.weekly-panel .records-area { margin-top: 28px; }
.weekly-table { min-width: 900px; }
.weekly-table th:nth-child(3),
.weekly-table td:nth-child(3) { min-width: 320px; }

.weekly-dashboard {
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid rgba(99, 179, 237, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(49, 130, 206, 0.16), rgba(99, 179, 237, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.weekly-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.weekly-dashboard-kicker {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weekly-dashboard-header h3 {
  color: var(--text-lighter);
  font-size: 1.25rem;
}

.weekly-dashboard-header i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  color: var(--text-lighter);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
  box-shadow: 0 10px 22px rgba(49, 130, 206, 0.22);
}

.weekly-dashboard-list {
  display: grid;
  gap: 16px;
}

.weekly-summary-card {
  padding: 18px;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-light);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.24);
}

.weekly-summary-card h4 {
  margin-bottom: 14px;
  color: var(--text-lighter);
  font-size: 1.1rem;
}

.weekly-summary-items {
  display: grid;
  gap: 12px;
}

.weekly-summary-item {
  padding-left: 14px;
  border-left: 2px solid rgba(99, 179, 237, 0.42);
}

.weekly-summary-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text-lighter);
  font-size: 0.98rem;
}

.weekly-summary-item p {
  color: var(--text-light);
  opacity: 0.9;
}

.weekly-dashboard-empty {
  border: 1px dashed rgba(99, 179, 237, 0.35);
  border-radius: 12px;
}

[data-theme="light"] .weekly-summary-card {
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 640px) {
  .weekly-dashboard { padding: 18px; }
  .weekly-activities-section { padding-top: 22px; }
  .weekly-dashboard-header { align-items: flex-start; }
  .weekly-dashboard-header i { width: 42px; height: 42px; flex-basis: 42px; }
}

.weekly-panel {
  display: grid;
  gap: 22px;
  background: linear-gradient(180deg, rgba(99, 179, 237, 0.06), transparent 280px), var(--bg-card);
}

.weekly-hero,
.weekly-controls,
.weekly-list-section {
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.14);
}

.weekly-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.weekly-hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 179, 237, 0.24), transparent 68%);
  pointer-events: none;
}

.weekly-hero h2 {
  color: var(--text-lighter);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.weekly-hero p,
.weekly-controls-header p,
.weekly-list-section .panel-header p {
  margin-top: 6px;
  opacity: 0.82;
}

.weekly-hero > i {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
  box-shadow: 0 18px 35px rgba(49, 130, 206, 0.28);
  font-size: 1.55rem;
}

.weekly-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 14px;
}

.weekly-metric-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-blue);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.weekly-metric-card span,
.weekly-metric-card small {
  display: block;
  color: var(--text-light);
  opacity: 0.78;
}

.weekly-metric-card span {
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.weekly-metric-card strong {
  display: block;
  margin: 4px 0;
  color: var(--text-lighter);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.15;
}

.weekly-metric-card i {
  color: var(--accent-light);
  font-size: 1.25rem;
  opacity: 0.9;
}

.weekly-controls,
.weekly-list-section {
  padding: 20px;
}

.weekly-controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.weekly-controls-header h3,
.weekly-list-section h2 {
  color: var(--text-lighter);
}

.weekly-filters {
  margin-bottom: 18px;
}

.weekly-form {
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}
.weekly-carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid rgba(99, 179, 237, 0.18);
  border-radius: 14px;
  background: rgba(99, 179, 237, 0.06);
}

.weekly-carousel-controls button {
  min-width: 160px;
}

.weekly-carousel-indicator {
  color: var(--text-lighter);
  font-weight: 800;
  text-align: center;
}
.weekly-weeks-list {
  display: grid;
  gap: 16px;
}

.weekly-week-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.weekly-week-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}

.weekly-week-label {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.weekly-week-header h3 {
  color: var(--text-lighter);
  font-size: 1.18rem;
  font-weight: 600;
}

.weekly-week-count {
  min-width: 98px;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: center;
  color: var(--text-lighter);
  background: rgba(99, 179, 237, 0.12);
}

.weekly-week-count strong,
.weekly-week-count span {
  display: block;
}

.weekly-week-count strong { font-size: 1.45rem; line-height: 1; }
.weekly-week-count span { color: var(--accent-light); font-size: 0.76rem; font-weight: 700; }

.weekly-week-meta {
  padding: 12px 20px 0;
  color: var(--text-light);
  font-size: 0.82rem;
  opacity: 0.78;
}

.weekly-activity-list {
  display: grid;
  gap: 10px;
  padding: 14px 20px 20px;
}

.weekly-activity-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(99, 179, 237, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.weekly-activity-item strong {
  display: block;
  color: var(--text-lighter);
  margin-bottom: 4px;
}
.weekly-activity-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.weekly-activity-title-row strong { margin-bottom: 0; }

.weekly-activity-deliveries {
  margin-bottom: 6px;
  color: var(--text-lighter);
}

.weekly-activity-deliveries i {
  color: var(--accent-light);
  margin-right: 4px;
}

.weekly-activity-deliveries strong {
  display: inline;
  margin: 0;
}
.weekly-activity-item p {
  opacity: 0.88;
}

.weekly-activity-item small {
  display: block;
  margin-top: 8px;
  color: var(--accent-light);
  font-weight: 600;
}

.weekly-actions {
  align-items: flex-start;
  flex: 0 0 auto;
}

.weekly-empty-state {
  border: 1px dashed rgba(99, 179, 237, 0.34);
  border-radius: 14px;
  background: rgba(99, 179, 237, 0.06);
}

[data-theme="light"] .weekly-hero,
[data-theme="light"] .weekly-controls,
[data-theme="light"] .weekly-list-section,
[data-theme="light"] .weekly-week-card {
  background: rgba(255, 255, 255, 0.74);
}

[data-theme="light"] .weekly-activity-item {
  background: rgba(248, 250, 252, 0.9);
}

@media (max-width: 1100px) {
  .weekly-metrics { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
}

@media (max-width: 720px) {
  .weekly-hero,
  .weekly-controls-header,
  .weekly-week-header,
  .weekly-activity-item,
  .weekly-carousel-controls {
    flex-direction: column;
  }
  .weekly-carousel-controls button {
    width: 100%;
  }
  .weekly-metrics { grid-template-columns: 1fr; }
  .weekly-actions { width: 100%; }
  .weekly-actions button { flex: 1; }
}
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
}
.profile-modal-card {
  position: relative;
  width: min(430px, 100%);
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 20px;
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}
.profile-modal-card h2 { margin: 0 0 8px; }
.profile-modal-help { margin: 0 0 18px; color: var(--text-secondary); }
.profile-form { display: grid; gap: 14px; }
.profile-form label { display: grid; gap: 6px; font-weight: 600; }
.profile-form small { color: var(--text-secondary); font-weight: 400; }
.profile-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-primary); background: var(--input-bg); }
.profile-password-field { position: relative; display: block; }
.profile-password-field input { padding-right: 44px; }
.profile-password-toggle { position: absolute; top: 50%; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px; color: var(--text-secondary); background: transparent; cursor: pointer; transform: translateY(-50%); }
.profile-password-toggle:hover, .profile-password-toggle:focus-visible { color: var(--text-primary); background: var(--hover-bg); }
.profile-password-icon { width: 18px; height: 18px; display: block; fill: currentColor; }
.profile-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.profile-modal-actions button, .profile-modal-close { cursor: pointer; }
.profile-modal-actions button { padding: 10px 14px; border: 0; border-radius: 10px; font-weight: 700; }
.profile-modal-actions button[type="submit"] { color: #ffffff; background: #2563eb; }
.profile-modal-close { position: absolute; top: 12px; right: 14px; border: 0; color: var(--text-primary); background: transparent; font-size: 1.6rem; }
.profile-modal[hidden] { display: none; }

.dashboard-header { align-items: flex-start; }
.report-button { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.report-button:disabled { cursor: wait; opacity: 0.75; }

@media (max-width: 768px) {
  .dashboard-header .report-button { width: 100%; justify-content: center; }
}

.report-chart-buffer {
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 1200px;
  height: 1500px;
  pointer-events: none;
  opacity: 0;
}

.report-chart-buffer canvas {
  display: block;
  width: 1200px !important;
  height: 700px !important;
}

.calendar-panel {
  display: grid;
  gap: 20px;
  background: linear-gradient(180deg, rgba(99, 179, 237, 0.07), transparent 320px), var(--bg-card);
}

.calendar-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.14);
}

.calendar-hero h2 {
  color: var(--text-lighter);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.calendar-hero p { margin-top: 6px; opacity: 0.82; }

.calendar-hero > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
  box-shadow: 0 18px 35px rgba(49, 130, 206, 0.28);
  font-size: 1.55rem;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto minmax(210px, 1fr) auto repeat(2, minmax(190px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.14);
}

.calendar-toolbar button { min-height: 48px; }

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 14px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--text-light);
  font-size: 0.86rem;
  font-weight: 700;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent-light);
}

.calendar-legend-dot.atrasado { background: var(--error); }
.calendar-legend-dot.em-progresso { background: var(--accent-blue); }
.calendar-legend-dot.pausado { background: var(--paused); }
.calendar-legend-dot.finalizado { background: var(--success); }

.calendar-grid-wrapper {
  overflow: auto;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-card);
}

.calendar-grid {
  display: grid;
  grid-template-columns: 76px repeat(7, minmax(190px, 1fr));
  min-width: 1420px;
}

.calendar-corner,
.calendar-day-header,
.calendar-hour,
.calendar-cell {
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.calendar-corner,
.calendar-day-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--primary-medium);
}

.calendar-corner {
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-lighter);
  font-weight: 800;
}

.calendar-day-header {
  padding: 10px;
  text-align: center;
}

.calendar-day-header strong,
.calendar-day-header span { display: block; }
.calendar-day-header strong { color: var(--text-lighter); text-transform: capitalize; }
.calendar-day-header span { color: var(--accent-light); font-size: 0.82rem; }

.calendar-hour {
  position: sticky;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 86px;
  padding-top: 8px;
  color: var(--accent-light);
  background: var(--primary-medium);
  font-size: 0.82rem;
  font-weight: 800;
}

.calendar-cell {
  min-height: 86px;
  padding: 6px;
  background-image: linear-gradient(to bottom, rgba(226, 232, 240, 0.08) 1px, transparent 1px);
  background-size: 100% 43px;
}

.calendar-empty-hours {
  grid-column: 1 / -1;
  padding: 22px;
  color: var(--text-muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.18);
}

.calendar-event {
  display: grid;
  gap: 2px;
  margin-bottom: 5px;
  padding: 7px 8px;
  border-left: 4px solid var(--accent-blue);
  border-radius: 10px;
  color: #f8fafc;
  background: rgba(49, 130, 206, 0.82);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.calendar-event strong { font-size: 0.78rem; line-height: 1.15; }
.calendar-event span,
.calendar-event small { font-size: 0.72rem; line-height: 1.2; }
.calendar-event small { opacity: 0.86; }
.calendar-event.atrasado { border-left-color: #fed7d7; background: rgba(245, 101, 101, 0.86); }
.calendar-event.em-progresso { border-left-color: #bee3f8; background: rgba(49, 130, 206, 0.86); }
.calendar-event.pausado { border-left-color: #e9d8fd; background: rgba(159, 122, 234, 0.86); }
.calendar-event.finalizado { border-left-color: #c6f6d5; background: rgba(72, 187, 120, 0.86); }

[data-theme="light"] .calendar-hero,
[data-theme="light"] .calendar-toolbar { background: rgba(255, 255, 255, 0.74); }
[data-theme="light"] .calendar-cell { background-color: #ffffff; }

@media (max-width: 1100px) {
  .calendar-toolbar { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .calendar-summary { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .calendar-hero { flex-direction: column; align-items: flex-start; }
  .calendar-toolbar { grid-template-columns: 1fr; }
}

.planner-panel {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(99, 179, 237, 0.07), transparent 320px), var(--bg-card);
}

.planner-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.14);
}

.planner-hero h2 { color: var(--text-lighter); font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.2; }
.planner-hero p { margin-top: 6px; opacity: 0.82; }
.planner-hero .primary { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.planner-status { color: var(--accent-light); font-size: 0.86rem; font-weight: 700; }

.planner-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
  align-items: start;
}

.planner-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.22);
  box-shadow: var(--shadow);
}

.planner-card-top,
.planner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.planner-code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 8px;
  color: #533f03;
  background: #fff2ad;
  font-size: 0.78rem;
  font-weight: 800;
}

.planner-card h3 { color: var(--text-lighter); font-size: 1rem; line-height: 1.3; text-transform: uppercase; }
.planner-meta { color: var(--text-light); font-size: 0.82rem; opacity: 0.82; }
.planner-checklist { display: grid; gap: 14px; }
.planner-stage { display: grid; gap: 8px; }
.planner-stage > strong { color: var(--accent-light); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

.planner-task {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 4px 0 4px 18px;
  color: var(--text-lighter);
  background: transparent;
  border-radius: 8px;
  box-shadow: none;
  text-align: left;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.planner-task:hover { background: rgba(99, 179, 237, 0.08); transform: none; box-shadow: none; }
.planner-circle { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-top: 1px; border: 1.5px solid rgba(226, 232, 240, 0.78); border-radius: 50%; color: transparent; }
.planner-task.done { color: rgba(226, 232, 240, 0.62); text-decoration: line-through; }
.planner-task.done .planner-circle { color: #ffffff; border-color: var(--success); background: var(--success); }
.planner-circle i { font-size: 0.62rem; }

.planner-footer { padding-top: 10px; border-top: 1px solid var(--border-color); color: var(--text-lighter); font-size: 0.84rem; font-weight: 800; }
.planner-footer span { display: inline-flex; align-items: center; gap: 7px; }
.planner-footer progress { width: 44%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: var(--primary-medium); }
.planner-footer progress::-webkit-progress-bar { background: var(--primary-medium); }
.planner-footer progress::-webkit-progress-value { background: var(--accent-light); }
.planner-footer progress::-moz-progress-bar { background: var(--accent-light); }

.planner-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.planner-modal-card {
  position: relative;
  width: min(820px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--bg-card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.planner-modal-card h2 { color: var(--text-lighter); margin-bottom: 6px; }
.planner-modal-card p { margin-bottom: 18px; opacity: 0.82; }
.planner-modal-close { position: absolute; top: 12px; right: 14px; padding: 0; color: var(--text-lighter); background: transparent; font-size: 1.6rem; box-shadow: none; }
.planner-modal-close:hover { transform: none; box-shadow: none; }

[data-theme="light"] .planner-hero,
[data-theme="light"] .planner-card { background: rgba(255, 255, 255, 0.76); }
[data-theme="light"] .planner-task.done { color: rgba(45, 55, 72, 0.62); }

@media (max-width: 720px) {
  .planner-hero { flex-direction: column; align-items: flex-start; }
  .planner-hero .primary { width: 100%; justify-content: center; }
  .planner-board { grid-template-columns: 1fr; }
}
.planner-card { cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.planner-card:hover { transform: translateY(-2px); border-color: rgba(99, 179, 237, 0.55); box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26); }
.planner-card-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.planner-bucket,
.planner-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-lighter);
  background: rgba(99, 179, 237, 0.16);
  border: 1px solid rgba(99, 179, 237, 0.25);
  font-size: 0.76rem;
  font-weight: 800;
}
.planner-progress-bar { flex: 1; min-width: 120px; height: 9px; overflow: hidden; border-radius: 999px; background: rgba(148, 163, 184, 0.28); }
.planner-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-light), var(--success)); transition: width 0.2s ease; }

.planner-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 18px;
  background: rgba(15, 23, 42, 0.68);
}

.planner-detail-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(960px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.planner-detail-header { display: grid; gap: 10px; padding-right: 34px; margin-bottom: 20px; }
.planner-title-input {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--text-lighter);
  background: transparent;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  box-shadow: none;
}
.planner-title-input:focus { border-color: var(--accent-light); outline: none; }
.planner-detail-body { display: grid; gap: 22px; }
.planner-field-grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 16px; }
.planner-field-grid label,
.planner-notes { display: grid; gap: 7px; color: var(--text-light); font-size: 0.86rem; font-weight: 700; }
.planner-status-select,
.planner-priority-select { font-weight: 800; }
.planner-detail-section { display: grid; gap: 12px; }
.planner-detail-section h3 { color: var(--text-lighter); font-size: 1.02rem; }
.planner-detail-checklist { display: grid; gap: 6px; }
.planner-checklist-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  color: var(--text-lighter);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: none;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
}
.planner-checklist-row:hover { transform: none; box-shadow: none; border-color: var(--border-color); background: rgba(99, 179, 237, 0.08); }
.planner-check-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.6px solid rgba(226, 232, 240, 0.8);
  border-radius: 50%;
  color: transparent;
}
.planner-check-circle i { font-size: 0.68rem; }
.planner-checklist-row.done { color: rgba(226, 232, 240, 0.58); text-decoration: line-through; }
.planner-checklist-row.done .planner-check-circle { color: #fff; border-color: var(--success); background: var(--success); }
[data-theme="light"] .planner-detail-card { background: #ffffff; }
[data-theme="light"] .planner-bucket,
[data-theme="light"] .planner-tag { color: #22577a; background: rgba(49, 130, 206, 0.12); }
[data-theme="light"] .planner-checklist-row.done { color: rgba(45, 55, 72, 0.58); }
@media (max-width: 720px) {
  .planner-detail-modal { padding: 8px; }
  .planner-detail-card { border-radius: 18px; padding: 20px; }
  .planner-field-grid { grid-template-columns: 1fr; }
}

/* Planner: seleção e agrupamento de etapas/estágios */
.planner-selection { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--border-color); border-radius: 14px; background: rgba(15, 23, 42, 0.24); }
.planner-selection-heading, .planner-etapa-head, .planner-detail-group-head { display: flex; align-items: center; gap: 10px; }
.planner-selection-heading { justify-content: space-between; flex-wrap: wrap; }
.planner-selection-heading h3 { color: var(--text-lighter); font-size: 1rem; }
.planner-selection-heading > div { display: flex; gap: 8px; }
button.compact { width: auto; padding: 7px 10px; font-size: .78rem; }
.planner-etapas-preview, .planner-detail-checklist { display: grid; gap: 12px; }
.planner-etapa-group, .planner-detail-group { overflow: hidden; border: 1px solid var(--border-color); border-radius: 12px; background: rgba(30, 41, 59, .38); }
.planner-etapa-head, .planner-detail-group-head { padding: 11px 13px; color: var(--text-lighter); }
.planner-etapa-head label, .planner-detail-group-head strong { flex: 1; font-weight: 800; }
.planner-etapa-head span, .planner-detail-group-head span { color: var(--text-light); font-size: .78rem; }
.planner-expand { width: 32px; padding: 4px; color: var(--text-light); background: transparent; box-shadow: none; }
.planner-expand:hover { transform: none; box-shadow: none; }
.planner-estagios { display: grid; gap: 8px; padding: 4px 14px 14px 42px; }
.planner-estagios label { display: flex; align-items: center; gap: 9px; color: var(--text-light); font-size: .88rem; }
.planner-form-message { min-height: 22px; padding: 0 4px; color: var(--accent-light); font-weight: 700; }
.planner-form-message[data-type="error"] { color: #fc8181; }
.planner-stage-check { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; padding: 0; border: 2px solid var(--text-light); border-radius: 50%; color: transparent; background: transparent; box-shadow: none; }
.planner-stage-check.done { color: #fff; border-color: var(--success); background: var(--success); }
.planner-stage-check[aria-checked="mixed"]::after { content: ""; width: 9px; height: 2px; background: var(--accent-light); }
.planner-stage-check[aria-checked="mixed"] i { display: none; }
.planner-stage-progress { height: 4px; margin: 0 13px 8px; overflow: hidden; border-radius: 9px; background: rgba(148, 163, 184, .2); }
.planner-stage-progress span { display: block; height: 100%; background: var(--accent-light); }
.planner-detail-items { display: grid; gap: 6px; padding: 0 10px 10px; }
[data-theme="light"] .planner-selection, [data-theme="light"] .planner-etapa-group, [data-theme="light"] .planner-detail-group { background: rgba(255,255,255,.72); }
@media (max-width: 640px) { .planner-selection-heading { align-items: stretch; } .planner-selection-heading > div { width: 100%; } .planner-selection-heading button { flex: 1; } .planner-estagios { padding-left: 18px; } .planner-etapa-head span { max-width: 100px; text-align: right; } }