/* Base legada do app (antigo styles.css), parte 12 (#533) · Vidro líquido e shell do dashboard. Ordem de carga: scripts/helpers/styles-source.js. */

@media (max-width: 980px) and (min-width: 521px) {

  .brand-panel span,
  .side-nav button span {
    display: none;
  }

  .side-nav {
    display: grid;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .side-nav button {
    min-height: 48px;
    justify-content: center;
    padding: 8px;
  }

  .side-nav button b {
    width: 30px;
    height: 30px;
  }

  .main {
    padding: 16px 16px 34px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {

  .metric-strip {
    grid-template-columns: 1fr;
  }
}

/* Liquid glass direction */
body:not(.tv-body) {
  background: #12151b;
  color: #f7f8fb;
}

body:not(.tv-body)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(16, 18, 25, 0.98) 0%, rgba(48, 43, 45, 0.96) 38%, rgba(50, 64, 55, 0.94) 66%, rgba(20, 22, 30, 0.98) 100%);
}

.brand-panel span,
.topline p,
.help {
  color: rgba(247, 248, 251, 0.68);
}

.side-nav button {
  color: rgba(247, 248, 251, 0.82);
}

.side-nav button b {
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 22%);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 12%);
  color: #b8ffe2;
}

.side-nav button.active,
.side-nav button:hover,
.sidebar-tool,
.icon-action,
.today-chip,
.rail-user,
.report-card,
.panel,
.filters,
.modal,
.task-brief-card,
.task-side-card,
.task-work-card,
.login-card {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 12%);
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 20%);
  backdrop-filter: blur(28px) saturate(145%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 18%);
}

.side-nav button.active,
.side-nav button:hover {
  color: #ffffff;
}

.main {
  width: min(1360px, 100%);
}

.topline h1,
.report-card h2,
.report-card h3,
.section-head h2,
.panel h2,
.panel h3 {
  color: #ffffff;
}

.search-box span {
  color: rgba(247, 248, 251, 0.48);
}

.global-search-input,
input,
select,
textarea {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 14%);
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 18%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 12%);
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 248, 251, 0.48);
}

select option {
  background: #1c2028;
  color: #ffffff;
}

.btn {
  background: rgba(255, 105, 24, 0.96);
  border-color: rgba(255, 125, 54, 0.9);
  box-shadow: 0 14px 36px rgba(255, 105, 24, 0.2);
}

.btn.secondary,
.chip-button {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 12%);
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 18%);
  color: #f7f8fb;
}

.btn.success {
  background: rgba(20, 163, 118, 0.96);
  border-color: rgba(20, 163, 118, 0.8);
}

.metric-card {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 16%);
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 18%);
  color: #ffffff;
  backdrop-filter: blur(24px) saturate(145%);
}

.metric-card.mint,
.metric-card.blue,
.metric-card.amber,
.metric-card.rose {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 14%);
}

.metric-card span,
.metric-card strong,
.report-number,
.current-week strong {
  color: #ffffff;
}

.report-card p,
.section-head p,
.current-week span,
.performance-body span {
  color: rgba(247, 248, 251, 0.64);
}

.alert {
  background: rgb(var(--mix-fx-tint-orange, 255 244 214) / 88%);
  border-color: rgba(255, 189, 89, 0.55);
  color: rgb(var(--mix-fx-ink-orange, 122 61 0));
}

.empty,
.soft-empty {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 10%);
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 18%);
  color: rgba(247, 248, 251, 0.72);
}

.kanban {
  gap: 14px;
  padding: 8px 2px 20px;
}

.kanban-column {
  flex-basis: 326px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 10.5%);
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 17%);
  box-shadow: inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 14%), 0 24px 70px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(26px) saturate(145%);
}

.kanban-column h3 {
  position: relative;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 10%);
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgb(var(--mix-fx-line, 255 255 255) / 12%);
  text-transform: none;
  letter-spacing: 0;
}

.kanban-column h3::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 45%);
}

.kanban-column[data-kanban-status="backlog"] h3::before { background: #17bdf5; }
.kanban-column[data-kanban-status="planejada"] h3::before { background: #21d4ee; }
.kanban-column[data-kanban-status="producao"] h3::before { background: #9be000; }
.kanban-column[data-kanban-status="revisao"] h3::before { background: #b47cff; }
.kanban-column[data-kanban-status="bloqueada"] h3::before { background: #ff5d5d; }
.kanban-column[data-kanban-status="aprovacao"] h3::before { background: #ffb020; }
.kanban-column[data-kanban-status="concluida"] h3::before { background: #6ee000; }
.kanban-column[data-kanban-status="cancelada"] h3::before { background: #98a2b3; }

.kanban-card {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 88%);
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 72%);
  border-left-width: 1px;
  color: rgb(var(--mix-fx-ink, 17 24 39));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 80%);
  backdrop-filter: blur(22px) saturate(135%);
  gap: 8px;
  padding: 11px;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 86%);
}

.kanban-card h4 {
  font-size: 13px;
  line-height: 1.22;
}

.kanban-owner {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.kanban-actions .btn {
  border-radius: 8px;
  min-height: 30px;
}

.kanban-card .btn.secondary,
.quick-task .btn.secondary,
.daily-plan-item .btn.secondary,
.task-row .btn.secondary {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 76%);
  border-color: rgba(17, 24, 39, 0.08);
  color: rgb(var(--mix-fx-ink, 52 64 84));
  box-shadow: none;
}

.kanban-card .btn.secondary:disabled,
.quick-task .btn.secondary:disabled {
  color: rgb(var(--mix-fx-muted, 138 147 160));
  opacity: 0.72;
}

.pill {
  min-height: 21px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 32%);
}

table,
td,
th,
.task-row,
.timer-row,
.compact-row,
.executive-row,
.feedback-item,
.thread-item,
.quick-task,
.daily-plan-item {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 82%);
  color: rgb(var(--mix-fx-ink, 17 24 39));
}

.modal-body {
  background: rgba(20, 23, 30, 0.72);
}

/* Exact dashboard template shell */
body:not(.tv-body) {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(134, 60, 64, 0.42), transparent 34%),
    radial-gradient(circle at 64% 12%, rgba(108, 132, 87, 0.36), transparent 31%),
    radial-gradient(circle at 93% 82%, rgba(178, 76, 20, 0.34), transparent 29%),
    linear-gradient(135deg, #15191f 0%, #31292d 42%, #4a3829 100%);
  color: #fff;
}

.template-shell {
  min-height: 100vh;
  padding: 24px 28px;
  color: #fff;
  background: transparent;
  font-size: 12px;
}

.template-header,
.template-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.template-header {
  min-height: 42px;
  margin-bottom: 26px;
}

.template-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
}

.brand-company-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 8px 0 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.brand-company-switch strong {
  max-width: 220px;
  overflow: hidden;
  font-size: 20px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-company-arrow {
  color: rgba(255,255,255,.58);
  font-size: 13px;
}

.brand-company-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: rgb(var(--mix-fx-paper, 255 255 255) / 92%);
}

.company-popover {
  left: 0;
  right: auto;
  width: min(320px, calc(100vw - 48px));
}

.company-popover > strong {
  display: block;
  margin-bottom: 8px;
}

.company-popover button {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px;
  border-radius: 12px;
  color: #fff;
  background: transparent;
}

.company-popover button.active,
.company-popover button:hover {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 10%);
}

.company-popover button span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: rgb(var(--mix-fx-paper, 255 255 255) / 12%);
  font-size: 10px;
}

.template-icons {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 12px;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 70;
  max-width: 220px;
  padding: 7px 10px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 20%);
  border-radius: 10px;
  color: #fff;
  background: rgba(22, 24, 29, .94);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity .16s ease, transform .16s ease;
}

[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 5px);
  z-index: 71;
  width: 8px;
  height: 8px;
  background: rgba(22, 24, 29, .94);
  border-left: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 18%);
  border-top: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 18%);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px) rotate(45deg);
  transition: opacity .16s ease, transform .16s ease;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::after,
[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.template-time-control {
  margin-right: 18px;
}

.template-icons button,
.template-menu-button,
.template-nav-buttons button,
.template-tools button,
.template-expand,
.template-card-icon {
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 26%);
  color: #fff;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 14%), 0 18px 42px rgba(0, 0, 0, 0.14);
}

.template-icons > button,
.template-play-button {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 16px;
  font-weight: 800;
}

.template-icons button svg,
.template-play-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-icons button:hover,
.template-icons button.active,
.template-menu-button:hover,
.template-nav-buttons button:hover,
.template-tools button:hover,
.template-expand:hover {
  transform: translateY(-1px);
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 38%);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 14%);
  box-shadow: inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 18%), 0 20px 48px rgba(0,0,0,.18);
}

.template-time-control {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 2px 0 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  backdrop-filter: none;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.template-time-control:hover,
.template-time-control.active {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
}

.template-time-readout {
  min-width: auto;
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.template-time-readout b {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.template-time-readout .work-total {
  color: #fff;
}
