/* Br.c CRM | by cesar designer / estilos herdados */
:root {
  --bg: #f7f6f9;
  --paper: #ffffff;
  --line: #ebe5ed;
  --text: #242039;
  --muted: #827b91;
  --primary: #7651ae;
  --primary2: #62409b;
  --soft: #f4eef9;
  --green: #268d75;
  --orange: #d98b63;
  --radius: 16px;
  --shadow: 0 12px 35px rgba(49,29,73,.055);
}
body { background: var(--bg); color: var(--text); }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(235,140,164,.65); outline-offset: 2px; }
/* Sidebar dark editorial: clean enough for all-day use */
.sidebar {
  width: 254px;
  background: linear-gradient(175deg, #211832 0%, #1c192f 48%, #24213c 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 7px 0 34px rgba(29,20,48,.08);
  overflow-y:auto;
}
.sidebar:before {
  content: ""; position:absolute; pointer-events:none; top:0; left:0; right:0;
  height:220px; background:radial-gradient(circle at 0% 0%, rgba(237,112,157,.20), transparent 67%);
}
.brand { min-height: 96px; padding: 21px 18px 19px 22px; border-bottom:1px solid rgba(255,255,255,.10); position:relative; }
.brand-icon, .auth-card .brand-icon {
  background:linear-gradient(140deg,#eaa0ba 0%,#9558b4 53%,#53449a 100%);
  box-shadow: 0 7px 22px rgba(216,111,157,.25);
  color:#fff; border-radius:14px;
}
.brand-icon { width:47px; height:47px; padding:7px; display:grid; place-items:center; flex:none; }
.brand strong { font-size:20px; font-weight:750; letter-spacing:-.8px; white-space:nowrap; color:#fff; }
.brand strong span { color:#f1aec9; }
.brand small { margin-top:5px; color:#b8b2cc; font-size:9px; font-weight:650; letter-spacing:.85px; }
.side-caption { position:relative; color:#9289a8; letter-spacing:1.6px; margin-top:25px; margin-bottom:14px; }
.nav-item { color:#c2bdd0; border:1px solid transparent; font-weight:560; margin:1px 0; padding:13px 14px; }
.nav-item:hover { color:#fff; background:rgba(255,255,255,.065); }
.nav-item.active { color:#fff; background:linear-gradient(100deg,rgba(218,119,169,.21),rgba(127,94,179,.18)); border-color:rgba(243,184,202,.12); box-shadow:inset 3px 0 #e69dbb; }
.nav-ico { color:#dbb1cb; }
.nav-count { color:#f7e4f2; background:rgba(255,255,255,.13); }
.side-footer { position:relative; border-color:rgba(255,255,255,.09); }
.side-footer small { color:#ada5bf; }
.mode-pill { background:rgba(255,255,255,.095); color:#f4b8cf; }
.topbar { height:86px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.94); backdrop-filter:blur(16px); }
.breadcrumb #breadLabel { color:#241c35; font-weight:770; letter-spacing:-.55px; }
.breadcrumb small { color:#817789; }
.search-box { border-color:#ece7f1; background:#f8f6fa; }
.search-box:focus-within { border-color:#c6abc9; box-shadow:0 0 0 3px rgba(177,114,180,.08); }
.search-box input { color:#352d46; }
.btn { border-color:#eae3ec; color:#51495c; border-radius:10px; transition:transform .16s, box-shadow .16s, background .16s; }
.btn:hover:not(:disabled) { filter:none; transform:translateY(-1px); box-shadow:0 6px 15px rgba(67,39,80,.08); }
.btn-primary { color:#fff; border-color:transparent; background:linear-gradient(120deg,#6e4aaa,#8b5cba 65%,#b36da9); box-shadow:0 5px 14px rgba(114,65,158,.18); }
.btn-primary:hover:not(:disabled) { background:linear-gradient(120deg,#624092,#7952ad 65%,#a2639b); }
.btn-ghost { background:#fff; }
.content { padding:30px 33px 60px; }
.page-head { margin-bottom:25px; }
.page-head h1 { color:#27203a; font-size:28px; font-weight:785; letter-spacing:-1.1px; }
.eyebrow { color:#9d66a4; letter-spacing:1.3px; font-size:10px; }
.page-head p { color:#817a8c; }
/* Elegant brand banner: referência de paleta visual anterior, softened for interface readability */
.welcome-banner { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; min-height:232px; padding:33px 42px; margin-bottom:22px; border-radius:19px;
  background:linear-gradient(110deg,#e5f7ff,#a7def7);
  box-shadow:0 16px 35px rgba(42,24,70,.12); }
.welcome-banner:after { content:''; position:absolute; inset:auto -5% -75% 43%; height:220px; border-radius:50%; filter:blur(50px); background:rgba(252,167,115,.27); z-index:-1; }
.welcome-copy { position:relative; z-index:1; max-width:720px; }
.welcome-kicker { font-size:10px; color:#f8c5dc; letter-spacing:2px; font-weight:850; display:flex; align-items:center; gap:9px; }
.kicker-dot { width:7px; height:7px; border-radius:50%; background:#f6a987; }
.welcome-banner h2 { margin:14px 0 8px; font-size:clamp(26px,2.4vw,36px); line-height:1.08; color:white; letter-spacing:-1.2px; font-weight:770; }
.welcome-banner h2 em { font-style:normal; color:#f5bdd3; }
.welcome-banner p { color:#e2d6ec; font-size:12.5px; margin:9px 0 20px; line-height:1.45; }
.welcome-actions { display:flex; align-items:center; gap:18px; }
.banner-btn { font-weight:750; border:1px solid rgba(255,255,255,.6); background:#fff; color:#4b2b64; border-radius:9px; padding:10px 16px; font-size:12px; }
.banner-btn span { margin-left:8px; }
.banner-btn:hover { background:#f9eef4; }
.banner-link { font-size:12px; background:none; color:#fff; padding:9px 0; border:0; font-weight:700; }
.banner-link span { margin-left:6px; color:#f8b5ce; }
.welcome-mark { position:absolute; right:25px; bottom:18px; color:rgba(255,255,255,.30); font-size:10px; font-weight:800; letter-spacing:3px; }
.grid-stats { gap:17px; }
.metric { border-color:#ede6f0; border-radius:15px; box-shadow:var(--shadow); padding:22px; }
.metric label { color:#81798e; font-weight:660; }
.metric b { font-size:34px; color:#271d38; }
.metric .symbol { background:#f7ebf5; color:#965da9; }
.panel { border-color:#ebe5ee; border-radius:16px; box-shadow:var(--shadow); }
.panel h2 { color:#312641; }
.funnel-row { color:#7d758b; }
.funnel-track { background:#f2ecf4; }
.funnel-fill { background:linear-gradient(90deg,#855bb6 0%,#c277b7 67%,#eca58c 100%); }
.table-wrap { border-color:var(--line); box-shadow:var(--shadow); border-radius:15px; }
.data-table th { background:#faf8fa; color:#796f83; }
.data-table td { border-top-color:#f3ecf2; }
.data-table tr:hover td { background:#fdf8fa; }
.circle-avatar { background:#f2e6f1; color:#86529b; }
.chip.purple { background:#f4eafa; color:#7d55a7; }
.chip.orange { background:#fff3ec; color:#ba7053; }
.chip.green { background:#e9f7ef; color:#2a8c6a; }
.kanban-column { background:#f1edf4; border-color:#e7dfea; border-radius:15px; }
.kanban-card { border-color:#ebe3ed; border-radius:11px; box-shadow:0 3px 11px rgba(43,27,62,.035); }
.kanban-card:hover { border-color:#cb9bc4; box-shadow:0 6px 20px rgba(67,39,86,.08); }
.kanban-column.drag-over { background:#f3e5f1; }
.cal-header { background:#faf8fa; }
.cal-event { background:#f6eafa; border-left-color:#b16cab; color:#744b8c; }
.cal-num.today { background:#9966ad; }
.note { background:#f7eef8; color:#815b94; }
.invite-code { background:#f9f3fa; border-color:#cba4c9; }
/* Branded authentication: sunset mood remains subtle behind a highly readable form */
.auth-root { background:#1a1428; overflow:auto; padding:28px; }
.auth-layout { display:grid; grid-template-columns:minmax(310px, 1.05fr) minmax(375px,.95fr); width:min(980px,100%); min-height:545px; border-radius:22px; overflow:hidden; background:#fff; box-shadow:0 30px 90px rgba(16,9,31,.35); }
.auth-story { display:flex; flex-direction:column; justify-content:space-between; min-height:545px; padding:31px 38px 36px; background:linear-gradient(155deg,#0c79ad,#80d5f5); color:#fff; }
.auth-story-top { font-size:11px; font-weight:850; letter-spacing:2.2px; display:flex; align-items:center; gap:12px; }
.auth-story-mark { font-size:36px; line-height:12px; color:#f7bed2; }
.auth-story-bottom { display:flex; flex-direction:column; gap:15px; }
.auth-story-label { color:#ffd2dc; font-size:10px; font-weight:800; letter-spacing:2.3px; }
.auth-story-bottom strong { font-size:clamp(28px,2.6vw,38px); line-height:1.13; font-weight:780; letter-spacing:-1px; }
.auth-story-bottom>span:last-child { font-size:12px; max-width:310px; color:#f4dced; line-height:1.5; }
.auth-card { max-width:none; width:auto; box-shadow:none; padding:54px 52px; display:flex; flex-direction:column; justify-content:center; border-radius:0; background:#fff; }
.auth-card .brand-icon { width:47px;height:47px; font-size:23px; }
.auth-card h1 { color:#281c38; font-size:26px; letter-spacing:-.65px; }
.auth-card p { color:#807689; }
.auth-card .field input { border-color:#ebe4eb; background:#fefcfe; }
.auth-card .field input:focus { box-shadow:0 0 0 3px rgba(207,135,187,.11); border-color:#bd8cb7; }
.auth-card .link-btn { color:#8756ad; }
.auth-mini { line-height:1.55; }
#toast { background:#302340; }
@media(max-width:1050px){.auth-card { padding:38px 34px; }.welcome-banner {padding:27px 30px}}
@media(max-width:850px){.sidebar { width:248px; } .sidebar.open { box-shadow:10px 0 80px rgba(20,12,36,.35); } .auth-layout { grid-template-columns:1fr; width:min(500px,100%); min-height:0; }.auth-story { min-height:140px; padding:23px 30px; background-position:center 48%; }.auth-story-bottom { display:none; } .auth-card { padding:30px 32px 35px; }}
@media(max-width:600px){.content {padding:19px 13px 55px}.welcome-banner{min-height:235px;padding:25px 23px;border-radius:16px;background-position:59% 50%}.welcome-banner h2{font-size:29px}.welcome-kicker{font-size:9px;letter-spacing:1px}.welcome-banner p{max-width:250px}.welcome-mark{display:none}.auth-root{padding:14px}.auth-card{padding:27px 24px}.metric{padding:17px}.metric b{font-size:29px}.topbar{background:#fff}.brand strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){.btn,.sidebar{transition:none}}

/* V4: administração de pessoas e permissões */
.team-admin-panel{background:linear-gradient(145deg,#fff,#fff7fb);border-color:#e8d5eb}.team-panel-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.team-stats{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0 24px}.team-stats span{background:#f5eefa;border-radius:12px;padding:12px 18px;color:#645876;font-size:12px}.team-stats strong{display:block;font-size:25px;color:#2b1c41}.team-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}.invite-button-field .btn{min-height:43px}.invite-success{padding:16px;border:1px solid #98d9c6;background:#ecfff6;border-radius:12px;margin-top:20px;color:#225b4b}.invite-success p{line-height:1.5;font-size:12px}.invite-success .invite-code{font-family:ui-monospace,monospace;background:#fff;padding:10px;border-radius:8px;color:#15323a;overflow-wrap:anywhere;margin:10px 0}.team-role-select{min-width:148px;max-width:220px;border:1px solid #dcd5e9;padding:8px;border-radius:8px;background:white;color:#372c4d;font-size:12px}.team-admin-panel .field label{font-size:12px}.team-admin-panel .field input,.team-admin-panel .field select{min-height:42px}.team-admin-panel .panel-sub{margin-bottom:5px}
@media(max-width:700px){.team-form-grid{grid-template-columns:1fr}.team-panel-head{display:block}.team-stats{gap:8px}.team-stats span{flex:1;min-width:90px}.team-role-select{min-width:110px}}

.invite-error{border:1px solid #bd445f;background:#fff0f4;color:#8b2345;padding:14px 16px;border-radius:12px;margin-top:16px}.invite-error p{margin:8px 0 0;line-height:1.45;overflow-wrap:anywhere}

/* V4.1 — área de convite acessível ao mouse e ao teclado */
.team-admin-panel { position: relative; isolation: isolate; }
.team-admin-panel .team-form-grid { position: relative; z-index: 1; }
.team-admin-panel .team-form-grid input, .team-admin-panel .team-form-grid select, .team-admin-panel .team-form-grid button { pointer-events: auto; touch-action: manipulation; }
.team-admin-panel .team-form-grid input:focus, .team-admin-panel .team-form-grid select:focus { outline: 2px solid #986ab5; outline-offset: 1px; }

.team-admin-panel .team-form-grid label[for] { cursor:text; }
