/* Relatório LBEC — tela + impressão idêntica ao formulário */

.exp-wrap { display: flex; flex-direction: column; gap: 16px; }

.exp-header-card .exp-week-range {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* Calendário semanal */
.exp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

@media (max-width: 900px) {
  .exp-cal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .exp-cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.exp-cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 10px 8px;
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2, rgba(255,255,255,0.03));
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.exp-cal-day:hover { border-color: var(--accent, #3b82f6); }

.exp-cal-day.filled { border-color: rgba(59, 130, 246, 0.45); }

.exp-cal-day.is-pending {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.35);
}

.exp-cal-day.has-hours { border-color: rgba(34, 197, 94, 0.35); }

.exp-cal-missing {
  color: #94a3b8;
  font-style: italic;
  font-size: 0.625rem;
}

.exp-cal-fill-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.625rem;
  color: var(--accent-bright, #60a5fa);
  font-weight: 600;
}

.exp-cal-hours-line { min-height: 14px; }

.exp-cal-day.today { box-shadow: inset 0 0 0 2px var(--accent, #3b82f6); }

.exp-cal-day.selected {
  border-color: var(--accent, #3b82f6);
  background: rgba(59, 130, 246, 0.12);
}

.exp-cal-weekday {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.exp-cal-date {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.exp-cal-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.exp-cal-bhhe { margin-top: 2px; }

.exp-cal-bhhe .has-bh { color: #60a5fa; font-weight: 600; }
.exp-cal-bhhe .has-he { color: #f59e0b; font-weight: 600; }

.exp-cal-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #3b82f6);
}

.exp-cal-detail {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.exp-cal-detail.hidden { display: none; }

.exp-cal-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.exp-cal-detail-title {
  margin: 0 0 4px;
  font-size: 1.125rem;
  color: #93c5fd;
  font-weight: 700;
}

.exp-cal-clientes {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.exp-cal-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.exp-cal-block {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
}

.exp-cal-block--time {
  border-left: 3px solid #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.exp-cal-block--bhhe {
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.exp-cal-block--km {
  border-left: 3px solid #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

.exp-cal-block--exp {
  border-left: 3px solid #a855f7;
  background: rgba(168, 85, 247, 0.08);
}

.exp-cal-block h4 {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.exp-cal-block--time h4 { color: #60a5fa; }
.exp-cal-block--bhhe h4 { color: #fbbf24; }
.exp-cal-block--km h4 { color: #4ade80; }
.exp-cal-block--exp h4 { color: #c084fc; }

.exp-cal-block dl { margin: 0; }

.exp-cal-block dt {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 8px;
}

.exp-cal-block dt:first-child { margin-top: 0; }

.exp-cal-block dd {
  margin: 3px 0 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

.exp-cal-val {
  color: #f1f5f9;
  font-weight: 700;
}

.exp-cal-val-empty {
  color: #475569;
  font-style: italic;
  font-weight: 400;
}

.exp-cal-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.875rem;
  color: #cbd5e1;
}

.exp-cal-hours-row:last-of-type { border-bottom: none; }

.exp-cal-exp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.exp-cal-exp-list li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border);
}

.exp-cal-exp-list li:last-child { border-bottom: none; }

.exp-cal-empty { color: var(--text-dim); font-style: italic; }

.exp-cal-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.exp-cal-total-item {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  border: 1px solid var(--border);
}

.exp-cal-total-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.exp-cal-total-item strong {
  font-size: 1rem;
  color: var(--accent-bright);
}

.exp-header-card .exp-week-range {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.exp-obs-field {
  margin-top: 14px;
}

.exp-readonly-name {
  margin: 8px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  font-weight: 600;
  color: var(--accent-bright);
}

/* Calendário premium — integrado ao tema escuro */
.exp-cal-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 24px 32px;
}

.exp-cal-panel-head {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.exp-cal-panel-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-bright, #60a5fa);
  letter-spacing: -0.02em;
}

.exp-cal-panel-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-dim, #94a3b8);
  line-height: 1.45;
}

.exp-date-picker {
  width: 100%;
  max-width: 400px;
  padding: 22px 20px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(21, 29, 46, 0.98) 0%, rgba(10, 15, 24, 0.99) 100%);
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.exp-dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.exp-dp-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.exp-dp-sep {
  font-size: 0.8125rem;
  color: var(--text-dim, #64748b);
  font-weight: 500;
}

.exp-dp-select {
  appearance: none;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text, #e2e8f0);
  cursor: pointer;
  padding: 8px 28px 8px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.exp-dp-select:hover {
  border-color: rgba(59, 130, 246, 0.45);
}

.exp-dp-select:focus {
  outline: none;
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.exp-dp-select-year {
  min-width: 72px;
  padding-right: 28px;
}

.exp-dp-select option {
  background: #151d2e;
  color: #e2e8f0;
}

.exp-dp-arrows {
  display: flex;
  gap: 4px;
}

.exp-dp-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--accent-bright, #60a5fa);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.exp-dp-arrow:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.exp-dp-arrow:active {
  transform: scale(0.94);
}

.exp-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.exp-dp-head {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim, #64748b);
  padding: 0 0 10px;
}

.exp-dp-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 4px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text, #e2e8f0);
  cursor: pointer;
  font: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.exp-dp-day.other-month {
  color: rgba(148, 163, 184, 0.35);
}

.exp-dp-day.other-month .exp-dp-mark { opacity: 0.25; }

.exp-dp-day:hover:not(.selected) {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}

.exp-dp-day.today:not(.selected) {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.exp-dp-day.selected {
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
  transform: scale(1.04);
  z-index: 1;
}

.exp-dp-day.selected .exp-dp-mark.ok { background: #fff; }
.exp-dp-day.selected .exp-dp-mark.bh { background: #bfdbfe; }
.exp-dp-day.selected .exp-dp-mark.he { background: #fde68a; }

.exp-dp-day.is-filled:not(.selected) {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.exp-dp-day.is-partial:not(.selected) {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.28);
}

.exp-dp-day.is-empty:not(.selected):not(.other-month) {
  background: rgba(255, 255, 255, 0.02);
}

.exp-dp-num {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
}

.exp-dp-marks {
  display: flex;
  gap: 3px;
  margin-top: 5px;
  min-height: 6px;
}

.exp-dp-mark {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.exp-dp-mark.ok { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); }
.exp-dp-mark.bh { background: #60a5fa; }
.exp-dp-mark.he { background: #f59e0b; }

.exp-dp-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: var(--text-dim, #94a3b8);
  font-size: 0.875rem;
}

.exp-dp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.exp-dp-btn {
  border: none;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 9px 14px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
}

.exp-dp-btn:active {
  transform: scale(0.97);
}

.exp-dp-btn-ghost {
  background: transparent;
  color: var(--text-dim, #94a3b8);
}

.exp-dp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #e2e8f0);
}

.exp-dp-btn-primary {
  flex: 1;
  max-width: 160px;
  background: linear-gradient(180deg, var(--accent-bright, #60a5fa) 0%, var(--accent-dim, #2563eb) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.exp-dp-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.exp-dp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 0.6875rem;
  color: var(--text-dim, #94a3b8);
}

.exp-dp-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.exp-dp-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.exp-dp-legend-dot.filled { background: #22c55e; }
.exp-dp-legend-dot.partial { background: #f59e0b; }
.exp-dp-legend-dot.bh { background: #60a5fa; }
.exp-dp-legend-dot.he { background: #fb923c; }

/* Seletor de data nativo + faixa semanal */
.exp-dp-pick-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.exp-dp-pick-row-top {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.exp-dp-pick-row label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim, #94a3b8);
}

.exp-dp-date-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-primary, #f1f5f9);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  color-scheme: dark;
}

.exp-dp-date-input:hover {
  border-color: rgba(96, 165, 250, 0.55);
}

.exp-dp-date-input:focus {
  outline: none;
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.exp-day-picker {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.exp-day-picker-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim, #94a3b8);
  margin-bottom: 12px;
}

.exp-week-day-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.exp-wds-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(21, 29, 46, 0.6);
  color: var(--text-secondary, #cbd5e1);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  position: relative;
}

.exp-wds-day:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(30, 41, 59, 0.85);
}

.exp-wds-day.selected {
  border-color: var(--accent, #3b82f6);
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.35), rgba(29, 78, 216, 0.2));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.exp-wds-day.today:not(.selected) {
  border-color: rgba(96, 165, 250, 0.5);
}

.exp-wds-day.is-filled:not(.selected) {
  border-color: rgba(34, 197, 94, 0.35);
}

.exp-wds-day.is-partial:not(.selected) {
  border-color: rgba(245, 158, 11, 0.35);
}

.exp-wds-name {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.75;
}

.exp-wds-num {
  font-size: 0.9375rem;
  font-weight: 700;
}

.exp-wds-day.has-bh::after,
.exp-wds-day.has-he::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.exp-wds-day.has-bh::after { left: calc(50% - 6px); background: #60a5fa; }
.exp-wds-day.has-he::after { left: calc(50% + 2px); background: #f59e0b; }
.exp-wds-day.has-bh.has-he::after { left: calc(50% - 6px); }
.exp-wds-day.has-bh.has-he::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: calc(50% + 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f59e0b;
}

.exp-day-badge-wrap { margin-top: 0; }

.exp-tabs { margin-bottom: 0; }
.exp-panel.hidden { display: none; }

.exp-section {
  font-size: 0.9375rem;
  color: var(--accent-bright);
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.exp-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.exp-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.exp-hint { font-size: 0.875rem; color: var(--text-secondary); margin-top: 8px; }

.exp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* Estilos de impressão removidos — aguardando planilha Excel LBEC */

.exp-day-badge {
  margin: 8px 0 0;
  padding: 10px 14px;
  background: var(--surface-2, #1e293b);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 600;
  color: var(--accent-bright);
}

.exp-hours-calc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

.exp-hours-box {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  text-align: center;
}

.exp-hours-box.has-value {
  border-color: var(--accent, #3b82f6);
  background: rgba(59, 130, 246, 0.1);
}

.exp-hours-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.exp-hours-val {
  display: block;
  font-size: 1.75rem;
  color: var(--accent-bright);
  line-height: 1.2;
}

.exp-hours-box small {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.exp-hours-rule {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid var(--accent, #3b82f6);
  border-radius: 4px;
}
