/*!**********************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].rules[0].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[5].rules[0].oneOf[0].use[2]!./src/styles.css?ngGlobalStyle ***!
  \**********************************************************************************************************************************************************************************************************************/
/* =========================================================
   1. Fonts & reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}

/* =========================================================
   2. Design tokens
   ========================================================= */
:root {
  --color-bg: #F6F7FB;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F0F2F7;
  --color-border: #E4E7EE;
  --color-border-strong: #D3D7E0;
  --color-text: #1F2430;
  --color-text-muted: #6B7280;
  --color-text-subtle: #9CA3AF;

  --color-primary: #4F46E5;
  --color-primary-hover: #4338CA;
  --color-primary-soft: #EEF2FF;

  --color-success: #16A34A;
  --color-success-soft: #DCFCE7;
  --color-danger: #DC2626;
  --color-danger-soft: #FEE2E2;
  --color-warning: #D97706;
  --color-warning-soft: #FEF3C7;
  --color-info: #2563EB;
  --color-info-soft: #DBEAFE;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow-md: 0 4px 12px rgba(16,24,40,.08);
  --shadow-lg: 0 12px 24px rgba(16,24,40,.12);

  --sidebar-width: 240px;
  --topbar-height: 64px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* =========================================================
   3. Base element styles
   ========================================================= */
h1, h2, h3, h4 {
  color: var(--color-text);
  font-weight: 600;
  margin: 0 0 var(--space-2) 0;
}

h2 { font-size: 22px; }
h3 { font-size: 17px; }

p { color: var(--color-text-muted); line-height: 1.5; }

a { color: var(--color-primary); }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th, td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

th {
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--color-surface-alt); }

/* =========================================================
   4. Layout (page container, shell/sidebar/topbar)
   ========================================================= */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5);
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  background: var(--color-surface-alt);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-3);
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  margin-bottom: var(--space-6);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.sidebar-brand .material-symbols-outlined {
  color: var(--color-primary);
  font-size: 24px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-nav a:hover { background: var(--color-border); color: var(--color-text); }

.sidebar-nav a.active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* =========================================================
   5. Reusable components
   ========================================================= */

/* Buttons */
button, a.btn {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  margin-right: var(--space-2);
  transition: background-color .15s ease;
}

button:hover, a.btn:hover { background: var(--color-primary-hover); }
button:disabled { opacity: .6; cursor: not-allowed; }

button.secondary, a.btn.secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
button.secondary:hover, a.btn.secondary:hover { background: var(--color-surface-alt); }

button.danger, a.btn.danger { background: var(--color-danger); }
button.danger:hover, a.btn.danger:hover { background: #B91C1C; }

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--color-surface-alt); color: var(--color-text); }

.btn-icon {
  padding: 6px;
  border-radius: var(--radius-sm);
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

/* Badges / status pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* Avatars */
.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}

/* Forms */
form label, .form-field > label { display: block; margin-top: var(--space-4); font-weight: 500; font-size: 14px; color: var(--color-text); }

:where(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  margin-top: var(--space-1);
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text);
  background-color: var(--color-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

:where(textarea) { min-height: 80px; resize: vertical; }

:where(select) {
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

:where(input, textarea)::placeholder { color: var(--color-text-subtle); }

:where(input:not([type="checkbox"]):not([type="radio"]), textarea, select):hover {
  border-color: var(--color-border-strong);
  background-color: var(--color-surface);
}

:where(input:not([type="checkbox"]):not([type="radio"]), textarea, select):focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

/* Edição inline (título e descrição da tarefa) */
.editable-area { flex: 1; min-width: 0; }

.editable {
  margin: 0;
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: var(--radius-sm);
  cursor: text;
  transition: background-color 0.15s ease;
}

.editable:hover,
.editable:focus-visible {
  background-color: var(--color-surface-alt);
  outline: none;
}

.editable-descricao { color: var(--color-text-subtle); white-space: pre-wrap; tab-size: 4; }

.inline-edit {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 var(--space-2) 0;
  padding: 8px 12px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
  background: var(--color-surface);
  font: inherit;
  color: var(--color-text);
}

.inline-edit:focus { outline: none; }
.inline-edit-titulo { font-size: 22px; font-weight: 600; }
.inline-edit-descricao { min-height: 0; white-space: pre-wrap; tab-size: 4; overflow-wrap: anywhere; }
.inline-edit-descricao code, .editable-descricao code {
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* Barra de formatação do editor da descrição */
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-bottom: var(--space-2);
}
.rich-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}
.rich-btn:hover { background: var(--color-surface-alt); }
.rich-btn .material-symbols-outlined { font-size: 20px; }
.rich-cor {
  width: 18px;
  height: 18px;
  margin: 0 3px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
}
.rich-sep { width: 1px; height: 20px; margin: 0 6px; background: var(--color-border); }

form label input[type="checkbox"] { width: auto; }

.form-field { margin-bottom: var(--space-4); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--space-4);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.page-header h2 { margin: 0; }
.page-header p { margin: var(--space-1) 0 0 0; }

/* Search input */
.search-input {
  position: relative;
  margin-bottom: var(--space-5);
  max-width: 360px;
}

.search-input .material-symbols-outlined {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-subtle);
}

.search-input input {
  width: 100%;
  padding: 9px 12px 9px 38px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--color-surface);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-subtle);
}

.empty-state .material-symbols-outlined {
  font-size: 40px;
  margin-bottom: var(--space-2);
  color: var(--color-border-strong);
}

/* =========================================================
   6. Kanban board
   ========================================================= */
.kanban-board {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  align-items: flex-start;
}

.kanban-column {
  flex: 1 1 320px;
  min-width: 320px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--col-accent, var(--color-primary));
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.kanban-column-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-1) var(--space-3) var(--space-1);
}

.kanban-column-header h3 { margin: 0; font-size: 14px; flex: 1; }

.kanban-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex: 0 0 auto;
}

.kanban-count {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 1px 8px;
}

.kanban-dropzone {
  min-height: 40px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.kanban-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3);
  cursor: grab;
}

.kanban-card:hover { box-shadow: var(--shadow-md); }

.kanban-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.kanban-created {
  font-size: 11px;
  color: var(--color-text-subtle);
  white-space: nowrap;
}

.kanban-card-title {
  display: block;
  margin: var(--space-2) 0 var(--space-3) 0;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.kanban-card-title:hover { color: var(--color-primary); }

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-due {
  font-size: 12px;
  color: var(--color-text-subtle);
}

.kanban-due.overdue {
  color: var(--color-danger);
  font-weight: 600;
}

.kanban-empty {
  font-size: 12px;
  color: var(--color-text-subtle);
  text-align: center;
  padding: var(--space-3) 0;
}

.cdk-drag-preview {
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}

.cdk-drag-placeholder { opacity: .3; }

.cdk-drop-list-dragging .kanban-card:not(.cdk-drag-placeholder) {
  transition: transform .2s ease;
}

/* =========================================================
   7. Page-specific: projeto grid, notas feed, planner
   ========================================================= */
.projeto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.projeto-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.projeto-card-header h3 { margin: 0; font-size: 15px; }
.projeto-card-header h3 a { color: var(--color-text); text-decoration: none; }
.projeto-card-header h3 a:hover { color: var(--color-primary); }

.projeto-card-desc {
  margin: var(--space-2) 0 var(--space-4) 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.projeto-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.notas-lista {
  list-style: none;
  margin: var(--space-3) 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.notas-lista li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  position: relative;
}

.notas-lista .nota-data {
  font-size: 12px;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-1);
}

.notas-lista .nota-conteudo {
  white-space: pre-wrap;
}

.notas-lista button {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  padding: 3px 10px;
  font-size: 12px;
  margin-right: 0;
}

.planner-fase {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
}

.planner-itens {
  list-style: none;
  margin: var(--space-3) 0;
  padding: 0;
}

.planner-itens li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.planner-itens li:last-child { border-bottom: none; }

.planner-itens button {
  padding: 3px 10px;
  font-size: 12px;
}

.planner-novo-item {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.planner-novo-item input { margin-top: 0; }

/* Edição de estados na tabela */
.cor-amostra {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: var(--space-2);
  border-radius: var(--radius-full);
  vertical-align: middle;
}

.acoes { white-space: nowrap; }

.inline-edit-linha {
  width: 100%;
  min-width: 80px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  box-sizing: border-box;
}

.inline-edit-linha:focus { outline: none; }

.nome-edicao { display: flex; align-items: center; gap: var(--space-2); }
.nome-edicao .inline-edit-linha { flex: 1; }

.inline-edit-cor {
  width: 48px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}

/* Quadro kanban ocupa a largura toda do ecrã (sem o limite do .container) */
.container:has(.kanban-page) {
  max-width: none;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

/* Página de projetos ocupa mais largura (cards mais juntas, menos espaço vazio) */
.container:has(.projeto-page) {
  max-width: 1480px;
}

.projeto-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Contagens e etiquetas nunca partem em duas linhas */
.badge {
  white-space: nowrap;
}

/* Popup (atalhos do projeto para o Notion) */
.popup-fundo {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup {
  width: min(360px, calc(100vw - 32px));
}

.popup-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.popup-topo h3 {
  margin: 0;
}

.popup-opcao {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
}

.popup-opcao:hover {
  background: var(--color-border);
}

.popup-opcao small {
  color: var(--color-text-subtle);
  margin-left: auto;
}

/* Seletor Cards / Lista */
.vista-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.vista-toggle button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  border: none;
  border-radius: 0;
  background: var(--color-surface);
  color: var(--color-text-subtle);
  padding: var(--space-2) var(--space-3);
}

.vista-toggle button.ativo {
  background: var(--color-primary);
  color: #fff;
}

.vista-toggle .material-symbols-outlined {
  font-size: 18px;
}

.projeto-lista td.acoes,
.tarefa-lista td.acoes {
  text-align: right;
  white-space: nowrap;
}

/* Tarefas urgentes (checkbox "Urgente" do Notion) */
.urgentes {
  background: var(--color-surface);
  border: 1px solid var(--color-danger-soft);
  border-left: 4px solid var(--color-danger);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
}

.urgentes h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  font-size: 15px;
  color: var(--color-danger);
}

.urgentes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.urgentes li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
}

.urgentes li:first-child { border-top: none; }

.urgentes li > a:first-child { font-weight: 600; color: var(--color-text); text-decoration: none; }
.urgentes li > a:first-child:hover { color: var(--color-primary); }

.icone-urgente {
  color: var(--color-danger);
  font-size: 18px;
  vertical-align: middle;
  margin-right: var(--space-1);
}

.tarefas-page .tarefa-lista tr.urgente td:first-child {
  box-shadow: inset 3px 0 0 var(--color-danger);
}

.tarefas-page .tarefa-lista tr.prioridade-media:not(.urgente) td:first-child {
  box-shadow: inset 3px 0 0 #e0a800;
}

/* Página de login (sem menu lateral) */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.login-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.login-brand h2 {
  margin: 0;
}

.login-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

/* Página Tarefas: barra de filtros (botão, contagem, exportar) e painel de regras */
.tarefas-page .filtros {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-4);
}

.tarefas-page .filtro-acoes {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}

.tarefas-page .filtro-acoes .contagem {
  margin-right: auto;
  padding: 0 var(--space-2);
  font-size: 13px;
  color: var(--color-text-muted);
}

.tarefas-page .filtro-acoes > button { margin-right: 0; }

.tarefas-page .filtros-toggle[aria-expanded="true"] {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.tarefas-page .filtros-contador {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.tarefas-page .filtros-painel {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.tarefas-page .filtro-regra {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(120px, 150px) minmax(200px, 1fr) 32px;
  gap: var(--space-2);
  align-items: center;
}

.tarefas-page .filtro-regra select,
.tarefas-page .filtro-regra input {
  margin: 0;
  min-width: 0;
  min-height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 13px;
}

.tarefas-page .filtro-regra .btn-icon {
  margin: 0;
  width: 32px;
  height: 32px;
  justify-content: center;
  color: var(--color-text-subtle);
}

.tarefas-page .filtro-rodape {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.tarefas-page .filtro-rodape button { margin-right: 0; }

@media (max-width: 760px) {
  .tarefas-page .filtro-regra { grid-template-columns: 1fr 1fr 32px; }
  .tarefas-page .filtro-regra > :nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .tarefas-page .filtro-regra > :nth-child(4) { grid-column: 3; grid-row: 1; }
}

/* Lista de tarefas: texto neutro, azul só no hover */
.tarefas-page .tarefa-lista a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.tarefas-page .tarefa-lista a:hover { color: var(--color-primary); }

.tarefas-page .tarefa-lista td:nth-child(1) a {
  color: var(--color-text-muted);
  font-weight: 400;
}

.tarefas-page .tarefa-lista td:nth-child(1) a:hover { color: var(--color-primary); }

.tarefas-page .tarefa-lista td { font-size: 13px; }

/* Página Tarefas: largura total e linhas de uma só linha com reticências */
.container:has(.tarefas-page) {
  max-width: none;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.tarefas-todas {
  table-layout: auto;
}

.tarefas-todas td.truncar {
  max-width: 0;
  width: 30%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tarefas-todas td.sem-quebra,
.tarefas-todas th {
  white-space: nowrap;
}

.tarefas-todas th:nth-child(1),
.tarefas-todas th:nth-child(2) {
  width: auto;
}

.tarefas-todas th.ordenavel {
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

.tarefas-todas .icone-ordem {
  font-size: 14px;
  vertical-align: middle;
  margin-left: 2px;
  opacity: 0.35;
}

.tarefas-todas th.ordenavel:hover .icone-ordem,
.tarefas-todas .icone-ordem.ativo {
  opacity: 1;
}

/* Tarefas de prioridade alta no quadro e na lista do projeto */
.kanban-card.urgente { border-left: 3px solid var(--color-danger); }

/* Loader pequeno para indicar que uma alteração está a ser gravada */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-border, #d0d5dd);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spinner-rodar 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spinner-rodar { to { transform: rotate(360deg); } }

.a-guardar {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-subtle, #667085);
  font-size: 0.875rem;
}

.kanban-card.a-guardar-card { opacity: 0.6; pointer-events: none; position: relative; }
.kanban-card.a-guardar-card .spinner { position: absolute; top: 8px; right: 8px; }
.icone-urgente + a, .kanban-card-title .icone-urgente { margin-right: var(--space-1); }

.horas-celula { position: relative; width: 1%; }
.horas-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 190px;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #ccc);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: nowrap;
}


/*# sourceMappingURL=styles.css.map*/