/* Base legada do app (antigo styles.css), parte 14 (#533) · Shell do dashboard: jornada, feedback rápido e popovers. Ordem de carga: scripts/helpers/styles-source.js. */

.header-popover header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.header-popover header div,
.workday-actions,
.popover-task,
.quick-feedback-extra {
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 14%);
  border-radius: 12px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
}

.header-popover header div {
  padding: 12px;
}

.header-popover small,
.header-popover label span,
.popover-task span {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 11px;
}

.header-popover strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 15px;
}

.workday-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  margin-bottom: 10px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 14%);
  border-radius: 12px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
}

.workday-summary span {
  color: rgba(255,255,255,.66);
  font-size: 12px;
}

.workday-summary strong {
  margin: 0;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.workday-summary-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workday-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  justify-items: stretch;
  padding: 8px;
  margin-bottom: 12px;
}

.workday-actions.is-running {
  grid-template-columns: 1fr 1fr;
}

.workday-actions button,
.popover-task-actions button,
.popover-link {
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 14%);
  color: #fff;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
  border-radius: 10px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.workday-actions button {
  width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  white-space: nowrap;
}

.workday-actions button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workday-action.primary {
  background: rgba(55, 113, 255, .95);
  border-color: rgba(91, 142, 255, .85);
}

.workday-edit-icon {
  width: 24px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.workday-edit-icon svg {
  width: 13px;
  height: 13px;
}

.mini-icon {
  width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 14%);
  border-radius: 10px;
  color: #fff;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
}

.mini-icon:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.mini-icon.danger {
  color: #fecaca;
  border-color: rgba(248,113,113,.28);
  background: rgba(248,113,113,.12);
}

.task-row-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.mini-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-icon.ghost-icon {
  color: rgba(255,255,255,.72);
}

.workday-adjust-form {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.workday-adjust-toggle {
  width: 100% !important;
  justify-content: flex-start !important;
  min-height: 24px;
  padding: 0;
  border: 0;
  color: rgba(255,255,255,.62);
  background: transparent;
  font-size: 11px;
  text-align: left;
}

.work-report-link {
  width: max-content !important;
  height: 32px !important;
  min-height: 32px !important;
  justify-content: center !important;
  margin: 0 0 14px;
  padding: 0 10px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 14%);
  border-radius: 10px;
  color: rgba(255,255,255,.9);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
  font-size: 12px;
  line-height: 1;
}

.workday-adjust-fields {
  display: none;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}

.workday-adjust-fields.open {
  display: grid;
}

.workday-adjust-fields input,
.workday-task-add input,
.workday-task-add select {
  width: 100%;
  min-height: 34px;
  color: #fff;
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 16%);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 10%);
}

.workday-adjust-fields button,
.workday-task-add button {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 14%);
  color: #fff;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 10%);
  padding: 0 12px;
}

.workday-actions button:hover,
.popover-task-actions button:hover,
.popover-link:hover,
.quick-more:hover {
  background: rgb(var(--mix-fx-paper, 255 255 255) / 14%);
}

.workday-actions button:disabled {
  opacity: .35;
}

.work-report-card {
  display: grid;
  gap: 18px;
}

.work-day-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-day-detail h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

@media (max-width: 980px) {
  .work-day-detail {
    grid-template-columns: 1fr;
  }
}

.popover-section h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.popover-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.popover-section-title h3 {
  margin: 0;
}

.workday-task-add {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.workday-task-add button {
  width: 100% !important;
  padding: 0 8px;
  white-space: nowrap;
}

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

.quick-feedback-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.quick-feedback-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.quick-feedback-line label {
  min-width: 0;
}

.quick-feedback-form textarea,
.quick-feedback-form input,
.quick-feedback-form select {
  width: 100%;
  margin-top: 5px;
  color: #fff;
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 16%);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 10%);
}

.quick-feedback-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
}

.quick-feedback-extra .span-2,
.quick-feedback-extra .checkbox-row {
  grid-column: 1 / -1;
}

.popover-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.popover-actions .btn {
  min-width: 96px;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.feedback-pending-panel {
  display: grid;
  gap: 8px;
}

.feedback-pending-actions {
  display: flex;
  gap: 5px;
}

.segmented {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 12%);
  border-radius: 16px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 6%);
}

.segmented button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  color: rgba(255,255,255,.72);
  background: transparent;
  font-size: 11px;
}

.segmented button:hover,
.segmented button.active {
  color: #fff;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 15%);
}

.task-list-shell {
  display: grid;
  gap: 10px;
}

.task-list-head,
.kanban-toolbar,
.pagination-bar,
.bulk-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.template-page tr.is-selected td {
  background: rgba(255,104,24,.12);
}

.pagination-bar {
  padding: 4px 2px 0;
  color: rgba(255,255,255,.68);
  font-size: 12px;
}

.pagination-bar > div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.kanban-toolbar {
  margin-top: 4px;
  color: rgba(255,255,255,.64);
  font-size: 12px;
}

.kanban-card.is-small {
  gap: 8px;
  padding: 10px;
}

.kanban-card.is-small h4 {
  font-size: 12px;
}

.settings-modal {
  max-width: 760px;
}

.settings-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 12%);
  border-radius: 14px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 6%);
}

.settings-section h3 {
  margin: 0;
  color: #fff;
  font-size: 14px;
}

.settings-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.stage-edit-list {
  display: grid;
  gap: 8px;
}

.stage-edit-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
}

.stage-edit-row span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 12%);
  font-size: 11px;
}

.stage-edit-row input,
.settings-modal input[type="text"],
.settings-modal input:not([type]) {
  width: 100%;
  min-height: 36px;
  color: #fff;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 16%);
  border-radius: 11px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 8%);
}

.settings-segmented {
  justify-content: flex-start;
}

.settings-segmented label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.78);
}

.icon-actions {
  justify-content: flex-start;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.access-check {
  width: 100%;
}

.permissions-page {
  display: grid;
  gap: 18px;
}

.permissions-board {
  overflow-x: auto;
  padding: 22px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 22%);
  border-radius: 18px;
  background: rgb(var(--mix-fx-paper, 238 243 245));
  color: rgb(var(--mix-fx-ink, 44 52 64));
  box-shadow: 0 26px 70px rgba(0,0,0,.18);
}

.permission-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}

.permission-avatars span,
.permission-avatars b,
.permission-mini-plus {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -6px;
  border: 2px solid rgb(var(--mix-fx-line, 255 255 255));
  border-radius: 999px;
  background: #596879;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.permission-avatars span:first-child,
.permission-avatars b:first-child,
.permission-mini-plus:first-child {
  margin-left: 0;
}

.permission-avatars b,
.permission-mini-plus {
  background: rgb(var(--mix-fx-paper, 238 243 245));
  color: rgb(var(--mix-fx-body, 96 112 128));
}
