/* =========================================================
   Minhas Tarefas — board estilo Monday para a Central BCR.CX
   Tudo escopado em .mt para não colidir com o tema.
   ========================================================= */
.mt, .mt-panel {
  --mt-brand: #102d75;
  --mt-primary: #0073ea;
  --mt-primary-hover: #0060b9;
  --mt-text: #323338;
  --mt-muted: #676879;
  --mt-border: #d0d4e4;
  --mt-border-soft: #e6e9ef;
  --mt-bg: #f6f7fb;
  --mt-surface: #ffffff;
  --mt-row-hover: #f5f6f8;
  --mt-selected: #cce5ff;
  --mt-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  --mt-radius: 8px;
}
.mt {
  font-family: "Figtree", "Roboto", -apple-system, "Segoe UI", sans-serif;
  color: var(--mt-text);
  font-size: 14px;
  line-height: 1.45;
  background: var(--mt-bg);
  padding: 28px 0 48px;
  min-height: 70vh;
}
.mt *, .mt *::before, .mt *::after, .mt-panel *, .mt-panel *::before, .mt-panel *::after { box-sizing: border-box; }
.mt-panel button { font-family: inherit; }
.mt button { font-family: inherit; }
.mt-wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }

/* ---------- Cabeçalho do board ---------- */
.mt-board-head {
  background: var(--mt-surface);
  border-radius: var(--mt-radius) var(--mt-radius) 0 0;
  padding: 20px 24px 0;
  border: 1px solid var(--mt-border-soft);
  border-bottom: 0;
}
.mt-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mt-title { font-size: 26px; font-weight: 600; margin: 0; color: var(--mt-text); letter-spacing: -.2px; font-family: inherit; }
.mt-subtitle { margin: 4px 0 0; color: var(--mt-muted); font-size: 14px; }
.mt-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mt-muted); white-space: nowrap; }
.mt-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #00c875; box-shadow: 0 0 0 3px rgba(0, 200, 117, .2); }
.mt-live.is-loading .mt-live-dot { background: #fdab3d; box-shadow: 0 0 0 3px rgba(253, 171, 61, .25); }

.mt-views { display: flex; gap: 4px; margin-top: 16px; border-bottom: 1px solid var(--mt-border-soft); overflow-x: auto; }
.mt-view-tab {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 8px 12px; font-size: 14px; color: var(--mt-text); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: 4px 4px 0 0;
}
.mt-view-tab:hover { background: var(--mt-row-hover); }
.mt-view-tab[aria-selected="true"] { border-bottom-color: var(--mt-primary); font-weight: 600; }
.mt-view-tab svg { width: 16px; height: 16px; }

/* ---------- Toolbar ---------- */
.mt-toolbar {
  background: var(--mt-surface);
  border: 1px solid var(--mt-border-soft); border-top: 0;
  border-radius: 0 0 var(--mt-radius) var(--mt-radius);
  padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.mt-btn {
  appearance: none; border: 1px solid transparent; border-radius: 4px; cursor: pointer;
  padding: 7px 14px; font-size: 14px; line-height: 20px; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap;
}
.mt-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.mt-btn-primary { background: var(--mt-primary); color: #fff; }
.mt-btn-primary:hover, .mt-btn-primary:focus { background: var(--mt-primary-hover); color: #fff; text-decoration: none; }
.mt-btn-primary[disabled] { opacity: .5; cursor: not-allowed; }
.mt-btn-ghost { background: transparent; color: var(--mt-text); }
.mt-btn-ghost:hover { background: var(--mt-row-hover); }
.mt-btn-outline { background: var(--mt-surface); color: var(--mt-text); border-color: var(--mt-border); }
.mt-btn-outline:hover { background: var(--mt-row-hover); }
.mt-btn-success { background: #00854d; color: #fff; }
.mt-btn-success:hover { background: #007038; }
.mt-search {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--mt-border); border-radius: 4px;
  padding: 0 10px; height: 36px; background: var(--mt-surface); min-width: 200px; flex: 0 1 260px;
}
.mt-search:focus-within { border-color: var(--mt-primary); }
.mt-search svg { width: 16px; height: 16px; color: var(--mt-muted); flex-shrink: 0; }
.mt-search input { border: 0; outline: 0; font: inherit; width: 100%; background: transparent; color: var(--mt-text); padding: 0; height: 34px; }
.mt-select {
  appearance: none; border: 1px solid transparent; border-radius: 4px; background: transparent; font: inherit; color: var(--mt-text);
  padding: 7px 28px 7px 10px; cursor: pointer; height: 36px;
  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='none' stroke='%23676879' stroke-linecap='round' d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.mt-select:hover { background-color: var(--mt-row-hover); }
.mt-select:focus { border-color: var(--mt-primary); outline: 0; }
.mt-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 10px; border-radius: 4px; user-select: none; }
.mt-toggle:hover { background: var(--mt-row-hover); }
.mt-toggle input { accent-color: var(--mt-primary); width: 16px; height: 16px; margin: 0; }
.mt-spacer { flex: 1 1 auto; }

.mt-notice {
  background: #fff8e6; border: 1px solid #ffd77a; color: #6b4e00; padding: 10px 14px; border-radius: 6px;
  margin-bottom: 16px; font-size: 13px; display: flex; gap: 8px; align-items: flex-start;
}
.mt-notice svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

/* ---------- Grupos (tabela) ---------- */
.mt-group { margin-bottom: 32px; }
.mt-group-head { display: flex; align-items: center; gap: 8px; padding: 4px 0 8px; cursor: pointer; user-select: none; }
.mt-group-head:focus-visible { outline: 2px solid var(--mt-primary); outline-offset: 2px; border-radius: 4px; }
.mt-group-chevron { width: 18px; height: 18px; color: var(--group-color); transition: transform .15s; }
.mt-group.is-collapsed .mt-group-chevron { transform: rotate(-90deg); }
.mt-group-title { font-size: 18px; font-weight: 600; color: var(--group-color); margin: 0; font-family: inherit; }
.mt-group-count { color: var(--mt-muted); font-size: 14px; }
.mt-group.is-collapsed .mt-table-scroll { display: none; }
.mt-group-collapsed-bar {
  display: none; border-left: 6px solid var(--group-color); background: var(--mt-surface); border-radius: 4px;
  padding: 10px 14px; color: var(--mt-muted); border: 1px solid var(--mt-border-soft); border-left-width: 6px; border-left-color: var(--group-color);
}
.mt-group.is-collapsed .mt-group-collapsed-bar { display: flex; align-items: center; gap: 16px; }

.mt-table-scroll { overflow-x: auto; border-radius: 0 6px 6px 0; -webkit-overflow-scrolling: touch; }
.mt-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 980px; background: var(--mt-surface); table-layout: fixed; }
.mt-table th, .mt-table td {
  border-bottom: 1px solid var(--mt-border-soft); border-right: 1px solid var(--mt-border-soft);
  height: 40px; padding: 0 8px; text-align: center; font-weight: 400; font-size: 14px; vertical-align: middle;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.mt-table thead th { color: var(--mt-muted); font-size: 13px; border-top: 1px solid var(--mt-border-soft); height: 36px; background: var(--mt-surface); }
.mt-table th:first-child, .mt-table td:first-child {
  position: sticky; left: 0; z-index: 2; background: inherit; text-align: left;
  border-left: 6px solid var(--group-color); padding-left: 12px;
}
.mt-table thead th:first-child { border-top-left-radius: 6px; }
.mt-table tbody tr { background: var(--mt-surface); cursor: pointer; }
.mt-table tbody tr:hover { background: var(--mt-row-hover); }
.mt-table tbody tr.is-selected { background: var(--mt-selected); }
.mt-table tbody tr:focus-visible { outline: 2px solid var(--mt-primary); outline-offset: -2px; }
.mt-table tfoot td { border-bottom: 0; border-right: 0; height: 36px; background: transparent; }
.mt-table tfoot td:first-child { border-left-color: transparent; background: transparent; }

.mt-col-name { width: 34%; }
.mt-col-person { width: 96px; }
.mt-col-status { width: 172px; }
.mt-col-prio { width: 128px; }
.mt-col-date { width: 128px; }
.mt-col-org { width: 150px; }
.mt-col-upd { width: 130px; }

.mt-name-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mt-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mt-name-id { color: var(--mt-muted); font-size: 12px; flex-shrink: 0; }
.mt-name-spacer { flex: 1 1 auto; }
.mt-bubble {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 4px; color: #c3c6d4; background: none; border: 0; padding: 0; cursor: pointer;
}
.mt-table tr:hover .mt-bubble { color: var(--mt-muted); }
.mt-bubble svg { width: 20px; height: 20px; }
.mt-bubble.has-new { color: var(--mt-primary) !important; }
.mt-bubble.has-new::after {
  content: ""; position: absolute; top: 3px; right: 2px; width: 8px; height: 8px; border-radius: 50%;
  background: #e2445c; border: 2px solid var(--mt-surface);
}

/* Pílulas de status/prioridade (célula cheia, igual Monday) */
.mt-table td.mt-pill-cell { padding: 0; border-right: 1px solid #fff; }
.mt-pill-fill {
  display: flex; align-items: center; justify-content: center; height: 40px; width: 100%;
  color: #fff; font-size: 13px; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mt-pill-fill.is-empty { background: #c4c4c4; color: #fff; }
.mt-pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px;
  color: #fff; font-size: 12px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.mt-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px;
  background: #e5f4ff; color: #0060b9; font-size: 12px; white-space: nowrap;
}

/* Avatares */
.mt-avatar {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 600; flex-shrink: 0; overflow: hidden; vertical-align: middle;
  border: 2px solid var(--mt-surface);
}
.mt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mt-avatar.lg { width: 36px; height: 36px; font-size: 13px; }
.mt-avatar.empty { background: #fff; border: 1px dashed #c3c6d4; color: #c3c6d4; }
.mt-avatar.empty svg { width: 16px; height: 16px; }

.mt-date { display: inline-flex; align-items: center; gap: 4px; }
.mt-date.is-overdue { color: #d83a52; font-weight: 600; }
.mt-date svg { width: 14px; height: 14px; }
.mt-muted { color: var(--mt-muted); }

/* Barra de distribuição ("battery") */
.mt-battery { display: flex; height: 24px; width: 100%; max-width: 172px; margin: 0 auto; border-radius: 2px; overflow: hidden; background: #e6e9ef; }
.mt-battery span { display: block; height: 100%; }
.mt-group-collapsed-bar .mt-battery { max-width: 200px; margin: 0; }

/* ---------- Kanban ---------- */
.mt-kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.mt-kcol { background: #eceff8; border-radius: 8px; min-width: 272px; width: 272px; flex-shrink: 0; display: flex; flex-direction: column; max-height: 75vh; }
.mt-kcol-head { color: #fff; font-weight: 600; padding: 10px 14px; border-radius: 8px 8px 0 0; display: flex; justify-content: space-between; }
.mt-kcol-body { padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.mt-kcard {
  background: var(--mt-surface); border-radius: 6px; padding: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  cursor: pointer; border: 1px solid transparent; text-align: left; width: 100%; font: inherit; color: inherit;
}
.mt-kcard:hover { border-color: var(--mt-primary); }
.mt-kcard.is-selected { border-color: var(--mt-primary); background: #f0f7ff; }
.mt-kcard-title { font-weight: 500; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mt-kcard-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--mt-muted); }
.mt-kcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.mt-kempty { color: var(--mt-muted); font-size: 13px; text-align: center; padding: 16px 8px; }

/* ---------- Estados ---------- */
.mt-empty { background: var(--mt-surface); border-radius: var(--mt-radius); padding: 48px 24px; text-align: center; color: var(--mt-muted); border: 1px solid var(--mt-border-soft); }
.mt-empty h2 { color: var(--mt-text); font-size: 20px; margin: 0 0 8px; font-family: inherit; }
.mt-empty p { margin: 0 0 16px; }
.mt-skel { background: linear-gradient(90deg, #eceff8 25%, #f6f7fb 37%, #eceff8 63%); background-size: 400% 100%; animation: mt-shimmer 1.4s ease infinite; border-radius: 4px; }
@keyframes mt-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.mt-skel-row { height: 40px; margin-bottom: 1px; }

/* ---------- Painel lateral (item view) ---------- */
.mt-overlay { position: fixed; inset: 0; background: rgba(41, 47, 76, .35); z-index: 9998; opacity: 0; transition: opacity .2s; }
.mt-overlay.is-open { opacity: 1; }
.mt-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--mt-surface); z-index: 9999;
  box-shadow: var(--mt-shadow); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease;
  font-family: "Figtree", "Roboto", -apple-system, "Segoe UI", sans-serif; color: var(--mt-text); font-size: 14px;
}
.mt-panel.is-open { transform: translateX(0); }
.mt-panel-head { padding: 16px 24px 0; border-bottom: 1px solid var(--mt-border-soft); }
.mt-panel-top { display: flex; align-items: flex-start; gap: 12px; }
.mt-panel-close { appearance: none; background: none; border: 0; cursor: pointer; padding: 6px; border-radius: 4px; color: var(--mt-muted); margin-left: -6px; }
.mt-panel-close:hover { background: var(--mt-row-hover); }
.mt-panel-close svg { width: 20px; height: 20px; display: block; }
.mt-panel-title { font-size: 22px; font-weight: 600; margin: 0; flex: 1; min-width: 0; word-break: break-word; font-family: inherit; color: var(--mt-text); }
.mt-panel-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--mt-muted); font-size: 13px; margin: 10px 0 4px; }
.mt-panel-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mt-tabs { display: flex; gap: 4px; margin-top: 12px; overflow-x: auto; }
.mt-tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; cursor: pointer; font-size: 14px; color: var(--mt-text); white-space: nowrap; }
.mt-tab:hover { background: var(--mt-row-hover); }
.mt-tab[aria-selected="true"] { border-bottom-color: var(--mt-primary); font-weight: 600; }
.mt-tab-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e6e9ef; font-size: 11px; margin-left: 4px; line-height: 18px; text-align: center; }
.mt-panel-body { flex: 1; overflow-y: auto; padding: 20px 24px 32px; background: var(--mt-bg); }

/* Composer */
.mt-composer { background: var(--mt-surface); border: 1px solid var(--mt-border); border-radius: 8px; margin-bottom: 20px; transition: border-color .15s, box-shadow .15s; }
.mt-composer:focus-within { border-color: var(--mt-primary); box-shadow: 0 0 0 3px rgba(0, 115, 234, .12); }
.mt-composer textarea {
  display: block; width: 100%; border: 0; outline: 0; resize: vertical; min-height: 64px; max-height: 320px;
  font: inherit; padding: 14px 16px; border-radius: 8px 8px 0 0; color: var(--mt-text); background: transparent;
}
.mt-composer-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.mt-file-chip { display: inline-flex; align-items: center; gap: 6px; background: #eceff8; border-radius: 4px; padding: 3px 4px 3px 8px; font-size: 12px; max-width: 240px; }
.mt-file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-file-chip button { appearance: none; border: 0; background: none; cursor: pointer; color: var(--mt-muted); padding: 2px; display: flex; }
.mt-file-chip button svg { width: 12px; height: 12px; }
.mt-file-chip.is-uploading { opacity: .6; }
.mt-composer-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 12px; border-top: 1px solid var(--mt-border-soft); gap: 8px; }
.mt-composer-hint { font-size: 12px; color: var(--mt-muted); }
.mt-icon-btn { appearance: none; background: none; border: 0; cursor: pointer; padding: 6px; border-radius: 4px; color: var(--mt-muted); display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.mt-icon-btn:hover { background: var(--mt-row-hover); color: var(--mt-text); }
.mt-icon-btn svg { width: 18px; height: 18px; }
.mt-composer-disabled { background: var(--mt-surface); border: 1px dashed var(--mt-border); border-radius: 8px; padding: 14px 16px; color: var(--mt-muted); margin-bottom: 20px; }
.mt-error { color: #d83a52; font-size: 13px; padding: 0 16px 8px; }

/* Cards de atualização */
.mt-update { background: var(--mt-surface); border: 1px solid var(--mt-border-soft); border-radius: 8px; margin-bottom: 16px; }
.mt-update.is-team { border-left: 3px solid var(--mt-brand); }
.mt-update.is-pending { opacity: .6; }
.mt-update-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.mt-update-who { display: flex; flex-direction: column; min-width: 0; }
.mt-update-name { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mt-badge-team { background: var(--mt-brand); color: #fff; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: .3px; }
.mt-badge-you { background: #e5f4ff; color: #0060b9; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: .3px; }
.mt-update-time { color: var(--mt-muted); font-size: 12px; margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.mt-update-time svg { width: 14px; height: 14px; }
.mt-update-body { padding: 10px 16px 14px; overflow-wrap: anywhere; }
.mt-update-body p { margin: 0 0 8px; }
.mt-update-body p:last-child { margin-bottom: 0; }
.mt-update-body img { max-width: 100%; height: auto; border-radius: 4px; }
.mt-update-body a { color: var(--mt-primary); }
.mt-update-body pre, .mt-update-body code { white-space: pre-wrap; background: #f5f6f8; border-radius: 4px; padding: 2px 4px; font-size: 13px; }
.mt-update-body blockquote { border-left: 3px solid var(--mt-border); margin: 8px 0; padding-left: 10px; color: var(--mt-muted); }
.mt-update-body table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.mt-update-body td, .mt-update-body th { border: 1px solid var(--mt-border-soft); padding: 4px 6px; }
.mt-update-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.mt-attach {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--mt-border-soft); border-radius: 6px; padding: 6px 10px 6px 6px;
  text-decoration: none; color: var(--mt-text); max-width: 260px; background: var(--mt-surface);
}
.mt-attach:hover { border-color: var(--mt-primary); text-decoration: none; }
.mt-attach-thumb { width: 36px; height: 36px; border-radius: 4px; background: #eceff8; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; color: var(--mt-muted); }
.mt-attach-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mt-attach-thumb svg { width: 18px; height: 18px; }
.mt-attach-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-attach-size { font-size: 11px; color: var(--mt-muted); }
.mt-feed-empty { text-align: center; color: var(--mt-muted); padding: 32px 16px; }

/* Detalhes */
.mt-details { background: var(--mt-surface); border: 1px solid var(--mt-border-soft); border-radius: 8px; }
.mt-detail-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--mt-border-soft); align-items: center; }
.mt-detail-row:last-child { border-bottom: 0; }
.mt-detail-label { color: var(--mt-muted); font-size: 13px; }
.mt-detail-value { min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mt-files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.mt-files-grid .mt-attach { max-width: none; }

/* Toast */
.mt-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #323338; color: #fff;
  padding: 10px 18px; border-radius: 6px; z-index: 10000; opacity: 0; transition: all .2s; font-size: 14px; pointer-events: none;
  font-family: "Figtree", "Roboto", sans-serif; max-width: calc(100% - 32px);
}
.mt-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.mt-toast.is-error { background: #d83a52; }

.mt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.mt-panel-open { overflow: hidden; }

@media (max-width: 768px) {
  .mt { padding-top: 16px; }
  .mt-board-head { padding: 16px 16px 0; }
  .mt-toolbar { padding: 12px 16px; }
  .mt-title { font-size: 22px; }
  .mt-search { flex: 1 1 100%; min-width: 0; }
  .mt-panel-head { padding: 12px 16px 0; }
  .mt-panel-body { padding: 16px; }
  .mt-detail-row { grid-template-columns: 1fr; gap: 4px; }
  .mt-composer-hint { display: none; }
}

/* ---------- Gantt ---------- */
.mt [hidden] { display: none !important; }
.mt-seg { display: inline-flex; border: 1px solid var(--mt-border); border-radius: 4px; overflow: hidden; height: 36px; }
.mt-seg button { appearance: none; border: 0; background: var(--mt-surface); padding: 0 12px; font: inherit; font-size: 13px; color: var(--mt-text); cursor: pointer; border-right: 1px solid var(--mt-border); }
.mt-seg button:last-child { border-right: 0; }
.mt-seg button:hover { background: var(--mt-row-hover); }
.mt-seg button[aria-pressed="true"] { background: #cce5ff; color: #0060b9; font-weight: 600; }

.mt-gantt { --g-left: 300px; --g-row: 40px; background: var(--mt-surface); border: 1px solid var(--mt-border-soft); border-radius: var(--mt-radius); overflow: hidden; }
.mt-g-scroll { overflow: auto; max-height: 72vh; position: relative; -webkit-overflow-scrolling: touch; }
.mt-g-head, .mt-g-row { display: flex; width: calc(var(--g-left) + var(--g-width)); }
.mt-g-head { position: sticky; top: 0; z-index: 4; background: var(--mt-surface); border-bottom: 1px solid var(--mt-border); }
.mt-g-left {
  position: sticky; left: 0; z-index: 3; width: var(--g-left); min-width: var(--g-left); background: inherit;
  display: flex; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid var(--mt-border); height: var(--g-row);
  overflow: hidden; white-space: nowrap;
}
.mt-g-corner { background: var(--mt-surface); color: var(--mt-muted); font-size: 13px; height: 56px; z-index: 5; }
.mt-g-track { position: relative; width: var(--g-width); min-width: var(--g-width); height: var(--g-row); }
.mt-g-htrack { height: 56px; }
.mt-g-hrow { position: relative; height: 28px; border-bottom: 1px solid var(--mt-border-soft); }
.mt-g-hrow2 { border-bottom: 0; }
.mt-g-hcell { position: absolute; top: 0; height: 28px; line-height: 28px; padding-left: 8px; font-size: 12px; font-weight: 600; color: var(--mt-text); border-left: 1px solid var(--mt-border-soft); text-transform: capitalize; overflow: hidden; white-space: nowrap; }
.mt-g-dcell { position: absolute; top: 0; height: 28px; line-height: 28px; font-size: 11px; color: var(--mt-muted); text-align: center; border-left: 1px solid var(--mt-border-soft); }
.mt-g-dcell.is-we { background: #f5f6f8; }
.mt-g-dcell.is-today span { background: var(--mt-primary); color: #fff; border-radius: 10px; padding: 1px 5px; }
.mt-g-tick { position: absolute; top: 0; height: 28px; border-left: 1px solid var(--mt-border-soft); }

.mt-g-body { position: relative; }
.mt-g-bg { position: absolute; top: 0; bottom: 0; left: var(--g-left); pointer-events: none; z-index: 0; }
.mt-g-we { position: absolute; top: 0; bottom: 0; background: rgba(103, 104, 121, .05); }
.mt-g-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--mt-primary); z-index: 2; }
.mt-g-today span { position: absolute; top: 2px; left: 4px; font-size: 10px; font-weight: 600; color: #fff; background: var(--mt-primary); padding: 0 5px; border-radius: 3px; }

.mt-g-row { background: var(--mt-surface); border-bottom: 1px solid var(--mt-border-soft); position: relative; z-index: 1; }
.mt-g-row[data-req] { cursor: pointer; }
.mt-g-row[data-req]:hover, .mt-g-row[data-req]:hover .mt-g-left { background: var(--mt-row-hover); }
.mt-g-row.is-selected, .mt-g-row.is-selected .mt-g-left { background: var(--mt-selected); }
.mt-g-row .mt-g-track { background: transparent; }
.mt-g-left:focus-visible { outline: 2px solid var(--mt-primary); outline-offset: -2px; }
.mt-g-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.mt-g-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.mt-g-flag { color: #d83a52; display: inline-flex; flex-shrink: 0; }
.mt-g-flag svg { width: 14px; height: 14px; }

.mt-g-grow, .mt-g-grow .mt-g-left { background: #f5f6f8; }
.mt-g-grow .mt-g-left { cursor: pointer; font-weight: 600; color: var(--group-color); border-left: 6px solid var(--group-color); padding-left: 8px; }
.mt-g-grow .mt-group-chevron { width: 16px; height: 16px; color: var(--group-color); transition: transform .15s; flex-shrink: 0; }
.mt-g-grow.is-collapsed .mt-group-chevron { transform: rotate(-90deg); }
.mt-g-gtitle { overflow: hidden; text-overflow: ellipsis; }
.mt-g-gcount { color: var(--mt-muted); font-weight: 400; font-size: 12px; }
.mt-g-gbar { position: absolute; top: 16px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--group-color) 30%, #fff); overflow: hidden; }
.mt-g-gfill { position: absolute; inset: 0 auto 0 0; background: var(--group-color); }

.mt-g-bar {
  position: absolute; top: 8px; height: 24px; border-radius: 12px; background: var(--bar); overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12); display: flex; align-items: center; z-index: 2;
}
.mt-g-bar::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .45); }
.mt-g-fill { position: absolute; inset: 0 auto 0 0; background: var(--bar); z-index: 1; }
.mt-g-label { position: relative; z-index: 2; color: #fff; font-size: 12px; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.mt-g-bar.is-open { background: repeating-linear-gradient(-45deg, var(--bar) 0 6px, color-mix(in srgb, var(--bar) 60%, #fff) 6px 12px); }
.mt-g-bar.is-late { box-shadow: 0 0 0 2px #d83a52; }
.mt-g-outlabel { position: absolute; top: 0; height: var(--g-row); line-height: var(--g-row); font-size: 12px; color: var(--mt-text); white-space: nowrap; z-index: 2; }
.mt-g-plan { position: absolute; top: 6px; height: 28px; border: 1.5px dashed #9699a6; border-radius: 14px; z-index: 1; }
.mt-g-diamond { position: absolute; top: 14px; width: 12px; height: 12px; background: #323338; transform: rotate(45deg); z-index: 3; border: 2px solid #fff; }

.mt-g-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--mt-border-soft); font-size: 12px; color: var(--mt-muted); }
.mt-g-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mt-g-legend i { display: inline-block; }
.mt-g-legend .lg-bar { width: 22px; height: 10px; border-radius: 5px; background: #a5c8fd; }
.mt-g-legend .lg-fill { width: 22px; height: 10px; border-radius: 5px; background: #579bfc; }
.mt-g-legend .lg-plan { width: 22px; height: 10px; border-radius: 5px; border: 1.5px dashed #9699a6; }
.mt-g-legend .lg-diamond { width: 9px; height: 9px; background: #323338; transform: rotate(45deg); }
.mt-g-legend .lg-today { width: 2px; height: 12px; background: var(--mt-primary); }
.mt-g-legend .lg-late { width: 22px; height: 10px; border-radius: 5px; box-shadow: 0 0 0 2px #d83a52; background: #fdab3d; }
.mt-g-mini { display: inline-block; width: 80px; height: 6px; border-radius: 3px; background: #e6e9ef; overflow: hidden; vertical-align: middle; }
.mt-g-mini span { display: block; height: 100%; background: #00c875; }

@media (max-width: 768px) {
  .mt-gantt { --g-left: 150px; }
  .mt-g-left .mt-name-id { display: none; }
}

/* ---------- Nova solicitação ---------- */
.mt-quickadd {
  display: flex; align-items: center; gap: 8px; background: var(--mt-surface); border: 1px solid var(--mt-border-soft); border-top: 0;
  border-left: 6px solid color-mix(in srgb, var(--group-color, #579bfc) 45%, #fff); height: 40px; padding: 0 12px; border-radius: 0 0 6px 6px;
}
.mt-group.is-collapsed .mt-quickadd { display: none; }
.mt-quickadd:focus-within { border-color: var(--mt-primary); border-left-color: var(--group-color, var(--mt-primary)); }
.mt-quickadd-plus { display: inline-flex; color: var(--mt-muted); }
.mt-quickadd-plus svg { width: 14px; height: 14px; }
.mt-quickadd-input { border: 0; outline: 0; font: inherit; color: var(--mt-text); background: transparent; width: 100%; height: 36px; padding: 0; }
.mt-quickadd-input::placeholder { color: var(--mt-muted); }
.mt-quickadd-input:focus::placeholder { color: #c3c6d4; }
.mt-kcol .mt-quickadd { border: 1px dashed #c3c6d4; border-radius: 6px; background: rgba(255, 255, 255, .7); height: 40px; }
.mt-kcol .mt-quickadd:focus-within { border-style: solid; border-color: var(--mt-primary); background: #fff; }

.mt-cform { display: flex; flex-direction: column; gap: 18px; }
.mt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: none; }
.mt-field-row > .mt-field { flex: 1 1 220px; }
.mt-field > label, .mt-flabel { font-size: 13px; font-weight: 600; color: var(--mt-text); }
.mt-req { color: #d83a52; }
.mt-field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.mt-field-row:empty { display: none; }
.mt-input {
  font: inherit; color: var(--mt-text); background: var(--mt-surface); border: 1px solid var(--mt-border); border-radius: 6px;
  height: 40px; padding: 0 12px; width: 100%; outline: 0; transition: border-color .15s, box-shadow .15s;
}
select.mt-input { appearance: auto; }
.mt-input:focus { border-color: var(--mt-primary); box-shadow: 0 0 0 3px rgba(0, 115, 234, .12); }
.mt-input-lg { height: 48px; font-size: 18px; font-weight: 500; }
.mt-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-pick {
  appearance: none; font: inherit; font-size: 13px; cursor: pointer; height: 32px; padding: 0 14px; border-radius: 16px;
  border: 1.5px solid var(--c, var(--mt-border)); color: var(--c, var(--mt-text)); background: var(--mt-surface); transition: all .12s;
}
.mt-pick:hover { background: color-mix(in srgb, var(--c, #579bfc) 10%, #fff); }
.mt-pick.is-on { background: var(--c); color: #fff; }
.mt-pick-soft { --c: #0073ea; }
.mt-pick:focus-visible { outline: 2px solid var(--mt-primary); outline-offset: 2px; }
.mt-cfoot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; position: sticky; bottom: -32px; background: var(--mt-bg); padding-bottom: 8px; }
.mt-flink { font-size: 13px; color: var(--mt-muted); }
.mt-flink:hover { color: var(--mt-primary); }
.mt-cform .mt-composer textarea { min-height: 140px; }
.mt-table tbody tr.is-new, .mt-kcard.is-new { animation: mt-flash 1.6s ease; }
@keyframes mt-flash { 0% { background: #fff3c4; } 100% { background: inherit; } }
.mt-pick.is-on:hover { background: var(--c); filter: brightness(1.08); }

/* ---------- Cores de status Zendesk nos cards ---------- */
.mt-kcard { border-left: 4px solid var(--card, #c3c6d4); }
.mt-kcard:hover, .mt-kcard.is-selected { border-left-color: var(--card, var(--mt-primary)); }
.mt-kcol-head { border-bottom: 0; }
.mt-g-label { color: var(--bartext, #fff); text-shadow: none; }

/* ---------- Horas consumidas (publicadas pelo app Consumo de Horas) ---------- */
.mt-col-hours { width: 104px; }
.mt-col-share { width: 150px; }
.mt-table td.mt-hours { font-variant-numeric: tabular-nums; }
.mt-table tfoot td.mt-hours-sum { line-height: 1.15; font-size: 13px; }
.mt-hours-sum strong { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.mt-hours-sum span { color: var(--mt-muted); font-size: 11px; }
.mt-chip-hours { display: inline-flex; align-items: center; gap: 4px; }
.mt-chip-hours svg { width: 12px; height: 12px; }
.mt-table tbody tr.is-static { cursor: default; }
.mt-table td a.mt-name-text { color: var(--mt-text); text-decoration: underline; text-decoration-color: var(--mt-border); }

.mt-h { background: var(--mt-surface); border: 1px solid var(--mt-border-soft); border-radius: var(--mt-radius); padding: 20px 24px 24px; margin-top: 16px; }
.mt-h-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.mt-h-kpi { border: 1px solid var(--mt-border-soft); border-radius: var(--mt-radius); padding: 14px 16px; border-left: 4px solid var(--mt-primary); }
.mt-h-kpi.is-warning { border-left-color: #fdab3d; }
.mt-h-kpi.is-danger { border-left-color: #e2445c; }
.mt-h-kpi-label { font-size: 13px; color: var(--mt-muted); }
.mt-h-kpi-value { font-size: 26px; font-weight: 600; letter-spacing: -.3px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.mt-h-kpi-sub { font-size: 12px; color: var(--mt-muted); }
.mt-h-meter { height: 8px; border-radius: 4px; background: var(--mt-border-soft); margin-top: 12px; overflow: hidden; }
.mt-h-meter span { display: block; height: 100%; background: #00c875; border-radius: 4px; }
.mt-h-meter span.is-warning { background: #fdab3d; }
.mt-h-meter span.is-danger { background: #e2445c; }

.mt-h-card { margin-top: 20px; }
.mt-h-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mt-h-card-head h2 { font-size: 16px; font-weight: 600; margin: 0; font-family: inherit; color: var(--mt-text); }
.mt-h-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mt-muted); }
.mt-h-legend i { width: 18px; border-top: 2px dashed #e2445c; }

.mt-h-chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; height: 200px; padding: 0 4px; border-bottom: 1px solid var(--mt-border-soft); }
.mt-h-col { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: stretch; min-width: 0; color: var(--mt-muted); }
.mt-h-val { font-size: 12px; height: 18px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mt-h-bar { position: relative; flex: 1 1 auto; display: flex; align-items: flex-end; justify-content: center; }
.mt-h-bar > span { width: min(56px, 70%); background: #c5dcfa; border-radius: 4px 4px 0 0; min-height: 2px; transition: background .15s; }
.mt-h-bar > span.is-over { background: #f4b6c0; }
.mt-h-col:hover .mt-h-bar > span { background: #8fbcf5; }
.mt-h-col.is-current { color: var(--mt-text); font-weight: 600; }
.mt-h-col.is-current .mt-h-bar > span { background: var(--mt-primary); }
.mt-h-col.is-current .mt-h-bar > span.is-over { background: #e2445c; }
.mt-h-col:focus-visible { outline: 2px solid var(--mt-primary); outline-offset: 2px; border-radius: 4px; }
.mt-h-q { position: absolute; left: 0; right: 0; border-top: 2px dashed #e2445c; pointer-events: none; }
.mt-h-lbl { font-size: 12px; height: 24px; line-height: 24px; text-align: center; }

.mt-h-table { min-width: 760px; }
.mt-h-share { position: relative; height: 18px; background: var(--mt-border-soft); border-radius: 9px; overflow: hidden; }
.mt-h-share span { position: absolute; inset: 0 auto 0 0; background: #c5dcfa; }
.mt-h-share small { position: relative; font-size: 12px; line-height: 18px; font-variant-numeric: tabular-nums; }
.mt-h-empty { padding: 28px 16px; text-align: center; color: var(--mt-muted); border: 1px dashed var(--mt-border); border-radius: var(--mt-radius); }
.mt-h-note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: 12px; color: var(--mt-muted); }
.mt-h-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
#mt-mes-label { min-width: 150px; font-weight: 600; }

@media (max-width: 768px) {
  .mt-h { padding: 16px; }
  .mt-h-chart { gap: 6px; height: 170px; }
  .mt-h-val { font-size: 10px; }
  #mt-mes-label { min-width: 0; }
  .mt-h-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mt-h-kpi { padding: 10px 12px; }
  .mt-h-kpi-value { font-size: 20px; }
}

/* ---------- Abertura (data + tempo de vida) ---------- */
.mt-col-open { width: 112px; }
.mt-opened { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.mt-opened span { font-size: 13px; }
.mt-opened small { font-size: 11px; color: var(--mt-muted); }
.mt-opened.is-old small { color: #d83a52; font-weight: 600; }
