/* Innove Contábil — layout novo (login e moldura interna).
   Carregado depois do bootstrap e do style.1.css: as telas antigas continuam funcionando
   dentro da moldura nova até serem refeitas. */

:root {
  --ic-brand: #0fb3e8;
  --ic-brand-600: #0a95c7;
  --ic-brand-700: #0878a3;
  --ic-brand-50: #e8f8fe;
  --ic-ink: #1f2933;
  --ic-ink-2: #52606d;
  --ic-ink-3: #8a96a3;
  --ic-line: #e4e9ee;
  --ic-bg: #f5f7fa;
  --ic-card: #ffffff;
  --ic-side: #10202f;
  --ic-side-2: #182c3e;
  --ic-side-ink: #b8c4cf;
  --ic-danger-bg: #fdecec;
  --ic-danger: #a42020;
  --ic-radius: 12px;
  --ic-shadow: 0 1px 2px rgba(16, 32, 47, .05), 0 1px 3px rgba(16, 32, 47, .06);
  --ic-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
body.ic-app,
body.ic-login {
  font-family: var(--ic-font);
  color: var(--ic-ink);
  background: var(--ic-bg);
  overflow: auto;
  -webkit-font-smoothing: antialiased;
}
body.ic-app a { color: var(--ic-brand-700); }
body.ic-app a:hover { color: var(--ic-brand-600); }

/* ---------- Moldura interna ---------- */
.ic-shell { display: flex; min-height: 100vh; }

.ic-sidebar {
  width: 248px; flex-shrink: 0; background: var(--ic-side); color: var(--ic-side-ink);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 1040;
}
.ic-sidebar .ic-brand { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ic-sidebar .ic-brand img { height: 36px; background: #fff; border-radius: 8px; padding: 4px 8px; }
.ic-sidebar nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.ic-sidebar .ic-nav-title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6f8394; padding: 12px 12px 6px; }
body.ic-app .ic-sidebar nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
  color: var(--ic-side-ink); font-weight: 500; margin-bottom: 2px; text-decoration: none;
}
.ic-sidebar nav a i { font-size: 16px; width: 20px; text-align: center; }
body.ic-app .ic-sidebar nav a:hover { background: var(--ic-side-2); color: #fff; }
body.ic-app .ic-sidebar nav a.active { background: rgba(15, 179, 232, .14); color: #fff; box-shadow: inset 3px 0 0 var(--ic-brand); }
.ic-sidebar .ic-side-foot { padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12px; color: #6f8394; }

.ic-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ic-topbar {
  height: 64px; background: var(--ic-card); border-bottom: 1px solid var(--ic-line);
  display: flex; align-items: center; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 1030;
}
.ic-topbar .ic-office { font-weight: 600; color: var(--ic-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-topbar .ic-office small { display: block; font-weight: 400; color: var(--ic-ink-3); font-size: 12px; }
.ic-topbar .ic-user { margin-left: auto; position: relative; }
.ic-topbar .ic-user > button {
  display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 6px 8px; border-radius: 10px; color: var(--ic-ink);
}
.ic-topbar .ic-user > button:hover { background: var(--ic-bg); }
.ic-topbar .ic-user .ic-who { text-align: right; line-height: 1.2; }
.ic-topbar .ic-user .ic-who strong { display: block; font-weight: 600; }
.ic-topbar .ic-user .ic-who small { color: var(--ic-ink-3); font-size: 12px; }
.ic-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ic-brand-50); color: var(--ic-brand-700);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.ic-topbar .dropdown-menu { border: 1px solid var(--ic-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 32, 47, .12); padding: 6px; min-width: 200px; }
.ic-topbar .dropdown-item { border-radius: 7px; padding: 8px 12px; color: var(--ic-ink); }
.ic-topbar .dropdown-item i { width: 18px; color: var(--ic-ink-3); margin-right: 6px; }
.ic-menu-toggle { display: none; border: 0; background: none; font-size: 20px; color: var(--ic-ink); padding: 6px; }

.ic-content { padding: 28px; width: 100%; max-width: 1440px; }

/* telas antigas dentro da moldura nova */
body.ic-app .content-wrapper { margin: 0; padding: 0; z-index: auto; transition: none; }
body.ic-app .page-title {
  background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: var(--ic-radius);
  box-shadow: var(--ic-shadow); height: auto; min-height: 56px; padding: 12px 20px; margin-bottom: 20px;
}
body.ic-app .page-title h1 { font-size: 20px; font-weight: 700; }
body.ic-app .card { border-color: var(--ic-line); border-radius: var(--ic-radius); box-shadow: var(--ic-shadow); }
body.ic-app .btn { border-radius: 9px; }
body.ic-app .btn-primary { background: var(--ic-brand-600); border-color: var(--ic-brand-600); }
body.ic-app .btn-primary:hover, body.ic-app .btn-primary:focus { background: var(--ic-brand-700); border-color: var(--ic-brand-700); }
body.ic-app .form-control:focus { border-color: var(--ic-brand); box-shadow: 0 0 0 3px var(--ic-brand-50); }

/* cabeçalho de página nas telas novas */
.ic-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.ic-page-head h1 { font-size: 22px; font-weight: 700; margin: 0; }
.ic-page-head p { margin: 4px 0 0; color: var(--ic-ink-2); }
.ic-card { background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: var(--ic-radius); box-shadow: var(--ic-shadow); }

/* modal de alterar senha */
body.ic-app .modal-content { border: 0; border-radius: 14px; }

/* ---------- Menu no padrão do protótipo do Innove Ticket ---------- */
/* marca: logo inteira no menu aberto; só o símbolo no menu recolhido e na barra superior */
body.ic-app .ic-sidebar .ic-brand { display: flex; align-items: center; height: 64px; padding: 0 20px; text-decoration: none; flex-shrink: 0; }
.ic-brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: none; place-items: center;
  background: linear-gradient(135deg, var(--ic-brand), var(--ic-brand-700)); color: #fff; font-size: 15px;
}
.ic-top-brand .ic-brand-mark { display: grid; width: 32px; height: 32px; }
body.ic-app .ic-top-brand { display: flex; align-items: center; gap: 10px; color: var(--ic-ink); text-decoration: none; flex-shrink: 0; }
.ic-top-brand b { display: block; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.ic-top-brand small { display: block; font-size: 11px; color: var(--ic-ink-3); white-space: nowrap; }
body.ic-app .ic-top-brand:hover b { color: var(--ic-brand-700); }
.ic-top-sep { width: 1px; height: 28px; background: var(--ic-line); flex: none; }
.ic-topbar .ic-office { min-width: 0; }

/* itens: nome em <span> (some no menu recolhido), barra de rolagem fina só com o mouse sobre o menu */
.ic-sidebar nav a, .ic-sidebar .ic-nav-title { white-space: nowrap; }
.ic-sidebar nav { overflow-x: hidden; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.ic-sidebar:hover nav { scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.ic-sidebar nav::-webkit-scrollbar { width: 6px; }
.ic-sidebar nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 99px; }
.ic-sidebar:hover nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); }
.ic-sidebar nav i { flex-shrink: 0; }

/* rodapé: texto + botão de recolher */
.ic-sidebar .ic-side-foot { padding: 10px; }
.ic-sidebar .ic-copy { padding: 2px 12px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-collapse {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ic-side-ink); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.ic-collapse:hover { background: var(--ic-side-2); color: #fff; }
.ic-collapse:focus { outline: none; }
.ic-collapse i { width: 20px; text-align: center; transition: transform .2s; }

/* botão da barra superior: recolhe no computador, abre o menu no celular */
.ic-menu-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; font-size: 18px; color: var(--ic-ink-2); padding: 0; flex-shrink: 0; cursor: pointer; }
.ic-menu-toggle:hover { background: var(--ic-bg); color: var(--ic-ink); }
.ic-menu-toggle:focus { outline: none; }

/* nome do item ao passar o mouse no menu recolhido */
.ic-flyout {
  position: fixed; left: 80px; z-index: 1050; display: none; background: var(--ic-side); color: #fff;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
  padding: 8px 14px; font-size: 13px; font-weight: 500; white-space: nowrap; pointer-events: none;
}
.ic-flyout.show { display: block; }
.ic-backdrop { display: none; }

@media (min-width: 992px) {
  .ic-sidebar { transition: width .2s ease; }
  body.ic-mini .ic-sidebar { width: 72px; }
  body.ic-mini .ic-sidebar .ic-brand { padding: 0; justify-content: center; }
  body.ic-mini .ic-sidebar .ic-brand img,
  body.ic-mini .ic-sidebar nav a > span,
  body.ic-mini .ic-collapse span,
  body.ic-mini .ic-sidebar .ic-copy { display: none; }
  body.ic-mini .ic-sidebar .ic-brand .ic-brand-mark { display: grid; }
  body.ic-mini .ic-sidebar .ic-nav-title { font-size: 0; padding: 0; margin: 8px 6px; border-top: 1px solid rgba(255, 255, 255, .08); }
  body.ic-mini .ic-sidebar nav a, body.ic-mini .ic-collapse { justify-content: center; padding: 10px 0; }
  body.ic-mini .ic-collapse i { transform: rotate(180deg); }
}

@media (max-width: 991px) {
  .ic-sidebar { position: fixed; left: -260px; transition: left .2s; }
  .ic-sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .ic-sidebar.open ~ .ic-backdrop { display: block; position: fixed; inset: 0; background: rgba(16, 32, 47, .45); z-index: 1035; }
  .ic-collapse { display: none; }
  .ic-topbar { padding: 0 16px; gap: 12px; }
  .ic-topbar .ic-who { display: none; }
  .ic-content { padding: 20px 16px; }
}
@media (max-width: 640px) {
  .ic-top-brand > span:last-child, .ic-top-sep { display: none; }
}

/* ---------- Login ---------- */
.ic-login-grid { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.ic-login-hero {
  position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at -10% -10%, #19c3f5 0%, transparent 55%),
              radial-gradient(900px 500px at 110% 110%, #0a6f98 0%, transparent 60%),
              linear-gradient(160deg, #0b2233 0%, #10354d 100%);
}
.ic-login-hero .ic-logo { background: #fff; border-radius: 12px; padding: 8px 14px; height: 54px; width: auto; align-self: flex-start; }
.ic-login-hero .ic-hero-body { margin: auto 0; padding: 40px 0; max-width: 520px; }
.ic-login-hero h1 { font-size: 34px; font-weight: 700; line-height: 1.2; margin: 0 0 16px; letter-spacing: -.01em; }
.ic-login-hero p { color: #c9dbe6; font-size: 16px; }
.ic-login-hero ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ic-login-hero li { display: flex; gap: 12px; align-items: center; color: #e3eef5; }
.ic-login-hero li i { background: rgba(255, 255, 255, .12); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.ic-login-hero .ic-hero-foot { color: #8fb0c4; font-size: 13px; }
.ic-login-hero .ic-deco { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); font-size: 360px; color: rgba(255, 255, 255, .04); pointer-events: none; }

.ic-login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.ic-login-box { width: 100%; max-width: 380px; }
.ic-login-box .ic-mobile-logo { display: none; height: 42px; margin-bottom: 24px; }
.ic-login-box h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.ic-login-box .ic-sub { color: var(--ic-ink-2); margin-bottom: 28px; }
.ic-login-box label { font-weight: 600; font-size: 13px; margin-bottom: 6px; display: block; }
.ic-login-box .form-control { height: 46px; border-radius: 10px; border-color: #d9e0e7; font-size: 15px; }
.ic-login-box .form-control:focus { border-color: var(--ic-brand); box-shadow: 0 0 0 3px var(--ic-brand-50); }
.ic-login-box .form-control.is-invalid { border-color: #e05252; }
.ic-pw { position: relative; }
.ic-pw .form-control { padding-right: 44px; }
.ic-pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ic-ink-3); padding: 6px 8px; }
.ic-login-box .ic-btn-brand {
  height: 46px; border-radius: 10px; font-size: 15px; font-weight: 600; width: 100%;
  background: var(--ic-brand-600); border: 1px solid var(--ic-brand-600); color: #fff;
}
.ic-login-box .ic-btn-brand:hover { background: var(--ic-brand-700); border-color: var(--ic-brand-700); }
.ic-login-box .ic-btn-brand:disabled { opacity: .7; }
.ic-login-box .ic-link { font-size: 13px; color: var(--ic-brand-700); background: none; border: 0; padding: 0; }
.ic-login-box .ic-link:hover { color: var(--ic-brand-600); text-decoration: underline; }
.ic-alert { display: none; gap: 8px; align-items: center; background: var(--ic-danger-bg); color: var(--ic-danger); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 16px; }
.ic-alert.show { display: flex; }
.ic-help { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ic-line); color: var(--ic-ink-2); font-size: 13px; display: flex; gap: 10px; }
.ic-help i { font-size: 17px; color: var(--ic-brand-700); margin-top: 2px; }
.ic-help a { color: var(--ic-brand-700); }

@media (max-width: 991px) {
  .ic-login-grid { grid-template-columns: 1fr; }
  .ic-login-hero { display: none; }
  .ic-login-box .ic-mobile-logo { display: block; }
}

/* ---------- Telas com dados (cliente, lista de clientes, painel) ---------- */
.cf-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cf-head .ic-avatar { width: 52px; height: 52px; border-radius: 14px; font-size: 18px; flex-shrink: 0; }
.cf-head h1 { font-size: 22px; font-weight: 700; margin: 0; }
.cf-head .cf-sub { color: var(--ic-ink-2); font-size: 13px; }
.cf-head .cf-atual { margin-left: auto; font-size: 13px; color: var(--ic-ink-2); text-align: right; }
.cf-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ic-line); margin-bottom: 18px; overflow-x: auto; }
.cf-tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--ic-ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.cf-tabs button.ativo { color: var(--ic-brand-700); border-bottom-color: var(--ic-brand); }
.cf-painel { display: none; }
.cf-painel.ativo { display: block; }
.cf-cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cf-cartao { background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: var(--ic-radius); padding: 12px 14px; }
.cf-cartao .r { font-size: 12px; color: var(--ic-ink-2); }
.cf-cartao .v { font-size: 20px; font-weight: 700; margin-top: 2px; }
.cf-cartao .n { font-size: 12px; color: var(--ic-ink-3); }
.cf-bloco { background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: var(--ic-radius); padding: 16px; margin-bottom: 16px; }
.cf-bloco h2 { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.cf-bloco .cf-legenda { font-size: 12px; color: var(--ic-ink-3); margin-bottom: 10px; }
.cf-barra { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.cf-barra label { font-size: 12px; color: var(--ic-ink-2); margin-bottom: 2px; display: block; }
.cf-tabela { width: 100%; font-size: 13px; }
.cf-tabela th { color: var(--ic-ink-2); font-weight: 600; border-bottom: 1px solid var(--ic-line); padding: 8px 6px; white-space: nowrap; }
.cf-tabela td { border-bottom: 1px solid var(--ic-line); padding: 8px 6px; vertical-align: top; }
.cf-tabela tr.cf-click { cursor: pointer; }
.cf-tabela tr.cf-click:hover td { background: var(--ic-brand-50); }
.cf-num { text-align: right; white-space: nowrap; }
.cf-selo { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cf-ok { background: #e6f6ec; color: #17733a; }
.cf-canc { background: #fdecec; color: #a42020; }
.cf-pend { background: #fff4dd; color: #8a5a00; }
.cf-cinza { background: #eef1f4; color: #52606d; }
.cf-vazio { color: var(--ic-ink-3); padding: 24px; text-align: center; }
.cf-fundo { position: fixed; inset: 0; background: rgba(16, 32, 47, .45); z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.cf-janela { background: #fff; border-radius: var(--ic-radius); width: 100%; max-width: 860px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cf-dados dt { font-size: 12px; color: var(--ic-ink-3); font-weight: 500; }
.cf-dados dd { margin-bottom: 10px; }
.cf-chave { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; }
