/* Painel da Shark Imobiliária copiado: base de admin/index.html + admin/login.html + admin/commercial.css, sem alterar cores. */
@import url('vendor/poppins/poppins.css');
@import url('vendor/fa/css/all.min.css');

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    :root {
      --azul: #1B2A6B; --azul-medio: #243380; --dourado: #C9A84C; --dourado-claro: #E8C97A;
      --branco: #fff; --cinza-bg: #F0F2F5; --cinza-borda: #E0E0E0; --cinza-texto: #666; --preto: #333;
    }
    body { font-family: 'Poppins', sans-serif; background: var(--cinza-bg); color: var(--preto); }
    .sidebar { position: fixed; left: 0; top: 0; width: 250px; height: 100vh; background: var(--azul); padding: 20px 0; overflow-y: auto; z-index: 100; display: flex; flex-direction: column; }
    .sidebar__logo { text-align: center; padding: 10px 20px 30px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
    .sidebar__logo img { height: 50px; }
    .sidebar__menu { list-style: none; flex: 1; }
    .sidebar__menu li a { display: flex; align-items: center; gap: 12px; padding: 12px 25px; color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: all 0.3s; cursor: pointer; }
    .sidebar__menu li a:hover, .sidebar__menu li a.active { background: rgba(255,255,255,0.1); color: var(--dourado-claro); border-right: 3px solid var(--dourado); }
    .sidebar__menu li a i { width: 20px; text-align: center; }
    .sidebar__bottom { padding: 0 20px 10px; }
    .sidebar__bottom a { display: block; text-align: center; padding: 10px; color: rgba(255,255,255,0.6); font-size: 0.8rem; text-decoration: none; }
    .sidebar__bottom a:hover { color: var(--dourado-claro); }
    .main { margin-left: 250px; padding: 30px; min-height: 100vh; }
    .main__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
    .main__header h1 { font-size: 1.5rem; color: var(--azul); }
    .dashboard-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
    .dash-card { background: white; border-radius: 10px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: relative; overflow: hidden; }
    .dash-card__title { font-size: 0.8rem; color: var(--cinza-texto); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
    .dash-card__number { font-size: 2rem; font-weight: 700; color: var(--azul); }
    .dash-card__icon { position: absolute; right: 15px; top: 15px; font-size: 2.5rem; opacity: 0.1; color: var(--azul); }
    .table-container { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
    .table-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; border-bottom: 1px solid var(--cinza-borda); }
    .table-header h2 { font-size: 1.1rem; color: var(--azul); }
    table { width: 100%; border-collapse: collapse; }
    th { background: var(--cinza-bg); padding: 12px 20px; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--cinza-texto); font-weight: 600; }
    td { padding: 15px 20px; border-bottom: 1px solid var(--cinza-borda); font-size: 0.9rem; }
    tr:hover { background: #f9f9f9; }
    .badge { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; display: inline-block; }
    .badge--venda { background: #E3F2FD; color: #1565C0; }
    .badge--aluguel { background: #E8F5E9; color: #2E7D32; }
    .badge--temporada { background: #FFF3E0; color: #E65100; }
    .badge--novo { background: #E8F5E9; color: #2E7D32; }
    .badge--contatado { background: #FFF3E0; color: #E65100; }
    .badge--convertido { background: #E3F2FD; color: #1565C0; }
    .btn { padding: 8px 16px; border-radius: 5px; border: none; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 0.85rem; font-weight: 600; transition: all 0.3s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
    .btn--primary { background: linear-gradient(135deg, #C9A84C, #E8C97A); color: var(--azul); }
    .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(201,168,76,0.3); }
    .btn--danger { background: #fee; color: #c0392b; }
    .btn--danger:hover { background: #c0392b; color: white; }
    .btn--small { padding: 5px 10px; font-size: 0.75rem; }
    .btn--edit { background: #E3F2FD; color: #1565C0; }
    .btn--view { background: #E8F5E9; color: #2E7D32; }
    .btn--view:hover { background: #2E7D32; color: white; }
    .btn--logout { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); width: 100%; justify-content: center; }
    .btn--logout:hover { background: rgba(192,57,43,0.5); color: white; }
    .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
    .modal-overlay.active { display: flex; }
    .modal { background: white; border-radius: 10px; width: 100%; max-width: 700px; max-height: 90vh; overflow-y: auto; padding: 30px; }
    .modal h2 { color: var(--azul); margin-bottom: 25px; font-size: 1.3rem; }
    .modal .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
    .modal label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--azul); margin-bottom: 6px; }
    .modal input, .modal select, .modal textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--cinza-borda); border-radius: 5px; font-family: 'Poppins', sans-serif; font-size: 0.9rem; }
    .modal input:focus, .modal select:focus, .modal textarea:focus { outline: none; border-color: var(--dourado); }
    .modal textarea { min-height: 100px; resize: vertical; }
    .modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--cinza-borda); }
    .ql-toolbar.ql-snow { border-radius: 5px 5px 0 0; border-color: var(--cinza-borda); background: var(--cinza-bg); }
    .ql-container.ql-snow { border-radius: 0 0 5px 5px; border-color: var(--cinza-borda); font-family: 'Poppins', sans-serif; font-size: 0.95rem; min-height: 180px; }
    .ql-editor { min-height: 180px; }
    .ql-editor h4 { color: var(--azul); margin: 12px 0 8px; }
    .ql-editor ul li { margin: 4px 0; }
    .ql-editor strong { color: var(--azul); }

    .periodo-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 8px; padding: 10px; background: var(--cinza-bg); border-radius: 5px; }
    .periodo-row label { font-size: 0.7rem; color: var(--cinza-texto); margin-bottom: 3px; display: block; }
    .periodo-row input, .periodo-row select { padding: 6px 8px; border: 1px solid var(--cinza-borda); border-radius: 4px; font-family: 'Poppins', sans-serif; font-size: 0.8rem; width: 100%; }
    .painel-secao { display: none; }
    .painel-secao.active { display: block; }
    .loading { text-align: center; padding: 40px; color: var(--cinza-texto); }
    /* IMOB_ADMIN_GRUPOS_20261201: imóveis separados por finalidade */
    .filtros-finalidade { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
    .filtro-finalidade { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--cinza-borda); border-radius: 20px; background: #fff; color: var(--azul); font-family: 'Poppins', sans-serif; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
    .filtro-finalidade span { background: var(--cinza-bg); border-radius: 10px; padding: 1px 8px; font-size: 0.75rem; }
    .filtro-finalidade:hover { border-color: var(--dourado); }
    .filtro-finalidade.active { background: var(--azul); border-color: var(--azul); color: #fff; }
    .filtro-finalidade.active span { background: rgba(255,255,255,0.18); }
    .grupo-finalidade { margin-bottom: 24px; border-left: 4px solid var(--grupo-cor, var(--dourado)); }
    .grupo-finalidade[hidden] { display: none; }
    .grupo-finalidade[data-grupo-finalidade="temporada"] { --grupo-cor: #E65100; }
    .grupo-finalidade[data-grupo-finalidade="venda"] { --grupo-cor: #1565C0; }
    .grupo-finalidade[data-grupo-finalidade="aluguel-mensal"] { --grupo-cor: #2E7D32; }
    .grupo-finalidade .table-header { padding: 14px 20px; }
    .grupo-titulo { display: flex; align-items: center; gap: 10px; color: var(--grupo-cor, var(--azul)) !important; }
    .grupo-conta { font-size: 0.75rem; font-weight: 600; color: var(--cinza-texto); background: var(--cinza-bg); border-radius: 12px; padding: 2px 10px; }
    .tabela-grupo { table-layout: fixed; }
    .tabela-grupo .col-id { width: 80px; }
    .tabela-grupo .col-tipo { width: 140px; }
    .tabela-grupo .col-preco { width: 160px; }
    .tabela-grupo .col-destaque { width: 100px; }
    .tabela-grupo .col-acoes { width: 150px; white-space: nowrap; }
    .tabela-grupo td.col-titulo { overflow-wrap: anywhere; }
    .rotulo-destaque { display: none; }
    .imoveis-vazio { padding: 40px 20px; text-align: center; color: var(--cinza-texto); }
    .imoveis-vazio p { margin-bottom: 14px; }
    @media (max-width: 768px) {
      .filtro-finalidade { padding: 6px 11px; font-size: 0.78rem; }
      .tabela-grupo thead { display: none; }
      .tabela-grupo, .tabela-grupo tbody { display: block; }
      .tabela-grupo tr { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "titulo titulo titulo" "id tipo preco" "destaque destaque acoes"; gap: 6px 10px; align-items: center; padding: 14px; border-bottom: 1px solid var(--cinza-borda); }
      .tabela-grupo td[class] { padding: 0; border: 0; width: auto; min-width: 0; }
      .tabela-grupo td.col-titulo { grid-area: titulo; }
      .tabela-grupo td.col-id { grid-area: id; font-size: 0.78rem; color: var(--cinza-texto); }
      .tabela-grupo td.col-id::before { content: '#'; }
      .tabela-grupo td.col-tipo { grid-area: tipo; font-size: 0.8rem; color: var(--cinza-texto); }
      .tabela-grupo td.col-preco { grid-area: preco; font-weight: 600; font-size: 0.85rem; text-align: right; }
      .tabela-grupo td.col-destaque { grid-area: destaque; font-size: 0.8rem; }
      .tabela-grupo td.col-destaque .sem-destaque { display: none; }
      .tabela-grupo td.col-destaque .rotulo-destaque { display: inline; }
      .tabela-grupo td.col-acoes { grid-area: acoes; text-align: right; }
    }
    @media (max-width: 768px) {
      .sidebar { width: 60px; }
      .sidebar__logo span, .sidebar__menu li a span, .sidebar__bottom { display: none; }
      .main { margin-left: 60px; padding: 15px; }
      .dashboard-cards { grid-template-columns: 1fr 1fr; }
      .modal .form-row { grid-template-columns: 1fr; }
      .periodo-row { grid-template-columns: 1fr 1fr; }
    }
  
/* ── login (admin/login.html) */

    
    .login-tela {
      font-family: 'Poppins', sans-serif;
      background: linear-gradient(135deg, #1B2A6B 0%, #243380 100%);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    .login-box {
      background: white;
      border-radius: 16px;
      padding: 50px 40px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      width: 100%;
      max-width: 420px;
      text-align: center;
    }
    .login-box img {
      width: 110px;
      margin-bottom: 20px;
    }
    .login-box h1 {
      color: #1B2A6B;
      font-size: 1.4rem;
      margin-bottom: 8px;
    }
    .login-box p {
      color: #666;
      font-size: 0.9rem;
      margin-bottom: 30px;
    }
    .login-box label {
      display: block;
      text-align: left;
      font-size: 0.85rem;
      font-weight: 600;
      color: #1B2A6B;
      margin-bottom: 8px;
    }
    .login-box input {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid #E0E0E0;
      border-radius: 8px;
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      margin-bottom: 20px;
      transition: all 0.3s;
    }
    .login-box input:focus {
      outline: none;
      border-color: #C9A84C;
      box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    }
    .login-box button {
      width: 100%;
      padding: 14px;
      background: linear-gradient(135deg, #C9A84C, #E8C97A);
      color: #1B2A6B;
      border: none;
      border-radius: 8px;
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      letter-spacing: 1px;
      text-transform: uppercase;
      transition: all 0.3s;
    }
    .login-box button:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(201,168,76,0.4);
    }
    .login-box button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
    .erro {
      color: #c0392b;
      background: #fee;
      padding: 10px;
      border-radius: 6px;
      font-size: 0.85rem;
      margin-bottom: 15px;
      display: none;
    }
    .voltar {
      display: inline-block;
      margin-top: 20px;
      color: #1B2A6B;
      text-decoration: none;
      font-size: 0.85rem;
    }
    .voltar:hover { color: #C9A84C; }
  
/* ── camada comercial (admin/commercial.css) */
:root{--crm-navy:#0b2039;--crm-gold:#c6a153;--crm-muted:#687387}.sidebar{background:linear-gradient(160deg,#071524,#153654)}.sidebar__menu a{padding:11px 20px}.sidebar__logo{padding:20px}.sidebar__logo img{max-height:75px}.main{background:#f3f4f6}.commercial-header{margin:-30px -30px 24px;padding:28px 30px;background:linear-gradient(110deg,#081a2e,#244868);color:white;display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.commercial-header h1{font-size:27px;color:white;margin:0}.commercial-header p{margin:8px 0;color:#dce3eb}.commercial-header .identity{border:1px solid #bfa15f;border-radius:10px;padding:12px 18px;font-size:13px}.commercial-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.commercial-toolbar input{flex:1;min-width:180px}.commercial input,.commercial select,.commercial textarea{border:1px solid #d9dde4;border-radius:7px;padding:10px;font:inherit;max-width:100%;background:white;color:#17283c}.commercial button{cursor:pointer;border:1px solid #cfd7df;border-radius:7px;background:white;padding:9px 13px;color:#17334f;font:inherit}.commercial button.primary{background:#163d65;color:white;border-color:#163d65}.commercial button:disabled{opacity:.5;cursor:default}.commercial button:hover:not(:disabled){border-color:#ad852f}.commercial-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:18px}.commercial-kpi,.commercial-card{background:white;border:1px solid #e1e5e9;border-radius:12px;box-shadow:0 2px 10px #12243a06;padding:18px;min-width:0}.commercial-kpi strong{display:block;font-size:28px;color:#0d223c;margin:8px 0}.commercial-kpi small,.commercial small,.commercial-muted{color:#677383;font-size:12px;line-height:1.5}.commercial-kpi .kpi-icon{display:inline-flex;padding:8px;background:#fcf0d2;color:#997521;border-radius:9px;margin-right:6px}.commercial-grid{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:16px;margin-bottom:16px}.commercial-grid.two{grid-template-columns:1.7fr 1fr}.commercial-card h2{font-size:17px;margin:0 0 16px;color:#172d45;display:flex;align-items:center;justify-content:space-between;gap:12px}.commercial-card h2 i{color:#b69242;margin-right:8px}.commercial-table-wrap{overflow:auto}.commercial table{border-collapse:collapse;width:100%;font-size:13px}.commercial th,.commercial td{text-align:left;padding:11px 9px;border-bottom:1px solid #eef0f3;vertical-align:top}.commercial th{background:#f3f4f6;white-space:nowrap;color:#2a3d52}.commercial td{overflow-wrap:anywhere}.commercial .badge{display:inline-block;border-radius:14px;padding:4px 9px;background:#edf2f8;color:#244b73;font-size:12px;white-space:normal}.commercial .badge.good{background:#e5f6ec;color:#167649}.commercial .badge.warn{background:#fff3d9;color:#916817}.commercial-donut{width:160px;height:160px;border-radius:50%;position:relative;flex:none}.commercial-donut:after{content:'';position:absolute;inset:29px;border-radius:50%;background:white}.commercial-donut strong{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:1;font-size:24px}.commercial-origin{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.commercial-legend{flex:1;font-size:12px}.commercial-legend button{display:flex;justify-content:space-between;width:100%;border:0;padding:8px 0;gap:8px}.commercial-legend em{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:5px}.commercial-funnel{display:grid;gap:8px}.commercial-funnel button{color:white;background:#183b62;margin:auto;padding:12px 8px;border:0;min-width:55%;font-size:13px}.commercial-funnel button:nth-child(n+3){background:#be954a;color:#172c43}.commercial-funnel strong{margin-left:8px}.commercial-alerts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.commercial-alerts button{text-align:left;background:#fbf8f2;line-height:1.6}.commercial-alerts strong{display:block;font-size:23px}.commercial-message{padding:12px;border-radius:8px;background:#fff4d8;color:#715219;margin-bottom:16px}.commercial-empty{padding:20px;color:#687387;line-height:1.6}.commercial-pagination{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:12px}.commercial dialog{border:1px solid #dbe1e8;border-radius:14px;padding:24px;width:min(620px,calc(100vw - 30px));max-height:90vh;color:#152d47}.commercial dialog::backdrop{background:#07152488}.commercial dialog label{display:block;margin:12px 0;font-size:13px}.commercial dialog input:not([type=checkbox]),.commercial dialog select,.commercial dialog textarea{width:100%;box-sizing:border-box;margin-top:6px}.commercial dialog .actions{display:flex;gap:12px;justify-content:flex-end;margin-top:18px}.commercial dialog h2{margin-top:0}.commercial .record-actions{display:flex;gap:6px;flex-wrap:wrap}.commercial .coverage{font-size:12px;color:#6e7987;margin:12px 0}.commercial-kanban{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:12px;overflow:auto}.commercial-lane{background:#e9eef4;border-radius:10px;padding:14px}.commercial-lane h3{font-size:14px}.commercial-lane button{display:block;width:100%;text-align:left;margin:8px 0;padding:14px}.commercial-lane small{display:block;margin-top:6px}@media(max-width:1100px){.commercial-kpis{grid-template-columns:repeat(3,1fr)}.commercial-grid{grid-template-columns:1fr 1fr}.commercial-grid>.commercial-card:last-child{grid-column:1/-1}}@media(max-width:760px){.commercial-header{margin:-20px -15px 18px;padding:22px 16px}.commercial-header h1{font-size:23px}.commercial-kpis{grid-template-columns:repeat(2,1fr)}.commercial-grid,.commercial-grid.two{grid-template-columns:1fr}.commercial-alerts{grid-template-columns:1fr}.commercial-card{padding:14px}.commercial-kpi{padding:12px}.commercial-kpi strong{font-size:25px}.commercial .identity{display:none}.commercial-origin{justify-content:center}}

.sidebar__menu a{text-decoration:none}.sidebar{overflow-y:auto}.commercial-card h2{flex-wrap:wrap}.commercial dialog{box-shadow:0 20px 80px #07152455}
/* Reference composition v2: compact operational dashboard, real data retained. */
body{font-family:Arial,Helvetica,sans-serif}.sidebar{width:230px;padding:0;background:linear-gradient(180deg,#061422 0%,#081e33 64%,#061625dd 100%),url('img/hero-bg.webp') center bottom/auto 48% no-repeat}.main{margin-left:230px;padding:12px;background:#f2f1ee}.sidebar__logo{height:110px;margin:0 0 6px;padding:16px 22px;display:flex;align-items:center;gap:9px;border:0}.sidebar__logo img{height:65px;width:65px;object-fit:contain}.brand-wordmark{font-size:29px;font-weight:750;letter-spacing:1px;color:#fff;text-align:left}.brand-wordmark small{display:block;font-size:10px;letter-spacing:3px;margin-top:5px;color:#d8c69a}.sidebar__menu{padding:0 9px}.sidebar__menu li a{padding:10px 13px;gap:12px;font-size:14px;min-height:40px;border-radius:7px;margin-bottom:2px;color:#d7dce5}.sidebar__menu li a.active{background:linear-gradient(110deg,#dbad51,#b18c43 42%,#4d493a);color:#07162b;border:0;font-weight:700}.sidebar__menu li a:hover{border:0;background:#ffffff16}.sidebar__bottom{padding:10px}.commercial{font-family:Arial,Helvetica,sans-serif;color:#10213b}.commercial-header{height:110px;min-height:110px;margin:-12px -12px 10px;padding:18px 24px;background:linear-gradient(90deg,#091a30 0%,#112b46f2 48%,#0920396b 100%),url('img/hero-bg.webp') center 55%/cover;flex-wrap:nowrap}.commercial-header h1{font-size:26px;line-height:1.15;letter-spacing:-.6px}.commercial-header p{font-size:15px;margin:6px 0}.commercial-header .identity{font-size:11px;line-height:1.5;padding:10px 14px;background:#06172cdb;min-width:190px;border-color:#ba9c55}.commercial-toolbar{gap:8px;margin-bottom:5px}.commercial input,.commercial select,.commercial textarea{font-size:12px;padding:7px 9px;border-radius:6px}.commercial-toolbar input{min-width:180px}.commercial button{font-size:12px;padding:6px 9px;border-radius:5px}.commercial .coverage{font-size:10px;margin:3px 0 8px;color:#647084}.coverage summary{cursor:pointer;list-style:none}.coverage summary:before{content:'ⓘ ';color:#b4934a}.coverage summary span{float:right}.coverage p{font-size:11px;line-height:1.5;padding:8px;background:#fff8e8;border-radius:5px}.commercial-kpis{gap:10px;margin-bottom:10px;grid-template-columns:repeat(6,minmax(0,1fr))}.commercial-kpi{height:100px;padding:14px 10px 10px 50px;position:relative;border-radius:11px;background:linear-gradient(115deg,#fff,#faf9f6);font-size:12px;line-height:1.25;display:flex;flex-direction:column;justify-content:flex-start}.commercial-kpi .kpi-icon{position:absolute;left:12px;top:14px;padding:8px;font-size:17px;margin:0;background:linear-gradient(130deg,#fff5db,#f8dfa4);color:#192c40}.commercial-kpi strong{font-size:29px;line-height:1;margin:7px 0 5px;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.commercial-kpi small{font-size:10px;line-height:1.2;margin-top:auto}.commercial-grid{grid-template-columns:1fr 1.14fr 1fr;gap:10px;margin-bottom:10px}.commercial-grid.two{grid-template-columns:1.7fr 1fr}.commercial-grid>.commercial-card:last-child{grid-column:auto}.commercial-card{padding:12px;border-radius:11px;background:#fefefd;box-shadow:0 2px 9px #18233005;border:1px solid #e6e5e1}.commercial-card h2{font-size:16px;line-height:1.25;margin:0 0 12px;gap:8px;letter-spacing:-.3px}.commercial-card h2 i{background:#fff1d1;border-radius:5px;padding:5px;margin-right:6px}.commercial-card h2 button{font-size:11px;border:0;color:#1461a3;background:transparent;padding:0}.commercial-muted{font-size:10px;line-height:1.35;margin:7px 0 0}.commercial table{font-size:12px;table-layout:auto}.commercial th{font-size:10px;font-weight:600;text-transform:none;letter-spacing:0;padding:8px 6px;background:#eeeef0;white-space:nowrap}.commercial td{font-size:11px;padding:9px 6px;overflow-wrap:normal;word-break:normal;line-height:1.35}.commercial small{font-size:10px}.campaign-table table{table-layout:fixed;width:100%}.campaign-table th:first-child{width:36%}.campaign-table th:nth-child(2){width:12%}.campaign-table th:nth-child(3){width:22%}.campaign-table th:nth-child(4){width:14%}.campaign-table th:nth-child(5){width:16%}.campaign-table td{height:42px;font-variant-numeric:tabular-nums}.campaign-table td small{font-size:9px;white-space:nowrap}.campaign-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.35}.commercial-origin{display:grid;grid-template-columns:minmax(130px,.95fr) minmax(145px,1.15fr);gap:12px;min-height:188px}.commercial-donut{width:100%;max-width:184px;aspect-ratio:1;height:auto;justify-self:center}.commercial-donut:after{inset:27%}.commercial-donut strong{font-size:24px;letter-spacing:-.5px}.commercial-legend button{display:grid;grid-template-columns:minmax(0,1fr) 28px 28px;gap:5px;align-items:center;text-align:left;font-size:11px;padding:9px 0;line-height:1.25}.commercial-legend strong,.commercial-legend small{font-variant-numeric:tabular-nums;text-align:right}.commercial-legend em{width:9px;height:9px}.commercial-funnel{display:grid;gap:5px;border-left:2px solid #e8bd63;padding:2px 0 2px 8px;min-height:188px;align-content:center}.funnel-row{display:grid;grid-template-columns:91px minmax(80px,1fr) 28px;align-items:center;gap:4px;font-size:10px;line-height:1.2}.commercial-funnel .funnel-row button{clip-path:polygon(0 0,100% 0,93% 100%,7% 100%);width:var(--funnel-width);min-width:45%;border-radius:0;height:37px;margin:0 auto;padding:7px 0;background:linear-gradient(120deg,#133859,#24577d);color:#fff;font-size:16px}.commercial-funnel .funnel-row:nth-child(2) button{background:linear-gradient(120deg,#286296,#4780af)}.commercial-funnel .funnel-row:nth-child(3) button{background:linear-gradient(120deg,#d89b36,#e8bb68);color:#152537}.commercial-funnel .funnel-row:nth-child(4) button{background:linear-gradient(120deg,#efd18a,#fff0c9);color:#152537}.commercial-funnel strong{margin:0}.funnel-row small{text-align:right;font-size:10px;color:#67758b}.commercial-alerts{gap:8px}.commercial-alerts button{font-size:11px;line-height:1.35;padding:10px;border:1px solid #ede9e3;background:#fffdf9}.commercial-alerts strong{font-size:22px;margin:3px 0}.commercial-empty{padding:20px 10px;font-size:12px;line-height:1.5;color:#778292;text-align:center}.commercial-pagination{margin-top:8px;gap:8px}.document-tabs{display:flex;gap:6px;margin-bottom:8px;border-bottom:1px solid #eee}.document-tabs button{min-width:100px;background:#f1f1f2;border:0;border-radius:7px 7px 0 0}.document-tabs button.selected{background:#fffaf0;box-shadow:inset 0 -2px #d5a84a;color:#102642}.commercial .badge{font-size:10px;padding:3px 7px}.commercial-message{font-size:12px;padding:8px;margin:6px 0}.commercial dialog{font-size:14px}.commercial dialog input,.commercial dialog textarea,.commercial dialog select{font-size:14px;padding:10px}.commercial dialog button{font-size:14px;padding:9px 14px}
@media(min-width:1450px){.commercial-grid:not(.two)>.commercial-card{min-height:260px}.commercial-grid.two>.commercial-card{min-height:170px}}
@media(max-width:1250px){.sidebar{width:205px}.main{margin-left:205px}.commercial-header h1{font-size:22px}.commercial-kpi{padding-left:41px;font-size:11px}.commercial-kpi .kpi-icon{left:8px;font-size:14px;padding:6px}.commercial-kpi strong{font-size:26px}.commercial-origin{grid-template-columns:1fr}.commercial-donut{max-width:145px}.commercial-legend button{padding:5px 0}.funnel-row{grid-template-columns:75px minmax(60px,1fr) 25px}}
@media(max-width:1000px){.commercial-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.commercial-grid{grid-template-columns:1fr 1fr}.commercial-grid:not(.two)>.commercial-card:last-child{grid-column:1/-1}.commercial-grid.two{grid-template-columns:1fr}.commercial-header .identity{display:none}.commercial-origin{grid-template-columns:150px 1fr}}
@media(max-width:768px){.sidebar{width:60px}.sidebar__logo{height:76px;padding:8px 4px}.sidebar__logo img{width:50px;height:50px}.sidebar__logo .brand-wordmark{display:none}.sidebar__menu{padding:0 4px}.sidebar__menu li a{padding:11px;justify-content:center;font-size:16px}.main{margin-left:60px;padding:10px}.commercial-header{margin:-10px -10px 10px;padding:16px;height:108px;min-height:108px}.commercial-header h1{font-size:21px}.commercial-header p{font-size:12px;line-height:1.4}.commercial-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.commercial-kpi{height:105px;font-size:11px;padding:12px 8px 8px 39px}.commercial-kpi strong{font-size:27px}.commercial-kpi small{font-size:9px}.commercial-grid,.commercial-grid.two{grid-template-columns:1fr;gap:9px}.commercial-grid>.commercial-card:last-child{grid-column:auto}.commercial-origin{grid-template-columns:115px 1fr;gap:10px;min-height:155px}.commercial-donut{max-width:140px}.commercial-donut strong{font-size:20px}.commercial-legend button{font-size:10px;grid-template-columns:minmax(0,1fr) 24px 24px}.commercial-toolbar input{min-width:140px}.coverage summary span{display:none}.commercial-alerts{grid-template-columns:1fr}.commercial-table-wrap{overflow:auto}.commercial table:not(.campaign-table table){min-width:500px}.campaign-table table{min-width:0}.commercial-card{padding:10px}.commercial-card h2{font-size:15px}.commercial-funnel{min-height:180px}.funnel-row{grid-template-columns:90px minmax(75px,1fr) 25px}.commercial dialog{max-height:88vh}}
@media(min-width:1001px){.commercial-header{align-items:flex-start;padding-top:15px}.commercial-header .identity{margin-left:auto}.commercial>.commercial-toolbar{position:absolute;top:75px;left:254px;right:246px;margin:0}.commercial>.coverage{margin:1px 0 7px}.commercial-origin,.commercial-funnel{min-height:168px}.commercial-header p{font-size:14px}.commercial-grid:not(.two)>.commercial-card{min-height:250px}}
@media(min-width:1001px) and (max-width:1250px){.commercial>.commercial-toolbar{left:229px;right:28px}.commercial-header .identity{display:none}}
.commercial-kpi{font-size:13px}.commercial-kpi small{font-size:11px}.commercial td{font-size:12px}.commercial th{font-size:11px}.commercial-legend button{font-size:12px}.commercial-muted{font-size:11px}.commercial-card h2{font-size:17px}.campaign-name{font-size:12px}.commercial-alerts button{position:relative;padding-left:38px;font-size:12px}.commercial-alerts i{position:absolute;left:11px;top:13px;font-size:19px}.alert-red{color:#c54e3f}.alert-amber{color:#ce9636}.document-preview-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto 38px;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #eeece8;font-size:12px}.document-preview-row>i{color:#bf4a54;font-size:17px}.document-preview-row strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:500;line-height:1.35}.document-preview-row small{display:block;margin-top:2px;color:#718095}.document-preview-row button{border:0;padding:3px;color:#235e9c}.sidebar{background:linear-gradient(180deg,#061422 0%,#081e33f5 52%,#06162566 100%),url('img/hero-bg.webp') center bottom/auto 53% no-repeat}
@media(max-width:768px){.commercial-kpi{font-size:11px}.commercial-kpi small{font-size:9px}.commercial-card h2{font-size:15px}.commercial-legend button{font-size:10px}.document-preview-row{grid-template-columns:18px minmax(0,1fr) auto;font-size:11px}.document-preview-row>.badge{grid-column:2}.document-preview-row button{grid-column:3;grid-row:1}.commercial-alerts button{font-size:12px}}

.campaign-preview-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;font-size:11px;color:#667181}.campaign-preview-footer button{font-size:11px;color:#235e9c;padding:5px 7px}.campaign-table td small{font-size:11px;white-space:normal}

.document-preview-row{padding:6px 0}.document-tabs{margin-bottom:5px}.commercial-grid.two>.commercial-card{min-height:140px}.sidebar{background:linear-gradient(180deg,#061422 0%,#081e33f5 52%,#061625aa 100%),url('img/hero-bg.webp') center bottom/auto 53% no-repeat}

.visit-preview-row{display:grid;grid-template-columns:22px minmax(0,1fr) 38px;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid #eee;font-size:12px}.visit-preview-row>i{color:#b08a3e;font-size:18px}.visit-preview-row strong{font-weight:500}.visit-preview-row small{display:block;color:#718095;margin-top:3px}.visit-preview-row button{border:0;padding:3px;color:#235e9c}.commercial-grid.two td:last-child button{padding:4px 6px;font-size:11px}.commercial-grid.two td{padding-top:6px;padding-bottom:6px}

/* ── acréscimos do Em Dia MEI (o que o painel da imobiliária não tinha) */
.hidden { display: none !important; }
.login-tela { position: fixed; inset: 0; z-index: 300; background: linear-gradient(120deg,#071524f2,#153654e6),url('img/hero-bg.webp') center/cover; }
.login-box .brand-wordmark { color: #1B2A6B; font-size: 30px; text-align: center; margin-bottom: 18px; display: block; }
.login-box .brand-wordmark small { color: #b18c43; }
.logo-quadro { width: 62px; height: 62px; flex: none; border-radius: 6px; background: linear-gradient(150deg,#16305a,#0b1c3a); border: 1px solid #c6a15366; display: flex; align-items: center; justify-content: center; color: #dbad51; font-size: 26px; }
.sidebar__quem { color: #d7dce5; font-size: 11px; text-align: center; padding: 0 6px 8px; }
.commercial .badge.bad { background: #fde8e6; color: #b3392b; }
.commercial .badge.off { background: #eceef1; color: #5d6877; }
.commercial td .record-actions button i { margin-right: 4px; }
.commercial td { vertical-align: middle; white-space: nowrap; }
.commercial td.quebra { white-space: normal; }
.commercial-card h2 > span { display: inline-flex; align-items: center; }
.commercial .modal-overlay .modal h2 { display: block; }
.lista-pendencia { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eeece8; font-size: 12px; }
.lista-pendencia > i { color: #b08a3e; font-size: 16px; } .lista-pendencia small { display: block; color: #718095; margin-top: 2px; } .lista-pendencia button { border: 0; padding: 3px; color: #235e9c; }
.aviso-topo { position: fixed; right: 18px; top: 18px; z-index: 400; max-width: 420px; padding: 12px 16px; border-radius: 8px; font-size: 13px; background: #fff4d8; color: #715219; box-shadow: 0 8px 30px #07152433; }
.aviso-topo.erro { background: #fde8e6; color: #b3392b; } .aviso-topo.ok { background: #e5f6ec; color: #167649; } .aviso-topo:empty { display: none; }
.modal .erro { display: block; margin: 15px 0 0; } .modal .erro:empty { display: none; }
.modal .campo { margin-bottom: 15px; }
@media(min-width:1001px){ .commercial.sem-filtros > .commercial-toolbar { position: static; margin: 0 0 10px; } }

/* 3ª rodada: avisos do WhatsApp e janela de gestão */
.wa-faixa { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; padding: 12px 16px; border-radius: 10px; background: #fde8e6; border: 1px solid #e9b4ad; color: #9c2e22; font-size: 13px; font-weight: 700; }
.wa-faixa span { flex: 1; min-width: 200px; } .wa-faixa small { display: block; font-weight: 400; color: #7a3a33; margin-top: 2px; }
.sidebar__menu .ponto-alerta { width: 9px; height: 9px; border-radius: 50%; background: #e2513f; margin-left: auto; box-shadow: 0 0 0 3px #e2513f44; }
.modal.gestao-wa { max-width: 720px; width: 100%; max-height: 92vh; overflow: auto; position: relative; }
.gestao-wa .fechar-x { position: absolute; right: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f1efea; font-size: 18px; cursor: pointer; }
.gestao-wa h2 { margin: 0; font-size: 22px; color: #10213b; } .gestao-wa .sub { color: #677383; font-size: 13px; margin: 4px 0 18px; }
.gestao-wa .bloco { background: #fff; border: 1px solid #e1e5e9; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.gestao-wa .rotulo { font-size: 11px; font-weight: 800; text-transform: uppercase; color: #687387; letter-spacing: .06em; margin-bottom: 8px; }
.gestao-wa .estado { font-size: 16px; font-weight: 800; } .gestao-wa .estado.ok { color: #167649; } .gestao-wa .estado.ruim { color: #c0392b; } .gestao-wa .estado.espera { color: #a8760f; }
.gestao-wa .dica { font-size: 11px; color: #5d6877; margin-top: 4px; }
.gestao-wa .botoes { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.gestao-wa .botoes button { font: inherit; font-size: 12px; font-weight: 700; padding: 7px 13px; border-radius: 18px; border: 1px solid #cfd7df; background: #fff; color: #17334f; cursor: pointer; }
.gestao-wa .botoes button:hover:not(:disabled) { border-color: #ad852f; } .gestao-wa .botoes button:disabled { opacity: .5; cursor: default; }
.gestao-wa .qr { background: linear-gradient(135deg,#fff8e1,#fff); border: 2px solid #c6a153; text-align: center; }
.gestao-wa .qr .rotulo { color: #a17c2c; } .gestao-wa .qr img { max-width: 280px; width: 100%; border-radius: 10px; border: 1px solid #e1e5e9; background: #fff; }
.gestao-wa .qr p { font-size: 12px; color: #4d5868; margin: 10px 0 0; line-height: 1.5; }
.gestao-wa .numeros { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 10px; }
.gestao-wa .numeros strong { display: block; font-size: 26px; color: #0d223c; } .gestao-wa .numeros small { font-size: 10px; color: #687387; text-transform: uppercase; }
.gestao-wa .linha { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; } .gestao-wa .texto { font-size: 13px; color: #4d5868; line-height: 1.6; }
.gestao-wa .fechar-largo { width: 100%; padding: 13px; border: 0; border-radius: 10px; background: #0b2039; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.commercial-donut { aspect-ratio: 1; }
.commercial-kpi strong.longo { font-size: 19px; margin: 12px 0 9px; white-space: nowrap; }
/* Fatia 3: DAS mensal */
.das-modo { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; padding: 11px 15px; border-radius: 10px; background: #fff8e8; border: 1px solid #ead9ab; color: #6b5217; font-size: 12px; line-height: 1.5; }
.das-modo i { margin-top: 2px; color: #b08a3e; }
.commercial td .record-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.commercial input[type=month] { min-width: 150px; flex: none; }
.quadro-modulo { display: block; width: 100%; height: calc(100vh - 132px); min-height: 520px; border: 0; border-radius: 12px; background: #f2f1ee; }

/* ═══ TEMA EM DIA MEI: mesmo desenho do painel da imobiliária, cores da marca (site emdiamei.com.br) ═══
   escuro #123F35 · verde #20A875 · meio #185244 · claro #F3F5F1 · linha #D5DDD7 · âmbar #8A5300 / #FBEFD9 */
:root { --azul: #123F35; --azul-medio: #185244; --dourado: #20A875; --dourado-claro: #8FD3B6; --cinza-bg: #F3F5F1; --crm-navy: #123F35; --crm-gold: #20A875; }
body, .main { background: #F3F5F1; }
.sidebar { background: linear-gradient(180deg,#0b2a23 0%,#123f35f5 52%,#0b2a23b0 100%),url('img/hero-bg.webp') center bottom/auto 53% no-repeat; }
.sidebar__logo img.marca { height: auto; width: 168px; max-width: 100%; }
.sidebar__menu li a { color: #d5e3dc; }
.sidebar__menu li a.active { background: linear-gradient(110deg,#25b983,#20a875 42%,#185244); color: #fff; }
.sidebar__quem { color: #b9d3c7; }
.commercial { color: #25312D; }
.commercial-header { background: linear-gradient(90deg,#0b2a23 0%,#123f35f2 48%,#1852446b 100%),url('img/hero-bg.webp') center 55%/cover; }
.commercial-header p { color: #d5e3dc; }
.commercial-header .identity { border-color: #20A875; background: #0b2a23db; }
.commercial-kpi .kpi-icon { background: linear-gradient(130deg,#e7f5ee,#bfe6d3); color: #123F35; }
.commercial-kpi strong, .commercial-card h2, .commercial-donut strong { color: #123F35; }
.commercial-card h2 i { color: #20A875; }
.commercial-kpi, .commercial-card { border-color: #D5DDD7; }
.commercial th { background: #F3F5F1; color: #25312D; }
.commercial button { color: #185244; border-color: #D5DDD7; }
.commercial button.primary { background: #123F35; border-color: #123F35; color: #fff; }
.commercial button:hover:not(:disabled) { border-color: #20A875; }
.commercial .badge.good { background: #e3f5ec; color: #0E6B49; }
.commercial .badge.warn { background: #FBEFD9; color: #8A5300; }
.funnel-row button { background: linear-gradient(120deg,#0f352c,#185244); color: #fff; }
.funnel-row:nth-child(2) button { background: linear-gradient(120deg,#185244,#23775f); color: #fff; }
.funnel-row:nth-child(3) button { background: linear-gradient(120deg,#20a875,#4cc496); color: #0b2a23; }
.funnel-row:nth-child(4) button { background: linear-gradient(120deg,#a9e0c8,#dff4ea); color: #0b2a23; }
.lista-pendencia > i, .das-modo i { color: #20A875; } .lista-pendencia button, .commercial-grid.two td:last-child button { color: #0E6B49; }
.das-modo { background: #FBEFD9; border-color: #ecd6a8; color: #8A5300; } .das-modo i { color: #8A5300; }
.alert-amber { color: #20A875; }
.login-tela { background: linear-gradient(120deg,#0b2a23f2,#185244e6),url('img/hero-bg.webp') center/cover; }
.login-box img.marca { width: 210px; display: block; margin: 0 auto 18px; }
.gestao-wa h2, .gestao-wa .numeros strong { color: #123F35; } .gestao-wa .fechar-largo { background: #123F35; }
.gestao-wa .qr { border-color: #20A875; background: linear-gradient(135deg,#e7f5ee,#fff); } .gestao-wa .qr .rotulo { color: #0E6B49; }
.quadro-modulo { background: #F3F5F1; }
.original-inbox { --navy: #123F35; --navy-2: #185244; --gold: #20A875; --gold-soft: #cdeedd; --green: #0E6B49; }

/* A receber · Financeiro · Fechamento · Usuários (peças novas, mesmo desenho dos quadros comerciais) */
.commercial .commercial-funnel .funnel-row button { background: linear-gradient(120deg,#0f352c,#185244); color: #fff; }
.commercial .commercial-funnel .funnel-row:nth-child(2) button { background: linear-gradient(120deg,#185244,#23775f); color: #fff; }
.commercial .commercial-funnel .funnel-row:nth-child(3) button { background: linear-gradient(120deg,#20a875,#4cc496); color: #0b2a23; }
.commercial .commercial-funnel .funnel-row:nth-child(4) button { background: linear-gradient(120deg,#a9e0c8,#dff4ea); color: #0b2a23; }
.commercial > .commercial-card { margin-bottom: 10px; } .commercial > .commercial-muted { margin: 2px 0 8px; display: block; }
.resumo-linha small { letter-spacing: .12em; font-weight: 700; color: #56645E; } .resumo-linha h2 { margin: 4px 0 4px; font-size: 20px; } .resumo-linha p { margin: 0; font-size: 12px; }
.quadro-colunas { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 10px; align-items: start; }
.quadro-colunas.cinco { grid-template-columns: repeat(5,minmax(0,1fr)); margin: 0; }
.coluna { background: #fff; border: 1px solid #D5DDD7; border-left: 4px solid #8a968f; border-radius: 12px; padding: 12px; min-height: 150px; min-width: 0; }
.coluna.vermelha { border-left-color: #c0392b; } .coluna.laranja { border-left-color: #d08a1e; } .coluna.verde { border-left-color: #20A875; } .coluna.cinza { border-left-color: #56645E; }
.coluna h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: #25312D; }
.coluna h3 i { margin-right: 6px; } .coluna.vermelha h3 { color: #b3392b; } .coluna.laranja h3 { color: #a8690f; } .coluna.verde h3 { color: #0E6B49; }
.coluna h3 em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: #56645E; border-radius: 10px; padding: 2px 8px; }
.coluna.vermelha h3 em { background: #c0392b; } .coluna.laranja h3 em { background: #d08a1e; } .coluna.verde h3 em { background: #20A875; }
.coluna-soma { margin: 4px 0 8px; padding-bottom: 8px; border-bottom: 1px solid #e7ece5; font-size: 12px; color: #56645E; }
.coluna-vazia { text-align: center; color: #9aa59f; padding: 24px 0; }
.cobranca { border: 1px solid #e7ece5; border-radius: 9px; padding: 9px 10px; margin-bottom: 7px; background: #fbfcfa; font-size: 12px; }
.cobranca-topo { display: flex; justify-content: space-between; gap: 8px; } .cobranca-topo strong { overflow-wrap: anywhere; } .cobranca-topo b { white-space: nowrap; color: #123F35; }
.cobranca small { display: block; margin: 3px 0 7px; color: #56645E; }
.commercial .record-actions { display: flex; gap: 5px; flex-wrap: wrap; } .commercial .record-actions button i { margin-right: 3px; }
.fin-totais { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.fin-total { border-radius: 12px; padding: 14px 18px; border-left: 4px solid; }
.fin-total small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; } .fin-total strong { display: block; font-size: 26px; margin: 6px 0 4px; } .fin-total span { font-size: 12px; color: #56645E; }
.fin-total.receber { background: #e7f5ee; border-color: #20A875; } .fin-total.receber strong, .fin-total.receber small { color: #0E6B49; }
.fin-total.pagar { background: #fdeceb; border-color: #c0392b; } .fin-total.pagar strong, .fin-total.pagar small { color: #b3392b; }
.commercial-kpis.quatro { grid-template-columns: repeat(4,minmax(0,1fr)); } .commercial-kpis.cinco { grid-template-columns: repeat(5,minmax(0,1fr)); }
.commercial-kpi.fin-kpi { padding: 14px 16px; height: auto; min-height: 84px; border-left: 4px solid #8a968f; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #56645E; }
.commercial-kpi.fin-kpi strong { font-size: 22px; margin: 6px 0 2px; } .commercial-kpi.fin-kpi small { font-weight: 400; letter-spacing: 0; }
.fin-kpi.verde { border-left-color: #20A875; } .fin-kpi.verde strong { color: #0E6B49; } .fin-kpi.vermelha { border-left-color: #c0392b; } .fin-kpi.vermelha strong { color: #b3392b; }
.fin-kpi.ouro { border-left-color: #123F35; } .fin-kpi.laranja { border-left-color: #d08a1e; } .fin-kpi.laranja strong { color: #a8690f; }
.commercial th.num, .commercial td.num { text-align: right; } .commercial td.entra { color: #0E6B49; font-weight: 700; } .commercial td.sai { color: #b3392b; font-weight: 700; }
.form-usuario { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.form-usuario label { display: grid; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #56645E; }
.form-usuario input { width: 100%; text-transform: none; letter-spacing: 0; font-weight: 400; }
.usuario { border: 1px solid #D5DDD7; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.usuario-topo { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 9px; }
.usuario-topo strong { font-size: 14px; margin-right: 8px; } .usuario-topo small { display: block; margin-top: 4px; }
.fichas-acesso { display: flex; flex-wrap: wrap; gap: 6px; }
.commercial .ficha-acesso { border-radius: 14px; padding: 4px 11px; font-size: 11px; background: #f1f3f0; color: #9aa59f; text-decoration: line-through; border-color: #e3e8e2; }
.commercial .ficha-acesso.tem { background: #e3f5ec; color: #0E6B49; text-decoration: none; border-color: #bfe6d3; font-weight: 700; }
.commercial .ficha-acesso:disabled { opacity: 1; cursor: default; } .fichas-acesso.editando .ficha-acesso { cursor: pointer; }
.commercial button.perigo { color: #b3392b; }
@media(max-width:1000px){ .quadro-colunas, .quadro-colunas.cinco { grid-template-columns: 1fr 1fr; } .commercial-kpis.quatro, .commercial-kpis.cinco { grid-template-columns: 1fr 1fr; } .form-usuario { grid-template-columns: 1fr 1fr; } .fin-totais { grid-template-columns: 1fr; } }
