:root{
  --bg: #f6f8fc;
  --surface: rgba(255,255,255,.75);
  --surface-solid: #ffffff;
  --text: #0c1220;
  --muted: rgba(12,18,32,.65);
  --border: rgba(12,18,32,.10);
  --shadow: 0 12px 35px rgba(12,18,32,.10);

  --primary: #2563eb;
  --primary-2: #5b8cff;

  --danger: #ef4444;
  --radius: 18px;
  --radius-2: 26px;

  --blur: 16px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", "Noto Sans", "Liberation Sans", sans-serif;
}

html, body { height: 100%; }
body{
  margin:0;
  font-family: var(--font);
  background:
    radial-gradient(900px 380px at 10% 0%, rgba(37,99,235,.18), transparent 55%),
    radial-gradient(900px 380px at 90% 0%, rgba(91,140,255,.14), transparent 55%),
    var(--bg);
  color: var(--text);
}

*{ box-sizing: border-box; }
a{ color: inherit; }

.app{ min-height:100%; display:flex; flex-direction:column; }
.main{ flex:1; display:flex; }

/* ===== Topbar (mini) =====
   Fica flutuando no topo (não empurra o conteúdo).
   Mantém só o avatar no canto superior direito.
*/
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  height: 52px;
  padding: 10px 14px;

  /* visual discreto */
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
}

.brand{ display:flex; gap:12px; align-items:center; }
.brand-mark{
  width:42px; height:42px;
  border-radius: 14px;
  display:grid; place-items:center;
  color:#fff;
  font-weight:800;
  letter-spacing:.6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 28px rgba(37,99,235,.25);
}
.brand-title{ font-weight:800; line-height:1.05; }
.brand-subtitle{ font-size:12px; color: var(--muted); margin-top:2px; }

.topbar-actions{ display:flex; align-items:center; gap:10px; }

.user-pill{
  display:flex; gap:10px; align-items:center;
  padding: 8px 10px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.7);
  border-radius: 999px;
  backdrop-filter: blur(var(--blur));
}
.avatar{
  width:34px; height:34px;
  border-radius: 999px;
  display:grid; place-items:center;
  font-weight:700;
  background: rgba(37,99,235,.12);
  border:1px solid rgba(37,99,235,.18);
}
.user-name{ font-weight:700; font-size:13px; }
.user-role{ font-size:12px; color: var(--muted); margin-top:1px; }

.view{ width:100%; padding: 18px; }

.container{ width:100%; max-width: var(--max); margin: 0 auto; }

.auth-grid{
  width:100%;
  max-width: var(--max);
  margin: 28px auto;
  display:grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
}
@media (max-width: 960px){
  .auth-grid{ grid-template-columns: 1fr; }
  .auth-side{ display:none; }
  .hide-sm{ display:none; }
}

.auth-card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  border-radius: var(--radius-2);
  padding: 22px;
}

.auth-header h1{ margin:0 0 6px 0; font-size: 28px; }
.auth-header p{ margin:0 0 18px 0; color: var(--muted); }

.form{ display:flex; flex-direction:column; gap: 12px; }
.field{ display:flex; flex-direction:column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input{
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0 12px;
  outline:none;
  background: rgba(255,255,255,.85);
  color: var(--text);
}
.field input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.btn{
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  color: var(--text);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 0 14px;
  font-weight:700;
}
.btn:disabled{ opacity:.55; cursor:not-allowed; }
.btn.primary{
  border: none;
  color:#fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 28px rgba(37,99,235,.22);
}
.btn.ghost{ background: transparent; }
.btn.link{
  background: transparent;
  border: none;
  color: rgba(37,99,235,.95);
  height: auto;
  padding: 0;
  justify-content:flex-start;
}
.btn.danger{
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.10);
  color: #b91c1c;
}

.alert{
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(239,68,68,.22);
  background: rgba(239,68,68,.08);
  color: #991b1b;
  font-size: 13px;
}

.auth-side .glass{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  border-radius: var(--radius-2);
  padding: 22px;
  height: 100%;
}
.auth-side h2{ margin:0 0 10px 0; font-size: 26px; }
.auth-side p{ margin:0 0 16px 0; color: var(--muted); line-height: 1.55; }
.bullets{ margin:0; padding-left: 18px; color: var(--muted); line-height:1.9; }
.hint{
  margin-top: 16px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  color: var(--muted);
  font-size: 13px;
}
.dot{
  width:10px; height:10px; border-radius:99px;
  background: rgba(37,99,235,.35);
  box-shadow: 0 0 0 6px rgba(37,99,235,.10);
  margin-top: 4px;
}

.page-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-top: 6px;
  margin-bottom: 14px;
}
.page-header h1{ margin:0; font-size: 28px; }
.muted{ color: var(--muted); margin: 6px 0 0 0; }

.chips{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  color: rgba(12,18,32,.75);
  font-size: 12px;
}

.chip.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}

.chips-container .chip {
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.chips-container .chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.card{
  grid-column: span 4;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor:pointer;
  position:relative;
  overflow:hidden;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(12,18,32,.12);
}
.card .title{ font-weight:800; margin:0; }
.card .desc{ color: var(--muted); margin: 6px 0 0 0; line-height:1.45; font-size: 13px; }
.card .meta{ margin-top: 12px; display:flex; gap:8px; flex-wrap:wrap; }
.badge{
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
}

@media (max-width: 980px){
  .card{ grid-column: span 6; }
}
@media (max-width: 620px){
  .card{ grid-column: span 12; }
}

.panel{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 16px;
}

.footer-note{
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  display:flex; gap:10px; align-items:center;
}
.kbd{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  padding: 6px 8px;
  border-radius: 10px;
  font-weight: 800;
}

/* ===== Modais ===== */
.modal{ position:fixed; inset:0; z-index:50; display:block; }
.modal[hidden]{ display:none; }
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(12,18,32,.45);
  backdrop-filter: blur(6px);
}
.modal-card{
  position:relative;
  width: min(820px, calc(100% - 24px));
  margin: 60px auto;
  border-radius: var(--radius-2, 18px);
  border: 1px solid var(--border, rgba(12,18,32,.10));
  background: rgba(255,255,255,.92);
  box-shadow: 0 22px 70px rgba(12,18,32,.22);
  overflow:hidden;
}
.modal-header{
  padding: 16px 16px 10px 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  border-bottom: 1px solid var(--border, rgba(12,18,32,.10));
}
.modal-header h2{ margin:0; }
.modal-body{ padding: 14px 16px; }
.modal-footer{
  padding: 14px 16px;
  border-top: 1px solid var(--border, rgba(12,18,32,.10));
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.panel.subtle{
  background: rgba(12,18,32,.02);
  border: 1px dashed rgba(12,18,32,.14);
}

/* ===== Chips selecionáveis ===== */
.chips-select{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding: 10px;
  border: 1px solid rgba(12,18,32,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.65);
}
.chip-option{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(12,18,32,.14);
  background: rgba(255,255,255,.9);
  cursor:pointer;
  user-select:none;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
  font-size: 13px;
}
.chip-option:hover{ transform: translateY(-1px); }
.chip-option .dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(12,18,32,.35);
}
.chip-option.selected{
  border-color: rgba(249,115,22,.45);
  background: rgba(249,115,22,.10);
}
.chip-option.selected .dot{
  background: rgba(249,115,22,.95);
}
.badge.small{
  font-size: 11px;
  padding: 4px 8px;
}

/* ===== Table ===== */
.table table{ width:100%; border-collapse: collapse; }
.table th, .table td{ padding: 10px 10px; border-bottom: 1px solid rgba(12,18,32,.08); text-align:left; }
.table th{ font-size: 12px; color: rgba(12,18,32,.65); }
.table td{ font-size: 13px; }
.action-row{ display:flex; gap:8px; }
.btn.sm{ padding: 6px 10px; font-size: 12px; border-radius: 12px; }



/* =========================
   LOGIN (split modern)
   ========================= */
.login-split{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 30% 70%; /* login / roxo */
  background: #fff;
}


.login-left{
  padding: 48px 12px 48px 32px; /* menos espaço à direita para encostar no roxo */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  align-items: flex-start; /* card e textos “colam” mais no painel roxo */
}

.login-brand{
  width: 100%;
  display: flex;
  justify-content: center; /* CENTRALIZA o logo */
  margin-bottom: 24px;
}

/* Logo imagem (substitui o badge de texto) */
.login-logo-img{
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
}

.logo-badge{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 10px 25px rgba(12,18,32,.06);
}
.logo-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #5b5bd6;
  box-shadow: 0 0 0 6px rgba(91,91,214,.15);
}
.logo-text{
  font-weight: 800;
  letter-spacing: .2px;
}

.login-head h1{
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.login-head .muted{ margin-top: 8px; }

.login-card{
  width: 100%;
  max-width: 520px;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  box-shadow: 0 18px 45px rgba(12,18,32,.10);
}

.pwd-wrap{
  position: relative;
  display:block; /* evita o input encolher */
}
.pwd-wrap input{
  width: 100%;
  padding-right: 46px; /* espaço pro olho */
}
.pwd-toggle{
  position:absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
  opacity: .75;
}
.pwd-toggle:hover{ opacity: 1; }


.login-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 14px;
}

.check{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 13px;
  color: rgba(12,18,32,.75);
}
.check input{ width: 16px; height: 16px; }

.link-btn{
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: #5b5bd6;
}
.link-btn:hover{ text-decoration: underline; }

.login-btn{
  width: 100%;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #5b5bd6;
}
.login-btn:hover{ filter: brightness(1.03); }

.login-note{
  margin-top: 14px;
  font-size: 12px;
}

.login-right{
  background: radial-gradient(1200px 900px at 30% 20%, rgba(255,255,255,.18), transparent 50%),
              linear-gradient(135deg, #5b5bd6, #6a5cff 55%, #5b8cff);
  padding: 0; /* menos espaço à esquerda */
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.login-illustration{
  width: min(720px, 90%);
  border-radius: 20px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 55px rgba(0,0,0,.18);
  padding: 18px;
}
.login-illustration img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 14px;
}

.login-right-text{
  text-align:center;
  color: rgba(255,255,255,.92);
}
.login-right-title{
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .2px;
}
.login-right-sub{
  margin-top: 6px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,.78);
}

@media (max-width: 980px){
  .login-split{ grid-template-columns: 1fr; }
  .login-right{ display:none; }
  .login-left{ padding: 34px 18px; align-items: stretch; }
  .login-card{ max-width: 520px; }
}


.is-login .topbar{ display:none; }

.login-left > *{
  width: 100%;
  max-width: 520px;
}

.field input{ width:100%; }


.result-card{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(12,18,32,.10);
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 45px rgba(12,18,32,.08);
}

.result-card.hidden{ display:none; }

.result-card.success{
  border-color: rgba(46, 204, 113, .35);
  background: rgba(46, 204, 113, .08);
}

.result-card.error{
  border-color: rgba(231, 76, 60, .35);
  background: rgba(231, 76, 60, .08);
}

.result-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.result-title h4{
  margin:0;
  font-size: 14px;
  font-weight: 900;
}

.result-body{
  font-size: 13px;
  color: rgba(12,18,32,.85);
  line-height: 1.35;
}

.result-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.kv{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  justify-content:space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(12,18,32,.08);
}

.kv b{ font-size: 12px; color: rgba(12,18,32,.65); }
.kv code{
  font-size: 12px;
  word-break: break-all;
  color: rgba(12,18,32,.92);
}

.result-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-mini{
  border: 1px solid rgba(12,18,32,.10);
  background: rgba(255,255,255,.75);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 800;
  font-size: 13px;
}

.btn-mini.primary{
  background: #5b5bd6;
  border-color: rgba(91,91,214,.35);
  color: #fff;
}

.btn-mini:hover{ filter: brightness(1.03); }


/* =========================
   MODAL EMPRESA - POLIMENTO
   ========================= */

/* deixa o header mais alinhado e com “respiro” */
.modal-header{
  align-items: center;
}

.modal-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* botão X do modal (se estiver usando classe btn-ghost no X) */
.btn.btn-ghost{
  border: 1px solid rgba(12,18,32,.10);
  background: rgba(255,255,255,.75);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 14px;
  display:grid;
  place-items:center;
}
.btn.btn-ghost:hover{
  background: rgba(12,18,32,.04);
  border-color: rgba(12,18,32,.14);
}

/* =========================
   BOTÕES (compatibilidade com app.js)
   ========================= */

.btn.btn-secondary{
  border: 1px solid rgba(12,18,32,.12);
  background: rgba(255,255,255,.70);
  color: rgba(12,18,32,.88);
}
.btn.btn-secondary:hover{
  background: rgba(12,18,32,.03);
}

.btn.btn-danger{
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.10);
  color: #b91c1c;
}
.btn.btn-danger:hover{
  background: rgba(239,68,68,.14);
}

.company-detail-modal-card{
  width: min(1120px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
}

.company-detail-modal-head{
  padding: 20px 22px 16px;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.08), transparent 36%),
    linear-gradient(180deg, rgba(248,250,252,.98), rgba(255,255,255,.94));
}

.company-detail-heading h2{
  margin: 0;
  font-size: 34px;
  letter-spacing: -.02em;
}

.company-detail-heading .muted{
  margin-top: 8px;
}

.company-detail-status-row{
  margin-top: 10px;
}

.company-detail-head-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.company-detail-modal-body{
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

.company-detail-users-panel{
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(12,18,32,.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,250,252,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  min-height: 0;
  flex: 1;
}

.company-detail-users-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.company-detail-users-header h3{
  margin: 0;
  font-size: 18px;
}

.company-detail-users-header .muted{
  margin-top: 4px;
}

.company-detail-toolbar{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.company-detail-stats{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.company-stat-card{
  min-width: 110px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(12,18,32,.08);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 24px rgba(12,18,32,.04);
}

.company-stat-card strong{
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1;
}

.company-stat-label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(12,18,32,.55);
}

.company-stat-card--success{
  border-color: rgba(34,197,94,.18);
  background: linear-gradient(180deg, rgba(240,253,244,.94), rgba(255,255,255,.92));
}

.company-stat-card--success strong{
  color: #15803d;
}

.company-stat-card--danger{
  border-color: rgba(239,68,68,.18);
  background: linear-gradient(180deg, rgba(254,242,242,.94), rgba(255,255,255,.92));
}

.company-stat-card--danger strong{
  color: #b91c1c;
}

.company-users-search-field{
  min-width: min(340px, 100%);
  flex: 1 1 340px;
}

.company-users-search-field input{
  width: 100%;
}

.company-detail-table-wrap{
  flex: 1;
  min-height: 0;
  max-height: min(58vh, 620px);
  overflow: auto;
}

.company-detail-table-wrap table{
  min-width: 860px;
}

.company-user-row td{
  vertical-align: middle;
}

.company-user-cell{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.company-user-avatar{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 14px;
  color: rgba(37,99,235,.95);
  background: linear-gradient(135deg, rgba(219,234,254,.96), rgba(239,246,255,.98));
  border: 1px solid rgba(37,99,235,.12);
}

.company-user-text,
.company-user-data{
  min-width: 0;
}

.company-user-data{
  color: rgba(12,18,32,.78);
  word-break: break-word;
}

.company-role-select{
  min-width: 118px;
  width: 100%;
}

.company-user-actions{
  flex-wrap: wrap;
}

.company-user-actions .btn{
  min-width: 120px;
}

.company-detail-empty{
  margin-top: 0;
  text-align: center;
  color: rgba(12,18,32,.68);
}

/* =========================
   BADGES (status)
   ========================= */

.badge-success{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.25);
  background: rgba(34,197,94,.10);
  color: rgba(12,18,32,.88);
}
.badge-danger{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.10);
  color: rgba(153,27,27,.95);
}

/* bolinha antes do texto do badge (opcional, fica lindo) */
.badge-success::before,
.badge-danger::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  display:inline-block;
  background: currentColor;
  opacity:.7;
}

/* =========================
   TABELA - mais bonita
   ========================= */

/* garante scroll horizontal no mobile */
.table{
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(12,18,32,.10);
  background: rgba(255,255,255,.65);
}

/* tabela mais “clean” */
.table table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px; /* evita quebrar colunas no modal */
}

.table th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(246,248,252,.92);
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: rgba(12,18,32,.65);
}

.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(12,18,32,.06);
}

/* zebra + hover */
.table tbody tr:nth-child(even){
  background: rgba(12,18,32,.015);
}
.table tbody tr:hover{
  background: rgba(37,99,235,.05);
}

/* =========================
   CÉLULA COM TÍTULO + SUBTEXTO
   (se o app.js renderizar <div class="cell-main"> e <div class="cell-sub">)
   ========================= */

.cell-main{
  font-weight: 800;
  color: rgba(12,18,32,.92);
  line-height: 1.15;
}
.cell-sub{
  margin-top: 2px;
  font-size: 12px;
  color: rgba(12,18,32,.60);
  line-height: 1.2;
}

/* =========================
   AÇÕES - ícones e botões pequenos
   ========================= */

.actions{
  display:flex;
  gap:8px;
  justify-content:flex-start;
  align-items:center;
}

.btn.sm{
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 12px;
}

/* input pequeno caso use class="input small" */
.input.small{
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(12,18,32,.12);
  padding: 0 10px;
  background: rgba(255,255,255,.85);
  outline: none;
}
.input.small:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

@media (max-width: 900px){
  .company-detail-modal-card{
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
  }

  .company-detail-modal-head,
  .company-detail-modal-body{
    padding-left: 16px;
    padding-right: 16px;
  }

  .company-detail-heading h2{
    font-size: 28px;
  }
}

@media (max-width: 640px){
  .company-detail-head-actions{
    width: 100%;
  }

  .company-detail-head-actions .btn{
    flex: 1 1 auto;
  }

  .company-detail-users-panel{
    padding: 12px;
  }

  .company-detail-toolbar{
    align-items: stretch;
  }

  .company-detail-stats{
    width: 100%;
  }

  .company-stat-card{
    flex: 1 1 120px;
  }

  .company-user-actions .btn{
    min-width: 0;
    flex: 1 1 100%;
  }

  .company-detail-table-wrap{
    max-height: min(54vh, 520px);
  }
}



/* =========================
   APP LAYOUT (SIDEBAR + CONTENT)
   ========================= */

.main{
  flex: 1;
  display: flex;
  align-items: stretch;
}

/* esconde menu no login */
.is-login .sidebar{ display:none !important; }

/* Sidebar */
.sidebar{
  width: 76px; /* recolhido */
  border-right: 1px solid var(--border);
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(var(--blur));
  position: sticky;
  top: 0;
  height: calc(100vh - 0px);
  overflow: hidden;
  transition: width .18s ease;
}
.sidebar:not([hidden]){ display:block; }
.sidebar[hidden]{ display:none; }

.sidebar.expanded{ width: 260px; }

.sidebar-inner{
  height: 100%;
  display:flex;
  flex-direction: column;
  padding: 10px 10px;
  gap: 10px;
}

.sidebar-top{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 6px 6px 10px 6px;
}

.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(12,18,32,.10);
  background: rgba(255,255,255,.78);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-weight: 900;
}

/* ===== Table action icons (Tecnicos) ===== */
.table-actions{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.icon-btn.xs{
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.icon-btn.xs svg{
  width: 18px;
  height: 18px;
}
.icon-btn:hover{
  background: rgba(12,18,32,.04);
  border-color: rgba(12,18,32,.14);
}

.sidebar-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.sidebar-brand-logo{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid rgba(12,18,32,.10);
  background: rgba(255,255,255,.65);
  padding: 6px;
}
.sidebar-brand-text{
  display:none;
  min-width: 0;
}
.sidebar.expanded .sidebar-brand-text{ display:block; }

.sidebar-brand-title{
  font-weight: 900;
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-brand-sub{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Nav items */
.sidebar-nav{
  display:flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 4px 10px 4px;
}

.nav-item{
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  cursor:pointer;
  border-radius: 16px;
  padding: 10px 10px;
  display:flex;
  align-items:center;
  gap: 12px;
  position: relative;
  transition: background .12s ease, border-color .12s ease, transform .08s ease;
  color: rgba(12,18,32,.88);
}

.nav-item:hover{
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.18);
  transform: translateY(-1px);
}

.nav-item.active{
  background: rgba(37,99,235,.12);
  border-color: rgba(37,99,235,.22);
}

.nav-ico{
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: saturate(1.05);
}

.nav-label{
  display:none;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar.expanded .nav-label{
  display:block;
}

body.is-superadmin #navAddTech,
body.is-superadmin #navClients{
  display: none !important;
}

/* tooltip (quando recolhido) */
.sidebar:not(.expanded) .nav-item::after{
  content: attr(data-tooltip);
  position: absolute;
  left: 66px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(12,18,32,.92);
  color: #fff;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  box-shadow: 0 18px 45px rgba(12,18,32,.18);
}
.sidebar:not(.expanded) .nav-item:hover::after{
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

/* separador */
.sidebar-sep{
  height: 1px;
  background: rgba(12,18,32,.08);
  margin: 6px 6px;
}

/* Conteúdo */
.content{
  flex: 1;
  min-width: 0;
}

/* Ajuste para área view existente */
.view{
  width: 100%;
  padding: 18px;
}

/* Avatar com imagem */
.avatar{
  overflow:hidden;
  padding: 0;
}
.avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}


/* ===== Layout tweaks (jan/2026) ===== */
.topbar{
  padding: 10px 16px;
}
.brand .brand-title{
  font-size: 14px;
  line-height: 1.2;
}
.brand .brand-sub{
  font-size: 12px;
  margin-top: 2px;
}
.user-pill{
  padding: 6px 10px;
}
.user-avatar{
  width: 36px;
  height: 36px;
}
.sidebar{
  cursor: pointer; /* clique na barra alterna expandir/recolher */
}
.sidebar .nav-item{
  cursor: pointer;
}
.sidebar-top{
  padding-bottom: 4px;
}


/* ===== Topbar minimal ===== */
.topbar-left{ display:none; }
.topbar-right{ display:flex; align-items:center; gap:10px; margin-left:auto; }


.avatar-btn{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 999px;
}
.avatar-btn:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 4px rgba(37,99,235,.18);
}

/* ===== Sidebar icons: allow SVG too ===== */
.nav-ico-svg{
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: currentColor;
  opacity: .9;
}

.nav-ico-feedback{
  color: #3b82f6;
  filter: drop-shadow(0 4px 10px rgba(59,130,246,.18));
}

/* logout visual */
.nav-item.danger{
  color: rgba(153,27,27,.92);
}
.nav-item.danger:hover{
  background: rgba(239,68,68,.10);
}


/* =========================
   USER AVATAR DROPDOWN
   ========================= */

.user-menu{
  position: relative;
}

.avatar-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(12,18,32,.10);
  background: rgba(255,255,255,.75);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}
.avatar-btn:hover{
  border-color: rgba(12,18,32,.16);
  background: rgba(255,255,255,.92);
}
.avatar-btn:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.avatar-fallback{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: rgba(12,18,32,.85);
  user-select: none;
}

.dropdown{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 200px;
  border-radius: 16px;
  border: 1px solid rgba(12,18,32,.10);
  background: rgba(255,255,255,.95);
  box-shadow: 0 20px 45px rgba(12,18,32,.12);
  padding: 8px;
  display: none;
  z-index: 80;
}

.dropdown.open{
  display: block;
  animation: dropdownIn .12s ease-out;
}

@keyframes dropdownIn{
  from{ opacity: 0; transform: translateY(-6px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item{
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: rgba(12,18,32,.85);
  font-weight: 650;
  text-align: left;
}

.table th.sortable{
  cursor: pointer;
  user-select: none;
}

.table th.sortable::after{
  content: "↕";
  margin-left: 6px;
  font-size: 11px;
  opacity: .45;
}

.table th.sortable.is-sorted.asc::after{
  content: "↑";
  opacity: .9;
}

.table th.sortable.is-sorted.desc::after{
  content: "↓";
  opacity: .9;
}
.dropdown-item:hover{
  background: rgba(37,99,235,.08);
}
.dropdown-item.danger{
  color: rgba(153,27,27,.95);
}
.dropdown-item.danger:hover{
  background: rgba(239,68,68,.10);
}

.dropdown-ico{
  width: 22px;
  display: grid;
  place-items: center;
  color: currentColor;
  opacity: .9;
}

.dropdown-sep{
  height: 1px;
  background: rgba(12,18,32,.08);
  margin: 6px 6px;
}


/* ===== PATCH: topbar sem faixa, avatar fixo no canto superior direito ===== */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 0; /* remove a faixa superior */
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 60;
}
.topbar-left{ display:none !important; }
.topbar-right{
  position: fixed;
  top: 14px;
  right: 14px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
}
.user-menu{ position: relative; }

/* ===== Ajuste vertical do header do dashboard ===== */

.page-header{
  margin-top: 40px; /* desce título + subtítulo */
}

.page-header h1{
  margin-bottom: 6px;
}

.page-header p{
  margin-bottom: 24px; /* distância até o card */
}


/* ===== Perfil (modal editar perfil) ===== */
.profile-modal{
  max-width: 720px;
}

.profile-grid{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 720px){
  .profile-grid{
    grid-template-columns: 1fr;
  }
}

.avatar-preview{
  width: 140px;
  height: 140px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.55);
  border: 4px solid rgba(255,255,255,.75);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  overflow: hidden;
}

.avatar-preview img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* o JS ativa quando tiver URL */
}

.avatar-preview span{
  font-weight: 800;
  font-size: 28px;
  color: rgba(12,18,32,.75);
}

.profile-photo-actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Lista simples (modal equipe) */
.list{ display:flex; flex-direction:column; gap:10px; }
.list-item{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  border-radius: 14px;
  padding: 10px 12px;
}

.modal-card.wide{ max-width: 920px; }

/* Kanban Board */
/* Kanban Board */
.kanban-board{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); /* 6 colunas na mesma linha */
  gap: 20px;
  align-items: start;
  overflow-x: hidden; /* sem scroll horizontal no desktop */
  padding-bottom: 10px;
}

.kanban-column{
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  min-height: 360px;
  border-radius: 14px;
  min-width: 0; /* CRÍTICO: permite encolher e caber na tela */
  display: flex;
  flex-direction: column;
}

.kanban-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  gap: 10px;
}

.kanban-header h3{
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.kanban-count{
  background: var(--col, var(--primary));
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
}

.kanban-cards{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 400px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.kanban-cards.drag-over{
  background: rgba(var(--primary-rgb, 47, 128, 237), 0.1);
  border: 2px dashed var(--primary);
}

.kanban-card{
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: grab;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.kanban-card:active{
  cursor: grabbing;
}

.kanban-card.dragging{
  opacity: 0.5;
  transform: rotate(2deg);
  cursor: grabbing;
}

.kanban-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--primary);
}

.kanban-card-title{
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.kanban-card-desc{
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kanban-card-meta{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Kanban card (mini infos) */
.kanban-card-title{
  display:flex;
  align-items: baseline;
  gap: 8px;
}

.kanban-card-id{
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
}

.kanban-card-name{
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-card-meta--row{
  flex-wrap: wrap;
  gap: 10px;
}

.kanban-mini{
  display:inline-flex;
  align-items:center;
  gap: 4px;
  white-space: nowrap;
}

.kanban-mini-text{
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-ic{
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  opacity: .9;
}

.kanban-card-tag{
  background: rgba(var(--primary-rgb, 47, 128, 237), 0.1);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.kanban-card-priority{
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.kanban-card-priority.baixa{
  background: rgba(100, 200, 100, 0.2);
  color: rgb(40, 120, 40);
}

.kanban-card-priority.media{
  background: rgba(255, 165, 0, 0.2);
  color: rgb(200, 100, 0);
}

.kanban-card-priority.alta{
  background: rgba(255, 50, 50, 0.2);
  color: rgb(200, 0, 0);
}

/* Responsivo:
   - Desktop: sem scroll horizontal
   - Tablet/mobile: permite scroll horizontal para não esmagar demais as colunas
*/
@media (max-width: 1200px){
  .kanban-board{
    grid-template-columns: repeat(6, 260px);
    overflow-x: auto;
  }
}

@media (max-width: 1024px){
  .kanban-board{
    grid-template-columns: repeat(6, 240px);
    overflow-x: auto;
  }
  .kanban-column{
    min-height: 300px;
  }
}


/* Icon buttons (SVG) */
.icon-btn svg{
  width: 18px;
  height: 18px;
}

.icon-btn img{
  width: 18px;
  height: 18px;
}
/* My Projects (Kanban) – alinhamento do header e separador do topo */
.content > .view > .container{
  max-width: none;
  padding-top: 56px;
}

.content > .view > .container > .page-header{
  border-top: 2px solid var(--border);
  padding-top: 18px;
  margin-top: 0;
}

#viewMyProjects .container{
  position: relative;
  max-width: none;
  padding-top: 56px; /* desce o header para NÃO encostar no avatar/topo */
}

/* Linha horizontal separando o topo (avatar) do conteúdo */
#viewMyProjects .page-header{
  border-top: 2px solid var(--border); /* linha mais “alta” */
  padding-top: 18px;                  /* espaço entre linha e título */
  margin-top: 0;                      /* evita subir demais */
}

/* Usuários (Técnicos) – usar o mesmo padrão visual do Kanban */
#viewMyActivities .container{
  position: relative;
  max-width: none;
  padding-top: 56px;
}

#viewMyActivities .page-header{
  border-top: 2px solid var(--border);
  padding-top: 18px;
  margin-top: 0;
}

#viewMyFeedbacks .container{
  position: relative;
  max-width: none;
  padding-top: 56px;
}

#viewMyFeedbacks .page-header{
  border-top: 2px solid var(--border);
  padding-top: 18px;
  margin-top: 0;
}

#viewOsApprovals .container{
  position: relative;
  max-width: none;
  padding-top: 56px;
}

#viewOsApprovals .page-header{
  border-top: 2px solid var(--border);
  padding-top: 18px;
  margin-top: 0;
}

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

.os-approvals-toolbar{
  align-items:flex-end;
}

.os-approvals-search-field{
  min-width: 360px;
}

.os-approvals-filter-field{
  min-width: 220px;
}

.os-approvals-summary{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
}

.os-approvals-stat{
  border:1px solid rgba(12,18,32,.08);
  border-radius:22px;
  padding:18px 20px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
  box-shadow: 0 14px 28px rgba(12,18,32,.05);
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.os-approvals-stat:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(12,18,32,.08);
}

.os-approvals-stat.is-active{
  border-color: rgba(59,130,246,.28);
  box-shadow: 0 18px 34px rgba(59,130,246,.12);
}

.os-approvals-stat--hours{
  cursor:default;
}

.os-approvals-stat-label{
  display:block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(12,18,32,.54);
}

.os-approvals-stat strong{
  display:block;
  margin-top:10px;
  font-size:32px;
  line-height:1;
  color: rgba(12,18,32,.94);
}

.os-approvals-bulkbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  border:1px solid rgba(12,18,32,.08);
  border-radius:16px;
  background:
    radial-gradient(circle at top right, rgba(99,102,241,.10), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,244,255,.95));
}

.os-approvals-select-all{
  margin:0;
}

.os-approvals-bulk-meta{
  margin-left:auto;
  color: rgba(12,18,32,.62);
  font-size:12px;
  font-weight:700;
}

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

.os-approval-card{
  border:1px solid rgba(12,18,32,.08);
  border-radius:18px;
  padding:8px 10px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 6px 14px rgba(12,18,32,.03);
}

.os-approval-card.is-pending{
  background:
    radial-gradient(circle at top right, rgba(245,158,11,.10), transparent 28%),
    rgba(255,255,255,.97);
}

.os-approval-card.is-approved{
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.10), transparent 28%),
    rgba(255,255,255,.97);
}

.os-approval-card-head{
  display:grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap:6px;
  align-items:center;
}

.os-approval-card-status{
  display:flex;
  align-items:center;
  gap:8px;
}

.os-approval-check{
  margin-top:2px;
}

.os-approval-kicker,
.os-approval-detail-label{
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(12,18,32,.46);
}

.os-approval-card-title .muted{
  margin:0;
  display:none;
}

.os-approval-card-title h3{
  margin:1px 0 0;
  font-size:14px;
  line-height:1.1;
  color: rgba(12,18,32,.95);
}

.os-approval-status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 9px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  border:1px solid transparent;
}

.os-approval-status-pill.pending{
  background: rgba(255,237,213,.96);
  color: #c2410c;
  border-color: rgba(251,146,60,.28);
}

.os-approval-status-pill.approved{
  background: rgba(220,252,231,.95);
  color: #047857;
  border-color: rgba(74,222,128,.30);
}

.os-approval-inline-action{
  width:26px;
  height:26px;
  border-radius:999px;
  border:1px solid rgba(12,18,32,.08);
  background: rgba(255,255,255,.92);
  box-shadow: 0 3px 8px rgba(15,23,42,.04);
}

.os-approval-inline-action svg{
  width:12px;
  height:12px;
}

.os-approval-inline-action.is-approve{
  color:#15803d;
}

.os-approval-inline-action.is-undo{
  color:#b45309;
}

.os-approval-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:4px 7px;
  margin-top:4px;
  font-size:10px;
  color: rgba(12,18,32,.62);
}

.os-approval-meta-row span{
  white-space:nowrap;
}

.os-approval-meta-item.is-highlight{
  color: rgb(101,52,219);
}

.os-approval-meta-item.is-highlight b{
  color: rgba(12,18,32,.88);
}

.os-approval-meta-item.is-planned strong{
  color: #15803d;
}

.os-approval-meta-item.is-pointed-ok strong{
  color: #15803d;
}

.os-approval-meta-item.is-pointed-alert strong{
  color: #dc2626;
}

.os-approval-meta-row b{
  color: rgba(12,18,32,.82);
  font-weight:800;
}

.os-approval-meta-row strong{
  font-weight:800;
}

.os-approval-note{
  margin-top:4px;
  color: rgba(12,18,32,.78);
  line-height:1.25;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:11px;
}

.os-approval-details{
  margin-top:6px;
  border:1px solid rgba(12,18,32,.08);
  border-radius:14px;
  background: rgba(248,250,252,.86);
  overflow:hidden;
}

.os-approval-details summary{
  list-style:none;
  cursor:pointer;
  padding:7px 10px;
  font-weight:800;
  color: #2563eb;
  font-size:11px;
}

.os-approval-details summary::-webkit-details-marker{
  display:none;
}

.os-approval-details-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
  padding:0 14px 14px;
}

.os-approval-detail-card{
  border:1px solid rgba(12,18,32,.08);
  border-radius:14px;
  padding:10px 12px;
  background: rgba(255,255,255,.9);
}

.os-approval-detail-card strong{
  display:block;
  margin-top:4px;
  color: rgba(12,18,32,.92);
  line-height:1.35;
  font-size:13px;
}

.os-approval-details-note{
  margin:0 14px 14px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(12,18,32,.08);
  color: rgba(12,18,32,.8);
  line-height:1.5;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:13px;
}


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

.my-feedbacks-toolbar{
  align-items:flex-end;
}

.my-feedbacks-search-field{
  min-width: 330px;
}

.my-feedbacks-hero{
  display:grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(0, 1fr);
  gap:18px;
}

.my-feedbacks-highlight{
  border:1px solid rgba(12,18,32,.08);
  border-radius:28px;
  padding:24px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(243,247,255,.94));
  box-shadow: 0 18px 40px rgba(12,18,32,.06);
}

.my-feedbacks-highlight-kicker,
.my-feedbacks-list-kicker{
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(12,18,32,.5);
}

.my-feedbacks-highlight h2{
  margin:10px 0 8px;
  font-size:32px;
  line-height:1.08;
  color: rgba(12,18,32,.95);
}

.my-feedbacks-stats{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}

.my-feedbacks-stat{
  border:1px solid rgba(12,18,32,.08);
  border-radius:22px;
  padding:18px 20px;
  background:
    radial-gradient(circle at top right, rgba(148,163,184,.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
  box-shadow: 0 14px 28px rgba(12,18,32,.05);
}

.my-feedbacks-stat--score{
  background:
    radial-gradient(circle at top right, rgba(99,102,241,.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,244,255,.94));
}

.my-feedbacks-stat--good{
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(240,253,244,.94));
}

.my-feedbacks-stat--recent{
  background:
    radial-gradient(circle at top right, rgba(245,158,11,.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,251,235,.96));
}

.my-feedbacks-stat-label{
  display:block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(12,18,32,.54);
}

.my-feedbacks-stat strong{
  display:block;
  margin-top:10px;
  font-size:34px;
  line-height:1;
  color: rgba(12,18,32,.94);
}

.my-feedbacks-list-wrap{
  border:1px solid rgba(12,18,32,.08);
  border-radius:28px;
  padding:22px;
  background:
    radial-gradient(circle at top right, rgba(119,59,246,.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
  box-shadow: 0 18px 40px rgba(12,18,32,.06);
}

.my-feedbacks-list-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.my-feedbacks-list-head h3{
  margin:6px 0 0;
  font-size:24px;
  color: rgba(12,18,32,.95);
}

.my-feedbacks-list-meta{
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.8);
  border:1px solid rgba(12,18,32,.08);
  color: rgba(12,18,32,.68);
  font-size:13px;
  font-weight:700;
}

.my-feedbacks-list{
  display:grid;
  gap:14px;
}

.my-feedback-entry{
  border:1px solid rgba(12,18,32,.08);
  border-radius:22px;
  padding:18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(12,18,32,.05);
}

.my-feedback-entry--good{
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.1), transparent 28%),
    rgba(255,255,255,.96);
}

.my-feedback-entry--mid{
  background:
    radial-gradient(circle at top right, rgba(245,158,11,.1), transparent 28%),
    rgba(255,255,255,.96);
}

.my-feedback-entry--alert{
  background:
    radial-gradient(circle at top right, rgba(239,68,68,.1), transparent 28%),
    rgba(255,255,255,.96);
}

.my-feedback-entry-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.my-feedback-entry-kicker{
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(12,18,32,.45);
}

.my-feedback-entry-top h4{
  margin:6px 0 0;
  font-size:22px;
  color: rgba(12,18,32,.94);
}

.my-feedback-score{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  border:1px solid transparent;
  white-space:nowrap;
}

.my-feedback-score--good{
  background: rgba(220,252,231,.95);
  color: #047857;
  border-color: rgba(74,222,128,.3);
}

.my-feedback-score--mid{
  background: rgba(255,237,213,.96);
  color: #c2410c;
  border-color: rgba(251,146,60,.28);
}

.my-feedback-score--alert{
  background: rgba(254,226,226,.95);
  color: #b91c1c;
  border-color: rgba(248,113,113,.28);
}

.my-feedback-score--neutral{
  background: rgba(241,245,249,.95);
  color: #475569;
  border-color: rgba(148,163,184,.28);
}

.my-feedback-entry-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.my-feedback-meta-pill{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(244,247,252,.95);
  border:1px solid rgba(12,18,32,.08);
  color: rgba(12,18,32,.68);
  font-size:12px;
}

.my-feedback-entry-note{
  margin-top:14px;
  color: rgba(12,18,32,.84);
  line-height:1.65;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.my-feedback-entry-more{
  margin-top:10px;
  border:0;
  background:transparent;
  color:#2563eb;
  font-weight:800;
  cursor:pointer;
  padding:0;
}

.my-feedback-entry-more:hover{
  text-decoration:underline;
}

.my-feedbacks-empty{
  margin-top:14px;
}

#viewManagerUsers .container{
  max-width: none;   /* igual ao Kanban: ocupa toda a largura */
  padding-top: 56px; /* desce o header para NÃO encostar no avatar/topo */
}

#viewManagerUsers .page-header{
  border-top: 2px solid var(--border);
  padding-top: 18px;
  margin-top: 0;
}



/* Clientes – usar o mesmo padrão visual do Kanban/Técnicos */
#viewClients .container{
  max-width: none;
  padding-top: 56px;
}

#viewClients .page-header{
  border-top: 2px solid var(--border);
  padding-top: 18px;
  margin-top: 0;
}

/* Clientes: alinhamento da célula Nome + avatar maior */
#viewClients td{
  vertical-align: middle;
}

#viewClients .cell-user{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

#viewClients .cell-user .avatar{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(12,18,32,.10);
  background: rgba(255,255,255,.85);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: rgba(12,18,32,.78);
  flex: 0 0 52px;
}

#viewClients .cell-user .avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#viewClients .cell-user-meta{
  min-width: 0;
}

#viewClients .cell-user-name{
  font-weight: 700;
  line-height: 1.2;
}

#viewClients .cell-user-sub{
  margin-top: 4px;
  font-size: 12px;
}

/* Modal Clientes - UX Key users */
#modalCreateClient .modal-card{
  border-radius: 20px;
  border: 1px solid rgba(12,18,32,.08);
  box-shadow: 0 24px 60px rgba(12,18,32,.18);
}

#modalCreateClient .client-modal-head{
  padding: 16px 18px 14px 18px;
  border-bottom: 1px solid rgba(12,18,32,.08);
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.10), transparent 34%),
    linear-gradient(135deg, rgba(248,250,252,.98), rgba(255,255,255,.94));
}

#modalCreateClient .client-modal-head h2{
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 0;
}

#modalCreateClient .modal-body{
  padding: 16px 18px;
}

#modalCreateClient .modal-footer{
  border-top: 1px solid rgba(12,18,32,.08);
  padding: 14px 18px;
}

#modalCreateClient .form-section{
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.6));
  border-radius: 16px;
  padding: 14px;
}

#modalCreateClient .client-section-title{
  margin: 0 0 12px 0;
  font-size: 15px;
  color: rgba(12,18,32,.88);
}

#modalCreateClient .client-photo-row{
  margin-bottom: 0;
  align-items: center;
  gap: 16px;
}

#modalCreateClient .profile-photo-actions{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  flex-wrap: wrap;
}

.photo-upload-actions{
  display:flex;
  align-items:flex-start;
  gap:10px;
  flex-wrap:wrap;
  position: static;
}

.photo-upload-actions .photo-file-name{
  max-width: 320px;
  font-size: 13px;
  color: rgba(12,18,32,.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-upload-actions .photo-help{
  width: auto;
  font-size: 12px;
  margin-top: -2px;
}

#modalCreateClient .client-photo-card{
  border: 1px solid rgba(12,18,32,.08);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(247,244,255,.58), rgba(255,255,255,.9));
}

#modalCreateClient .client-avatar-preview{
  width: 84px;
  height: 84px;
}

#modalCreateClient .client-avatar-preview span{
  font-size: 30px;
  font-weight: 800;
}

#modalCreateClient .client-photo-actions-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

#modalCreateClient .client-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#modalCreateClient .client-form-grid .span-2{
  grid-column: 1 / -1;
}

#modalCreateClient .form-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#modalCreateClient .form-field label{
  font-size: 12px;
  font-weight: 700;
  color: rgba(12,18,32,.70);
  letter-spacing: .01em;
}

#modalCreateClient .form-field input{
  height: 42px;
  border: 1px solid rgba(12,18,32,.12);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255,255,255,.92);
  color: rgba(12,18,32,.92);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#modalCreateClient .form-field input:focus{
  border-color: rgba(119,59,246,.5);
  box-shadow: 0 0 0 4px rgba(119,59,246,.12);
}

#modalCreateClient .field-check{
  justify-content: end;
}

#modalCreateClient .field-actions{
  display: flex;
  justify-content: flex-end;
}

#modalCreateClient .client-keyusers-box{
  border: 1px dashed rgba(12,18,32,.16);
  background: rgba(255,255,255,.58);
  border-radius: 14px;
  padding: 10px;
}

#modalCreateClient .client-keyusers-head{
  font-size: 12px;
  font-weight: 700;
  color: rgba(12,18,32,.72);
  margin-bottom: 8px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

#modalCreateClient .client-keyusers-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#modalCreateClient .client-keyuser-item{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main action"
    "sub action";
  align-items: center;
  gap: 2px 8px;
  border: 1px solid rgba(12,18,32,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  padding: 8px 10px;
}

#modalCreateClient .client-keyuser-main{
  grid-area: main;
  font-weight: 700;
  color: rgba(12,18,32,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#modalCreateClient .client-keyuser-sub{
  grid-area: sub;
  font-size: 12px;
  color: rgba(12,18,32,.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#modalCreateClient .client-keyuser-item .icon-btn{
  grid-area: action;
}

@media (max-width: 900px){
  #modalCreateClient .client-form-grid{
    grid-template-columns: 1fr;
  }

  #modalCreateClient .client-form-grid .span-2{
    grid-column: auto;
  }

  #modalCreateClient .field-actions{
    justify-content: stretch;
  }

  #modalCreateClient .field-actions .btn{
    width: 100%;
  }
}

#viewClients .keyusers-more-btn{
  border: 1px solid rgba(119, 59, 246, .25);
  background: rgba(119, 59, 246, .10);
  color: rgb(93, 50, 198);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}

#viewClients .keyusers-more-btn:hover{
  background: rgba(119, 59, 246, .18);
  border-color: rgba(119, 59, 246, .4);
  transform: translateY(-1px);
}

/* Botão Adicionar Cliente – mesmo tamanho do Kanban */
#btnOpenCreateClient{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 44px;
  height: 44px;
  padding: 0;
}

#btnOpenCreateClient svg{
  width: 42px;
  height: 42px;
}

#btnOpenCreateClient:hover{
  background: transparent !important;
  transform: scale(1.08);
}
/* =========================
   Botão Adicionar Projeto (Kanban)
   ========================= */

#btnOpenCreateProjectFromKanban {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 44px;       /* aumenta área clicável */
  height: 44px;
  padding: 0;
}

#btnOpenCreateProjectFromKanban svg {
  width: 42px;       /* aumenta tamanho do ícone */
  height: 42px;
}

#btnOpenCreateProjectFromKanban:hover {
  background: transparent !important;
  transform: scale(1.08);
}

/* Reports */
.reports-filter-bar{
  display:none;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(12,18,32,.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(248,250,252,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.reports-filter-set{
  display:grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap:12px;
  flex:1;
}

.reports-filter-bar .field select{
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(12,18,32,.12);
  background: rgba(255,255,255,.92);
  padding: 0 12px;
  color: rgba(12,18,32,.88);
  outline: none;
}

.reports-filter-bar .field select:focus{
  border-color: rgba(119,59,246,.45);
  box-shadow: 0 0 0 4px rgba(119,59,246,.12);
}

.reports-grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap:16px;
}

.reports-card{
  position:relative;
  grid-column: span 6;
  border:1px solid rgba(12,18,32,.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(119,59,246,.06), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.98));
  padding: 18px;
  box-shadow: 0 18px 45px rgba(12,18,32,.08);
}

.reports-card-maximize-btn{
  position:absolute;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  display:inline-grid;
  place-items:center;
  border:1px solid rgba(12,18,32,.1);
  border-radius:12px;
  background:rgba(255,255,255,.9);
  color:rgba(12,18,32,.72);
  box-shadow:0 10px 22px rgba(15,23,42,.08);
  cursor:pointer;
  transition:transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}

.reports-card-maximize-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(37,99,235,.34);
  color:#2563eb;
  background:#fff;
}

.reports-card-maximize-btn:focus-visible{
  outline:none;
  border-color:rgba(37,99,235,.45);
  box-shadow:0 0 0 4px rgba(37,99,235,.14), 0 10px 22px rgba(15,23,42,.08);
}

.reports-card-maximize-backdrop{
  position:fixed;
  inset:0;
  z-index:119;
  border:0;
  background:rgba(8,18,38,.28);
  backdrop-filter:blur(5px);
  cursor:zoom-out;
}

body.reports-card-maximized{
  overflow:hidden;
}

.reports-card.is-maximized{
  position:fixed;
  top:64px;
  left:76px;
  right:18px;
  bottom:18px;
  z-index:120;
  grid-column:auto;
  overflow:auto;
  padding:24px;
  border-radius:28px;
  background:
    radial-gradient(circle at top right, rgba(119,59,246,.08), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  box-shadow:0 34px 90px rgba(8,18,38,.28);
}

.sidebar.expanded ~ .content .reports-card.is-maximized{
  left:278px;
}

.reports-card.is-maximized .reports-card-head{
  position:sticky;
  top:-24px;
  z-index:2;
  margin:-24px -24px 18px;
  padding:24px 70px 16px 24px;
  border-bottom:1px solid rgba(12,18,32,.08);
  border-radius:28px 28px 0 0;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(14px);
}

.reports-card.is-maximized .reports-card-maximize-btn{
  top:20px;
  right:20px;
}

.reports-card--hero{
  grid-column: span 12;
}

.reports-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  flex-direction:column;
  gap:12px;
  margin-bottom: 14px;
}

.reports-card-tools{
  display:flex;
  align-items:center;
  gap:8px;
}

.reports-card-filter-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius: 12px;
}

.reports-card-controls{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
  gap:8px;
  width:100%;
  min-width: 0;
  align-items:end;
}

.reports-inline-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.reports-inline-field span,
.reports-inline-field legend{
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(12,18,32,.48);
}

.reports-inline-field--multi{
  border:0;
  margin:0;
  padding:0;
  min-width:min(100%, 360px);
}

.reports-multi-checks{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  min-height:36px;
  padding:4px;
  border:1px solid rgba(12,18,32,.1);
  border-radius:11px;
  background:rgba(255,255,255,.92);
}

.reports-multi-checks label{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:26px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(239,246,255,.72);
  color:rgba(12,18,32,.78);
  cursor:pointer;
  user-select:none;
}

.reports-multi-checks input{
  width:13px;
  height:13px;
  accent-color:#2563eb;
}

.reports-multi-checks label span{
  color:inherit;
  font-size:10px;
  letter-spacing:.04em;
  text-transform:none;
  font-weight:800;
}

.reports-inline-field select{
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(12,18,32,.1);
  background: rgba(255,255,255,.92);
  padding: 0 10px;
  color: rgba(12,18,32,.88);
  outline: none;
  min-width: 0;
}

.reports-inline-field select:focus{
  border-color: rgba(119,59,246,.45);
  box-shadow: 0 0 0 4px rgba(119,59,246,.12);
}

.reports-inline-field input{
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(12,18,32,.1);
  background: rgba(255,255,255,.92);
  padding: 0 10px;
  color: rgba(12,18,32,.88);
  outline: none;
}

.reports-inline-field input:focus{
  border-color: rgba(119,59,246,.45);
  box-shadow: 0 0 0 4px rgba(119,59,246,.12);
}

.reports-inline-field .reports-multi-checks input{
  width:13px;
  height:13px;
  padding:0;
  border-radius:3px;
  box-shadow:none;
}

.reports-inline-field--project{
  min-width: 160px;
}

.reports-inline-field--date{
  min-width: 138px;
}

.reports-card-head h3{
  margin: 4px 0 0;
  font-size: 24px;
  letter-spacing: -.02em;
}

.reports-card-kicker{
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(119,59,246,.78);
}

.reports-kpis{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
}

.reports-kpi{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(12,18,32,.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.88), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(247,249,255,.92));
  box-shadow: 0 18px 44px rgba(15,23,42,.08);
  padding: 18px 18px 16px;
  min-height: 148px;
  display:flex;
  flex-direction:column;
  gap:8px;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.reports-kpi::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:4px;
  background: linear-gradient(90deg, rgba(92,103,255,.95), rgba(71,179,255,.8));
  opacity:.95;
}

.reports-kpi:hover{
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(15,23,42,.12);
}

.reports-kpi:focus-visible{
  outline:none;
  border-color: rgba(92,103,255,.45);
  box-shadow: 0 0 0 4px rgba(92,103,255,.16), 0 24px 50px rgba(15,23,42,.12);
}

.reports-kpi--neutral::before{
  background: linear-gradient(90deg, rgba(92,103,255,.95), rgba(71,179,255,.8));
}

.reports-kpi--planned::before{
  background: linear-gradient(90deg, rgba(64,145,255,.96), rgba(62,210,201,.82));
}

.reports-kpi--worked::before{
  background: linear-gradient(90deg, rgba(31,181,116,.98), rgba(115,221,155,.86));
}

.reports-kpi--warning::before{
  background: linear-gradient(90deg, rgba(255,156,61,.98), rgba(255,204,92,.82));
}

.reports-kpi--danger::before{
  background: linear-gradient(90deg, rgba(255,92,92,.98), rgba(255,136,86,.82));
}

.reports-kpi-label{
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
  color: rgba(12,18,32,.5);
  font-weight:800;
}

.reports-kpi strong{
  display:block;
  margin-top: 2px;
  font-size: 30px;
  line-height:1;
  letter-spacing:-.03em;
  color:#081226;
}

.reports-kpi-sub{
  display:block;
  margin-top:auto;
  font-size: 12px;
  color: rgba(12,18,32,.6);
}

.reports-kpi-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:2px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: rgba(12,18,32,.52);
}

.reports-kpi-cta::after{
  content:"->";
  font-size:12px;
  transition: transform .18s ease;
}

.reports-kpi:hover .reports-kpi-cta::after,
.reports-kpi:focus-visible .reports-kpi-cta::after{
  transform: translateX(3px);
}

.reports-card.is-spotlight{
  border-color: rgba(92,103,255,.34);
  box-shadow: 0 0 0 3px rgba(92,103,255,.12), 0 28px 58px rgba(15,23,42,.12);
}

.reports-metric-summary{
  margin-bottom: 14px;
}

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

.reports-metric-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(12,18,32,.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.82), transparent 42%),
    linear-gradient(180deg, rgba(248,250,255,.98), rgba(241,245,255,.92));
  padding: 18px;
  min-height: 152px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.reports-metric-card::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:4px;
  background: linear-gradient(90deg, rgba(92,103,255,.95), rgba(71,179,255,.8));
}

.reports-metric-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(15,23,42,.12);
}

.reports-metric-card:focus-visible{
  outline:none;
  border-color: rgba(92,103,255,.4);
  box-shadow: 0 0 0 4px rgba(92,103,255,.14), 0 24px 52px rgba(15,23,42,.12);
}

.reports-metric-card--success::before{
  background: linear-gradient(90deg, rgba(31,181,116,.98), rgba(115,221,155,.86));
}

.reports-metric-card--danger::before{
  background: linear-gradient(90deg, rgba(255,92,92,.98), rgba(255,136,86,.82));
}

.reports-metric-card--info::before{
  background: linear-gradient(90deg, rgba(64,145,255,.96), rgba(62,210,201,.82));
}

.reports-metric-card-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
  color: rgba(12,18,32,.52);
  font-weight:800;
}

.reports-metric-card strong{
  font-size: 34px;
  line-height:1;
  letter-spacing:-.04em;
  color:#081226;
}

.reports-metric-card-sub{
  font-size:13px;
  color: rgba(12,18,32,.66);
}

.reports-metric-card-cta{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color: rgba(12,18,32,.52);
}

.reports-metric-card-cta::after{
  content:"->";
  transition: transform .18s ease;
}

.reports-metric-card:hover .reports-metric-card-cta::after,
.reports-metric-card:focus-visible .reports-metric-card-cta::after{
  transform: translateX(3px);
}

.reports-metric-list,
.reports-status-bars,
.reports-ranking,
.reports-attention-list,
.reports-timeline{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.reports-metric-row,
.reports-status-row,
.reports-ranking-row,
.reports-attention-item,
.reports-timeline-item{
  border:1px solid rgba(12,18,32,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.86);
}

.reports-metric-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 16px;
}

.reports-metric-row strong,
.reports-ranking-row strong,
.reports-attention-item strong,
.reports-timeline-item strong{
  display:block;
  color: rgba(12,18,32,.92);
}

.reports-metric-row span,
.reports-ranking-row span,
.reports-attention-sub span,
.reports-timeline-item span{
  font-size: 12px;
  color: rgba(12,18,32,.58);
}

.tone-danger{ color: rgb(220,38,38); }
.tone-success{ color: rgb(22,163,74); }

.reports-status-row{
  display:grid;
  grid-template-columns: 160px 1fr 32px;
  align-items:center;
  gap:12px;
  padding: 12px 14px;
}

.reports-status-meta{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
}

.reports-status-dot,
.reports-legend-dot,
.reports-timeline-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  display:inline-block;
  flex:0 0 auto;
}

.reports-status-bar,
.reports-ranking-bar{
  height:10px;
  border-radius:999px;
  background: rgba(226,232,240,.8);
  overflow:hidden;
}

.reports-status-fill,
.reports-ranking-fill{
  height:100%;
  border-radius:999px;
}

.reports-status-dot--blue,
.reports-status-fill--blue{ background: rgb(59,130,246); }
.reports-status-dot--orange,
.reports-status-fill--orange{ background: rgb(249,115,22); }
.reports-status-dot--green,
.reports-status-fill--green{ background: rgb(34,197,94); }
.reports-status-dot--red,
.reports-status-fill--red{ background: rgb(239,68,68); }
.reports-status-dot--violet,
.reports-status-fill--violet{ background: rgb(139,92,246); }
.reports-status-dot--slate,
.reports-status-fill--slate{ background: rgb(100,116,139); }

.reports-donut-wrap{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:18px;
  align-items:center;
}

.reports-donut{
  --progress: 0;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  margin: 0 auto;
  background:
    conic-gradient(rgb(99,102,241) 0 calc(var(--progress) * 1%), rgba(226,232,240,.9) 0 100%);
  display:grid;
  place-items:center;
}

.reports-donut-center{
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.reports-donut-center strong{
  font-size: 28px;
  letter-spacing: -.03em;
}

.reports-donut-center span{
  font-size: 12px;
  color: rgba(12,18,32,.58);
}

.reports-legend{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.reports-legend > div{
  display:flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
}

.reports-legend-dot--planned{ background: rgb(148,163,184); }
.reports-legend-dot--worked{ background: rgb(99,102,241); }
.reports-legend-dot--late{ background: rgb(239,68,68); }

.reports-ranking-row{
  display:grid;
  grid-template-columns: 220px 1fr 70px;
  align-items:center;
  gap:12px;
  padding: 14px 16px;
}

.reports-ranking-fill{
  background: linear-gradient(90deg, rgb(99,102,241), rgb(59,130,246));
}

.reports-ranking-fill--tech{
  background: linear-gradient(90deg, rgb(14,165,233), rgb(99,102,241));
}

.reports-card--schedule{
  grid-column: span 12;
}

.reports-schedule-layout{
  display:grid;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
  gap:16px;
  align-items:stretch;
}

.reports-schedule-stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}

.reports-schedule-stat{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(12,18,32,.08);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.94));
  padding:16px;
  text-align:left;
  cursor:pointer;
  box-shadow:0 16px 36px rgba(15,23,42,.07);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.reports-schedule-stat::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg, rgba(92,103,255,.96), rgba(71,179,255,.82));
}

.reports-schedule-stat--planned::before{
  background:linear-gradient(90deg, rgba(64,145,255,.96), rgba(62,210,201,.82));
}

.reports-schedule-stat--executed::before{
  background:linear-gradient(90deg, rgba(31,181,116,.98), rgba(115,221,155,.86));
}

.reports-schedule-stat:hover{
  transform:translateY(-2px);
  border-color:rgba(92,103,255,.32);
  box-shadow:0 22px 44px rgba(15,23,42,.1);
}

.reports-schedule-stat span{
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:800;
  color:rgba(12,18,32,.52);
}

.reports-schedule-stat strong{
  display:block;
  margin-top:10px;
  font-size:30px;
  line-height:1;
  color:#081226;
}

.reports-schedule-stat small{
  display:block;
  margin-top:10px;
  color:rgba(12,18,32,.62);
}

.reports-schedule-chart{
  border:1px solid rgba(12,18,32,.08);
  border-radius:22px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.08), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,252,.98));
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.reports-schedule-bar-row{
  display:grid;
  grid-template-columns: 112px minmax(0, 1fr) 48px;
  gap:12px;
  align-items:center;
  border:0;
  background:transparent;
  padding:8px;
  border-radius:14px;
  text-align:left;
  cursor:pointer;
}

.reports-schedule-bar-row:hover{
  background:rgba(37,99,235,.06);
}

.reports-schedule-bar-row span{
  font-weight:800;
  color:rgba(12,18,32,.72);
}

.reports-schedule-bar-row b{
  text-align:right;
}

.reports-schedule-bar-track{
  height:14px;
  border-radius:999px;
  background:rgba(226,232,240,.9);
  overflow:hidden;
}

.reports-schedule-bar-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(92,103,255,.96), rgba(71,179,255,.82));
}

.reports-schedule-bar-fill--executed{
  background:linear-gradient(90deg, rgba(31,181,116,.98), rgba(115,221,155,.86));
}

.reports-schedule-bar-fill--overdue{
  background:linear-gradient(90deg, rgba(255,92,92,.98), rgba(255,136,86,.82));
}

.reports-schedule-bar-fill--upcoming{
  background:linear-gradient(90deg, rgba(255,156,61,.98), rgba(255,204,92,.82));
}

.reports-schedule-next{
  margin-top:16px;
  border:1px solid rgba(12,18,32,.08);
  border-radius:22px;
  background:rgba(255,255,255,.72);
  padding:14px;
}

.reports-schedule-next-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}

.reports-schedule-next-head button{
  border:0;
  background:transparent;
  color:#2563eb;
  font-weight:800;
  cursor:pointer;
}

.reports-schedule-next-item{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:12px;
  padding:12px 0;
  border-top:1px solid rgba(12,18,32,.08);
}

.reports-schedule-next-item strong,
.reports-schedule-next-item b{
  display:block;
  color:rgba(12,18,32,.9);
}

.reports-schedule-next-item span{
  display:block;
  margin-top:4px;
  color:rgba(12,18,32,.62);
  font-size:13px;
}

.reports-card--activity-tech{
  grid-column: span 12;
}

.reports-activity-tech-summary{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-bottom:14px;
}

.reports-activity-tech-summary article{
  border:1px solid rgba(12,18,32,.08);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.94));
  padding:14px 16px;
}

.reports-activity-tech-summary span{
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:800;
  color:rgba(12,18,32,.52);
}

.reports-activity-tech-summary strong{
  display:block;
  margin-top:8px;
  color:rgba(12,18,32,.9);
}

.reports-activity-tech-table-wrap{
  overflow:auto;
  border:1px solid rgba(12,18,32,.08);
  border-radius:20px;
  background:rgba(255,255,255,.82);
}

.reports-activity-tech-table{
  width:100%;
  min-width:980px;
  border-collapse:collapse;
  table-layout:fixed;
}

.reports-activity-tech-table tr,
.reports-activity-tech-table th,
.reports-activity-tech-table td{
  height:auto;
  min-height:0;
}

.reports-activity-tech-table th,
.reports-activity-tech-table td{
  padding:5px 8px;
  border-bottom:1px solid rgba(12,18,32,.08);
  text-align:left;
  vertical-align:top;
  font-size:12px;
  line-height:1.18;
}

.reports-activity-tech-table th:nth-child(1),
.reports-activity-tech-table td:nth-child(1){ width:120px; }
.reports-activity-tech-table th:nth-child(2),
.reports-activity-tech-table td:nth-child(2){ width:150px; }
.reports-activity-tech-table th:nth-child(3),
.reports-activity-tech-table td:nth-child(3){ width:130px; }
.reports-activity-tech-table th:nth-child(4),
.reports-activity-tech-table td:nth-child(4){ width:150px; }
.reports-activity-tech-table th:nth-child(5),
.reports-activity-tech-table td:nth-child(5){ width:88px; }
.reports-activity-tech-table th:nth-child(6),
.reports-activity-tech-table td:nth-child(6){ width:86px; }
.reports-activity-tech-table th:nth-child(7),
.reports-activity-tech-table td:nth-child(7){ width:94px; }
.reports-activity-tech-table th:nth-child(8),
.reports-activity-tech-table td:nth-child(8){ width:92px; }
.reports-activity-tech-table th:nth-child(9),
.reports-activity-tech-table td:nth-child(9){ width:auto; }

.reports-activity-tech-table thead th{
  position:sticky;
  top:0;
  z-index:1;
  background:rgba(248,250,252,.96);
  color:rgba(12,18,32,.58);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.reports-activity-tech-table td strong{
  display:block;
  color:rgba(12,18,32,.9);
  line-height:1.12;
}

.reports-activity-tech-table td span{
  display:block;
  margin-top:1px;
  color:rgba(12,18,32,.56);
  font-size:11px;
  line-height:1.12;
}

.reports-activity-tech-table tfoot th{
  background:rgba(239,246,255,.9);
  color:rgba(12,18,32,.9);
  font-size:13px;
  text-transform:none;
  letter-spacing:0;
}

.reports-activity-tech-note{
  max-width:none;
  white-space:normal;
  overflow-wrap:anywhere;
  color:rgba(12,18,32,.68);
  line-height:1.18;
}

.reports-activity-tech-note [data-report-note]{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.reports-activity-tech-note.is-expanded [data-report-note]{
  display:block;
  white-space:pre-wrap;
  -webkit-line-clamp:unset;
  overflow:visible;
}

.reports-activity-tech-note--empty{
  color:rgba(12,18,32,.42);
  line-height:1;
}

.reports-activity-tech-note--empty span{
  display:inline;
  margin:0;
}

.reports-activity-tech-note-more{
  margin-top:2px;
  border:0;
  background:transparent;
  color:#2563eb;
  font-weight:800;
  cursor:pointer;
  padding:0;
}

.reports-activity-tech-note-more:hover{
  text-decoration:underline;
}

.reports-activity-tech-empty{
  text-align:center;
  color:rgba(12,18,32,.58);
  padding:24px !important;
}

.reports-activity-tech-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:8px;
  padding:8px 10px;
  border:1px solid rgba(12,18,32,.08);
  border-radius:16px;
  background:rgba(255,255,255,.78);
  color:rgba(12,18,32,.62);
  font-size:13px;
}

.reports-activity-tech-pagination > div{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.reports-activity-tech-pagination button{
  border:1px solid rgba(12,18,32,.1);
  border-radius:12px;
  background:#fff;
  color:#2563eb;
  font-weight:800;
  padding:6px 10px;
  cursor:pointer;
}

.reports-activity-tech-pagination button:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.reports-attention-item{
  padding: 14px 16px;
}

.reports-attention-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.reports-attention-sub{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top: 8px;
}

.reports-pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  margin-top: 8px;
}

.reports-pill--blue{ background: rgba(59,130,246,.12); color: rgb(37,99,235); }
.reports-pill--orange{ background: rgba(249,115,22,.12); color: rgb(194,65,12); }
.reports-pill--green{ background: rgba(34,197,94,.12); color: rgb(22,163,74); }
.reports-pill--red{ background: rgba(239,68,68,.12); color: rgb(220,38,38); }
.reports-pill--violet{ background: rgba(139,92,246,.12); color: rgb(109,40,217); }
.reports-pill--slate{ background: rgba(148,163,184,.16); color: rgb(71,85,105); }

.reports-timeline-item{
  display:grid;
  grid-template-columns: 12px 1fr auto;
  gap:12px;
  align-items:center;
  padding: 14px 16px;
}

.reports-timeline-body{
  min-width: 0;
}

.reports-timeline-meta{
  text-align:right;
}

.reports-timeline-meta b{
  display:block;
}

.reports-card--loading{
  grid-column: span 12;
}

.reports-filter-modal-card{
  width: min(720px, calc(100vw - 40px));
}

.reports-activities-modal-card .modal-header{
  background:
    radial-gradient(circle at top right, rgba(92,103,255,.14), transparent 34%),
    linear-gradient(135deg, rgba(248,250,255,.98), rgba(255,255,255,.94));
}

.reports-activities-summary{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-bottom: 16px;
}

.reports-activities-stat{
  border:1px solid rgba(12,18,32,.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247,249,255,.9), rgba(255,255,255,.96));
  padding: 14px 16px;
}

.reports-activities-stat-label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(92,103,255,.72);
  font-weight: 800;
}

.reports-activities-stat strong{
  display:block;
  margin-top: 6px;
  font-size: 26px;
  color: rgba(12,18,32,.92);
}

.reports-activities-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.reports-activity-item{
  border:1px solid rgba(12,18,32,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  padding: 10px 12px;
  box-shadow: 0 10px 22px rgba(15,23,42,.04);
}

.reports-activity-item-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}

.reports-activity-item-top strong{
  display:block;
  color: rgba(12,18,32,.92);
}

.reports-activity-item-top span{
  display:block;
  margin-top: 2px;
  color: rgba(12,18,32,.6);
  font-size:12px;
  line-height:1.25;
}

.reports-activity-item-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top: 8px;
}

.reports-activity-item-meta span{
  border-radius: 999px;
  background: rgba(240,244,252,.92);
  padding: 5px 8px;
  font-size: 11px;
  color: rgba(12,18,32,.7);
}

@media (max-width: 1120px){
  .reports-filter-set{
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .reports-card{
    grid-column: span 12;
  }

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

  .reports-card-controls{
    min-width: 100%;
  }

  .reports-schedule-layout,
  .reports-schedule-stats,
  .reports-activity-tech-summary{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px){
  .reports-filter-set,
  .reports-kpis,
  .reports-metric-grid,
  .reports-activities-summary,
  .reports-donut-wrap{
    grid-template-columns: 1fr;
  }

  .reports-status-row,
  .reports-ranking-row,
  .reports-timeline-item{
    grid-template-columns: 1fr;
  }

  .reports-card-controls{
    grid-template-columns: 1fr;
  }

  .reports-schedule-bar-row,
  .reports-schedule-next-item{
    grid-template-columns: 1fr;
  }

  .reports-schedule-bar-row b{
    text-align:left;
  }

  .reports-activity-tech-pagination{
    align-items:flex-start;
    flex-direction:column;
  }

  .reports-timeline-meta{
    text-align:left;
  }

  .reports-card.is-maximized{
    top:66px;
    left:12px;
    right:12px;
    bottom:12px;
    padding:18px;
    border-radius:22px;
  }

  .sidebar.expanded ~ .content .reports-card.is-maximized{
    left:12px;
  }

  .reports-card.is-maximized .reports-card-head{
    top:-18px;
    margin:-18px -18px 16px;
    padding:18px 62px 14px 18px;
    border-radius:22px 22px 0 0;
  }
}

/* Create Project V2 */
.modal-card.modal-xl{
  width: min(1040px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
  display:flex;
  flex-direction:column;
}
.modal-card.modal-xl .modal-body{
  overflow:auto;
}

.client-projects-modal-card .modal-header{
  background:
    radial-gradient(circle at top left, rgba(119,59,246,.10), transparent 36%),
    linear-gradient(135deg, rgba(248,250,252,.98), rgba(255,255,255,.94));
}

.client-projects-summary{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-bottom: 14px;
}

.client-projects-stat{
  border:1px solid rgba(12,18,32,.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247,244,255,.86), rgba(255,255,255,.96));
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

.client-projects-stat-label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(119,59,246,.72);
  font-weight: 800;
}

.client-projects-stat-value{
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  color: rgba(12,18,32,.92);
}

.client-projects-table-wrap{
  border:1px solid rgba(12,18,32,.08);
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.92);
}

.client-projects-table-wrap table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
}

.client-projects-table-wrap thead th{
  background: linear-gradient(180deg, rgba(244,247,252,.96), rgba(238,242,255,.82));
  font-size: 12px;
  font-weight: 800;
  color: rgba(12,18,32,.68);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.client-projects-table-wrap tbody td{
  vertical-align: middle;
}

.client-projects-table-wrap tbody tr{
  transition: background .14s ease, transform .14s ease;
}

.client-projects-table-wrap tbody tr:hover{
  background: rgba(99,102,241,.05);
}

.client-project-row-name{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.client-project-row-title{
  font-weight: 800;
  color: rgba(12,18,32,.92);
}

.client-project-row-sub{
  font-size: 12px;
  color: rgba(12,18,32,.56);
}

.client-project-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 72px;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid rgba(12,18,32,.08);
  background: rgba(248,250,252,.95);
  font-size: 12px;
  font-weight: 700;
  color: rgba(12,18,32,.8);
}

.client-project-chip--hours{
  color: rgb(37,99,235);
  background: rgba(59,130,246,.08);
  border-color: rgba(59,130,246,.16);
}

.client-project-chip--value{
  color: rgb(22,163,74);
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.16);
}

.client-project-status{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid transparent;
  font-size: 12px;
  font-weight: 800;
}

.client-project-status--a-fazer,
.client-project-status--backlog{
  color: rgb(37,99,235);
  background: rgba(59,130,246,.10);
  border-color: rgba(59,130,246,.18);
}

.client-project-status--em-andamento{
  color: rgb(194,65,12);
  background: rgba(249,115,22,.10);
  border-color: rgba(249,115,22,.18);
}

.client-project-status--go-live{
  color: rgb(21,128,61);
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.18);
}

.client-project-status--concluido{
  color: rgb(71,85,105);
  background: rgba(148,163,184,.12);
  border-color: rgba(148,163,184,.2);
}

.client-project-status--parado{
  color: rgb(185,28,28);
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.18);
}

.tech-feedback-modal-card{
  border-radius: 24px;
}

.tech-feedback-modal-head{
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.12), transparent 34%),
    linear-gradient(135deg, rgba(248,250,252,.98), rgba(255,255,255,.94));
}

.tech-feedback-modal-head h2{
  font-size: 22px;
}

.tech-feedback-form-section,
.tech-feedback-history-section{
  border:1px solid rgba(12,18,32,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.tech-feedback-form-section{
  background:
    linear-gradient(180deg, rgba(247,244,255,.72), rgba(255,255,255,.96));
}

.tech-feedback-history-list{
  background: linear-gradient(180deg, rgba(250,250,252,.92), rgba(255,255,255,.98));
  border-style: solid;
  max-height: 320px;
}

.tech-feedback-entry{
  border:1px solid rgba(12,18,32,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  padding: 14px 16px;
  margin: 8px;
  box-shadow: 0 8px 18px rgba(12,18,32,.04);
}

.tech-feedback-entry-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.tech-feedback-entry-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.tech-feedback-entry-date{
  font-size: 13px;
  font-weight: 800;
  color: rgba(12,18,32,.88);
}

.tech-feedback-entry-by{
  font-size:12px;
  color: rgba(12,18,32,.52);
  white-space: nowrap;
}

.tech-feedback-entry-note{
  margin-top: 10px;
  color: rgba(12,18,32,.84);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.tech-feedback-entry-more{
  margin-top:8px;
  border:0;
  background:transparent;
  color:#2563eb;
  font-weight:800;
  cursor:pointer;
  padding:0;
}

.tech-feedback-entry-more:hover{
  text-decoration:underline;
}

.tech-feedback-entry > div:first-child{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.tech-feedback-entry > div:first-child > div:first-child{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.tech-feedback-entry > div:first-child > div:last-child{
  font-size:12px;
  color: rgba(12,18,32,.52);
}

.tech-feedback-entry > div:last-child{
  margin-top: 10px;
  white-space: pre-wrap;
}

#modalProjectDetail .modal-card{
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

#modalProjectDetail .modal-body{
  overflow: auto;
}

@media (max-height: 760px){
  #modalProjectDetail .modal-card{
    margin: 24px auto;
    max-height: calc(100vh - 24px);
  }
}

.form-section{
  border:1px solid var(--border);
  background: rgba(255,255,255,0.55);
  border-radius: 16px;
  padding: 14px;
}
.form-section h3{
  margin:0 0 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  display:flex;
  align-items:center;
  gap:8px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.span-12{ grid-column: span 12; }
.span-6{ grid-column: span 6; }
.span-4{ grid-column: span 4; }
.span-3{ grid-column: span 3; }
.span-8{ grid-column: span 8; }
.span-5{ grid-column: span 5; }
.help{
  font-size:12px;
  color: var(--text-muted);
  margin-top:6px;
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.75);
  font-size:12px;
  cursor:pointer;
  user-select:none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.chip:hover{
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.chip.selected{
  border-color: var(--primary);
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
}
.chip .x{
  width:18px;height:18px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  border:1px solid var(--border);
  font-weight:700;
  line-height:1;
  opacity:.8;
}
.chip .x:hover{ opacity:1; }

/* Prioridade chips (reaproveita cores existentes) */
.chip-prio.baixa{ background: rgba(100,200,100,.18); border-color: rgba(100,200,100,.35); }
.chip-prio.media{ background: rgba(255,165,0,.18); border-color: rgba(255,165,0,.35); }
.chip-prio.alta { background: rgba(255, 50,50,.18); border-color: rgba(255, 50,50,.35); }

/* Create Project - refresh visual */
.create-project-modal-card,
#modalCreateProject .modal-card{
  border-radius: 20px;
  border: 1px solid rgba(12,18,32,.08);
  box-shadow: 0 26px 60px rgba(12,18,32,.18);
}

#modalCreateProject .project-modal-head{
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(12,18,32,.08);
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.10), transparent 34%),
    linear-gradient(135deg, rgba(248,250,252,.98), rgba(255,255,255,.94));
}

#modalCreateProject .project-modal-head h2{
  font-size: 38px;
  letter-spacing: -0.02em;
  margin: 0;
}

#modalCreateProject .modal-body{
  padding: 16px 20px 18px;
}

#modalCreateProject .modal-footer{
  padding: 14px 20px;
  border-top: 1px solid rgba(12,18,32,.08);
}

#modalCreateProject .project-section-title{
  margin: 0 0 12px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(119,59,246,.76);
}

#modalCreateProject .form-section{
  border: 1px solid rgba(12,18,32,.06);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.64));
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

#modalCreateProject .field input,
#modalCreateProject .field select,
#modalCreateProject textarea{
  border-radius: 12px;
  border: 1px solid rgba(12,18,32,.12);
  background: rgba(255,255,255,.92);
}

#modalCreateProject .field input:focus,
#modalCreateProject .field select:focus,
#modalCreateProject textarea:focus{
  border-color: rgba(119,59,246,.45);
  box-shadow: 0 0 0 4px rgba(119,59,246,.12);
}

#modalCreateProject .project-contract-row{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px dashed rgba(12,18,32,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.58);
}

#modalCreateProject .project-contract-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#modalCreateProject .project-contract-file{
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(12,18,32,.72);
}

#modalCreateProject .project-tech-chips{
  min-height: 46px !important;
  padding: 8px;
  border: 1px dashed rgba(12,18,32,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.6);
}

#modalCreateProject .help{
  font-size: 12px;
  color: rgba(12,18,32,.54);
  line-height: 1.45;
}

#modalCreateProject .chip-prio{
  font-weight: 800;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

#modalCreateProject .chip-prio:hover{
  transform: translateY(-1px);
}

#modalCreateProject .modal-footer .btn{
  min-width: 128px;
}

.project-tech-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid transparent;
}

.project-tech-chip-remove{
  border: none;
  background: rgba(255,255,255,.55);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}

.project-tech-chip.t1{ background: rgba(119,59,246,.16); color: rgb(101,52,219); border-color: rgba(119,59,246,.28); }
.project-tech-chip.t2{ background: rgba(59,130,246,.16); color: rgb(37,99,235); border-color: rgba(59,130,246,.28); }
.project-tech-chip.t3{ background: rgba(14,165,163,.16); color: rgb(13,148,136); border-color: rgba(14,165,163,.28); }
.project-tech-chip.t4{ background: rgba(234,88,12,.16); color: rgb(194,65,12); border-color: rgba(234,88,12,.28); }
.project-tech-chip.t5{ background: rgba(236,72,153,.16); color: rgb(190,24,93); border-color: rgba(236,72,153,.28); }
.project-tech-chip.t6{ background: rgba(34,197,94,.16); color: rgb(22,163,74); border-color: rgba(34,197,94,.28); }

/* Project Workspace (aba + painel) */
.project-workspace-tabs{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding: 10px 18px 0;
  margin: 0;
  min-height: 40px;
}

.project-workspace-tabs:empty{
  display:none;
}

.project-workspace-tabs:not(:empty) ~ .view .container{
  padding-top: 2px !important;
}

.workspace-tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(12,18,32,.12);
  background: rgba(255,255,255,.9);
  border-radius: 12px;
  padding: 6px 10px;
  cursor:pointer;
  font-weight:700;
  margin-bottom: 0;
  box-shadow: 0 6px 14px rgba(15,23,42,.04);
}

.workspace-tab--attention{
  border-color: rgba(99,102,241,.5);
  box-shadow: 0 0 0 0 rgba(99,102,241,.22);
  animation: workspace-tab-pulse 1.25s ease-in-out infinite;
}

.workspace-tab.active{
  border-color: rgba(37,99,235,.38);
  background: linear-gradient(180deg, rgba(219,234,254,.78), rgba(255,255,255,.9));
  animation: none;
}

@keyframes workspace-tab-pulse{
  0%, 100%{
    border-color: rgba(99,102,241,.42);
    box-shadow: 0 0 0 0 rgba(99,102,241,.10);
  }
  50%{
    border-color: rgba(99,102,241,.9);
    box-shadow: 0 0 0 4px rgba(99,102,241,.16);
  }
}

.workspace-tab-close{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:999px;
  background: rgba(12,18,32,.08);
  font-weight:700;
}

.project-workspace-panel{
  position: relative;
  width: 100%;
  min-height: 620px;
  height: calc(100vh - 190px);
  margin-top: 0;
  border:1px solid rgba(12,18,32,.12);
  border-radius: 18px;
  background: rgba(248,250,252,.98);
  box-shadow: 0 24px 70px rgba(12,18,32,.24);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  opacity: 0;
  transform: translateY(10px);
  max-height: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, max-height .22s ease, margin .22s ease;
}

.project-workspace-panel.is-open{
  opacity: 1;
  transform: translateY(0);
  max-height: 2000px;
  pointer-events: auto;
  margin-top: 8px;
}

#viewMyProjects .page-header,
#viewMyProjects .kanban-board{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity .22s ease, transform .22s ease, max-height .22s ease, margin .22s ease;
}

#viewMyProjects .page-header{
  max-height: 220px;
}

#viewMyProjects .kanban-board{
  max-height: 2600px;
}

#viewMyProjects.workspace-open .page-header,
#viewMyProjects.workspace-open .kanban-board{
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  max-height: 0;
  margin: 0;
  overflow: hidden;
}

#viewMyProjects.workspace-open .container::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:56px;
  height:2px;
  background: var(--border);
}

.project-workspace-head{
  display:none;
}

.workspace-head-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.project-workspace-breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom: 6px;
  font-size: 12px;
}

.crumb-link{
  border:none;
  background: transparent;
  color: rgba(37,99,235,.95);
  font-weight: 700;
  padding:0;
  cursor:pointer;
}

.crumb-link:hover{
  text-decoration: underline;
}

.crumb-sep{
  color: rgba(12,18,32,.45);
}

.crumb-current{
  color: rgba(12,18,32,.7);
  font-weight: 600;
}

.project-workspace-head h2{
  margin:0;
  font-size: 24px;
}

.project-workspace-body{
  padding: 18px 14px 14px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.project-cover{
  position:relative;
  border:1px solid rgba(119,59,246,.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(119,59,246,.16), transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(80,158,255,.14), transparent 28%),
    linear-gradient(135deg, rgba(228,238,255,.9), rgba(255,255,255,.97));
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 18px 42px rgba(15,23,42,.08);
}

.project-cover::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:
    linear-gradient(120deg, rgba(255,255,255,.22), transparent 38%),
    linear-gradient(0deg, rgba(255,255,255,.22), transparent 26%);
  pointer-events:none;
}

.project-cover-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  position:relative;
  z-index:1;
}

.project-cover-main{
  min-width: 0;
  flex: 1;
  position:relative;
  z-index:1;
}

.project-cover-eyebrow{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom: 6px;
}

.project-cover-id{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(119,59,246,.16), rgba(84,120,255,.18));
  color: rgb(101,52,219);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.project-cover-eyebrow-text{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(119,59,246,.9);
  font-weight: 900;
}

.project-cover-title{
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: rgba(12,18,32,.96);
}

.project-cover-subtitle{
  margin-top: 8px;
  max-width: 62ch;
  color: rgba(12,18,32,.64);
  font-size: 15px;
}

.project-cover-kpis{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  max-width: 980px;
}

.project-cover-kpi{
  position:relative;
  border: 1px solid rgba(12,18,32,.08);
  border-radius: 20px;
  padding: 14px 16px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.8), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(246,249,255,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 28px rgba(15,23,42,.05);
}

.project-cover-kpi::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, rgba(103,80,255,.92), rgba(76,170,255,.78));
}

.project-cover-kpi-label{
  display:block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(12,18,32,.48);
}

.project-cover-kpi strong{
  display:block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: rgba(12,18,32,.94);
}

.project-cover-badges{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
  min-width: 440px;
  max-width: 520px;
  position:relative;
  z-index:1;
}

.project-cover-highlight-row{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .95fr);
  gap:8px;
  width:100%;
}

.project-cover-highlight{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width: 0;
  border-radius: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(12,18,32,.08);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.8), transparent 40%),
    rgba(255,255,255,.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 32px rgba(15,23,42,.06);
}

.project-cover-highlight-label{
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(12,18,32,.48);
}

.project-cover-highlight strong{
  font-size: 18px;
  color: rgba(12,18,32,.92);
}

.project-cover-highlight-meta{
  font-size: 12px;
  font-weight: 700;
  color: rgba(12,18,32,.56);
}

.project-cover-highlight--status{
  min-width: 138px;
}

.project-cover-highlight--deadline{
  min-width: 112px;
}

.project-cover-highlight--profit{
  min-width: 170px;
}

.project-cover-highlight--a-fazer,
.project-cover-highlight--backlog{
  border-color: rgba(59,130,246,.16);
  background: rgba(59,130,246,.08);
}

.project-cover-highlight--a-fazer strong,
.project-cover-highlight--backlog strong{
  color: rgb(37,99,235);
}

.project-cover-highlight--em-andamento{
  border-color: rgba(249,115,22,.18);
  background: rgba(249,115,22,.10);
}

.project-cover-highlight--em-andamento strong{
  color: rgb(194,65,12);
}

.project-cover-highlight--go-live{
  border-color: rgba(34,197,94,.18);
  background: rgba(34,197,94,.10);
}

.project-cover-highlight--go-live strong{
  color: rgb(21,128,61);
}

.project-cover-highlight--concluido{
  border-color: rgba(148,163,184,.2);
  background: rgba(148,163,184,.12);
}

.project-cover-highlight--concluido strong{
  color: rgb(71,85,105);
}

.project-cover-highlight--parado{
  border-color: rgba(239,68,68,.18);
  background: rgba(239,68,68,.10);
}

.project-cover-highlight--parado strong{
  color: rgb(185,28,28);
}

.project-cover-highlight--positive{
  border-color: rgba(34,197,94,.18);
  background: linear-gradient(180deg, rgba(236,253,245,.9), rgba(255,255,255,.92));
}

.project-cover-highlight--positive strong,
.project-cover-highlight--positive .project-cover-highlight-meta{
  color: rgb(22,163,74);
}

.project-cover-highlight--negative{
  border-color: rgba(239,68,68,.18);
  background: linear-gradient(180deg, rgba(254,242,242,.94), rgba(255,255,255,.92));
}

.project-cover-highlight--negative strong,
.project-cover-highlight--negative .project-cover-highlight-meta{
  color: rgb(220,38,38);
}

.project-cover-highlight--neutral{
  border-color: rgba(12,18,32,.08);
  background: rgba(255,255,255,.82);
}

.project-cover-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left: auto;
}

.project-cover-actions .icon-btn.btn-report-pdf,
.project-cover-actions .icon-btn.btn-report-excel{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border:none !important;
  border-radius:10px;
  color:#fff !important;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.project-cover-actions .icon-btn.btn-report-pdf{
  background: linear-gradient(135deg, rgb(239,68,68), rgb(220,38,38)) !important;
  box-shadow: 0 6px 16px rgba(220,38,38,.25) !important;
}

.project-cover-actions .icon-btn.btn-report-excel{
  background: linear-gradient(135deg, rgb(22,163,74), rgb(21,128,61)) !important;
  box-shadow: 0 6px 16px rgba(21,128,61,.25) !important;
}

.project-cover-actions .icon-btn.btn-report-pdf:hover,
.project-cover-actions .icon-btn.btn-report-excel:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  border:none !important;
}

.project-cover-actions .icon-btn.btn-report-pdf svg,
.project-cover-actions .icon-btn.btn-report-excel svg{
  width: 16px;
  height: 16px;
}

.project-cover-actions .icon-btn.btn-report-pdf svg *,
.project-cover-actions .icon-btn.btn-report-excel svg *{
  stroke: #fff;
  fill: none;
}

.project-cover-profit-strip{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(103,80,255,.12);
  background:
    radial-gradient(circle at top left, rgba(103,80,255,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.8), rgba(244,248,255,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 14px 32px rgba(15,23,42,.05);
  position:relative;
  z-index:1;
}

.project-cover-profit-item{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.82), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,255,.84));
  border: 1px solid rgba(12,18,32,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 10px 24px rgba(15,23,42,.045);
}

.project-cover-profit-item::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, rgba(103,80,255,.88), rgba(76,170,255,.72));
}

.project-cover-profit-item:nth-child(2)::before{
  background: linear-gradient(90deg, rgba(19,163,74,.9), rgba(89,201,138,.76));
}

.project-cover-profit-item:nth-child(3)::before{
  background: linear-gradient(90deg, rgba(245,158,11,.92), rgba(251,191,36,.76));
}

.project-cover-profit-item:nth-child(4)::before{
  background: linear-gradient(90deg, rgba(239,68,68,.88), rgba(251,113,133,.74));
}

.project-cover-profit-item strong{
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.15;
  color: rgba(12,18,32,.92);
  letter-spacing: -.03em;
}

.project-cover-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  position:relative;
  z-index:1;
}

.project-cover-card{
  border:1px solid rgba(12,18,32,.08);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.72), transparent 40%),
    rgba(255,255,255,.78);
  padding: 9px 12px;
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 6px 16px rgba(15,23,42,.035);
}

.project-cover-card strong{
  font-size: 14px;
  line-height: 1.15;
  color: rgba(12,18,32,.92);
  word-break: break-word;
}

.project-cover-label{
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(12,18,32,.48);
  font-weight: 800;
}

.project-cover-meta{
  display:block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(12,18,32,.58);
}

.project-block{
  border:1px solid rgba(12,18,32,.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.82), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,255,.9));
  padding: 14px;
  box-shadow: 0 14px 34px rgba(15,23,42,.05);
}

.project-block-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.project-block-head-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.workspace-search-field{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 320px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(12,18,32,.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,249,255,.88));
  color: rgba(12,18,32,.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 8px 20px rgba(15,23,42,.04);
}

.workspace-search-field svg{
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.workspace-search-field input{
  flex:1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(12,18,32,.88);
  font-size: 13px;
}

.workspace-search-field input::placeholder{
  color: rgba(12,18,32,.48);
}

.workspace-search-empty{
  margin-top: 12px;
}

.project-form-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.activity-form-head{
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(119,59,246,.08), rgba(255,255,255,.92));
  border: 1px solid rgba(119,59,246,.12);
}

.activity-form-eyebrow{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(119,59,246,.82);
  font-weight: 800;
}

.activity-form-subtitle{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(12,18,32,.62);
}

.project-form-grid .span-2{
  grid-column: 1 / -1;
}

.project-form-actions{
  margin-top:10px;
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

.task-card{
  border:1px solid rgba(245,158,11,.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.84), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,248,241,.9));
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 16px 34px rgba(12,18,32,.055);
  position: relative;
  overflow: hidden;
}

.task-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background: linear-gradient(180deg, rgba(139,92,246,.96), rgba(245,158,11,.75));
}

.task-card--overdue{
  border-color: rgba(245,158,11,.35);
  box-shadow: 0 14px 34px rgba(245,158,11,.12);
}

.task-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.task-head h4{
  margin:0;
  font-size: 17px;
  line-height: 1.25;
  color: rgba(12,18,32,.96);
}

.task-summary{
  list-style:none;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
}

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

.task-summary-statuses{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top: 14px;
}

.task-top-metrics{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.task-summary::-webkit-details-marker{
  display:none;
}

.task-summary-right{
  display:flex;
  align-items:flex-end;
  flex-direction:column;
  gap:8px;
}

.task-toggle-label{
  font-size: 12px;
  font-weight: 700;
  color: rgba(119,59,246,.82);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(119,59,246,.08);
}

.task-tree[open] .task-toggle-label::after{
  content: " ocultar";
  color: rgba(12,18,32,.56);
}

.task-body{
  margin-top: 16px;
  border-top: 1px solid rgba(12,18,32,.08);
  padding-top: 16px;
  position: relative;
  padding-left: 14px;
}

.task-head-main{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.task-title-row{
  display:flex;
  align-items:baseline;
  gap:12px;
  flex-wrap:wrap;
}

.task-validity-inline{
  font-size: 12px;
  color: rgba(12,18,32,.56);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(240,244,252,.86);
}

.task-step{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(119,59,246,.72);
  font-weight: 800;
}

.task-kpis{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 0;
}

.kpi{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 12px;
  border:1px solid rgba(12,18,32,.08);
  border-radius:999px;
  font-size:12px;
  background: rgba(248,250,252,.9);
}

.task-status-strip{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  margin-top: 0;
}

.task-status-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  cursor:pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.task-status-pill:hover{
  transform: translateY(-1px);
  filter: brightness(1.01);
}

.task-status-pill svg{
  flex: 0 0 auto;
}

.task-status-pill.is-active{
  box-shadow: 0 0 0 2px rgba(12,18,32,.08), 0 8px 18px rgba(15,23,42,.08);
}

.task-status-pill--pending{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.18);
  color: #b91c1c;
}

.task-status-pill--done{
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.2);
  color: #15803d;
}

.task-status-pill--sent{
  background: rgba(254,240,138,.3);
  border-color: rgba(245,158,11,.28);
  color: #b45309;
}

.task-status-pill--overdue{
  background: rgba(245,158,11,.14);
  border-color: rgba(245,158,11,.22);
  color: #b45309;
}

.activity-tree{
  margin-top: 16px;
  border: 1px solid rgba(119,59,246,.10);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.76), transparent 40%),
    linear-gradient(180deg, rgba(248,245,255,.86), rgba(255,255,255,.97));
  border-radius: 18px;
  padding: 16px 16px 16px 20px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 10px 24px rgba(15,23,42,.035);
}

.activity-tree::before{
  content:"";
  position:absolute;
  left: -15px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(119,59,246,.35), rgba(119,59,246,.08));
}

.activity-tree::after{
  content:"";
  position:absolute;
  left:-15px;
  top: 28px;
  width: 14px;
  height: 2px;
  border-radius:999px;
  background: rgba(119,59,246,.22);
}

.activity-tree-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(119,59,246,.08);
}

.activity-tree-hint{
  font-size: 12px;
  color: rgba(12,18,32,.52);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(119,59,246,.08);
}

.activity-subsection-title{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(119,59,246,.72);
  font-weight: 800;
  margin: 2px 2px 4px;
}

.activity-list{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.activity-group{
  border:1px solid rgba(12,18,32,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  overflow:hidden;
  box-shadow: 0 10px 24px rgba(12,18,32,.04);
}

.activity-group--nested{
  margin-left: 18px;
  border-color: rgba(119,59,246,.14);
  background: linear-gradient(180deg, rgba(252,251,255,.96), rgba(255,255,255,.92));
  position: relative;
}

.activity-group--nested::before{
  content:"";
  position:absolute;
  left:-12px;
  top: 18px;
  width: 10px;
  height: 2px;
  border-radius:999px;
  background: rgba(119,59,246,.18);
}

.activity-group-summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  cursor:pointer;
  background: linear-gradient(180deg, rgba(244,247,252,.95), rgba(238,242,255,.82));
}

.activity-group-summary::-webkit-details-marker{
  display:none;
}

.activity-group-title{
  font-weight: 800;
  color: rgba(12,18,32,.88);
}

.activity-group-subtitle{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(12,18,32,.58);
}

.activity-group-toggle{
  font-size: 12px;
  font-weight: 700;
  color: rgba(119,59,246,.82);
}

.activity-group[open] .activity-group-toggle::after{
  content: " ocultar";
  color: rgba(12,18,32,.56);
}

.activity-group:not([open]) .activity-group-toggle::after{
  content: "";
}

.activity-group-list{
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.activity-item{
  border:1px solid rgba(12,18,32,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  padding:10px 12px;
  box-shadow: 0 8px 20px rgba(12,18,32,.04);
}

.activity-item.pending{
  border-left: 4px solid rgba(239,68,68,.85);
}

.activity-item.ok{
  border-left: 4px solid rgba(34,197,94,.85);
}

.activity-item.sent{
  border-left: 4px solid rgba(245,158,11,.9);
  background: linear-gradient(180deg, rgba(255,251,235,.96), rgba(255,255,255,.98));
}

.activity-item.overdue{
  border-left: 4px solid rgba(245,158,11,.95);
  background: linear-gradient(180deg, rgba(255,251,235,.96), rgba(255,255,255,.98));
}

.activity-item .activity-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.activity-item .activity-main > div:first-child{
  min-width:0;
  flex:1 1 auto;
}

.activity-head-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.activity-action-bar{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px;
  border-radius:999px;
  background: rgba(244,247,252,.95);
  border:1px solid rgba(12,18,32,.08);
}

.activity-action{
  background: #fff;
}

.activity-action-view{
  color:#2563eb;
}

.activity-action-edit{
  color:#0f766e;
}

.activity-action-delete{
  color:#b91c1c;
}

.activity-meta-line{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(12,18,32,.56);
}

.activity-tags{
  margin-top: 8px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.activity-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(244,247,252,.95);
  border:1px solid rgba(12,18,32,.08);
  font-size: 12px;
  color: rgba(12,18,32,.68);
}

.activity-tag--warn{
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.22);
  color: #b45309;
}

.activity-status{
  font-size:12px;
  font-weight:700;
  white-space: nowrap;
}

.activity-status.red{ color:#b91c1c; }
.activity-status.green{ color:#15803d; }
.activity-status.amber{ color:#b45309; }
.activity-status.orange{ color:#b45309; }

.activity-tech-fill{
  margin-top:8px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:8px;
}

.activity-modal-card{
  width:min(760px, calc(100% - 24px));
}

.workspace-approval-modal-card{
  width:min(440px, calc(100% - 24px));
}

.workspace-approval-summary{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding: 2px 2px 6px;
}

.workspace-approval-summary strong{
  font-size: 18px;
  line-height: 1.15;
  color: rgba(12,18,32,.94);
}

.workspace-approval-summary span,
.workspace-approval-summary p{
  margin:0;
  color: rgba(12,18,32,.62);
}

.activity-action-approve{
  color:#15803d;
}

.activity-action-revert{
  color:#b45309;
}

.activity-modal-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

.activity-modal-grid .span-2{
  grid-column: 1 / -1;
}

.activity-modal-grid input,
.activity-modal-grid textarea{
  width:100%;
}

@media (max-width: 720px){
  .my-activities-summary{
    grid-template-columns:1fr;
  }

  .my-feedbacks-hero,
  .my-feedbacks-stats{
    grid-template-columns:1fr;
  }

  .my-feedbacks-search-field{
    min-width: 100%;
  }

  .my-feedbacks-list-head,
  .my-feedback-entry-top{
    flex-direction:column;
    align-items:flex-start;
  }

  .os-approvals-summary{
    grid-template-columns:1fr;
  }

  .os-approvals-search-field,
  .os-approvals-filter-field{
    min-width:100%;
  }

  .os-approvals-bulkbar,
  .os-approval-card-head{
    grid-template-columns:1fr;
    flex-direction:column;
  }

  .os-approval-card-head{
    display:flex;
  }

  .os-approval-details-grid{
    grid-template-columns:1fr;
  }

  .my-activities-search-field{
    min-width: 100%;
  }

  .my-activities-task-summary{
    align-items:flex-start;
    flex-direction:column;
  }

  .my-activities-task-statuses{
    justify-content:flex-start;
  }

  .my-activity-section-head{
    flex-direction:column;
  }

  .my-activity-tip{
    max-width:none;
  }

  .my-activity-time-grid,
  .my-activity-modal-grid{
    grid-template-columns:1fr;
  }

  .my-activity-modal-grid .span-2{
    grid-column:auto;
  }

  .my-activity-note-meta{
    flex-direction:column;
    align-items:flex-start;
  }

  .my-activity-hours-summary{
    flex-direction:column;
    align-items:flex-start;
  }

  .my-activity-hours-hint{
    text-align:left;
  }

  .activity-head-actions{
    align-items:flex-end;
    flex-direction:column;
  }

  .activity-action-bar{
    width:100%;
    justify-content:flex-end;
  }

  .activity-modal-grid{
    grid-template-columns: 1fr;
  }

  .activity-modal-grid .span-2{
    grid-column: auto;
  }
}

.activity-tech-fill textarea{
  grid-column: 1 / -1;
  min-height: 72px;
}

.activity-tech-fill button{
  justify-self:end;
}

.my-activities-toolbar{
  width: 100%;
  justify-content: flex-end;
  gap: 10px;
}

.my-activities-search-field{
  min-width: 320px;
}

.my-activities-summary{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
  margin-bottom:16px;
}

.my-activities-stat{
  border:1px solid rgba(12,18,32,.08);
  border-radius:18px;
  padding:18px 20px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
  box-shadow: 0 16px 34px rgba(12,18,32,.05);
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.my-activities-stat:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(12,18,32,.08);
}

.my-activities-stat.is-active{
  border-color: rgba(99,102,241,.34);
  box-shadow: 0 22px 42px rgba(99,102,241,.14);
}

.my-activities-stat--pending{
  background:
    radial-gradient(circle at top right, rgba(239,68,68,.10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(254,242,242,.94));
}

.my-activities-stat--ok{
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(240,253,244,.94));
}

.my-activities-stat--warn{
  background:
    radial-gradient(circle at top right, rgba(245,158,11,.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,251,235,.96));
}

.my-activities-stat-label{
  display:block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(12,18,32,.56);
}

.my-activities-stat strong{
  display:block;
  margin-top:10px;
  font-size:34px;
  line-height:1;
  color: rgba(12,18,32,.94);
}

.my-activities-board{
  display:grid;
  gap:16px;
}

.my-activities-project-card{
  border:1px solid rgba(12,18,32,.08);
  border-radius:24px;
  padding:20px;
  background:
    radial-gradient(circle at top right, rgba(119,59,246,.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
  box-shadow: 0 18px 40px rgba(12,18,32,.06);
}

.my-activities-project-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.my-activities-project-kicker,
.my-activities-task-kicker{
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(12,18,32,.48);
}

.my-activities-project-head h3,
.my-activities-task-title{
  margin:6px 0 4px;
  font-size:24px;
  line-height:1.1;
  color: rgba(12,18,32,.95);
}

.my-activities-project-body{
  display:grid;
  gap:12px;
}

.my-activities-task-card{
  border:1px solid rgba(12,18,32,.08);
  border-radius:18px;
  background: rgba(255,255,255,.88);
  overflow:hidden;
}

.my-activities-task-summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  cursor:pointer;
}

.my-activities-task-summary::-webkit-details-marker{
  display:none;
}

.my-activities-task-subtitle{
  font-size:13px;
  color: rgba(12,18,32,.56);
}

.my-activities-task-statuses{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.my-activities-task-list{
  display:grid;
  gap:10px;
  padding:0 18px 18px;
}

.my-activities-note-preview{
  margin-top:10px;
  font-size:13px;
  line-height:1.5;
  color: rgba(12,18,32,.72);
  overflow-wrap:anywhere;
  word-break:break-word;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.my-activity-modal-card{
  display:flex;
  flex-direction:column;
  width:min(820px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  border-radius:28px;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(99,102,241,.08), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.97));
  box-shadow: 0 26px 70px rgba(12,18,32,.18);
}

.my-activity-modal-card .modal-body{
  flex:1 1 auto;
  overflow-y:auto;
  padding-bottom:18px;
}

.my-activity-modal-card .modal-footer{
  position:sticky;
  bottom:0;
  z-index:1;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}

.my-activity-modal-shell{
  display:grid;
  gap:16px;
}

.my-activity-section{
  border:1px solid rgba(12,18,32,.08);
  border-radius:22px;
  padding:18px;
  background: rgba(255,255,255,.84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.my-activity-section--context{
  background:
    radial-gradient(circle at top right, rgba(99,102,241,.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(243,244,255,.9));
}

.my-activity-section--worklog{
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(240,253,244,.92));
}

.my-activity-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.my-activity-section-head h3{
  margin:4px 0 0;
  font-size:22px;
  line-height:1.15;
  color: rgba(12,18,32,.94);
}

.my-activity-section-kicker{
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(12,18,32,.48);
}

.my-activity-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}

.my-activity-status-badge--pending{
  background: rgba(254,226,226,.95);
  color: #b91c1c;
  border-color: rgba(248,113,113,.28);
}

.my-activity-status-badge--ok{
  background: rgba(220,252,231,.95);
  color: #047857;
  border-color: rgba(74,222,128,.32);
}

.my-activity-status-badge--sent{
  background: rgba(254,240,138,.32);
  color: #b45309;
  border-color: rgba(245,158,11,.28);
}

.my-activity-status-badge--overdue{
  background: rgba(255,237,213,.96);
  color: #c2410c;
  border-color: rgba(251,146,60,.3);
}

.my-activity-tip{
  max-width:280px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.72);
  border:1px solid rgba(12,18,32,.08);
  font-size:12px;
  line-height:1.45;
  color: rgba(12,18,32,.62);
}

.my-activity-modal-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

.my-activity-time-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
  margin-bottom:12px;
}

.my-activity-modal-grid .span-2{
  grid-column: 1 / -1;
}

.my-activity-modal-grid input,
.my-activity-modal-grid textarea,
.my-activity-time-grid input,
.my-activity-time-grid textarea{
  width:100%;
}

.my-activity-modal-grid input:disabled,
.my-activity-modal-grid textarea:disabled,
.my-activity-time-grid input:disabled{
  background: rgba(255,255,255,.92);
  color: rgba(12,18,32,.78);
}

.my-activity-note-field textarea{
  min-height:140px;
  resize:vertical;
}

.my-activity-hours-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  padding:12px 14px;
  border:1px solid rgba(12,18,32,.08);
  border-radius:16px;
  background: rgba(255,255,255,.72);
}

.my-activity-hours-card{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.my-activity-hours-label{
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(12,18,32,.48);
}

.my-activity-hours-card strong{
  font-size:28px;
  line-height:1;
  color: rgba(12,18,32,.94);
}

.my-activity-hours-card strong.is-over{
  color: #c2410c;
}

.my-activity-hours-hint{
  font-size:13px;
  line-height:1.45;
  color: rgba(12,18,32,.62);
  text-align:right;
}

.my-activity-note-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:8px;
  color: rgba(12,18,32,.6);
}

.my-activity-note-meta strong{
  color: #b91c1c;
  font-size:13px;
}

.my-activity-note-meta strong.is-ready{
  color: #047857;
}

.weekdays-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.weekday-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border:1px solid rgba(12,18,32,.12);
  border-radius: 999px;
  font-size: 12px;
}

.activity-selection-chips{
  justify-content: flex-start;
  min-height: 42px;
  margin-top: 8px;
}

@media (max-width: 1080px){
  .project-workspace-panel{
    min-height: 520px;
    height: auto;
  }

  .project-form-grid{
    grid-template-columns: 1fr;
  }

  .project-form-grid .span-2{
    grid-column: auto;
  }

  .activity-tech-fill{
    grid-template-columns: 1fr;
  }

  .project-cover-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-cover-kpis,
  .project-cover-profit-strip{
    grid-template-columns: 1fr 1fr;
  }

  .task-summary,
  .task-head,
  .activity-tree-head,
  .project-block-head{
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px){
  .project-cover-hero{
    flex-direction: column;
  }

  .project-cover-badges{
    justify-content: flex-start;
    align-items: stretch;
    max-width: none;
    min-width: 0;
  }

  .project-cover-highlight-row{
    grid-template-columns: 1fr;
  }

  .project-cover-grid{
    grid-template-columns: 1fr 1fr;
  }

  .project-cover-kpis,
  .project-cover-profit-strip{
    grid-template-columns: 1fr;
  }

  .workspace-search-field{
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 820px){
  .span-6,.span-5,.span-4,.span-3,.span-8{ grid-column: span 12; }
  .modal-card.modal-xl{ width: calc(100vw - 24px); }}

  /* =========================================================
   PATCH FlowProject — Kanban mini-ícones + título quebrando
   - cor discreta nova (teal) nos mini ícones
   - título quebra quando for grande
   - tooltip já vem do title="" (JS)
   ========================================================= */

:root{
 --action-primary: rgb(119, 59, 246);   /* cor do botão adicionar */
 --action-primary-hover: rgb(100, 102, 251);
}

/* mini ícones do card */
.mini-ic{
  color: var(--action-primary);
  opacity: .95;
  transition: color .12s ease, transform .12s ease, opacity .12s ease;
}

/* realce no hover (quando o mouse passa em cima do mini item) */
.kanban-mini:hover .mini-ic{
  color: var(--action-primary);
  opacity: 1;
  transform: translateY(-1px);
}

.mini-ic.mini-ic--danger{
  color: #dc2626 !important;
}

.kanban-mini:hover .mini-ic.mini-ic--danger{
  color: #dc2626 !important;
}

/* título do card: permite quebrar em até 2 linhas */
.kanban-card-name{
  white-space: normal !important;
  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  word-break: break-word;
  line-height: 1.2;
}

/* ===== Técnicos: seções do formulário + chips ===== */
.form-sections{ display:flex; flex-direction:column; gap:14px; }
.form-section{
  border:1px solid var(--border);
  background: rgba(255,255,255,.65);
  border-radius: 14px;
  padding: 12px;
}
.section-title{
  font-weight: 700;
  margin-bottom: 10px;
  color: rgba(12,18,32,.8);
  font-size: 13px;
}
.chip-input input{
  width:100%;
  border:1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.85);
}
.chips-mini{ margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; }
.chip.mini{
  padding: 6px 10px;
  font-size: 11px;
  background: rgba(255,255,255,.75);
}
.chip.mini.removable{
  cursor:pointer;
}
.chip.mini.removable:hover{
  border-color: var(--primary);
}
.action-col{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width: 160px;
}
.action-col .action-row{ display:flex; gap:8px; flex-wrap:wrap; }
.action-meta{ display:flex; flex-direction:column; gap:6px; }
.action-meta .meta-line{ font-size:12px; color: rgba(12,18,32,.75); }
.action-meta .meta-line b{ color: rgba(12,18,32,.9); }

#btnOpenCreateTech{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 44px;
  height: 44px;
  padding: 0;
}

#btnOpenCreateTech svg{
  width: 42px;
  height: 42px;
}

#btnOpenCreateTech:hover{
  background: transparent !important;
  transform: scale(1.08);
}


/* ===== CHIPS PADRÃO ===== */

.chip{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  margin: 4px 6px 4px 0;
  cursor: pointer;
  transition: all .2s ease;
  border: 1px solid transparent;
}

/* SOFT SKILLS - Roxo suave */
.chip-soft{
  background: rgba(119, 59, 246, 0.12);
  color: rgb(119, 59, 246);
  border-color: rgba(119, 59, 246, 0.25);
}

.chip-soft:hover{
  background: rgba(119, 59, 246, 0.2);
}

/* HARD SKILLS - Azul */
.chip-hard{
  background: rgba(59, 130, 246, 0.12);
  color: rgb(59, 130, 246);
  border-color: rgba(59, 130, 246, 0.25);
}

.chip-hard:hover{
  background: rgba(59, 130, 246, 0.2);
}

.chip-removable-x{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:14px;
  height:14px;
  margin-left:6px;
  border-radius:999px;
  background: rgba(255,255,255,.5);
  font-size:10px;
  font-weight:900;
  line-height:1;
}

button.chip.mini.removable{
  display:inline-flex;
  align-items:center;
}

.chip-team{
  background: rgba(99, 102, 241, 0.12);
  color: rgb(99, 102, 241);
  border-color: rgba(99, 102, 241, 0.25);
}

.chip-team:hover{
  background: rgba(99, 102, 241, 0.2);
}

.admin-overview-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-bottom:12px;
}

.admin-overview-card{
  border:1px solid rgba(12,18,32,.08);
  border-radius:20px;
  padding:18px 20px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
  box-shadow: 0 18px 45px rgba(12,18,32,.06);
}

.admin-overview-card strong{
  display:block;
  margin-top:10px;
  font-size:34px;
  line-height:1;
  letter-spacing:-0.03em;
  color: rgba(12,18,32,.92);
}

.admin-overview-mini-stats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.admin-mini-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid rgba(12,18,32,.08);
  color: rgba(12,18,32,.78);
  background: rgba(255,255,255,.82);
}

.admin-mini-pill b{
  font-size:12px;
  color: rgba(12,18,32,.96);
}

.admin-mini-pill--violet{
  color:#5b21b6;
  background: rgba(139,92,246,.12);
  border-color: rgba(139,92,246,.18);
}

.admin-mini-pill--blue{
  color:#1d4ed8;
  background: rgba(59,130,246,.12);
  border-color: rgba(59,130,246,.18);
}

.admin-mini-pill--indigo{
  color:#4338ca;
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.18);
}

.admin-mini-pill--slate{
  color:#334155;
  background: rgba(148,163,184,.16);
  border-color: rgba(148,163,184,.2);
}

.admin-overview-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(12,18,32,.56);
}

.admin-overview-card--warn{
  background:
    radial-gradient(circle at top right, rgba(239,68,68,.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(254,242,242,.92));
}

.admin-team-card{
  padding:18px;
  border-radius:20px;
  background:
    radial-gradient(circle at top right, rgba(119,59,246,.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
}

.admin-team-card .title{
  margin-bottom:4px;
}

.admin-team-card .desc{
  margin-top:0;
}

.admin-team-stats{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
}

.admin-team-stat{
  border:1px solid rgba(12,18,32,.08);
  border-radius:16px;
  padding:10px 12px;
  background: rgba(255,255,255,.82);
}

.admin-team-stat-label{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(12,18,32,.52);
}

.admin-team-stat strong{
  display:block;
  margin-top:6px;
  font-size:20px;
  color: rgba(12,18,32,.9);
}

.admin-team-meta{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

@media (max-width: 900px){
  .admin-overview-grid{
    grid-template-columns:1fr;
  }

  .admin-team-stats{
    grid-template-columns:1fr;
  }
}

/* +N / ver menos (expandir skills) */
.chip-more{
  cursor: pointer;
  font-weight: 700;
  border-style: dashed !important;
  opacity: .95;
  background: rgba(255,255,255,.55);
}
.chip-more:hover{
  opacity: 1;
  transform: translateY(-1px);
}
/* remove estilo default de button */
button.chip-more{
  -webkit-appearance: none;
  appearance: none;
  padding: 6px 10px;
  line-height: 1;
}
/* =========================
   TÉCNICOS — AVATAR (lista + modal)
   ========================= */

/* Avatar compacto para tabela/lista (coluna Nome) */
.tech-user{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
}
.tech-avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(12,18,32,.10);
  background: rgba(37,99,235,.10);
  overflow: hidden;
  flex: 0 0 auto;
  display:grid;
  place-items:center;
}
.tech-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.tech-avatar .fallback{
  font-weight: 900;
  font-size: 12px;
  color: rgba(12,18,32,.78);
  user-select:none;
}

/* Nome + (opcional) subtexto dentro da célula */
.tech-user .tech-user-text{
  min-width: 0;
}
.tech-user .tech-user-name{
  font-weight: 800;
  color: rgba(12,18,32,.92);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tech-user .tech-user-sub{
  margin-top: 2px;
  font-size: 12px;
  color: rgba(12,18,32,.60);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modal Novo Técnico — seletor de foto (reaproveita padrão do Perfil) */
.tech-avatar-picker{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}
.tech-avatar-preview{
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.55);
  border: 4px solid rgba(255,255,255,.75);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  overflow: hidden;
}
.tech-avatar-preview img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* JS ativa quando tiver URL */
}
.tech-avatar-preview span{
  font-weight: 900;
  font-size: 18px;
  color: rgba(12,18,32,.75);
}

.tech-avatar-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}

.tech-create-modal-card{
  border-radius: 22px;
  border: 1px solid rgba(12,18,32,.08);
  box-shadow: 0 24px 60px rgba(12,18,32,.18);
}

.tech-create-modal-head{
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.10), transparent 34%),
    linear-gradient(135deg, rgba(248,250,252,.98), rgba(255,255,255,.94));
}

.tech-create-modal-head h2{
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.tech-create-modal-card .modal-body{
  padding: 16px 18px;
}

.tech-create-modal-card .modal-footer{
  padding: 14px 18px;
  border-top: 1px solid rgba(12,18,32,.08);
}

.tech-create-modal-card .form-section{
  background: linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.62));
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(12,18,32,.06);
}

.tech-photo-card{
  border: 1px solid rgba(12,18,32,.08);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(247,244,255,.58), rgba(255,255,255,.9));
}

.tech-photo-row{
  align-items: center;
  gap: 16px;
}

.tech-avatar-preview--lg{
  width: 84px;
  height: 84px;
}

.tech-avatar-preview--lg span{
  font-size: 28px;
}

.tech-photo-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}

.tech-photo-actions-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.tech-create-modal-footer{
  justify-content: flex-end;
}

/* input file escondido (clicamos via botão) */
input[type="file"].hidden-file{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

/* =============================
   Técnicos — ajustes UX/UI
   (somente visual)
   ============================= */

/* Paginação (topo da tabela) */
.table-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 6px 4px 0 4px;
}

.table-pagination .page-meta{
  font-size: 12px;
  color: rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  gap:10px;
}

/* Botão download (Excel) no topo */
.btn-download{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none !important;
  cursor: pointer;
  color: #fff !important;
  background: linear-gradient(135deg, rgb(119, 59, 246), rgb(100, 102, 251)) !important;
  box-shadow: 0 2px 6px rgba(119, 59, 246, 0.22);
  transition: all 0.2s ease;
}

.btn-download:hover{
  background: linear-gradient(135deg, rgb(132, 79, 255), rgb(112, 120, 255)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(119, 59, 246, 0.35);
}

.btn-download svg *{ stroke: #fff; }

.table-pagination .page-controls{
  display:flex;
  align-items:center;
  gap:8px;
}

.table-pagination .page-btn{
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.table-pagination .page-btn:hover{ transform: translateY(-1px); }
.table-pagination .page-btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; }

.table-pagination .page-btn.active{
  background: linear-gradient(135deg, rgb(119, 59, 246), rgb(100, 102, 251));
  color: #fff;
  border: none;
}

.table-pagination .page-btn.nav{
  padding: 0 10px;
  font-weight: 700;
}

.table-pagination .page-ellipsis{
  font-size: 14px;
  color: rgba(0,0,0,.35);
  padding: 0 2px;
}

/* Feedback contador (gradiente laranja) */
.feedback-badge{
  background: linear-gradient(135deg, rgb(244, 158, 71), rgb(251, 147, 77)) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  border-radius: 12px;
}

/* Botão editar (ícone) em gradiente laranja */
.btn-edit-orange{
  background: linear-gradient(135deg, rgb(244, 158, 71), rgb(251, 147, 77));
  border: none;
  color: #fff;
}

.btn-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  cursor: pointer;

  /* mesma identidade do botão "Adicionar" (roxo) */
  background: linear-gradient(
    135deg,
    rgb(119, 59, 246),
    rgb(100, 102, 251)
  ) !important;

  box-shadow: 0 2px 6px rgba(119, 59, 246, 0.22);
  transition: all 0.2s ease;
}

.btn-edit svg { width: 16px; height: 16px; }
.btn-edit svg *{ stroke: #fff; fill: none; }

/* HOVER CORRIGIDO */
.btn-edit:hover {
  background: linear-gradient(
    135deg,
    rgb(132, 79, 255),
    rgb(112, 120, 255)
  ) !important;

  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(119, 59, 246, 0.35);
}

.btn.btn-edit{
  width: auto;
  height: auto;
  padding: 10px 16px;
  border-radius: 12px;
}

/* Botão visualizar (mesma identidade do editar) */
.btn-view{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, rgb(119, 59, 246), rgb(100, 102, 251)) !important;
  box-shadow: 0 2px 6px rgba(119, 59, 246, 0.22);
  transition: all 0.2s ease;
}

.btn-view svg *{ stroke: #fff; fill: none; }

.btn-view:hover{
  background: linear-gradient(135deg, rgb(132, 79, 255), rgb(112, 120, 255)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(119, 59, 246, 0.35);
}

/* Chips no modo visualização */
.readonly{
  pointer-events: none;
}



/* Status pill: ativo verde / inativo vermelho */
.status-pill{
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
}

.status-active{
  background: #dcfce7;
  color: #16a34a;
  font-weight: 700;
}

.status-inactive{
  background: #fee2e2;
  color: #dc2626;
  font-weight: 700;
}

/* Ações: bloquear vermelho / ativar verde */
.btn-block{
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}

.btn-block:hover{ opacity:.95; transform: translateY(-1px); }

.btn-activate{
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #fff !important;
}

.btn-activate:hover{ opacity:.95; transform: translateY(-1px); }



/* Feedback nota (chip colorido) */
.chip-score{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid transparent;}
.chip-score-good{background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.35);color:#16a34a;}
.chip-score-warn{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.35);color:#d97706;}
.chip-score-bad{background:rgba(239,68,68,.12);border-color:rgba(239,68,68,.35);color:#dc2626;}
.chip-score-neutral{background:rgba(148,163,184,.12);border-color:rgba(148,163,184,.35);color:#64748b;}
