/* Base legada do app (antigo styles.css), parte 13 (#533) · Shell do dashboard: páginas e E-mail. Ordem de carga: scripts/helpers/styles-source.js. */

.template-icons .template-play-button {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 104, 24, .95);
  border-color: rgba(255, 134, 76, .8);
  box-shadow: 0 6px 16px rgba(255,104,24,.22), inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 18%);
}

.template-icons .template-play-button svg {
  width: 9px;
  height: 9px;
  stroke-width: 2.6;
}

.template-icons .template-avatar {
  position: relative;
  border-radius: 999px;
  overflow: visible;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 10%);
  color: #fff;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(22, 24, 29, .96);
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.header-avatar-photo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
}

.header-avatar-photo.fallback {
  background:
    radial-gradient(circle at 50% 22%, rgb(var(--mix-fx-tint-orange, 255 221 199) / 95%) 0 18%, transparent 19%),
    linear-gradient(145deg, rgba(96, 111, 126, .95), rgba(39, 45, 54, .9));
  font-size: 11px;
  font-weight: 900;
}

.template-nav {
  position: relative;
  justify-content: flex-start;
  margin-bottom: 30px;
}

.template-menu-button {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 20px;
}

.template-menu-button.active {
  border-color: rgba(255,104,24,.6);
  background: rgba(255,104,24,.24);
}

.module-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 28;
  width: 320px;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 20%);
  border-radius: 16px;
  background: rgba(31, 34, 39, .82);
  backdrop-filter: blur(34px) saturate(150%);
  box-shadow: 0 28px 80px rgba(0,0,0,.34), inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 14%);
}

.module-menu-popover > strong {
  padding: 3px 5px 8px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  text-transform: uppercase;
}

.module-menu-popover button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 12%);
  border-radius: 12px;
  color: #fff;
  text-align: left;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
}

.module-menu-popover button.active,
.module-menu-popover button:hover {
  background: rgba(255,104,24,.26);
  border-color: rgba(255,104,24,.45);
}

.module-menu-popover small {
  color: rgba(255,255,255,.58);
  font-size: 10px;
}

.template-dashboard-label {
  margin-right: 0;
  font-size: 22px;
  font-weight: 500;
}

.template-main {
  min-width: 0;
}

.template-hidden-actions {
  display: none;
}

.template-page {
  display: grid;
  gap: 22px;
}

.template-page-title h1 {
  margin: 0;
  font-size: 26px;
}

.template-page-title p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.template-kpi,
.template-glass-card {
  position: relative;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 28%);
  border-radius: 16px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 9.5%);
  backdrop-filter: blur(30px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 13%),
    inset 0 -1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 8%),
    0 22px 58px rgba(0,0,0,.16);
}

.template-glass-card::after {
  display: none;
}

.template-glass-card {
  padding: 18px;
  min-height: 260px;
  overflow: visible;
}

.template-glass-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.template-glass-card h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.template-chart {
  width: 100%;
  height: 280px;
  display: block;
}

.chart-pin { stroke: rgb(var(--mix-fx-line, 255 255 255) / 16%); stroke-width: 1; }
.chart-line { fill: none; stroke: rgb(var(--mix-fx-line, 255 255 255) / 62%); stroke-width: 2; }
.chart-orange { stroke: #ff6818; stroke-width: 2; stroke-dasharray: 4 5; }
.chart-dot { fill: transparent; stroke: #ff6818; stroke-width: 3; }
.chart-bottom { fill: transparent; stroke: #ff6818; stroke-width: 3; }
.chart-month, .chart-badge-text { fill: #fff; font-size: 12px; }
.chart-badge { fill: #ff6818; }
.chart-cursor { fill: rgba(255,255,255,.9); stroke: rgba(0,0,0,.25); }
.chart-base, .chart-dash { stroke: rgb(var(--mix-fx-line, 255 255 255) / 50%); stroke-width: 2; stroke-linecap: round; }

.template-donut svg {
  width: min(280px, 100%);
  display: block;
  margin: 0 auto;
}

.donut-striped {
  stroke-dasharray: 8 8;
}

.template-page .panel,
.template-page .filters,
.template-page .task-row,
.template-page .timer-row,
.template-page .compact-row,
.template-page .executive-row,
.template-page .feedback-item,
.template-page .thread-item,
.template-page .quick-task,
.template-page .daily-plan-item,
.template-page .kanban-column {
  color: #fff;
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 20%);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 10.5%);
  backdrop-filter: blur(28px) saturate(145%);
  box-shadow: inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 12%), 0 22px 58px rgba(0,0,0,.14);
}

.template-page table {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  color: #fff;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 18%);
  border-radius: 14px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
}

.template-page th,
.template-page td {
  color: #fff;
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 10%);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 3.5%);
}

.template-page th {
  color: rgba(255,255,255,.78);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 12%);
}

.template-page tr:hover td {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
}

.template-page .task-title,
.template-page .task-row strong,
.template-page .panel h2,
.template-page .panel h3,
.template-page label {
  color: #fff;
}

.template-page .help,
.template-page .task-meta,
.template-page .panel p,
.template-page .section-head p {
  color: rgba(255,255,255,.68);
}

.template-page .btn.secondary,
.template-page .chip-button {
  color: #fff;
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 20%);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 10%);
}

.template-page .report-card,
.template-page .table-wrap,
.template-page .task-table-wrap {
  color: #fff;
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 20%);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 10.5%);
  backdrop-filter: blur(28px) saturate(145%);
  box-shadow: inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 12%), 0 22px 58px rgba(0,0,0,.14);
}

.template-page .task-table-wrap {
  background: rgba(24,27,33,.42);
}

.template-page table,
.template-page tbody,
.template-page thead {
  background: rgba(24,27,33,.42);
}

.template-page td {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 4.5%);
}

.template-page th {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 13%);
}

.header-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 30;
  width: min(480px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 22%);
  border-radius: 16px;
  background: rgba(31, 34, 39, .78);
  backdrop-filter: blur(34px) saturate(150%);
  box-shadow: 0 28px 80px rgba(0,0,0,.34), inset 0 1px 0 rgb(var(--mix-fx-paper, 255 255 255) / 14%);
}

.header-popover button {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-popover {
  width: min(340px, calc(100vw - 48px));
}

.profile-popover-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 12%);
}

.profile-popover-head .big {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 12%);
}

.profile-popover-head span,
.profile-departments span {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 11px;
}

.profile-menu-list {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.notification-panel {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 12%);
  border-radius: 12px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 6%);
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-panel-head strong {
  margin: 0;
}

.notification-panel-head button {
  color: rgba(255,255,255,.82);
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 800;
}

.notification-list {
  display: grid;
  gap: 6px;
}

.notification-item {
  width: 100%;
  min-height: 0 !important;
  display: grid !important;
  justify-items: start !important;
  gap: 3px;
  padding: 8px 9px !important;
  border-radius: 10px !important;
  text-align: left;
  color: #fff;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 7%) !important;
}

.notification-item.unread {
  border-color: rgba(59,130,246,.45) !important;
  background: rgba(59,130,246,.13) !important;
}

.notification-center-open {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.notification-center-open:hover strong {
  color: var(--ds-primary, #1478c9);
}

.notification-center-more {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.calendar-hub { display: grid; gap: 16px; }
.calendar-hub-events, .calendar-rule-list { display: grid; gap: 8px; }
.calendar-hub-events > div, .calendar-rule-list > div { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--ds-border, rgb(var(--mix-fx-line, 213 223 235))); }
.calendar-hub-events small { color: var(--ds-muted, #6e8099); }

.mail-hub { display: grid; gap: 14px; }
.mail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mail-toolbar h2, .mail-toolbar p { margin: 0; }
.mail-toolbar p { color: var(--ds-muted, #6e8099); }
.mail-toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mail-toolbar-actions select { min-width: 220px; }
.mail-client-grid { display: grid; grid-template-columns: 220px minmax(280px, 0.8fr) minmax(360px, 1.35fr); gap: 12px; min-height: 620px; }
.mail-folder-panel { display: flex; flex-direction: column; gap: 18px; }
.mail-search-form { display: flex; gap: 6px; }
.mail-search-form input { min-width: 0; width: 100%; }
.mail-folder-panel nav, .mail-folder-panel section { display: grid; gap: 4px; }
.mail-folder-panel nav button, .mail-folder-panel section button {
  appearance: none; border: 0; background: transparent; border-radius: 8px; color: inherit; cursor: pointer;
  display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; text-align: left;
}
.mail-folder-panel nav button:hover, .mail-folder-panel nav button.active, .mail-folder-panel section button:hover { background: var(--ds-surface-soft, #eef4fb); }
.mail-folder-panel nav button.active { color: var(--ds-primary, #0b64c0); font-weight: 700; }
.mail-folder-panel section small { color: var(--ds-muted, #6e8099); }
.mail-summary-mini { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ds-border, rgb(var(--mix-fx-line, 213 223 235))); display: grid; gap: 5px; }
.mail-summary-mini span { color: var(--ds-muted, #6e8099); font-size: .84rem; }
.mail-message-list { overflow: auto; }
.mail-message-list > button {
  appearance: none; width: 100%; border: 0; border-bottom: 1px solid var(--ds-border, rgb(var(--mix-fx-line, 213 223 235))); background: transparent;
  color: inherit; cursor: pointer; display: grid; gap: 6px; padding: 16px; text-align: left;
}
.mail-message-list > button:hover { background: var(--ds-surface-soft, #f5f8fc); }
.mail-message-list > button.is-unread { border-left: 3px solid var(--ds-primary, #0b64c0); background: color-mix(in srgb, var(--ds-primary, #0b64c0) 5%, transparent); }
.mail-message-list > button span { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.mail-message-list p { margin: 0; color: var(--ds-muted, #6e8099); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mail-message-list time, .mail-message-list small { color: var(--ds-muted, #6e8099); font-size: .76rem; white-space: nowrap; }
.mail-reading-pane { min-width: 0; overflow: auto; }
.mail-thread-message-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; border-bottom: 1px solid var(--ds-border, rgb(var(--mix-fx-line, 213 223 235))); }
.mail-thread-message-tabs button { border: 1px solid var(--ds-border, rgb(var(--mix-fx-line, 213 223 235))); background: transparent; border-radius: 8px; padding: 8px 10px; min-width: 150px; text-align: left; cursor: pointer; }
.mail-thread-message-tabs button.active { border-color: var(--ds-primary, #0b64c0); background: var(--ds-surface-soft, #eef4fb); }
.mail-thread-message-tabs strong, .mail-thread-message-tabs small { display: block; }
.mail-message-content { display: grid; gap: 18px; padding-top: 16px; }
.mail-message-actions, .mail-message-content footer { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mail-message-content pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 0; }
.mail-html-body { overflow-wrap: anywhere; }
.mail-html-body img { max-width: 100%; height: auto; }
.mail-account-settings { display: grid; gap: 18px; }
.mail-account-settings-list { display: grid; gap: 12px; }
.mail-account-preference-form { border: 1px solid var(--ds-border, rgb(var(--mix-fx-line, 213 223 235))); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mail-account-preference-form > div:first-child, .mail-account-preference-form .span-2 { grid-column: 1 / -1; }
.mail-account-preference-form strong, .mail-account-preference-form small { display: block; }
.mail-account-preference-form small { color: var(--ds-muted, #6e8099); }
.mail-account-preference-form label, .mail-imap-connect-form label, .mail-compose-form label { display: grid; gap: 5px; }
.mail-signature-file input {
  padding: 9px;
  border: 1px dashed var(--ds-border, rgb(var(--mix-fx-line, 213 223 235)));
  border-radius: 8px;
  background: var(--ds-surface-soft, #f7f9fc);
}
.mail-signature-settings-preview {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--ds-border, rgb(var(--mix-fx-line, 213 223 235)));
  border-radius: 10px;
  background: rgb(var(--mix-fx-paper, 255 255 255));
}
.mail-signature-settings-preview > span {
  color: var(--ds-muted, #6e8099);
  font-size: 11px;
  font-weight: 750;
}
.mail-signature-settings-preview > p { margin: 0; color: var(--ds-muted, #6e8099); font-size: 12px; }
.mail-signature-settings-preview .mail-signature-frame { max-height: 240px; }
.mail-inline-check { display: flex !important; align-items: center; gap: 8px !important; }
.mail-inline-check input { width: auto; }
.mail-account-actions { display: flex; justify-content: flex-end; gap: 8px; grid-column: 1 / -1; }
.mail-imap-connect-form { border-top: 1px solid var(--ds-border, rgb(var(--mix-fx-line, 213 223 235))); padding-top: 16px; }
.mail-imap-connect-form details { border: 1px solid var(--ds-border, rgb(var(--mix-fx-line, 213 223 235))); border-radius: 8px; padding: 10px; }
.mail-imap-connect-form summary { cursor: pointer; font-weight: 700; }
.mail-server-grid { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; gap: 10px; padding-top: 10px; }
.mail-compose-backdrop { z-index: 1200; }
.mail-compose-form { width: min(760px, calc(100vw - 28px)); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 12px; }
.mail-compose-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mail-compose-actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 1100px) {
  .mail-client-grid { grid-template-columns: 190px minmax(260px, 1fr); }
  .mail-reading-pane { grid-column: 1 / -1; min-height: 360px; }
}

@media (max-width: 720px) {
  .mail-toolbar { align-items: flex-start; flex-direction: column; }
  .mail-toolbar-actions { width: 100%; }
  .mail-toolbar-actions select { min-width: 0; flex: 1; }
  .mail-client-grid { grid-template-columns: 1fr; }
  .mail-reading-pane { grid-column: auto; }
  .mail-account-preference-form, .mail-compose-copy, .mail-server-grid { grid-template-columns: 1fr; }
  .mail-account-preference-form > * { grid-column: 1 !important; }
}
.calendar-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.calendar-team-grid section { display: grid; gap: 7px; min-height: 100px; padding: 12px; border: 1px solid var(--ds-border, rgb(var(--mix-fx-line, 213 223 235))); border-radius: 8px; background: var(--ds-surface, #fff); }
.calendar-team-grid section > small { color: var(--ds-muted, #6e8099); }
.calendar-availability-result { display: grid; gap: 8px; margin-top: 12px; }
.calendar-availability-result > div { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 6px; }
.calendar-availability-result .ok { background: rgb(var(--mix-fx-paper, 237 248 241)); color: rgb(var(--mix-fx-ink-green, 24 123 67)); }.calendar-availability-result .busy { background: rgb(var(--mix-fx-paper, 255 240 238)); color: rgb(var(--mix-fx-ink-red, 178 65 53)); }
.calendar-rule-list button { padding: 4px 8px; color: var(--ds-primary, #1478c9); border: 0; background: transparent; cursor: pointer; }

.notification-item span {
  font-size: 12px;
  font-weight: 900;
}

.notification-item small {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  line-height: 1.3;
}

.profile-menu-list button {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 11px;
  border-radius: 12px;
  color: #fff;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
}

.profile-menu-list button:hover {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 14%);
}

.time-popover {
  width: min(390px, calc(100vw - 48px));
}
