@font-face {
  font-family: 'Lovelo Black';
  src: url('../fontes/lovelo_black.otf') format('opentype');
  font-style: normal;
}

.cesta-itens-accordion .accordion-button
{
display:flex;
flex-wrap:wrap;
gap:18px;
padding-right:52px;
}

.cesta-item-title
{
flex:1 1 260px;
min-width:0;
}

.cesta-item-title strong,
.cesta-item-title span
{
overflow-wrap:anywhere;
}

.cesta-item-numbers
{
flex:1 1 430px;
min-width:0;
display:grid;
grid-template-columns:repeat(auto-fit, minmax(135px, 1fr));
gap:10px;
}

.cesta-item-numbers span
{
min-width:0;
overflow-wrap:anywhere;
}

.cesta-ia-box
{
display:flex;
gap:18px;
position:relative;
overflow:hidden;
}

.cesta-ia-main
{
min-width:0;
width:100%;
}

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

.cesta-ia-content
{
max-height:780px;
overflow:auto;
transition:max-height .25s ease;
}

.cesta-ia-box.is-collapsed .cesta-ia-content
{
max-height:190px;
}

.cesta-ia-box.is-collapsed:after
{
content:"";
position:absolute;
left:0;
right:0;
bottom:0;
height:82px;
background:linear-gradient(180deg, rgba(239,246,255,0), #eff6ff 72%);
pointer-events:none;
}

.app-loading-overlay,
.cesta-loading-overlay
{
position:fixed;
inset:0;
z-index:9999;
display:none;
align-items:center;
justify-content:center;
padding:24px;
background:rgba(15,23,42,.42);
backdrop-filter:blur(5px);
}

.app-loading-overlay.is-visible,
.cesta-loading-overlay.is-visible
{
display:flex;
}

.app-loading-card,
.cesta-loading-card
{
width:min(420px, 100%);
padding:26px;
border-radius:18px;
background:#fff;
box-shadow:0 24px 70px rgba(15,23,42,.22);
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
gap:12px;
color:#0f172a;
}

.app-loading-card small,
.cesta-loading-card small
{
color:#64748b;
line-height:1.45;
}

@media (max-width: 767px)
{
  .cesta-ia-box
  {
  flex-direction:column;
  }

  .cesta-ia-head
  {
  align-items:flex-start;
  flex-direction:column;
  }
}

.cesta-precos-page .cesta-precos-hero { background: linear-gradient(135deg, #0f172a 0%, #155e75 50%, #1d4ed8 100%); }
.cesta-kpi-card, .cesta-actions-card, .cesta-side-card, .cesta-item-card { border: 1px solid #e2e8f0; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, .06); overflow: hidden; }
.cesta-kpi-card { padding: 20px; height: 100%; }
.cesta-kpi-label, .cesta-section-head span, .modal-kicker { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: #64748b; margin-bottom: 8px; }
.cesta-kpi-card strong { display: block; color: #0f172a; font-size: 1.55rem; line-height: 1.1; margin-bottom: 8px; }
.cesta-kpi-card small, .cesta-section-head small { color: #64748b; }
.cesta-actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cesta-actions-grid form { margin: 0; }
.cesta-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.cesta-section-head h5 { margin: 0; color: #0f172a; font-weight: 700; }
.cesta-itens-accordion { display: grid; gap: 14px; }
.cesta-itens-accordion .accordion-item { border: 1px solid #e2e8f0; }
.cesta-itens-accordion .accordion-button { gap: 18px; align-items: center; background: #fff; box-shadow: none; padding: 18px 20px; }
.cesta-itens-accordion .accordion-button:not(.collapsed) { background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%); color: inherit; }
.cesta-item-title { display: grid; gap: 4px; flex: 1; min-width: 220px; }
.cesta-item-title strong { color: #0f172a; }
.cesta-item-title span { color: #64748b; font-size: .9rem; }
.cesta-item-numbers { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 10px; min-width: 360px; }
.cesta-item-numbers span, .cesta-mini-stat { border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 12px; background: #fff; }
.cesta-item-numbers small, .cesta-mini-stat span { display: block; color: #64748b; font-size: .74rem; margin-bottom: 3px; }
.cesta-item-numbers span, .cesta-mini-stat strong { color: #0f172a; font-weight: 700; }
.cesta-method-box, .cesta-ia-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid #dbeafe; border-radius: 16px; background: #eff6ff; color: #1e3a8a; }
.cesta-ia-box h5 { margin: 0 0 6px; color: #0f172a; }
.cesta-ia-box p { margin: 0; color: #334155; }
.cesta-ia-icon { width: 38px; height: 38px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #dbeafe; color: #1d4ed8; flex: 0 0 auto; }
.cesta-fontes-table thead th { background: #f8fafc; color: #475569; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid #e2e8f0; }
.cesta-side-card .card-header { background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%); border-bottom: 1px solid #e2e8f0; padding: 16px 20px; }
.cesta-status-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef2f7; }
.cesta-status-line:last-child { border-bottom: 0; }
.cesta-status-line span { color: #64748b; }
.cesta-timeline { padding: 6px 20px 18px; }
.cesta-timeline-item { position: relative; padding: 14px 0 14px 18px; border-left: 2px solid #e2e8f0; }
.cesta-timeline-item::before { content: ""; position: absolute; left: -6px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: #2563eb; }
.cesta-timeline-item span, .cesta-timeline-item small { display: block; color: #64748b; font-size: .82rem; }
.cesta-timeline-item strong { display: block; color: #0f172a; margin: 3px 0; }
.cesta-modal .modal-content { border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 70px rgba(15, 23, 42, .22); }
.cesta-modal .modal-header { background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%); color: #fff; padding: 18px 22px; }
.cesta-modal .modal-kicker { color: rgba(255,255,255,.74); margin-bottom: 3px; }
.cesta-modal .btn-close { filter: invert(1) grayscale(100%); }
.cesta-check-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #e2e8f0; border-radius: 16px; padding: 12px; height: 100%; cursor: pointer; }
.cesta-check-card span { display: grid; gap: 3px; }
.cesta-check-card small { color: #64748b; }
@media (max-width: 991.98px) { .cesta-itens-accordion .accordion-button { display: block; } .cesta-item-numbers { grid-template-columns: 1fr; min-width: 0; margin-top: 12px; } }

:root {
  scroll-behavior: smooth;
  --app-ink: #0f172a;
  --app-ink-soft: #334155;
  --app-muted: #64748b;
  --app-brand-deep: #0c0f14;
  --app-brand-mid: #1a2840;
  --app-brand-soft: #243a57;
  --app-accent: #475569;
  --app-accent-strong: #111827;
  --app-accent-rgb: 71, 85, 105;
  --app-accent-soft: #f1f5f9;
  --app-accent-soft-2: #e2e8f0;
  --app-success: #16a34a;
  --app-success-rgb: 22, 163, 74;
  --app-hero-gradient: linear-gradient(135deg, #0f172a 0%, #1a2840 48%, #243a57 100%);
  --app-hero-radial: radial-gradient(circle at top left, rgba(255,255,255,0.10), transparent 34%);
  --app-primary-gradient: linear-gradient(135deg, #0f172a 0%, #243a57 100%);
  --app-modal-gradient: linear-gradient(135deg, #0f172a 0%, #17233a 100%);
  --app-support-gradient: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #cfd3da14;
  color: #444444;
}

@media screen and (max-width: 767px) {
  input,
  textarea,
  select,
  .form-control,
  .form-select,
  .select2-search__field {
    font-size: 16px !important;
  }
}

* {
  scrollbar-width: thin;
  scrollbar-color: #0c0f14 #fff;
}

a {
  color: #161a22;
  text-decoration: none;
}

a:hover {
  color: #0c0f14;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Nunito', sans-serif;
}

.table {
  --bs-table-color: var(--bs-body-color);
  --bs-table-bg: transparent;
  --bs-table-border-color: #1bbb8126;
  --bs-table-accent-bg: transparent;
  --bs-table-striped-color: var(--bs-body-color);
  --bs-table-striped-bg: rgba(5, 71, 46, 0.04);
  --bs-table-active-color: var(--bs-body-color);
  --bs-table-active-bg: rgba(0, 0, 0, 0.1);
  --bs-table-hover-color: var(--bs-body-color);
  --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
  color: var(--bs-table-color);
}

.btn-dark {
  --bs-btn-color: #000;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #000;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0c0f14;
  --bs-btn-hover-border-color: #0c0f14;
  --bs-btn-focus-shadow-rgb: 66,70,73;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #4d5154;
  --bs-btn-active-border-color: #373b3e;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #212529;
  --bs-btn-disabled-border-color: #212529;
}
/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: #161a22;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #161a22;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #6776f4;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  -webkit-animation-name: dropdown-animate;
  animation-name: dropdown-animate;
  -webkit-animation-duration: 0.2s;
  animation-duration: 0.2s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f6f9ff;
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@-webkit-keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid #ced4da;
}
/* Light Backgrounds */
.bg-primary-light {
  background-color: #cfe2ff;
  border-color: #cfe2ff;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #0c0f14;
  --bs-btn-border-color: #0c0f14;
  --bs-btn-hover-color: #0c0f14;
  --bs-btn-hover-bg: #161a2200;
  --bs-btn-hover-border-color: #161a22;
  --bs-btn-focus-shadow-rgb: 49,132,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #161a22;
  --bs-btn-active-border-color: #0c0f14;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #161a22;
  --bs-btn-disabled-bg: #dcfbf1;
  --bs-btn-disabled-border-color: #e0fbf4;
}

.btn-outline-primary {
  --bs-btn-color: #0c0f14;
  --bs-btn-border-color: #0c0f14;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0c0f14;
  --bs-btn-hover-border-color: #0c0f14;
  --bs-btn-focus-shadow-rgb: 13,110,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0c0f14;
  --bs-btn-active-border-color: #0c0f14;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #0c0f144a;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #0c0f145e;
  --bs-gradient: none;
}

.btn-info {
  --bs-btn-color: #000;
  --bs-btn-bg: #a1e3cb;
  --bs-btn-border-color: #a1e3cb;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #0c0f14;
  --bs-btn-hover-border-color: #0c0f14;
  --bs-btn-focus-shadow-rgb: 11,172,204;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #0c0f14;
  --bs-btn-active-border-color: #0c0f14;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #a1e3cb75;
  --bs-btn-disabled-border-color: #a1e3cb75;
}

.text-primary {
  --bs-text-opacity: 1;
  color: #0c0f14 !important;
}

.form-control {
  font-size: 0.8rem;
}

.bg-secondary-light {
  background-color: #e2e3e5;
  border-color: #e2e3e5;
}

.bg-success-light {
  background-color: #d1e7dd;
  border-color: #d1e7dd;
}

.bg-danger-light {
  background-color: #f8d7da;
  border-color: #f8d7da;
}

.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
}

.bg-info-light {
  background-color: #cff4fc;
  border-color: #cff4fc;
}

.bg-dark-light {
  background-color: #d3d3d4;
  border-color: #d3d3d4;
}

/* Card */
.card {
  margin-bottom: 30px;
  border: none;
  border-radius: 20px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card-header,
.card-footer {
  border-color: #ebeef4;
  background-color: #fff;
  color: #161a22;
  padding: 15px;
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: #161a22;
  font-family: "Poppins", sans-serif;
}

.card-title span {
  color: #686868;
  font-size: 14px;
  font-weight: 400;
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid #ebeef4;
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #161a22;
  background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: #161a22;
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: "Nunito", sans-serif;
  color: #686868;
  font-weight: 600;
}

.breadcrumb a {
  color: #686868;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #161a22;
}

.breadcrumb .breadcrumb-item::before {
  color: #686868;
}

.breadcrumb .active {
  color: #161a22;
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: #161a22;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: #161a22;
}

.nav-tabs-bordered .nav-link.active {
  background-color: #fff;
  color: #161a22;
  border-bottom: 2px solid #161a22;
}
.form-check-input:checked {
  background-color: #0c0f14;
  border-color:
#0c0f14;
}
.bg-info {
  --bs-bg-opacity: 1;
  background-color: #a1e3cb !important;
  color: #161a22;
}
.bg-primary {
  --bs-bg-opacity: 1;
  background-color: rgb(6, 74, 46) !important;
}
.alert-info {
  --bs-alert-color: #064a2e;
  --bs-alert-bg: #a1e3cb;
  --bs-alert-border-color: #a1e3cb;
}
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
}

.logo img {
  max-height: 26px;
  margin-right: 6px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: #161a22;
  font-family: "Lovelo Black", sans-serif;
}

.header {
  transition: all 0.5s;
  z-index: 999;
  height: 60px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
  padding-left: 20px;
  /* Toggle Sidebar Button */
  /* Search Bar */
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: #161a22;
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: white;
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: #161a22;
  border: 1px solid rgba(1, 41, 112, 0.2);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
  border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: #161a22;
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: #161a22;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #161a22;
}

.header-nav .nav-profile img {
  max-height: 36px;
  border-radius: 18px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .notifications .notification-item:hover {
  background-color: #f6f9ff;
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444444;
}

.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .messages .message-item:hover {
  background-color: #f6f9ff;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: #f6f9ff;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #0c0f14 transparent;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #0c0f14;
}

@media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {

  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #686868;
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #161a22;
  transition: 0.3;
  background: #f6f9ff;
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i,
.sidebar-nav .nav-link svg.bi {
  font-size: 16px;
  margin-right: 10px;
  color: #161a22;
  flex: 0 0 auto;
}

.sidebar-nav .nav-link.collapsed {
  color: #161a22;
  background: #fff;
}

.sidebar-nav .nav-link.collapsed i,
.sidebar-nav .nav-link.collapsed svg.bi {
  color: #0c0f14;
}

.sidebar-nav .nav-link:hover {
  color: #161a22;
  background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i,
.sidebar-nav .nav-link:hover svg.bi {
  color: #161a22;
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #161a22;
  transition: 0.3;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: #161a22;
}

.sidebar-nav .nav-content a.active i {
  background-color: #161a22;
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: #0c0f14;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: #161a22;
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #0c0f14;
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: #161a22;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: #161a22;
  background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
  color: #2eca6a;
  background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
  color: #ff771d;
  background: #ffecdf;
}

/* Activity */
.dashboard .activity {
  font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
  color: #888;
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: #161a22;
  transition: 0.3s;
}

.dashboard .news h4 a:hover {
  color: #161a22;
}

.dashboard .news p {
  font-size: 14px;
  color: #777777;
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}

.dashboard .recent-sales .table thead {
  background: #f6f6fe;
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
  font-size: 14px;
}

.dashboard .top-selling .table thead {
  background: #f6f6fe;
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #fff;
  border-radius: 0.25rem;
  text-align: center;
  color: #161a22;
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #161a22;
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
  color: #161a22;
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: #161a22;
}

.profile .profile-overview .label {
  font-weight: 600;
  color: rgb(6, 73, 49);
}

.profile .profile-edit label {
  font-weight: 600;
  color: rgb(6, 73, 49);
}

.profile .profile-edit img {
  max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: #161a22;
}

.faq .basic p {
  color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: #161a22;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #161a22;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #161a22;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #161a22;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #5969f3;
}

@-webkit-keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: #161a22;
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #161a22;
  margin-bottom: 30px;
}

.error-404 .btn {
  background: #161a22;
  color: #fff;
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: #3e4f6f;
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: #161a22;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #161a22;
}

.btn_roxo 
  {                      
  --bs-btn-color: #fff;
  --bs-btn-bg: #a70dfd;
  --bs-btn-border-color: #a70dfd;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #b83cfd;
  --bs-btn-hover-border-color: #b83cfd;
  --bs-btn-focus-shadow-rgb: 49,132,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #b83cfd;
  --bs-btn-active-border-color: #b83cfd;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #d280ff;
  --bs-btn-disabled-border-color: #d280ff;
  }
.btn_laranja 
  {   
  --bs-btn-color: #fff;
  --bs-btn-bg: #fd7e0d;
  --bs-btn-border-color: #fd7e0d;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #ff881e;
  --bs-btn-hover-border-color: #ff881e;
  --bs-btn-focus-shadow-rgb: 49,132,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #ff881e;
  --bs-btn-active-border-color: #ff881e;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #fdb473;
  --bs-btn-disabled-border-color: #fdb473;  
  }
.bg_roxo 
  {                      
  --bs-btn-color: #fff;
  --bs-btn-bg: #a70dfd;
  --bs-btn-border-color: #a70dfd;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #b83cfd;
  --bs-btn-hover-border-color: #b83cfd;
  --bs-btn-focus-shadow-rgb: 49,132,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #b83cfd;
  --bs-btn-active-border-color: #b83cfd;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #d280ff;
  --bs-btn-disabled-border-color: #d280ff;
  }
.bg_laranja 
  {   
  --bs-btn-color: #fff;
  --bs-btn-bg: #fd7e0d;
  --bs-btn-border-color: #fd7e0d;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #ff881e;
  --bs-btn-hover-border-color: #ff881e;
  --bs-btn-focus-shadow-rgb: 49,132,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #ff881e;
  --bs-btn-active-border-color: #ff881e;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #fdb473;
  --bs-btn-disabled-border-color: #fdb473;  
  }
  .pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: #0c0f14;
    --bs-pagination-bg: #fff;
    --bs-pagination-border-width: 1px;
    --bs-pagination-border-color: #dee2e6;
    --bs-pagination-border-radius: 0.375rem;
    --bs-pagination-hover-color: #064c2f;
    --bs-pagination-hover-bg: #e9ecef;
    --bs-pagination-hover-border-color: #dee2e6;
    --bs-pagination-focus-color: #105039;
    --bs-pagination-focus-bg: #e9ecef;
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: #0c0f14;
    --bs-pagination-active-border-color: #0c0f14;
    --bs-pagination-disabled-color: #6c757d;
    --bs-pagination-disabled-bg: #fff;
    --bs-pagination-disabled-border-color: #dee2e6;
    list-style: none;
  }

  .nav {
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: 0.5rem;
    --bs-nav-link-font-weight: ;
    --bs-nav-link-color: #009d5a;
    --bs-nav-link-hover-color: #094229;
    --bs-nav-link-disabled-color: #6c757d;
    list-style: none;
  }
  #calendar {
    max-width: 100%;
    margin: 40px auto;
    padding: 10px;
  }
  .fc .fc-button-primary {
    background-color: #0c0f14;
    border-color: #0c0f14;
    color: var(--fc-button-text-color);
  }
  .fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active {
    background-color: #cfd3da;
    border-color: #cfd3da;
    color: var(--fc-button-text-color);
  }
  .fc .fc-button-primary:hover {
    background-color: #cfd3da;
    border-color: #cfd3da;
    color: var(--fc-button-text-color);
  }

  .agenda-page-hero.app-hero {
    background:
      radial-gradient(circle at top left, rgba(255,255,255,0.10), transparent 34%),
      linear-gradient(135deg, #0f172a 0%, #1a2840 48%, #243a57 100%);
  }

  .agenda-page-hero .app-hero-meta span {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.14);
  }

  .agenda-page-hero .app-hero-actions .btn-outline-light {
    border-color: rgba(255,255,255,.38);
  }

  .agenda-flux-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .45rem;
  }

  .agenda-flux-actions .btn {
    border-radius: 10px;
    font-weight: 600;
  }
  #chat-botao {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0c0f14;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
  }

  #chat-janela {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    height: 400px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    overflow: hidden;
  }

  #chat-topo {
    background-color: #0c0f14;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
  }

  #chat-mensagens {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f9f9f9;
    max-height: 300px;
    font-size: 0.9em;
  }

  #chat-input {
    display: flex;
    border-top: 1px solid #ccc;
  }

  #chat-input input {
    flex: 1;
    border: none;
    padding: 10px;
  }

  #chat-input button {
    background-color: #0c0f14;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
  }
  #chat-input {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: #fff;
  }

  #chat-input input[type='text'] {
    flex: 1;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
  }

  #chat-input button {
    margin-top: 5px;
    background-color: #0c0f14;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
  }

  .anexo-label {
    cursor: pointer;
    font-size: 20px;
    margin-bottom: 5px;
    color: #0c0f14;
    width: fit-content;
  }

  #preview-anexo {
    display: none;
    background: #f1f1f1;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #preview-anexo button {
    border: none;
    background: red;
    color: white;
    padding: 0 8px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
  }
  #chat-input button:hover {
    background-color: #cfd3da;
  }

  .anexo-label:hover {
    opacity: 0.8;
  }

  .chat-mensagem {
    max-width: 80%;
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    clear: both;
    word-wrap: break-word;
  }

  .mensagem-cliente {
    background-color: #dcf1e9;
    color: #004d40;
    text-align: left;
    margin-right: auto;
    border-bottom-left-radius: 0;
  }

  .mensagem-suporte {
    background-color: #dcedc8;
    color: #33691e;
    text-align: right;
    margin-left: auto;
    border-bottom-right-radius: 0;
  }

  .chat-horario {
    font-size: 0.75rem;
    color: #666;
    text-align: right;
    margin-top: 5px;
  }

  #chat-botao .contador-chat {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
    font-weight: bold;
    animation: blink 1s infinite;
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  .msg-nao-lida {
    background-color: #ff5252;
    color: white;
    border-radius: 10% 100% 10% 100%;
    padding: 2px 6px;
    font-size: 0.75rem;
    position: absolute;
    top: -5px;
    right: -5px;
    animation: blink 1s infinite;
  }

  .form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #1bbb8175;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(27, 187, 129, 0.2);
  }

  .dashboard-hero-v2 {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:35px 40px;
    border-radius:28px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 60%),
        linear-gradient(135deg, #0c0f14, #cfd3da);
    color:white;
}

.dashboard-hero-v2 h2 {
    font-weight:600;
    margin-bottom:6px;
}

/*--------------------------------------------------------------
# Blocos premium reutilizáveis
--------------------------------------------------------------*/
.app-hero {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.25rem;
  border-radius: 30px;
  background:
    var(--app-hero-radial),
    var(--app-hero-gradient);
  color: #f8fafc;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.app-themed-modal .modal-content,
.dashboard-config-modal,
.ia-modal-content {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.app-themed-modal .modal-header,
.dashboard-config-header,
.ia-modal-header {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 35%),
    var(--app-modal-gradient) !important;
  color: #f8fafc;
  border-bottom: 0;
}

.app-themed-modal .btn-close,
.dashboard-config-header .btn-close,
.ia-modal-header .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: .86;
}

.app-hero-copy {
  max-width: 800px;
}

.app-hero-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(226, 232, 240, 0.78);
}

.app-hero h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.85rem, 2.55vw, 2.85rem);
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
}

.app-hero p {
  max-width: 740px;
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.9);
}

.app-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.app-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.14);
  font-weight: 600;
}

.app-hero-meta .status-ok {
  background: rgba(34, 197, 94, 0.16);
  color: #dcfce7;
}

.app-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 240px;
  align-items: stretch;
}

.app-hero-actions .btn {
  min-height: 52px;
  border-radius: 16px;
  font-weight: 700;
}

.app-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  background: #fff;
}

.app-card .card-body {
  padding: 1.5rem;
}

.app-page-actions,
.app-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.app-filter-card {
  padding: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.app-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 1.25rem;
  align-items: start;
}

.app-form-panel,
.app-guide-panel,
.app-table-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.app-form-panel,
.app-guide-panel {
  padding: 1.5rem;
}

.app-form-panel,
.app-guide-panel,
.app-table-panel,
.app-card {
  min-width: 0;
}

.app-form-panel > form.row,
.app-form-panel > .row {
  margin-left: 0;
  margin-right: 0;
}

.app-form-panel > form.row > [class*="col-"],
.app-form-panel > .row > [class*="col-"] {
  min-width: 0;
}

.app-table-panel > .card-body,
.app-table-panel > .app-panel-body,
.app-panel-body {
  padding: 1.5rem;
}

.app-guide-panel {
  position: sticky;
  top: 88px;
}

.app-guide-panel h3,
.app-form-panel h3,
.app-table-panel h3 {
  margin: 0 0 .45rem;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
}

.app-guide-panel p,
.app-form-panel p {
  color: #64748b;
  line-height: 1.65;
}

.app-guide-list {
  display: grid;
  gap: .75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.app-guide-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .85rem .95rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.app-guide-list i {
  color: #0f766e;
  margin-top: .15rem;
}

.app-section-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.app-section-title h3,
.app-section-title h4 {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.app-section-title p {
  margin: .2rem 0 0;
  color: #64748b;
}

.app-config-item {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.app-config-item + .app-config-item {
  margin-top: .8rem;
}

.app-config-row {
  margin: 0 0 .85rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.app-config-row.row {
  margin-left: 0;
  margin-right: 0;
}

.app-config-row > [class*="col-"] {
  min-width: 0;
}

.app-config-row .form-control,
.app-config-row .form-select {
  width: 100%;
}

.app-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .9rem;
}

.app-stat-card {
  padding: 1.1rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.app-stat-card small {
  display: block;
  margin-bottom: .45rem;
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.app-stat-card strong {
  display: block;
  color: #0f172a;
  font-size: 1.75rem;
  line-height: 1.1;
}

.app-table-panel {
  overflow: hidden;
}

.app-table-panel .table {
  margin-bottom: 0;
}

.app-table-panel .table thead th {
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #f8fafc;
}

.app-btn-soft {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 700;
}

.app-btn-soft:hover {
  background: #eef2f7;
  color: #0f172a;
}

.select2-container--bootstrap-5 .select2-selection,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 42px;
  border-radius: 8px !important;
  border-color: #ced4da !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
}

.app-form-panel .select2-container,
.app-filter-card .select2-container {
  width: 100% !important;
}

.app-empty-state {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.app-empty-state-warning {
  background: linear-gradient(180deg, #fff 0%, #fff8eb 100%);
  border-color: #fde68a;
}

.app-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff7ed;
  color: #c2410c;
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.app-empty-state h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 .35rem;
  color: #0f172a;
}

.app-empty-state p {
  margin: 0 0 .75rem;
  color: #64748b;
}

.app-empty-state code {
  display: block;
  white-space: normal;
  word-break: break-word;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
}

.blog-ia-page .app-filter-card,
.blog-ia-page .app-table-panel,
.blog-ia-page .app-form-panel,
.blog-ia-page .app-guide-panel,
.blog-ia-review-box,
.blog-ia-review-form {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.blog-ia-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
}

.blog-ia-check {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem .95rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
  cursor: pointer;
}

.blog-ia-check input {
  width: 1rem;
  height: 1rem;
}

.blog-ia-review-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.08);
}

.blog-ia-review-box h3 {
  margin: 0 0 .35rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.blog-ia-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: flex-end;
}

.blog-ia-featured-preview {
  max-width: min(100%, 320px);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
}

.blog-ia-actions-col {
  width: 150px;
}

.blog-ia-cockpit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.blog-ia-form-section {
  margin-top: .75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.blog-ia-brand-preview {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--bs-body-color);
}

.blog-ia-brand-preview img {
  width: 96px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: .35rem;
}

html[data-theme="escuro"] .blog-ia-check,
html[data-theme="escuro"] .blog-ia-review-box,
html[data-theme="escuro"] .blog-ia-brand-preview {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(226, 232, 240, 0.18);
}

@media (max-width: 1199px) {
  .blog-ia-cockpit-grid {
    grid-template-columns: 1fr;
  }
}

.repasses-page {
  --repasse-muted: #64748b;
  --repasse-text: #12343b;
}

.repasses-page .app-hero {
  padding: 1.65rem 1.9rem;
  border-radius: 24px;
  gap: 1.25rem;
  align-items: center;
}

.repasses-page .app-hero-copy {
  max-width: 720px;
}

.repasses-page .app-hero-kicker {
  margin-bottom: .55rem;
  font-size: .68rem;
  letter-spacing: .18em;
}

.repasses-page .app-hero h2 {
  font-size: clamp(1.75rem, 2.35vw, 2.55rem);
  line-height: 1.14;
  margin-bottom: .65rem;
}

.repasses-page .app-hero p {
  max-width: 700px;
  margin-bottom: .9rem;
  line-height: 1.55;
}

.repasses-page .app-hero-actions {
  min-width: 220px;
}

.repasses-page .app-hero-actions .btn {
  min-height: 46px;
  border-radius: 8px;
}

.repasses-filter {
  padding: 1.15rem;
  border-radius: 18px;
}

.repasses-filter .form-label {
  margin-bottom: .35rem;
  color: var(--repasse-text);
  font-weight: 600;
}

.repasses-filter .btn,
.repasses-filter .form-control,
.repasses-filter .form-select,
.repasses-filter .select2-container--bootstrap-5 .select2-selection {
  min-height: 44px;
  border-radius: 8px;
}

.repasses-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.repasse-metric {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  min-height: 96px;
}

.repasse-metric small {
  color: var(--repasse-muted);
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 800;
}

.repasse-metric strong {
  display: block;
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
  color: var(--repasse-text);
  margin-top: .45rem;
  line-height: 1.1;
}

.repasses-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.repasse-action {
  padding: 1.15rem;
  border-radius: 18px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.repasse-action h5 {
  color: var(--repasse-text);
  font-weight: 800;
}

.repasse-action p {
  color: var(--repasse-muted);
  margin-bottom: 1rem;
}

.repasses-table-card {
  padding: .85rem;
  border-radius: 18px;
}

.repasses-table-card .table {
  margin-bottom: 0;
}

.repasse-table th {
  color: var(--repasse-muted);
  text-transform: uppercase;
  font-size: .72rem;
  background: #f8fafc;
}

.repasses-page .select2-container {
  width: 100% !important;
}

.repasses-page .select2-container--bootstrap-5 .select2-selection {
  border-radius: 8px;
}

@media (max-width: 991.98px) {
  .repasses-page .app-hero {
    padding: 1.3rem;
  }

  .repasses-page .app-hero h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 1199.98px) {
  .app-form-layout {
    grid-template-columns: 1fr;
  }

  .app-guide-panel {
    position: static;
  }
}

@media (max-width: 991.98px) {
  .app-hero {
    flex-direction: column;
    padding: 1.6rem;
    border-radius: 22px;
  }

  .app-hero-actions {
    width: 100%;
  }

  .app-hero-actions .btn {
    width: 100%;
  }

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

  .app-guide-panel {
    position: static;
  }
}

.dashboard-hero-v2 p {
    opacity:0.85;
    margin-bottom:15px;
}

.hero-meta {
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    font-size:14px;
    opacity:0.9;
}

.status-ok {
    color:#137c40;
}

.hero-right .btn {
    border-radius:14px;
    padding:10px 18px;
}

/* RESPONSIVO HERO DASHBOARD */
@media (max-width: 991.98px) {

    .dashboard-hero-v2 {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
        gap: 20px;
        border-radius: 20px;
    }

    .dashboard-hero-v2 h2 {
        font-size: 22px;
    }

    .dashboard-hero-v2 p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .hero-meta {
        gap: 12px;
        font-size: 13px;
    }

    .hero-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-right .btn {
        width: 100%;
        justify-content: center;
    }

}

.dashboard-atalhos .card {
    border: none;
    border-radius: 24px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    padding: 25px;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-atalhos .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, var(--brand-accent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .4s ease;
}

.dashboard-atalhos .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

.dashboard-atalhos .card:hover::before {
    opacity: 0.06;
}

.dashboard-atalhos .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    font-size: 22px;
    margin-bottom: 15px;
}

.dashboard-atalhos .card h5 {
    font-weight: 600;
    margin-bottom: 8px;
}

.dashboard-atalhos .card p {
    font-size: 14px;
    opacity: 0.75;
}

.dashboard-shortcuts {
    padding: 10px 5px;
}

.shortcuts-header h4 {
    font-weight: 600;
}

.shortcut-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    transition: all .3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.shortcut-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.shortcut-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    font-size: 20px;
}

.shortcut-card h6 {
    margin: 0;
    font-weight: 600;
}

.shortcut-card span {
    font-size: 13px;
    opacity: 0.7;
}

.shortcuts-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

.shortcuts-carousel::-webkit-scrollbar {
    height: 6px;
}

.shortcuts-carousel::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.shortcut-mini {
    min-width: 130px;
    flex: 0 0 auto;
    scroll-snap-align: start;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 18px 14px;
    border-radius: 20px;
    background: rgb(242, 244, 247);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    transition: all .3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.shortcut-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.shortcut-mini-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #444;
    font-size: 18px;
}

.shortcut-mini span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.shortcuts-wrapper {
    position: relative;
}

.shortcuts-wrapper::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to left, white, transparent);
    pointer-events: none;
}

.dashboard-comunicados {
  border-radius: 16px;
  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.comunicados-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.comunicado-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.comunicado-item:last-child {
  border-bottom: none;
}

.comunicado-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.comunicado-icon.success {
  background: rgba(25,135,84,0.1);
  color: #198754;
}

.comunicado-icon.info {
  background: rgba(13,110,253,0.1);
  color: #0d6efd;
}

.comunicado-icon.warning {
  background: rgba(255,193,7,0.15);
  color: #ffc107;
}

.comunicado-item p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #6c757d;
}

.ia-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.ia-chat {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ia-msg {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.ia-user {
    align-self: flex-end;
    background: #0c0f14;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ia-bot {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-bottom-left-radius: 4px;
}

.dashboard-ponto-card .timeline-item
{
display:flex;
align-items:center;
justify-content:space-between;
padding:6px 0;
border-bottom:1px solid #eee;
font-size:13px;
}

.dashboard-ponto-card .timeline-item i
{
margin-right:8px;
color:#0d6efd;
}

.ponto-mini-card
{
background:#f8f9fa;
padding:10px;
border-radius:6px;
font-size:12px;
}

.ponto-mini-card strong
{
display:block;
font-size:18px;
}

/* Licitações */
.licitacoes-page .licitacoes-hero
{
background:
var(--app-hero-radial),
var(--app-hero-gradient);
}

.licitacoes-filtros-card,
.licitacoes-side-card,
.licitacoes-card
{
border:1px solid #e2e8f0;
border-radius:24px;
background:#fff;
box-shadow:0 18px 42px rgba(15,23,42,.07);
}

.licitacoes-side-card
{
padding:24px;
height:auto;
}

.licitacoes-side-card h5,
.licitacoes-side-card h6
{
font-weight:800;
color:#0f172a;
}

.licitacoes-side-card p,
.licitacoes-side-card .side-list
{
color:#64748b;
line-height:1.7;
}

.licitacoes-side-card-alt
{
background:#f8fafc;
}

.licitacoes-chip-list
{
display:flex;
flex-wrap:wrap;
gap:10px;
}

.licitacoes-chip
{
border:1px solid #cbd5e1;
background:#fff;
color:#0f172a;
border-radius:999px;
padding:8px 13px;
font-weight:700;
font-size:.9rem;
transition:all .2s ease;
}

.licitacoes-chip:hover
{
border-color:#0f766e;
color:#0f766e;
background:#ecfdf5;
}

.licitacoes-tag-input
{
display:flex;
align-items:center;
flex-wrap:wrap;
gap:8px;
min-height:44px;
padding:7px 10px;
border:1px solid #ced4da;
border-radius:6px;
background:#fff;
}

.licitacoes-tag-input:focus-within
{
border-color:#86b7fe;
box-shadow:0 0 0 .25rem rgba(13,110,253,.25);
}

.licitacoes-tags
{
display:flex;
flex-wrap:wrap;
gap:7px;
}

.licitacoes-tag
{
display:inline-flex;
align-items:center;
gap:6px;
padding:6px 9px;
border-radius:999px;
background:#e0f2fe;
color:#075985;
font-weight:800;
font-size:.84rem;
}

.licitacoes-tag-input-negative .licitacoes-tag
{
background:#fee2e2;
color:#991b1b;
}

.licitacoes-tag button
{
border:0;
background:transparent;
color:inherit;
font-size:1rem;
font-weight:900;
line-height:1;
padding:0;
}

.licitacoes-tag-field
{
border:0;
outline:0;
flex:1;
min-width:180px;
font-size:.95rem;
}

.licitacoes-results-header
{
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
margin:10px 0 18px;
}

.licitacoes-results-header h5
{
font-weight:800;
color:#0f172a;
}

.licitacoes-count
{
display:inline-flex;
align-items:center;
justify-content:center;
padding:9px 14px;
border-radius:999px;
background:#0f172a;
color:#fff;
font-weight:800;
white-space:nowrap;
}

.licitacoes-page .metric-card
{
position:relative;
overflow:hidden;
border:1px solid rgba(15,23,42,.08);
}

.licitacoes-page .metric-card::after
{
content:"";
position:absolute;
right:-34px;
top:-34px;
width:96px;
height:96px;
border-radius:50%;
background:rgba(15,118,110,.08);
}

.licitacoes-grid
{
display:grid;
grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
gap:18px;
}

.licitacoes-card
{
padding:22px;
display:flex;
flex-direction:column;
gap:16px;
min-width:0;
}

.licitacoes-card-top
{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:10px;
flex-wrap:wrap;
}

.licitacoes-badge,
.licitacoes-status
{
display:inline-flex;
align-items:center;
gap:7px;
border-radius:999px;
padding:7px 11px;
font-size:.82rem;
font-weight:800;
}

.licitacoes-badge
{
background:#eff6ff;
color:#1d4ed8;
}

.licitacoes-status-aberta
{
background:#dcfce7;
color:#166534;
}

.licitacoes-status-futura
{
background:#fef3c7;
color:#92400e;
}

.licitacoes-status-encerrada
{
background:#fee2e2;
color:#991b1b;
}

.licitacoes-status-neutra
{
background:#f1f5f9;
color:#334155;
}

.licitacoes-card h3
{
font-size:1.12rem;
line-height:1.45;
font-weight:800;
color:#0f172a;
margin:0;
}

.licitacoes-orgao
{
padding:14px;
border-radius:16px;
background:#f8fafc;
border:1px solid #e2e8f0;
}

.licitacoes-orgao strong,
.licitacoes-orgao span
{
display:block;
}

.licitacoes-orgao span
{
color:#64748b;
font-size:.92rem;
margin-top:4px;
}

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

.licitacoes-meta-grid div
{
border:1px solid #e2e8f0;
border-radius:14px;
padding:12px;
background:#fff;
min-width:0;
}

.licitacoes-meta-grid span
{
display:block;
font-size:.78rem;
color:#64748b;
font-weight:700;
}

.licitacoes-meta-grid strong
{
display:block;
color:#0f172a;
font-size:.94rem;
margin-top:4px;
word-break:break-word;
}

.licitacoes-details
{
display:flex;
flex-direction:column;
gap:8px;
color:#475569;
font-size:.9rem;
}

.licitacoes-details span
{
display:flex;
gap:8px;
align-items:flex-start;
min-width:0;
word-break:break-word;
}

.licitacoes-actions
{
display:flex;
flex-wrap:wrap;
gap:8px;
margin-top:auto;
}

.licitacoes-acompanhada-form
{
padding:14px;
border:1px solid #e2e8f0;
border-radius:16px;
background:#f8fafc;
}

.licitacoes-page .select2-container--bootstrap-5 .select2-selection
{
min-height:38px;
}

.licitacoes-page .select2-container--bootstrap-5 .select2-selection--multiple
{
min-height:44px;
padding:4px 8px;
}

.licitacoes-page .select2-compact-summary .select2-selection--multiple
{
height:44px;
overflow:hidden;
}

.licitacoes-page .select2-compact-summary .select2-selection--multiple .select2-selection__rendered
{
display:flex;
align-items:center;
gap:6px;
flex-wrap:nowrap;
min-width:0;
}

.licitacoes-page .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice
{
border:0;
border-radius:999px;
background:var(--app-accent-soft);
color:var(--app-accent-strong);
font-weight:700;
padding:4px 8px;
max-width:46%;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
line-height:1.25;
}

.licitacoes-page .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice.is-selection-hidden
{
display:none;
}

.licitacoes-page .select2-compact-summary .select2-selection__rendered[data-extra]::after
{
content:attr(data-extra);
display:inline-flex;
align-items:center;
height:30px;
padding:0 10px;
border-radius:999px;
background:#0f172a;
color:#fff;
font-size:.82rem;
font-weight:800;
white-space:nowrap;
}

.licitacoes-page .select2-compact-summary .select2-search--inline
{
min-width:20px;
flex:1 1 auto;
}

.licitacoes-page .select2-compact-summary .select2-search__field
{
min-width:20px !important;
width:100% !important;
}

.licitacoes-keyword-hit
{
padding:0 .18em;
border-radius:5px;
background:#fef3c7;
color:#78350f;
font-weight:900;
}

.licitacoes-match-reasons
{
display:grid;
gap:8px;
padding:12px;
border:1px solid #fde68a;
border-radius:14px;
background:#fffbeb;
}

.licitacoes-match-reasons .match-kicker
{
display:inline-flex;
align-items:center;
gap:6px;
color:#92400e;
font-size:.78rem;
font-weight:900;
text-transform:uppercase;
letter-spacing:.06em;
}

.licitacoes-match-reasons > div
{
display:flex;
flex-wrap:wrap;
gap:7px;
}

.licitacoes-match-reasons .match-chip
{
display:inline-flex;
align-items:center;
gap:5px;
padding:6px 9px;
border-radius:999px;
background:#fff;
border:1px solid #fde68a;
color:#78350f;
font-size:.84rem;
font-weight:900;
}

.licitacoes-match-reasons .match-chip small
{
color:#a16207;
font-weight:800;
}

.licitacoes-empty-state
{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
min-height:260px;
padding:36px;
border:1px dashed #cbd5e1;
border-radius:24px;
background:#fff;
color:#64748b;
}

.licitacoes-empty-state i
{
font-size:2.4rem;
color:#0f766e;
margin-bottom:12px;
}

.licitacoes-empty-state strong
{
color:#0f172a;
font-size:1.1rem;
}

.licitacoes-loading
{
display:flex;
align-items:center;
gap:10px;
color:#475569;
padding:18px 0;
}

.licitacoes-ia-modal .modal-header,
.licitacoes-docs-modal .modal-header
{
background:#0f172a;
color:#fff;
}

.licitacoes-ia-modal .btn-close,
.licitacoes-docs-modal .btn-close
{
filter:invert(1);
}

.licitacoes-ia-conteudo
{
line-height:1.75;
color:#1f2937;
}

.licitacoes-alert-preview
{
display:flex;
gap:14px;
padding:16px;
border-radius:18px;
background:#f8fafc;
border:1px solid #e2e8f0;
}

.licitacoes-alert-preview > span
{
width:44px;
height:44px;
display:inline-flex;
align-items:center;
justify-content:center;
border-radius:14px;
background:#dcfce7;
color:#166534;
font-size:1.15rem;
flex:0 0 auto;
}

.licitacoes-check-grid
{
display:grid;
grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
gap:10px;
}

.licitacoes-check-grid .form-check
{
padding:12px 12px 12px 36px;
border:1px solid #e2e8f0;
border-radius:14px;
background:#fff;
}

@media (max-width: 767px)
{
  .licitacoes-results-header
  {
  align-items:flex-start;
  flex-direction:column;
  }

  .licitacoes-grid,
  .licitacoes-meta-grid
  {
  grid-template-columns:1fr;
  }

  .licitacoes-card
  {
  padding:18px;
  }

  .licitacoes-actions .btn
  {
  width:100%;
  }
}

.cesta-itens-accordion .accordion-button
{
display:flex;
flex-wrap:wrap;
gap:18px;
padding-right:52px;
}

.cesta-item-title
{
flex:1 1 260px;
min-width:0;
}

.cesta-item-numbers
{
flex:1 1 430px;
min-width:0;
grid-template-columns:repeat(auto-fit, minmax(135px, 1fr));
}

.cesta-item-title strong,
.cesta-item-title span,
.cesta-item-numbers span
{
min-width:0;
overflow-wrap:anywhere;
}

.cesta-preco-result-card
{
border:1px solid #e2e8f0;
border-radius:16px;
overflow:hidden;
margin-bottom:12px;
box-shadow:0 10px 26px rgba(15,23,42,.05);
}

.cesta-preco-result-title
{
display:flex;
flex-direction:column;
gap:4px;
min-width:0;
flex:1 1 auto;
}

.cesta-preco-result-title strong
{
color:#0f172a;
overflow-wrap:anywhere;
}

.cesta-preco-result-title small
{
color:#64748b;
font-weight:500;
}

.cesta-preco-result-value
{
margin-left:auto;
font-weight:800;
font-size:1.05rem;
color:#0f172a;
white-space:nowrap;
}

.cesta-detail-line
{
padding:14px;
border:1px solid #e2e8f0;
border-radius:14px;
height:100%;
background:#f8fafc;
}

.cesta-detail-line span
{
display:block;
font-size:.72rem;
text-transform:uppercase;
font-weight:800;
letter-spacing:.08em;
color:#64748b;
margin-bottom:6px;
}

.cesta-detail-line strong,
.cesta-detail-line small
{
display:block;
color:#0f172a;
overflow-wrap:anywhere;
}

.cesta-selection-summary
{
display:grid;
grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
gap:10px;
padding:12px;
border:1px solid #e2e8f0;
border-radius:16px;
background:#f8fafc;
}

.cesta-selection-summary > div
{
padding:10px 12px;
border-radius:12px;
background:#fff;
border:1px solid #e2e8f0;
}

.cesta-selection-summary span
{
display:block;
font-size:.7rem;
font-weight:800;
letter-spacing:.08em;
text-transform:uppercase;
color:#64748b;
margin-bottom:4px;
}

.cesta-selection-summary strong
{
display:block;
font-size:1.05rem;
color:#0f172a;
}

.cesta-selection-summary.has-selection
{
border-color:#93c5fd;
box-shadow:0 10px 26px rgba(37,99,235,.1);
}

.cesta-filter-subpanel
{
border:1px solid #e2e8f0;
border-radius:16px;
background:#f8fafc;
padding:16px;
}

.cesta-filter-subpanel strong
{
color:#0f172a;
font-weight:800;
}

.chat-interno-topo-btn
{
border:0;
background:transparent;
position:relative;
}

.chat-interno-topo-btn.tem-novas i
{
color:var(--app-accent, #2563eb);
}

.chat-interno-offcanvas
{
width:min(980px, 100vw) !important;
height:100vh;
max-height:100vh;
border:0;
box-shadow:-28px 0 70px rgba(15,23,42,.2);
overflow:hidden;
}

.chat-interno-shell
{
height:100%;
min-height:0;
display:grid;
grid-template-columns:340px minmax(0,1fr);
background:#f8fafc;
color:#0f172a;
}

.chat-interno-sidebar
{
min-width:0;
min-height:0;
border-right:1px solid #e2e8f0;
background:#fff;
display:flex;
flex-direction:column;
}

.chat-interno-header
{
padding:20px;
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:16px;
border-bottom:1px solid #eef2f7;
}

.chat-interno-header h5
{
margin:0;
font-weight:800;
}

.chat-interno-header-actions
{
display:flex;
align-items:center;
gap:8px;
}

.chat-interno-header-actions button:not(.btn-close),
.chat-interno-conversa-acoes button
{
border:0;
width:36px;
height:36px;
border-radius:12px;
background:#f1f5f9;
color:#0f172a;
display:inline-flex;
align-items:center;
justify-content:center;
}

.chat-interno-header-actions button:not(.btn-close):hover,
.chat-interno-conversa-acoes button:hover
{
background:var(--app-accent-soft, #dbeafe);
color:var(--app-accent, #2563eb);
}

.chat-interno-header span,
.chat-interno-conversa-meta span
{
display:block;
font-size:.82rem;
color:#64748b;
}

.chat-interno-search
{
margin:16px;
height:44px;
border:1px solid #e2e8f0;
border-radius:14px;
display:flex;
align-items:center;
gap:10px;
padding:0 14px;
background:#f8fafc;
}

.chat-interno-search input
{
border:0;
outline:0;
background:transparent;
width:100%;
min-width:0;
color:#0f172a;
}

.chat-interno-tabs
{
display:flex;
gap:8px;
padding:0 16px 12px;
}

.chat-interno-tabs button
{
border:0;
border-radius:12px;
padding:9px 13px;
font-weight:700;
background:#f1f5f9;
color:#475569;
}

.chat-interno-tabs button.active
{
background:var(--app-accent-soft, #dbeafe);
color:var(--app-accent, #2563eb);
}

.chat-interno-lista
{
flex:1;
min-height:0;
overflow:auto;
padding:4px 10px 16px;
}

.chat-interno-state
{
padding:24px 16px;
text-align:center;
color:#64748b;
font-size:.92rem;
}

.chat-interno-item
{
width:100%;
border:0;
background:transparent;
display:flex;
align-items:center;
gap:12px;
padding:11px 10px;
border-radius:14px;
text-align:left;
color:#0f172a;
}

.chat-interno-item:hover,
.chat-interno-item.active
{
background:#f1f5f9;
}

.chat-interno-avatar
{
width:44px;
height:44px;
border-radius:16px;
background:linear-gradient(135deg, #e0f2fe, #dcfce7);
display:inline-flex;
align-items:center;
justify-content:center;
font-weight:800;
color:#0f172a;
position:relative;
flex:0 0 44px;
overflow:hidden;
}

.chat-interno-avatar img
{
width:100%;
height:100%;
object-fit:cover;
}

.chat-interno-avatar:after
{
content:"";
position:absolute;
right:1px;
bottom:1px;
width:12px;
height:12px;
border-radius:50%;
border:2px solid #fff;
background:#94a3b8;
}

.chat-interno-avatar.status-online:after
{
background:#22c55e;
}

.chat-interno-avatar.status-ausente:after
{
background:#f59e0b;
}

.chat-interno-avatar.status-ocupado:after
{
background:#ef4444;
}

.chat-interno-avatar.status-grupo:after
{
content:"\F4CF";
font-family:"bootstrap-icons";
width:18px;
height:18px;
font-size:.58rem;
display:flex;
align-items:center;
justify-content:center;
background:var(--app-accent, #2563eb);
color:#fff;
}

.chat-interno-item-body
{
min-width:0;
flex:1;
}

.chat-interno-item-top,
.chat-interno-item-bottom
{
display:flex;
justify-content:space-between;
gap:10px;
min-width:0;
}

.chat-interno-item-top strong,
.chat-interno-item-bottom span
{
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
}

.chat-interno-item-top span,
.chat-interno-item-bottom span
{
font-size:.78rem;
color:#64748b;
}

.chat-interno-item-bottom b
{
min-width:22px;
height:22px;
border-radius:999px;
background:#ef4444;
color:#fff;
font-size:.72rem;
display:inline-flex;
align-items:center;
justify-content:center;
padding:0 6px;
}

.chat-interno-item mark,
.chat-interno-pesquisa-resultados mark
{
background:#fde68a;
color:inherit;
border-radius:4px;
padding:0 2px;
}

.chat-interno-search-section
{
padding:12px 12px 6px;
font-size:.74rem;
font-weight:900;
letter-spacing:.04em;
text-transform:uppercase;
color:#64748b;
}

.chat-interno-search-result .chat-interno-avatar
{
background:#eef2ff;
color:var(--app-accent, #2563eb);
}

.chat-interno-main
{
min-width:0;
min-height:0;
height:100%;
position:relative;
overflow:hidden;
}

.chat-interno-empty
{
height:100%;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
padding:28px;
color:#64748b;
}

.chat-interno-empty i
{
font-size:3rem;
color:var(--app-accent, #2563eb);
}

.chat-interno-empty strong,
.chat-interno-empty span
{
display:block;
}

.chat-interno-empty strong
{
margin-top:14px;
font-size:1.2rem;
color:#0f172a;
}

.chat-interno-conversa
{
height:100%;
display:flex;
flex-direction:column;
}

.chat-interno-conversa-topo
{
height:74px;
padding:14px 18px;
background:#fff;
border-bottom:1px solid #e2e8f0;
display:flex;
align-items:center;
gap:12px;
}

.chat-interno-conversa-meta
{
min-width:0;
flex:1;
}

.chat-interno-conversa-meta strong
{
display:block;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}

.chat-interno-conversa-acoes
{
margin-left:auto;
display:flex;
align-items:center;
gap:8px;
}

.chat-interno-voltar,
.chat-interno-icon-btn,
.chat-interno-send
{
border:0;
display:inline-flex;
align-items:center;
justify-content:center;
flex-shrink:0;
}

.chat-interno-voltar,
.chat-interno-icon-btn
{
width:40px;
height:40px;
border-radius:12px;
background:#f1f5f9;
color:#334155;
}

.chat-interno-voltar
{
display:none;
}

.chat-interno-conversa-meta
{
min-width:0;
}

.chat-interno-conversa-meta strong
{
display:block;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}

.chat-interno-mensagens
{
flex:1;
overflow:auto;
overflow-x:hidden;
padding:18px 22px;
background:linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.chat-interno-dia
{
width:max-content;
max-width:100%;
margin:8px auto 16px;
padding:6px 12px;
border-radius:999px;
background:rgba(255,255,255,.82);
color:#64748b;
font-size:.76rem;
font-weight:700;
}

.chat-interno-msg
{
display:flex;
margin-bottom:10px;
transition:transform .16s ease, background .16s ease;
touch-action:pan-y;
position:relative;
}

.chat-interno-msg.propria
{
justify-content:flex-end;
}

.chat-interno-bolha
{
max-width:min(72%, 560px);
border-radius:20px;
padding:11px 13px 8px;
background:#fff;
box-shadow:0 10px 24px rgba(15,23,42,.06);
overflow-wrap:anywhere;
position:relative;
}

.chat-interno-msg.swiping:before
{
content:"Responder";
position:absolute;
top:50%;
transform:translateY(-50%);
font-size:.78rem;
font-weight:800;
color:var(--app-accent, #2563eb);
}

.chat-interno-msg.recebida.swiping:before
{
left:8px;
}

.chat-interno-msg.propria.swiping:before
{
right:8px;
}

.chat-interno-msg.destacada .chat-interno-bolha
{
box-shadow:0 0 0 4px rgba(37,99,235,.18), 0 10px 24px rgba(15,23,42,.08);
}

.chat-interno-msg.propria .chat-interno-bolha
{
background:linear-gradient(135deg, #dbeafe, #dcfce7);
border-top-right-radius:8px;
}

.chat-interno-msg.recebida .chat-interno-bolha
{
border-top-left-radius:8px;
}

.chat-interno-texto
{
white-space:pre-wrap;
line-height:1.42;
}

.chat-interno-texto.is-collapsed
{
max-height:9.9em;
overflow:hidden;
position:relative;
}

.chat-interno-texto.is-collapsed:after
{
content:"";
position:absolute;
left:0;
right:0;
bottom:0;
height:2.5em;
background:linear-gradient(180deg, rgba(255,255,255,0), #fff);
pointer-events:none;
}

.chat-interno-msg.propria .chat-interno-texto.is-collapsed:after
{
background:linear-gradient(180deg, rgba(220,252,231,0), #dcfce7);
}

.chat-interno-ver-mais
{
border:0;
background:transparent;
padding:6px 0 0;
color:var(--app-accent, #2563eb);
font-weight:800;
font-size:.84rem;
}

.chat-interno-texto a
{
color:var(--app-accent, #2563eb);
font-weight:700;
text-decoration:underline;
text-underline-offset:2px;
}

.chat-interno-mention
{
color:var(--app-accent, #2563eb);
font-weight:900;
}

.chat-interno-texto.excluida
{
font-style:italic;
color:#64748b;
}

.chat-interno-forwarded
{
display:flex;
align-items:center;
gap:5px;
margin-bottom:5px;
font-size:.76rem;
font-weight:800;
color:#64748b;
}

.chat-interno-acoes-msg
{
position:absolute;
top:-18px;
right:10px;
display:none;
gap:4px;
padding:3px;
border-radius:999px;
background:#fff;
box-shadow:0 10px 24px rgba(15,23,42,.12);
z-index:2;
}

.chat-interno-msg.propria .chat-interno-acoes-msg
{
right:auto;
left:10px;
}

.chat-interno-bolha:hover .chat-interno-acoes-msg,
.chat-interno-bolha:focus-within .chat-interno-acoes-msg
{
display:flex;
}

.chat-interno-acoes-msg button
{
width:28px;
height:28px;
border:0;
border-radius:50%;
background:#f8fafc;
color:#334155;
display:inline-flex;
align-items:center;
justify-content:center;
}

.chat-interno-acoes-msg button:hover
{
background:var(--app-accent-soft, #dbeafe);
color:var(--app-accent, #2563eb);
}

.chat-interno-resposta-citada,
.chat-interno-resposta-preview
{
border:0;
border-left:3px solid var(--app-accent, #2563eb);
background:rgba(255,255,255,.68);
border-radius:10px;
padding:8px 10px;
margin-bottom:8px;
display:block;
width:100%;
text-align:left;
color:#0f172a;
}

.chat-interno-resposta-citada strong,
.chat-interno-resposta-preview strong
{
display:block;
font-size:.76rem;
color:var(--app-accent, #2563eb);
}

.chat-interno-resposta-citada span,
.chat-interno-resposta-preview span
{
display:block;
font-size:.82rem;
color:#64748b;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}

.chat-interno-resposta-preview
{
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
background:#f8fafc;
border:1px solid #e2e8f0;
border-left:3px solid var(--app-accent, #2563eb);
}

.chat-interno-resposta-preview div
{
min-width:0;
}

.chat-interno-resposta-preview button
{
border:0;
width:28px;
height:28px;
border-radius:10px;
background:#fee2e2;
color:#dc2626;
flex-shrink:0;
}

.chat-interno-reacoes
{
display:flex;
gap:4px;
flex-wrap:wrap;
margin-top:7px;
}

.chat-interno-reacoes button
{
border:1px solid #e2e8f0;
border-radius:999px;
background:#fff;
display:inline-flex;
align-items:center;
gap:4px;
padding:2px 7px;
font-size:.78rem;
line-height:1.2;
box-shadow:0 5px 12px rgba(15,23,42,.06);
}

.chat-interno-reacoes button.minha
{
border-color:rgba(37,99,235,.35);
background:var(--app-accent-soft, #dbeafe);
}

.chat-interno-reacoes b
{
font-size:.7rem;
color:#64748b;
}

.chat-interno-reacao-picker
{
position:absolute;
bottom:calc(100% + 8px);
left:10px;
display:flex;
gap:3px;
padding:6px;
border-radius:999px;
background:#fff;
box-shadow:0 16px 34px rgba(15,23,42,.18);
z-index:4;
}

.chat-interno-msg.propria .chat-interno-reacao-picker
{
left:auto;
right:10px;
}

.chat-interno-reacao-picker button
{
border:0;
background:#f8fafc;
border-radius:50%;
width:34px;
height:34px;
font-size:1.08rem;
}

.chat-interno-reacao-picker button:hover
{
background:#eef2ff;
transform:translateY(-1px);
}

.chat-interno-hora
{
margin-top:6px;
font-size:.72rem;
color:#64748b;
text-align:right;
display:flex;
align-items:center;
justify-content:flex-end;
gap:4px;
line-height:1.2;
}

.chat-interno-editada
{
color:#94a3b8;
}

.chat-interno-status-msg
{
display:inline-flex;
align-items:center;
font-size:.9rem;
color:#64748b;
line-height:1;
}

.chat-interno-status-msg.status-enviando
{
font-size:.78rem;
color:#94a3b8;
}

.chat-interno-status-msg.status-lida
{
color:#0ea5e9;
}

.chat-interno-img img
{
display:block;
max-width:260px;
max-height:260px;
border-radius:14px;
object-fit:cover;
}

.chat-interno-anexo
{
display:flex;
align-items:center;
gap:10px;
padding:10px 12px;
border-radius:14px;
background:rgba(255,255,255,.78);
color:#0f172a;
text-decoration:none;
border:1px solid rgba(148,163,184,.25);
}

.chat-interno-bolha audio
{
max-width:260px;
}

.chat-interno-composer
{
padding:12px 16px 16px;
background:#fff;
border-top:1px solid #e2e8f0;
}

.chat-interno-composer-row
{
display:flex;
align-items:flex-end;
gap:8px;
}

.chat-interno-composer textarea
{
min-height:42px;
max-height:120px;
resize:none;
flex:1;
min-width:0;
border:1px solid #e2e8f0;
border-radius:15px;
padding:10px 12px;
outline:0;
background:#f8fafc;
}

.chat-interno-composer textarea:focus
{
border-color:rgba(37,99,235,.42);
background:#fff;
box-shadow:0 0 0 4px rgba(37,99,235,.08);
}

.chat-interno-send
{
width:44px;
height:42px;
border-radius:14px;
background:var(--app-accent, #2563eb);
color:#fff;
}

.chat-interno-send:disabled
{
opacity:.65;
cursor:not-allowed;
}

.chat-interno-toast
{
position:absolute;
left:50%;
bottom:22px;
transform:translateX(-50%) translateY(10px);
padding:9px 13px;
border-radius:999px;
background:rgba(15,23,42,.92);
color:#fff;
font-size:.84rem;
font-weight:700;
box-shadow:0 14px 32px rgba(15,23,42,.22);
opacity:0;
pointer-events:none;
transition:opacity .18s ease, transform .18s ease;
z-index:6;
}

.chat-interno-toast.show
{
opacity:1;
transform:translateX(-50%) translateY(0);
}

.chat-interno-forward-panel
{
position:absolute;
inset:0;
z-index:7;
display:flex;
align-items:flex-end;
justify-content:center;
padding:18px;
background:rgba(15,23,42,.28);
}

.chat-interno-forward-box
{
width:min(420px, 100%);
max-height:min(560px, calc(100vh - 60px));
display:flex;
flex-direction:column;
border-radius:18px;
background:#fff;
box-shadow:0 24px 60px rgba(15,23,42,.22);
overflow:hidden;
}

.chat-interno-forward-head
{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
padding:14px 16px;
border-bottom:1px solid #e2e8f0;
}

.chat-interno-forward-head button
{
border:0;
width:34px;
height:34px;
border-radius:12px;
background:#f1f5f9;
color:#0f172a;
}

.chat-interno-forward-busca
{
margin:12px 14px;
border:1px solid #e2e8f0;
border-radius:14px;
padding:10px 12px;
outline:0;
background:#f8fafc;
}

.chat-interno-forward-lista
{
overflow-y:auto;
padding:0 8px 12px;
}

.chat-interno-forward-item
{
width:100%;
display:flex;
align-items:center;
gap:10px;
border:0;
border-radius:14px;
background:transparent;
padding:9px;
text-align:left;
font-weight:800;
color:#0f172a;
}

.chat-interno-forward-item span
{
flex:1;
min-width:0;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}

.chat-interno-forward-item > i
{
width:24px;
height:24px;
border-radius:50%;
display:inline-flex;
align-items:center;
justify-content:center;
background:#e2e8f0;
color:#fff;
opacity:.7;
}

.chat-interno-forward-item:hover
{
background:#f1f5f9;
}

.chat-interno-forward-item.selected
{
background:var(--app-accent-soft, #dbeafe);
color:var(--app-accent, #2563eb);
}

.chat-interno-forward-item.selected > i
{
background:var(--app-accent, #2563eb);
opacity:1;
}

.chat-interno-forward-actions
{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
padding:12px 14px;
border-top:1px solid #e2e8f0;
}

.chat-interno-forward-actions span
{
font-size:.84rem;
font-weight:800;
color:#64748b;
}

.chat-interno-forward-actions button
{
border:0;
border-radius:12px;
padding:9px 14px;
background:var(--app-accent, #2563eb);
color:#fff;
font-weight:800;
}

.chat-interno-forward-actions button:disabled
{
opacity:.5;
cursor:not-allowed;
}

.chat-interno-mention-panel
{
display:grid;
gap:6px;
margin-bottom:8px;
padding:8px;
border-radius:14px;
background:#fff;
box-shadow:0 16px 34px rgba(15,23,42,.14);
border:1px solid #e2e8f0;
}

.chat-interno-mention-panel button
{
border:0;
border-radius:12px;
padding:7px;
background:#f8fafc;
display:flex;
align-items:center;
gap:8px;
text-align:left;
font-weight:800;
color:#0f172a;
}

.chat-interno-grupo-form,
.chat-interno-detalhes,
.chat-interno-pesquisa-box
{
display:flex;
flex-direction:column;
min-height:0;
}

.chat-interno-grupo-form label
{
display:flex;
flex-direction:column;
gap:6px;
padding:10px 14px 0;
font-size:.82rem;
font-weight:800;
color:#64748b;
}

.chat-interno-grupo-form input,
.chat-interno-grupo-form textarea,
.chat-interno-grupo-info input,
.chat-interno-grupo-info textarea,
.chat-interno-add-participante input,
.chat-interno-pesquisa-box input[type="search"]
{
width:100%;
border:1px solid #e2e8f0;
border-radius:12px;
padding:10px 12px;
outline:0;
background:#f8fafc;
color:#0f172a;
}

.chat-interno-forward-busca-wrap
{
padding:0 14px;
}

.chat-interno-forward-busca-wrap .chat-interno-forward-busca
{
margin:12px 0;
width:100%;
}

.chat-interno-forward-item button[data-grupo-admin]
{
border:0;
width:28px;
height:28px;
border-radius:50%;
background:#fff7ed;
color:#f59e0b;
}

.chat-interno-forward-item.admin
{
box-shadow:inset 3px 0 0 #f59e0b;
}

.chat-interno-detalhes
{
overflow:auto;
padding:14px;
gap:14px;
}

.chat-interno-detalhes-hero
{
display:flex;
flex-direction:column;
align-items:center;
gap:6px;
text-align:center;
padding:8px 0 4px;
}

.chat-interno-detalhes-hero .chat-interno-avatar
{
width:72px;
height:72px;
border-radius:22px;
flex-basis:72px;
}

.chat-interno-detalhes-hero strong
{
font-size:1.05rem;
}

.chat-interno-detalhes-hero span
{
font-size:.86rem;
color:#64748b;
}

.chat-interno-grupo-info,
.chat-interno-add-participante
{
display:grid;
gap:8px;
padding:12px;
border:1px solid #e2e8f0;
border-radius:14px;
background:#f8fafc;
}

.chat-interno-grupo-info button,
.chat-interno-add-participante button,
.chat-interno-sair-grupo
{
border:0;
border-radius:12px;
padding:9px 12px;
font-weight:800;
background:var(--app-accent, #2563eb);
color:#fff;
}

.chat-interno-add-participante div
{
display:flex;
flex-wrap:wrap;
gap:6px;
}

.chat-interno-add-participante button
{
background:#fff;
color:#0f172a;
border:1px solid #e2e8f0;
}

.chat-interno-detalhes-section
{
display:grid;
gap:8px;
}

.chat-interno-participantes-lista
{
display:grid;
gap:6px;
}

.chat-interno-participante
{
display:flex;
align-items:center;
gap:10px;
padding:8px;
border-radius:14px;
background:#f8fafc;
}

.chat-interno-participante span
{
flex:1;
min-width:0;
font-weight:800;
}

.chat-interno-participante small
{
display:block;
font-weight:700;
color:#64748b;
}

.chat-interno-participante button
{
border:0;
border-radius:10px;
padding:7px 9px;
font-size:.76rem;
font-weight:800;
background:#eef2ff;
color:#334155;
}

.chat-interno-midias-lista
{
display:grid;
grid-template-columns:repeat(3, minmax(0,1fr));
gap:8px;
}

.chat-interno-midia-item
{
min-width:0;
border:1px solid #e2e8f0;
border-radius:12px;
padding:8px;
text-decoration:none;
color:#0f172a;
background:#fff;
display:grid;
gap:6px;
}

.chat-interno-midia-item a
{
min-width:0;
display:grid;
gap:6px;
text-decoration:none;
color:inherit;
}

.chat-interno-midia-item img
{
width:100%;
aspect-ratio:1;
object-fit:cover;
border-radius:9px;
}

.chat-interno-midia-item span
{
font-size:.75rem;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}

.chat-interno-midia-item button
{
border:0;
border-radius:9px;
padding:6px 7px;
font-size:.72rem;
font-weight:800;
background:#f1f5f9;
color:#334155;
}

.chat-interno-sair-grupo
{
background:#fee2e2;
color:#dc2626;
}

.chat-interno-pesquisa-box
{
padding:14px;
gap:10px;
}

.chat-interno-pesquisa-box label
{
font-size:.84rem;
font-weight:800;
color:#64748b;
display:flex;
align-items:center;
gap:8px;
}

.chat-interno-pesquisa-resultados
{
overflow:auto;
display:grid;
gap:8px;
}

.chat-interno-pesquisa-resultados button
{
border:0;
border-radius:12px;
padding:10px;
background:#f8fafc;
text-align:left;
color:#0f172a;
}

.chat-interno-pesquisa-resultados strong,
.chat-interno-pesquisa-resultados span
{
display:block;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}

.chat-interno-pesquisa-resultados span
{
font-size:.84rem;
color:#64748b;
}

.chat-interno-camera-box
{
padding:14px;
display:grid;
gap:12px;
}

.chat-interno-camera-box video
{
width:100%;
max-height:58vh;
background:#020617;
border-radius:16px;
object-fit:cover;
}

.chat-interno-camera-actions
{
display:flex;
align-items:center;
justify-content:flex-end;
gap:8px;
}

.chat-interno-camera-actions button
{
border:0;
border-radius:12px;
padding:10px 13px;
font-weight:800;
background:#f1f5f9;
color:#0f172a;
}

.chat-interno-camera-actions button[data-camera-capturar]
{
background:var(--app-accent, #2563eb);
color:#fff;
}

.chat-interno-icon-btn.recording
{
background:#fee2e2;
color:#dc2626;
}

.chat-interno-preview
{
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
margin-bottom:10px;
padding:9px 12px;
border-radius:12px;
background:#f8fafc;
border:1px dashed #cbd5e1;
color:#334155;
font-size:.88rem;
}

.chat-interno-preview button
{
border:0;
background:#fee2e2;
color:#dc2626;
border-radius:10px;
width:28px;
height:28px;
}

.chat-interno-emoji-panel
{
display:flex;
gap:4px;
flex-wrap:wrap;
padding:8px;
margin-bottom:8px;
border-radius:14px;
background:#f8fafc;
border:1px solid #e2e8f0;
}

.chat-interno-emoji-panel button
{
border:0;
background:#fff;
border-radius:10px;
width:34px;
height:34px;
}

@media (max-width: 767px)
{
  .chat-interno-offcanvas
  {
  width:100vw !important;
  }

  .chat-interno-shell
  {
  grid-template-columns:1fr;
  }

  .chat-interno-main
  {
  position:absolute;
  inset:0;
  background:#f8fafc;
  transform:translateX(100%);
  transition:transform .2s ease;
  overflow-x:hidden;
  }

  .chat-interno-main:has(.chat-interno-conversa:not(.d-none))
  {
  transform:translateX(0);
  }

  .chat-interno-voltar
  {
  display:inline-flex;
  }

  .chat-interno-bolha
  {
  max-width:86%;
  }

  .chat-interno-acoes-msg
  {
  display:none;
  top:-44px;
  left:8px !important;
  right:auto;
  padding:5px;
  border-radius:999px;
  background:rgba(255,255,255,.98);
  box-shadow:0 16px 34px rgba(15,23,42,.18);
  max-width:calc(100vw - 34px);
  }

  .chat-interno-bolha:hover .chat-interno-acoes-msg:not(.is-open),
  .chat-interno-bolha:focus-within .chat-interno-acoes-msg:not(.is-open)
  {
  display:none;
  }

  .chat-interno-msg.propria .chat-interno-acoes-msg
  {
  left:auto !important;
  right:8px;
  }

  .chat-interno-acoes-msg.is-open
  {
  display:flex;
  }

  .chat-interno-acoes-msg button
  {
  width:36px;
  height:36px;
  background:#f8fafc;
  }

  .chat-interno-reacao-picker
  {
  left:auto;
  right:8px;
  bottom:calc(100% + 8px);
  max-width:calc(100vw - 34px);
  flex-wrap:wrap;
  }

  .chat-interno-forward-panel
  {
  padding:10px;
  }

  .chat-interno-forward-box
  {
  max-height:78vh;
  border-radius:18px 18px 14px 14px;
  }
}

/*--------------------------------------------------------------
# Tema Global
--------------------------------------------------------------*/
.tema-toggle-btn
{
border:0;
width:42px;
height:42px;
margin-right:18px;
border-radius:14px;
background:linear-gradient(135deg, rgba(15,23,42,.08), rgba(71,85,105,.14));
color:var(--app-ink);
display:inline-flex;
align-items:center;
justify-content:center;
box-shadow:inset 0 0 0 1px rgba(15,23,42,.08);
transition:all .2s ease;
}

.tema-toggle-btn:hover,
.tema-toggle-btn:focus
{
color:var(--app-ink);
background:linear-gradient(135deg, rgba(15,23,42,.12), rgba(71,85,105,.22));
box-shadow:0 12px 28px rgba(15,23,42,.12), inset 0 0 0 1px rgba(15,23,42,.12);
}

html[data-theme="escuro"]
{
color-scheme:dark;
--bg-body:#0b1018;
--bg-card:#111827;
--bg-card-soft:#162235;
--bg-sidebar:#0f1724;
--bg-header:rgba(15,23,36,.96);
--text-primary:#e5edf8;
--text-secondary:#a9b6c9;
--text-muted:#7f8da3;
--border-color:rgba(148,163,184,.20);
--input-bg:#0d1522;
--input-border:rgba(148,163,184,.28);
--input-focus:rgba(148,163,184,.42);
--primary-color:#cbd5e1;
--primary-hover:#f8fafc;
--table-bg:#111827;
--table-hover:rgba(148,163,184,.12);
--modal-bg:#111827;
--dropdown-bg:#111827;
--shadow-color:rgba(0,0,0,.42);
--bs-body-bg:var(--bg-body);
--bs-body-color:var(--text-primary);
--bs-border-color:var(--border-color);
--bs-heading-color:var(--text-primary);
}

html[data-theme="escuro"] body
{
background:
  radial-gradient(circle at top left, rgba(71,85,105,.18), transparent 34%),
  linear-gradient(180deg, #0b1018 0%, #0e1622 100%);
color:var(--text-primary);
}

html[data-theme="escuro"] *
{
scrollbar-color:#64748b #0b1018;
}

html[data-theme="escuro"] a
{
color:#cbd5e1;
}

html[data-theme="escuro"] a:hover
{
color:#fff;
}

html[data-theme="escuro"] .header,
html[data-theme="escuro"] .sidebar,
html[data-theme="escuro"] .card,
html[data-theme="escuro"] .dropdown-menu,
html[data-theme="escuro"] .modal-content,
html[data-theme="escuro"] .offcanvas,
html[data-theme="escuro"] .app-loading-card
{
background:var(--bg-card);
color:var(--text-primary);
border-color:var(--border-color);
box-shadow:0 18px 48px var(--shadow-color);
}

html[data-theme="escuro"] .header
{
background:var(--bg-header);
backdrop-filter:blur(14px);
}

html[data-theme="escuro"] .sidebar
{
background:var(--bg-sidebar);
}

html[data-theme="escuro"] #main
{
background:transparent;
}

html[data-theme="escuro"] .logo span,
html[data-theme="escuro"] .header .toggle-sidebar-btn,
html[data-theme="escuro"] .header-nav .nav-icon,
html[data-theme="escuro"] .header-nav .nav-profile,
html[data-theme="escuro"] .header .search-form button i,
html[data-theme="escuro"] .pagetitle h1,
html[data-theme="escuro"] .card-title,
html[data-theme="escuro"] .card-header,
html[data-theme="escuro"] .card-footer,
html[data-theme="escuro"] .breadcrumb .active,
html[data-theme="escuro"] .sidebar-nav .nav-link,
html[data-theme="escuro"] .sidebar-nav .nav-link i,
html[data-theme="escuro"] .sidebar-nav .nav-link svg.bi,
html[data-theme="escuro"] .sidebar-nav .nav-link.collapsed,
html[data-theme="escuro"] .sidebar-nav .nav-link.collapsed i,
html[data-theme="escuro"] .sidebar-nav .nav-link.collapsed svg.bi,
html[data-theme="escuro"] .sidebar-nav .nav-content a,
html[data-theme="escuro"] .header-nav .profile .dropdown-header h6,
html[data-theme="escuro"] .header-nav .messages .message-item h4,
html[data-theme="escuro"] .dropdown-menu .dropdown-footer a
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .logo img
{
filter: brightness(100);
}

html[data-theme="escuro"] .text-dark
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .text-muted,
html[data-theme="escuro"] .card-title span,
html[data-theme="escuro"] .breadcrumb,
html[data-theme="escuro"] .breadcrumb a,
html[data-theme="escuro"] .breadcrumb .breadcrumb-item::before,
html[data-theme="escuro"] .sidebar-nav .nav-heading,
html[data-theme="escuro"] .header-nav .notifications .notification-item p,
html[data-theme="escuro"] .header-nav .messages .message-item p,
html[data-theme="escuro"] .chat-empty-state,
html[data-theme="escuro"] .chat-interno-header span,
html[data-theme="escuro"] .chat-interno-conversa-meta span
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .card-header,
html[data-theme="escuro"] .card-footer,
html[data-theme="escuro"] .modal-header,
html[data-theme="escuro"] .modal-footer,
html[data-theme="escuro"] .dropdown-divider,
html[data-theme="escuro"] hr
{
border-color:var(--border-color);
background-color:var(--bg-card);
}

html[data-theme="escuro"] .form-control,
html[data-theme="escuro"] .form-select,
html[data-theme="escuro"] textarea,
html[data-theme="escuro"] input,
html[data-theme="escuro"] select,
html[data-theme="escuro"] .select2-container--default .select2-selection--single,
html[data-theme="escuro"] .select2-container--default .select2-selection--multiple,
html[data-theme="escuro"] .header .search-form input
{
background-color:var(--input-bg);
border-color:var(--input-border);
color:var(--text-primary);
}

html[data-theme="escuro"] .form-control:focus,
html[data-theme="escuro"] .form-select:focus,
html[data-theme="escuro"] textarea:focus,
html[data-theme="escuro"] input:focus,
html[data-theme="escuro"] select:focus,
html[data-theme="escuro"] .header .search-form input:focus
{
background-color:#111c2c;
border-color:var(--input-focus);
color:var(--text-primary);
box-shadow:0 0 0 4px rgba(148,163,184,.12);
}

html[data-theme="escuro"] ::placeholder
{
color:#8a98ad !important;
opacity:1;
}

html[data-theme="escuro"] .table
{
--bs-table-color:var(--text-primary);
--bs-table-bg:var(--table-bg);
--bs-table-border-color:var(--border-color);
--bs-table-striped-color:var(--text-primary);
--bs-table-striped-bg:rgba(148,163,184,.07);
--bs-table-hover-color:var(--text-primary);
--bs-table-hover-bg:var(--table-hover);
color:var(--text-primary);
}

html[data-theme="escuro"] .table > :not(caption) > * > *
{
background-color:var(--bs-table-bg);
border-color:var(--border-color);
color:var(--text-primary);
}

html[data-theme="escuro"] .dropdown-item,
html[data-theme="escuro"] .notification-item a
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .dropdown-item:hover,
html[data-theme="escuro"] .header-nav .notifications .notification-item:hover,
html[data-theme="escuro"] .header-nav .messages .message-item:hover,
html[data-theme="escuro"] .header-nav .profile .dropdown-item:hover,
html[data-theme="escuro"] .sidebar-nav .nav-link,
html[data-theme="escuro"] .sidebar-nav .nav-link:hover,
html[data-theme="escuro"] .sidebar-nav .nav-link:not(.collapsed),
html[data-theme="escuro"] .sidebar-nav .nav-content a:hover,
html[data-theme="escuro"] .sidebar-nav .nav-content a.active
{
background:rgba(148,163,184,.10);
color:#fff !important;
}

html[data-theme="escuro"] .sidebar-nav .nav-link.collapsed
{
background:transparent;
}

html[data-theme="escuro"] .dropdown-menu-arrow::before
{
background:var(--dropdown-bg);
border-color:var(--border-color);
}

html[data-theme="escuro"] .nav-tabs-bordered
{
border-color:var(--border-color);
}

html[data-theme="escuro"] .nav-tabs-bordered .nav-link,
html[data-theme="escuro"] .nav-tabs-bordered .nav-link:hover,
html[data-theme="escuro"] .nav-tabs-bordered .nav-link:focus
{
color:var(--text-secondary);
}

html[data-theme="escuro"] .nav-tabs-bordered .nav-link.active
{
background:transparent;
color:#fff;
border-color:#cbd5e1;
}

html[data-theme="escuro"] .accordion-item,
html[data-theme="escuro"] .accordion-button
{
background:var(--bg-card);
border-color:var(--border-color);
color:var(--text-primary);
}

html[data-theme="escuro"] .accordion-button:not(.collapsed)
{
background:rgba(148,163,184,.10);
color:#fff;
}

html[data-theme="escuro"] .btn-close
{
filter:invert(1) grayscale(100%);
}

html[data-theme="escuro"] .tema-toggle-btn
{
background:linear-gradient(135deg, rgba(203,213,225,.16), rgba(148,163,184,.08));
color:#fde68a !important;
box-shadow:inset 0 0 0 1px rgba(203,213,225,.14);
}

html[data-theme="escuro"] .alert:not(.alert-success):not(.alert-danger):not(.alert-warning):not(.alert-info)
{
background:var(--bg-card-soft);
border-color:var(--border-color);
color:var(--text-primary);
}

html[data-theme="escuro"] .pagination .page-link
{
background:var(--bg-card);
border-color:var(--border-color);
color:var(--text-primary);
}

html[data-theme="escuro"] .fc,
html[data-theme="escuro"] .fc .fc-scrollgrid,
html[data-theme="escuro"] .fc .fc-daygrid-day,
html[data-theme="escuro"] .fc .fc-timegrid-slot,
html[data-theme="escuro"] .fc .fc-list
{
background:var(--bg-card);
border-color:var(--border-color);
color:var(--text-primary);
}

html[data-theme="escuro"] .fc .fc-button-primary
{
background:#1f2937;
border-color:#334155;
color:#fff;
}

html[data-theme="escuro"] .fc .fc-button-primary:not(:disabled):hover
{
background:#334155;
border-color:#64748b;
}

html[data-theme="escuro"] #chat-janela,
html[data-theme="escuro"] #chat-input,
html[data-theme="escuro"] .mensagem-suporte,
html[data-theme="escuro"] .chat-interno-sidebar,
html[data-theme="escuro"] .chat-interno-main,
html[data-theme="escuro"] .chat-interno-conversa,
html[data-theme="escuro"] .chat-interno-conversa-topo,
html[data-theme="escuro"] .chat-interno-composer
{
background:var(--bg-card);
color:var(--text-primary);
border-color:var(--border-color);
}

html[data-theme="escuro"] #chat-mensagens,
html[data-theme="escuro"] .chat-interno-mensagens
{
background:linear-gradient(180deg, #0d1522 0%, #111827 100%);
}

html[data-theme="escuro"] #mensagem,
html[data-theme="escuro"] .chat-preview-anexo,
html[data-theme="escuro"] .chat-interno-search,
html[data-theme="escuro"] .chat-interno-search input,
html[data-theme="escuro"] .chat-interno-tabs,
html[data-theme="escuro"] .chat-interno-composer textarea,
html[data-theme="escuro"] .chat-interno-preview,
html[data-theme="escuro"] .chat-interno-emoji-panel
{
background:var(--input-bg);
border-color:var(--input-border);
color:var(--text-primary);
}

html[data-theme="escuro"] .chat-interno-item:hover,
html[data-theme="escuro"] .chat-interno-item.active,
html[data-theme="escuro"] .chat-interno-tabs button.active,
html[data-theme="escuro"] .chat-interno-voltar,
html[data-theme="escuro"] .chat-interno-icon-btn,
html[data-theme="escuro"] .chat-interno-dia,
html[data-theme="escuro"] .chat-interno-bolha,
html[data-theme="escuro"] .chat-interno-emoji-panel button,
html[data-theme="escuro"] .chat-anexo-link,
html[data-theme="escuro"] .chat-interno-anexo
{
background:var(--bg-card-soft);
color:var(--text-primary);
border-color:var(--border-color);
}

html[data-theme="escuro"] .chat-interno-msg.propria .chat-interno-bolha,
html[data-theme="escuro"] .mensagem-cliente
{
background:linear-gradient(135deg, #243a57, #1e293b);
color:#eff6ff;
}

html[data-theme="escuro"] .bg-white,
html[data-theme="escuro"] .bg-light,
html[data-theme="escuro"] .table-light,
html[data-theme="escuro"] .text-bg-light,
html[data-theme="escuro"] .badge.bg-light,
html[data-theme="escuro"] .alert-light,
html[data-theme="escuro"] [class*="-filter-card"],
html[data-theme="escuro"] [class*="-list-card"],
html[data-theme="escuro"] [class*="-table-card"],
html[data-theme="escuro"] [class*="-form-card"],
html[data-theme="escuro"] [class*="-side-card"],
html[data-theme="escuro"] [class*="-summary-card"],
html[data-theme="escuro"] [class*="-metric-card"],
html[data-theme="escuro"] [class*="-command-card"],
html[data-theme="escuro"] [class*="-sidebar-card"],
html[data-theme="escuro"] [class*="-accordion-shell"],
html[data-theme="escuro"] [class*="-mini-card"],
html[data-theme="escuro"] .mini-card,
html[data-theme="escuro"] .detail-card,
html[data-theme="escuro"] .doc-card,
html[data-theme="escuro"] .doc-item,
html[data-theme="escuro"] .prof-card-metric,
html[data-theme="escuro"] .prof-card-item,
html[data-theme="escuro"] .prof-empty-state,
html[data-theme="escuro"] .conv-item,
html[data-theme="escuro"] .doc-preview-item,
html[data-theme="escuro"] .comanda-mobile-card,
html[data-theme="escuro"] .clientes-metric,
html[data-theme="escuro"] .cliente-summary-card,
html[data-theme="escuro"] .painel-quick-action,
html[data-theme="escuro"] .prescricao-mini-card,
html[data-theme="escuro"] .impressos-patient-card,
html[data-theme="escuro"] .impressos-card-grid,
html[data-theme="escuro"] .simple-panel-card,
html[data-theme="escuro"] .ia-chat,
html[data-theme="escuro"] .ia-modal-content,
html[data-theme="escuro"] .dashboard-config-modal
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:0 18px 44px rgba(0,0,0,.24) !important;
}

html[data-theme="escuro"] .badge.bg-light,
html[data-theme="escuro"] .text-bg-light
{
background:var(--bg-card-soft) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .table-light > *
{
background:var(--bg-card-soft) !important;
color:var(--text-primary) !important;
border-color:var(--border-color) !important;
}

html[data-theme="escuro"] [class*="-metric"] span,
html[data-theme="escuro"] [class*="-metric"] small,
html[data-theme="escuro"] [class*="-meta"],
html[data-theme="escuro"] [class*="-text"],
html[data-theme="escuro"] [class*="-section-text"],
html[data-theme="escuro"] [class*="-subtitle"],
html[data-theme="escuro"] .card-text,
html[data-theme="escuro"] .detail-card label,
html[data-theme="escuro"] .mini-card span,
html[data-theme="escuro"] .mini-card small,
html[data-theme="escuro"] .prof-card-metric span,
html[data-theme="escuro"] .prof-card-metric small,
html[data-theme="escuro"] .prof-card-item p,
html[data-theme="escuro"] .prof-card-meta,
html[data-theme="escuro"] .doc-item small,
html[data-theme="escuro"] .conv-item small,
html[data-theme="escuro"] .doc-preview-item small
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] [class*="-metric"] strong,
html[data-theme="escuro"] [class*="-item"] h3,
html[data-theme="escuro"] [class*="-item"] h4,
html[data-theme="escuro"] .mini-card strong,
html[data-theme="escuro"] .detail-card div,
html[data-theme="escuro"] .prof-card-metric strong,
html[data-theme="escuro"] .prof-card-item h3,
html[data-theme="escuro"] .conv-item strong,
html[data-theme="escuro"] .doc-preview-item strong
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .select2-dropdown,
html[data-theme="escuro"] .select2-container--bootstrap-5 .select2-selection,
html[data-theme="escuro"] .select2-container--default .select2-results__option,
html[data-theme="escuro"] .select2-container--default .select2-search--dropdown .select2-search__field
{
background:var(--input-bg) !important;
border-color:var(--input-border) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .select2-container--default .select2-results__option--highlighted[aria-selected],
html[data-theme="escuro"] .select2-container--default .select2-results__option--selected
{
background:var(--bg-card-soft) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] [class*="-card"] .card-header,
html[data-theme="escuro"] [class*="-filter-card"] .card-header,
html[data-theme="escuro"] [class*="-table-card"] .card-header,
html[data-theme="escuro"] [class*="-list-card"] .card-header,
html[data-theme="escuro"] [class*="-panel-card"] .card-header,
html[data-theme="escuro"] [class*="-sidebar-card"] .card-header,
html[data-theme="escuro"] [class*="-command-card"] .card-header,
html[data-theme="escuro"] .dashboard-config-body,
html[data-theme="escuro"] .dashboard-config-section,
html[data-theme="escuro"] .ia-modal-body,
html[data-theme="escuro"] .ia-modal-side,
html[data-theme="escuro"] .ia-modal-chat,
html[data-theme="escuro"] .ia-msg.ia-bot,
html[data-theme="escuro"] .ia-action-card,
html[data-theme="escuro"] .impressos-mini-box,
html[data-theme="escuro"] .prontuario-table thead th,
html[data-theme="escuro"] label[style*="background:#fff"],
html[data-theme="escuro"] label[style*="background: #fff"],
html[data-theme="escuro"] label[style*="background:#ffffff"],
html[data-theme="escuro"] label[style*="background: #ffffff"]
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] [class*="-name"],
html[data-theme="escuro"] [class*="-value"],
html[data-theme="escuro"] [class*="-title"],
html[data-theme="escuro"] [class*="-label"],
html[data-theme="escuro"] .section-title,
html[data-theme="escuro"] .clientes-name,
html[data-theme="escuro"] .prontuario-patient-name,
html[data-theme="escuro"] .prontuario-profissional-name,
html[data-theme="escuro"] .prontuario-metric-value,
html[data-theme="escuro"] .impressos-patient-name,
html[data-theme="escuro"] .impressos-metric-value,
html[data-theme="escuro"] .impressos-mini-value,
html[data-theme="escuro"] .finance-metric-value,
html[data-theme="escuro"] .painel-metric-value,
html[data-theme="escuro"] .timeline-content strong,
html[data-theme="escuro"] .side-item strong,
html[data-theme="escuro"] .profissional-inline strong,
html[data-theme="escuro"] .prof-empty-state h3,
html[data-theme="escuro"] .dashboard-config-section-head .form-label,
html[data-theme="escuro"] .ia-modal-side h6,
html[data-theme="escuro"] .ia-action-label
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] [class*="-note"],
html[data-theme="escuro"] [class*="-sub"],
html[data-theme="escuro"] [class*="-subtitle"],
html[data-theme="escuro"] [class*="-meta"],
html[data-theme="escuro"] [class*="-kicker"],
html[data-theme="escuro"] .clientes-sub,
html[data-theme="escuro"] .clientes-metric-label,
html[data-theme="escuro"] .prontuario-patient-meta,
html[data-theme="escuro"] .prontuario-profissional-meta,
html[data-theme="escuro"] .prontuario-date-meta,
html[data-theme="escuro"] .prontuario-metric-label,
html[data-theme="escuro"] .prontuario-metric-note,
html[data-theme="escuro"] .impressos-patient-meta,
html[data-theme="escuro"] .impressos-metric-label,
html[data-theme="escuro"] .impressos-metric-note,
html[data-theme="escuro"] .impressos-mini-label,
html[data-theme="escuro"] .finance-metric-note,
html[data-theme="escuro"] .finance-metric-label,
html[data-theme="escuro"] .dashboard-config-section-head p,
html[data-theme="escuro"] .ia-side-note,
html[data-theme="escuro"] .ia-action-modulo,
html[data-theme="escuro"] .ia-action-desc
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .prontuario-record-id,
html[data-theme="escuro"] .impressos-chip,
html[data-theme="escuro"] .ia-chat-status,
html[data-theme="escuro"] .ia-sugestao-btn,
html[data-theme="escuro"] .clientes-avatar,
html[data-theme="escuro"] .prof-avatar,
html[data-theme="escuro"] .profissional-hero-avatar
{
background:rgba(148,163,184,.14) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .dashboard-config-switch
{
border-color:var(--border-color) !important;
}

html[data-theme="escuro"] .text-primary
{
color:var(--primary-color) !important;
}

html[data-theme="escuro"] .text-secondary,
html[data-theme="escuro"] .text-body,
html[data-theme="escuro"] .text-body-secondary
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .border,
html[data-theme="escuro"] .border-top,
html[data-theme="escuro"] .border-end,
html[data-theme="escuro"] .border-bottom,
html[data-theme="escuro"] .border-start,
html[data-theme="escuro"] .list-group-item,
html[data-theme="escuro"] .list-group,
html[data-theme="escuro"] .toast,
html[data-theme="escuro"] .popover,
html[data-theme="escuro"] .tooltip-inner
{
border-color:var(--border-color) !important;
}

html[data-theme="escuro"] .list-group-item,
html[data-theme="escuro"] .toast,
html[data-theme="escuro"] .popover,
html[data-theme="escuro"] .tooltip-inner
{
background:var(--bg-card) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .btn-light
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .btn-outline-light
{
color:#f8fafc !important;
border-color:rgba(248,250,252,.55) !important;
}

/* Agenda / agendamentos */
html[data-theme="escuro"] .agenda-shell-card,
html[data-theme="escuro"] .agenda-filter-card,
html[data-theme="escuro"] .agenda-calendar-shell,
html[data-theme="escuro"] .agenda-record-card,
html[data-theme="escuro"] .agenda-trash-card,
html[data-theme="escuro"] .novo-agendamento-card,
html[data-theme="escuro"] .novo-agendamento-sidecard,
html[data-theme="escuro"] .editar-agendamento-card,
html[data-theme="escuro"] .editar-agendamento-sidecard,
html[data-theme="escuro"] .servico-card,
html[data-theme="escuro"] .servico-filter-card,
html[data-theme="escuro"] .servico-metric-card,
html[data-theme="escuro"] .servico-card-mobile,
html[data-theme="escuro"] .servico-form-card,
html[data-theme="escuro"] .servico-form-sidecard,
html[data-theme="escuro"] .otimizacao-card,
html[data-theme="escuro"] .termo-config-card,
html[data-theme="escuro"] .importacao-card,
html[data-theme="escuro"] .importacao-metric
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:0 18px 44px rgba(0,0,0,.24) !important;
}

html[data-theme="escuro"] .agenda-view-pill,
html[data-theme="escuro"] .agenda-record-info,
html[data-theme="escuro"] .agenda-list-info,
html[data-theme="escuro"] .bloco-info,
html[data-theme="escuro"] .agendamento-card,
html[data-theme="escuro"] .novo-agendamento-mode-btn,
html[data-theme="escuro"] .novo-agendamento-helper,
html[data-theme="escuro"] .novo-agendamento-summary-item,
html[data-theme="escuro"] #novo_servico_container,
html[data-theme="escuro"] .agenda-inteligente-shell,
html[data-theme="escuro"] .agenda-horarios-empty,
html[data-theme="escuro"] .editar-agendamento-summary-item,
html[data-theme="escuro"] .servico-badge,
html[data-theme="escuro"] .servico-summary-item,
html[data-theme="escuro"] .otimizacao-switch-item,
html[data-theme="escuro"] .otimizacao-example,
html[data-theme="escuro"] .termo-switch-item,
html[data-theme="escuro"] .importacao-decision,
html[data-theme="escuro"] .importacao-chip
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .agenda-view-pill:hover,
html[data-theme="escuro"] .novo-agendamento-mode-btn:hover,
html[data-theme="escuro"] .agenda-horario-btn:hover
{
background:rgba(148,163,184,.16) !important;
border-color:rgba(148,163,184,.38) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .agenda-view-pill.active,
html[data-theme="escuro"] .novo-agendamento-mode-btn.active,
html[data-theme="escuro"] .agenda-horario-btn.active
{
background:linear-gradient(135deg, var(--app-brand-mid), var(--app-brand-soft)) !important;
border-color:transparent !important;
color:#ffffff !important;
box-shadow:0 16px 34px rgba(0,0,0,.28) !important;
}

html[data-theme="escuro"] .agenda-section-title,
html[data-theme="escuro"] .agenda-record-title,
html[data-theme="escuro"] .agenda-trash-title,
html[data-theme="escuro"] .agenda-list-info span,
html[data-theme="escuro"] .agenda-list-info div,
html[data-theme="escuro"] .bloco-info span,
html[data-theme="escuro"] .agendamento-card .titulo,
html[data-theme="escuro"] .novo-agendamento-section-title,
html[data-theme="escuro"] .novo-agendamento-summary-item strong,
html[data-theme="escuro"] .novo-agendamento-summary-item span,
html[data-theme="escuro"] .agenda-inteligente-top h3,
html[data-theme="escuro"] .editar-agendamento-section-title,
html[data-theme="escuro"] .editar-agendamento-summary-item strong,
html[data-theme="escuro"] .editar-agendamento-summary-item span,
html[data-theme="escuro"] .servico-metric-value,
html[data-theme="escuro"] .servico-nome,
html[data-theme="escuro"] .servico-form-title,
html[data-theme="escuro"] .servico-summary-item strong,
html[data-theme="escuro"] .servico-summary-item span,
html[data-theme="escuro"] .otimizacao-switch-item .form-check-label,
html[data-theme="escuro"] .otimizacao-slot,
html[data-theme="escuro"] .termo-switch-item .form-check-label,
html[data-theme="escuro"] .termo-preview,
html[data-theme="escuro"] .importacao-metric strong,
html[data-theme="escuro"] .importacao-decision h3,
html[data-theme="escuro"] .importacao-chip,
html[data-theme="escuro"] .fc .fc-toolbar-title
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .agenda-section-subtitle,
html[data-theme="escuro"] .agenda-record-subtitle,
html[data-theme="escuro"] .agenda-record-meta,
html[data-theme="escuro"] .agenda-trash-meta,
html[data-theme="escuro"] .agenda-record-info small,
html[data-theme="escuro"] .agenda-list-info strong,
html[data-theme="escuro"] .bloco-info strong,
html[data-theme="escuro"] .agendamento-card .info,
html[data-theme="escuro"] .novo-agendamento-section-subtitle,
html[data-theme="escuro"] .novo-agendamento-summary-item small,
html[data-theme="escuro"] .agenda-inteligente-top p,
html[data-theme="escuro"] .editar-agendamento-section-subtitle,
html[data-theme="escuro"] .editar-agendamento-summary-item small,
html[data-theme="escuro"] .servico-metric-label,
html[data-theme="escuro"] .servico-metric-note,
html[data-theme="escuro"] .servico-subinfo,
html[data-theme="escuro"] .servico-form-subtitle,
html[data-theme="escuro"] .servico-summary-item small,
html[data-theme="escuro"] .importacao-metric small,
html[data-theme="escuro"] .importacao-alertas,
html[data-theme="escuro"] .importacao-raw,
html[data-theme="escuro"] .importacao-decision p,
html[data-theme="escuro"] .importacao-decision li,
html[data-theme="escuro"] .importacao-chip span
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .agenda-table-modern,
html[data-theme="escuro"] .agenda-trash-table,
html[data-theme="escuro"] .servico-table,
html[data-theme="escuro"] .importacao-map-table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
}

html[data-theme="escuro"] .servico-table thead th,
html[data-theme="escuro"] .agenda-table-modern thead th,
html[data-theme="escuro"] .agenda-trash-table thead th,
html[data-theme="escuro"] .importacao-map-table thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .header-agendamento,
html[data-theme="escuro"] .agenda-list-modal-header
{
background:linear-gradient(135deg, var(--bg-header), var(--bg-card-soft)) !important;
border:1px solid var(--border-color);
color:var(--text-primary) !important;
box-shadow:0 14px 30px rgba(0,0,0,.28) !important;
}

html[data-theme="escuro"] .fc,
html[data-theme="escuro"] #agenda_inteligente_calendar .fc
{
--fc-border-color:var(--border-color);
--fc-page-bg-color:var(--bg-card);
--fc-neutral-bg-color:var(--bg-card-soft);
--fc-list-event-hover-bg-color:rgba(148,163,184,.12);
--fc-today-bg-color:rgba(148,163,184,.16);
--fc-button-bg-color:var(--app-brand-mid);
--fc-button-border-color:var(--app-brand-mid);
--fc-button-hover-bg-color:var(--app-brand-soft);
--fc-button-hover-border-color:var(--app-brand-soft);
color:var(--text-primary);
}

html[data-theme="escuro"] .fc-theme-standard td,
html[data-theme="escuro"] .fc-theme-standard th,
html[data-theme="escuro"] .fc-theme-standard .fc-scrollgrid,
html[data-theme="escuro"] #agenda_inteligente_calendar .fc-theme-standard td,
html[data-theme="escuro"] #agenda_inteligente_calendar .fc-theme-standard th
{
border-color:var(--border-color) !important;
}

html[data-theme="escuro"] .fc-daygrid-day,
html[data-theme="escuro"] .fc .fc-scrollgrid-section > td,
html[data-theme="escuro"] .fc .fc-list,
html[data-theme="escuro"] .fc .fc-list-table,
html[data-theme="escuro"] #agenda_inteligente_calendar .fc-daygrid-day
{
background:var(--bg-card) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .fc-daygrid-day:hover,
html[data-theme="escuro"] #agenda_inteligente_calendar .fc-daygrid-day.agenda-data-disponivel
{
background:var(--bg-card-soft) !important;
}

html[data-theme="escuro"] #agenda_inteligente_calendar .fc-daygrid-day.agenda-data-selecionada
{
background:rgba(148,163,184,.18) !important;
box-shadow:inset 0 0 0 2px var(--primary-color) !important;
}

html[data-theme="escuro"] .fc .fc-col-header-cell-cushion,
html[data-theme="escuro"] .fc .fc-daygrid-day-number,
html[data-theme="escuro"] .fc .fc-list-day-cushion,
html[data-theme="escuro"] .fc .fc-list-event-time,
html[data-theme="escuro"] .fc .fc-list-event-title,
html[data-theme="escuro"] .fc .evt-titulo,
html[data-theme="escuro"] .fc .evt-prof
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .fc .fc-list-day-cushion
{
background:var(--bg-card-soft) !important;
}

html[data-theme="escuro"] .agenda-horario-btn
{
background:var(--bg-card) !important;
border-color:var(--primary-color) !important;
color:var(--primary-color) !important;
}

html[data-theme="escuro"] .importacao-status.ok
{
background:rgba(34,197,94,.18) !important;
color:#86efac !important;
}

html[data-theme="escuro"] .importacao-status.revisar
{
background:rgba(245,158,11,.18) !important;
color:#fbbf24 !important;
}

html[data-theme="escuro"] .importacao-status.erro
{
background:rgba(239,68,68,.18) !important;
color:#fca5a5 !important;
}

html[data-theme="escuro"] .importacao-status.ignorar
{
background:rgba(14,165,233,.18) !important;
color:#7dd3fc !important;
}

/* Filas de atendimento */
html[data-theme="escuro"] .fila-metric,
html[data-theme="escuro"] .fila-helper,
html[data-theme="escuro"] .fila-oferta,
html[data-theme="escuro"] .fila-prioridade
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .fila-metric small,
html[data-theme="escuro"] .fila-table th,
html[data-theme="escuro"] .fila-helper,
html[data-theme="escuro"] .fila-item .text-muted,
html[data-theme="escuro"] .fila-oferta .text-muted
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .fila-metric strong,
html[data-theme="escuro"] .fila-table td strong,
html[data-theme="escuro"] .fila-oferta strong,
html[data-theme="escuro"] .fila-helper strong,
html[data-theme="escuro"] .fila-item strong
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .fila-table,
html[data-theme="escuro"] #filaLista
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
}

html[data-theme="escuro"] .fila-table th,
html[data-theme="escuro"] table:has(#filaLista) thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .fila-item
{
border-bottom-color:var(--border-color) !important;
background:var(--bg-card) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .fila-item.dragging
{
background:rgba(148,163,184,.14) !important;
}

html[data-theme="escuro"] .fila-prioridade
{
background:rgba(96,165,250,.16) !important;
color:#93c5fd !important;
}

html[data-theme="escuro"] .fila-status.bg-success-subtle,
html[data-theme="escuro"] .fila-status.text-success
{
background:rgba(34,197,94,.18) !important;
color:#86efac !important;
}

html[data-theme="escuro"] .fila-status.bg-info-subtle,
html[data-theme="escuro"] .fila-status.text-info
{
background:rgba(14,165,233,.18) !important;
color:#7dd3fc !important;
}

html[data-theme="escuro"] .fila-status.bg-warning-subtle,
html[data-theme="escuro"] .fila-status.text-warning
{
background:rgba(245,158,11,.18) !important;
color:#fbbf24 !important;
}

html[data-theme="escuro"] .fila-status.bg-secondary-subtle,
html[data-theme="escuro"] .fila-status.text-secondary
{
background:rgba(148,163,184,.16) !important;
color:#cbd5e1 !important;
}

/* Prontuario, clientes e guias */
html[data-theme="escuro"] .cliente-card,
html[data-theme="escuro"] .cliente-detail-card,
html[data-theme="escuro"] .cliente-summary-card,
html[data-theme="escuro"] .cliente-type-option,
html[data-theme="escuro"] .cliente-tip,
html[data-theme="escuro"] .cliente-responsavel-box,
html[data-theme="escuro"] .cliente-field-highlight,
html[data-theme="escuro"] .cliente-dropzone,
html[data-theme="escuro"] .clientes-filter-card,
html[data-theme="escuro"] .clientes-table-card,
html[data-theme="escuro"] .clientes-metric,
html[data-theme="escuro"] .prontuario-metric,
html[data-theme="escuro"] .prontuario-filter-card,
html[data-theme="escuro"] .prontuario-table-card,
html[data-theme="escuro"] .prontuario-section-card,
html[data-theme="escuro"] .prontuario-info-card,
html[data-theme="escuro"] .prontuario-pa-banner,
html[data-theme="escuro"] .prontuario-anexo-card,
html[data-theme="escuro"] .prontuario-cirurgia-card,
html[data-theme="escuro"] .prontuario-timeline-item,
html[data-theme="escuro"] .prontuario-tip,
html[data-theme="escuro"] .cid-ai-card,
html[data-theme="escuro"] .cid-selected-box,
html[data-theme="escuro"] .evolucao-card,
html[data-theme="escuro"] .exame-card,
html[data-theme="escuro"] .prescricao-card,
html[data-theme="escuro"] .documento-card,
html[data-theme="escuro"] .imagem-exame-card,
html[data-theme="escuro"] .resultado-card,
html[data-theme="escuro"] .resultado-filter-card,
html[data-theme="escuro"] .resultado-list-card,
html[data-theme="escuro"] .resultado-upload-card,
html[data-theme="escuro"] .guia-model-card,
html[data-theme="escuro"] .guia-procedure-panel,
html[data-theme="escuro"] .guia-procedure-form,
html[data-theme="escuro"] .guia-procedure-import
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:0 18px 44px rgba(0,0,0,.24) !important;
}

html[data-theme="escuro"] .cliente-detail-item,
html[data-theme="escuro"] .cliente-tag,
html[data-theme="escuro"] .prontuario-info-item,
html[data-theme="escuro"] .prontuario-select-actions,
html[data-theme="escuro"] .prontuario-empty,
html[data-theme="escuro"] .prontuario-cirurgias-grid,
html[data-theme="escuro"] .evolucao-helper,
html[data-theme="escuro"] .evolucao-meta-item,
html[data-theme="escuro"] .evolucao-mini-card,
html[data-theme="escuro"] .evolucao-template-btn,
html[data-theme="escuro"] .evolucao-drop-area,
html[data-theme="escuro"] .exame-helper,
html[data-theme="escuro"] .exame-meta-item,
html[data-theme="escuro"] .exame-mini-card,
html[data-theme="escuro"] .exame-rastreio-card,
html[data-theme="escuro"] .exame-template-btn,
html[data-theme="escuro"] .prescricao-helper,
html[data-theme="escuro"] .prescricao-item,
html[data-theme="escuro"] .prescricao-meta-item,
html[data-theme="escuro"] .prescricao-mini-card,
html[data-theme="escuro"] .prescricao-template-btn,
html[data-theme="escuro"] .documento-helper,
html[data-theme="escuro"] .documento-meta-item,
html[data-theme="escuro"] .documento-mini-card,
html[data-theme="escuro"] .documento-template-btn,
html[data-theme="escuro"] .imagem-exame-meta-item,
html[data-theme="escuro"] .imagem-exame-mini-card,
html[data-theme="escuro"] .imagem-exame-drop-area,
html[data-theme="escuro"] .resultado-mini-box,
html[data-theme="escuro"] .resultado-chip,
html[data-theme="escuro"] .resultado-upload-drop,
html[data-theme="escuro"] .resultado-upload-helper,
html[data-theme="escuro"] .resultado-upload-meta-item,
html[data-theme="escuro"] .resultado-upload-mini-card,
html[data-theme="escuro"] .guia-producao-item,
html[data-theme="escuro"] .guia-field-row,
html[data-theme="escuro"] .guia-procedure-item,
html[data-theme="escuro"] .guia-pendency,
html[data-theme="escuro"] .guia-alerta
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .clientes-filter-card .card-header,
html[data-theme="escuro"] .clientes-table-card .card-header,
html[data-theme="escuro"] .prontuario-filter-card .card-header,
html[data-theme="escuro"] .prontuario-table-card .card-header,
html[data-theme="escuro"] .prontuario-section-card .card-header,
html[data-theme="escuro"] .evolucao-card .card-header,
html[data-theme="escuro"] .exame-card .card-header,
html[data-theme="escuro"] .prescricao-card .card-header,
html[data-theme="escuro"] .documento-card .card-header,
html[data-theme="escuro"] .imagem-exame-card .card-header,
html[data-theme="escuro"] .resultado-card .card-header,
html[data-theme="escuro"] .resultado-filter-card .card-header,
html[data-theme="escuro"] .resultado-list-card .card-header,
html[data-theme="escuro"] .guia-model-card .card-header,
html[data-theme="escuro"] .guia-procedure-panel .card-header
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .cliente-section-title,
html[data-theme="escuro"] .cliente-summary-value,
html[data-theme="escuro"] .cliente-detail-item strong,
html[data-theme="escuro"] .clientes-name,
html[data-theme="escuro"] .clientes-metric-value,
html[data-theme="escuro"] .prontuario-metric-value,
html[data-theme="escuro"] .prontuario-patient-name,
html[data-theme="escuro"] .prontuario-profissional-name,
html[data-theme="escuro"] .prontuario-info-item strong,
html[data-theme="escuro"] .prontuario-cirurgia-title,
html[data-theme="escuro"] .prontuario-timeline-head,
html[data-theme="escuro"] .cid-result-item strong,
html[data-theme="escuro"] .evolucao-mini-date,
html[data-theme="escuro"] .exame-mini-title,
html[data-theme="escuro"] .prescricao-mini-title,
html[data-theme="escuro"] .documento-mini-title,
html[data-theme="escuro"] .imagem-exame-mini-title,
html[data-theme="escuro"] .resultado-card-name,
html[data-theme="escuro"] .resultado-metric-value,
html[data-theme="escuro"] .resultado-mini-value,
html[data-theme="escuro"] .guia-producao-item strong,
html[data-theme="escuro"] .guia-procedure-item strong,
html[data-theme="escuro"] .guia-field-row strong
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .cliente-section-text,
html[data-theme="escuro"] .cliente-summary-label,
html[data-theme="escuro"] .clientes-sub,
html[data-theme="escuro"] .clientes-metric-label,
html[data-theme="escuro"] .clientes-metric-note,
html[data-theme="escuro"] .prontuario-metric-label,
html[data-theme="escuro"] .prontuario-metric-note,
html[data-theme="escuro"] .prontuario-patient-meta,
html[data-theme="escuro"] .prontuario-profissional-meta,
html[data-theme="escuro"] .prontuario-date-meta,
html[data-theme="escuro"] .prontuario-cirurgia-meta,
html[data-theme="escuro"] .prontuario-cirurgia-label,
html[data-theme="escuro"] .prontuario-timeline-meta,
html[data-theme="escuro"] .prontuario-timeline-date,
html[data-theme="escuro"] .prontuario-timeline-resumo,
html[data-theme="escuro"] .evolucao-mini-text,
html[data-theme="escuro"] .exame-mini-text,
html[data-theme="escuro"] .prescricao-mini-text,
html[data-theme="escuro"] .documento-mini-text,
html[data-theme="escuro"] .imagem-exame-mini-text,
html[data-theme="escuro"] .resultado-card-meta,
html[data-theme="escuro"] .resultado-metric-label,
html[data-theme="escuro"] .resultado-metric-note,
html[data-theme="escuro"] .resultado-mini-label,
html[data-theme="escuro"] .resultado-upload-mini-text,
html[data-theme="escuro"] .guia-producao-item small,
html[data-theme="escuro"] .guia-procedure-item small
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .clientes-table-card table,
html[data-theme="escuro"] .prontuario-table table,
html[data-theme="escuro"] .guias-page table,
html[data-theme="escuro"] .guia-procedure-list table,
html[data-theme="escuro"] .resultado-list-card table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
}

html[data-theme="escuro"] .clientes-table-card thead th,
html[data-theme="escuro"] .prontuario-table thead th,
html[data-theme="escuro"] .guias-page thead th,
html[data-theme="escuro"] .resultado-list-card thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .cliente-type-option.active,
html[data-theme="escuro"] .documento-template-btn.active,
html[data-theme="escuro"] .evolucao-template-btn.active,
html[data-theme="escuro"] .exame-template-btn.active,
html[data-theme="escuro"] .prescricao-template-btn.active
{
background:linear-gradient(135deg, var(--app-brand-mid), var(--app-brand-soft)) !important;
border-color:transparent !important;
color:#ffffff !important;
}

html[data-theme="escuro"] .guia-status.status-rascunho
{
background:rgba(245,158,11,.18) !important;
color:#fbbf24 !important;
}

html[data-theme="escuro"] .guia-status.status-gerada,
html[data-theme="escuro"] .guia-status.status-enviada
{
background:rgba(14,165,233,.18) !important;
color:#7dd3fc !important;
}

html[data-theme="escuro"] .guia-status.status-aprovada
{
background:rgba(34,197,94,.18) !important;
color:#86efac !important;
}

html[data-theme="escuro"] .guia-status.status-glosada
{
background:rgba(239,68,68,.18) !important;
color:#fca5a5 !important;
}

html[data-theme="escuro"] .guia-status.status-cancelada
{
background:rgba(148,163,184,.16) !important;
color:#cbd5e1 !important;
}

/* Ajustes finos: prontuario, impressos, exames e guias */
html[data-theme="escuro"] .shortcut-card,
html[data-theme="escuro"] .cirurgias-box,
html[data-theme="escuro"] .cirurgia-item,
html[data-theme="escuro"] .contexto-clinico-item,
html[data-theme="escuro"] .contexto-clinico-item.alerta,
html[data-theme="escuro"] #drop-area-prontuario_anexos,
html[data-theme="escuro"] #paciente-resumo,
html[data-theme="escuro"] #profissional-resumo,
html[data-theme="escuro"] #ia-feedback,
html[data-theme="escuro"] #historico-paciente,
html[data-theme="escuro"] #contexto-clinico-paciente,
html[data-theme="escuro"] #resumo-clinico,
html[data-theme="escuro"] .resultado-metric,
html[data-theme="escuro"] .resultado-empty,
html[data-theme="escuro"] .impressos-metric,
html[data-theme="escuro"] .impressos-filter-card,
html[data-theme="escuro"] .impressos-list-card,
html[data-theme="escuro"] .impressos-patient-card,
html[data-theme="escuro"] .impressos-mini-box,
html[data-theme="escuro"] .impressos-empty,
html[data-theme="escuro"] .historico-kpi,
html[data-theme="escuro"] .historico-item,
html[data-theme="escuro"] .repasses-filter,
html[data-theme="escuro"] .repasses-table-card,
html[data-theme="escuro"] .app-empty-state,
html[data-theme="escuro"] .prescricao-chip,
html[data-theme="escuro"] .documento-chip,
html[data-theme="escuro"] .imagem-exame-chip,
html[data-theme="escuro"] .cid-search-results,
html[data-theme="escuro"] .cid-result-item,
html[data-theme="escuro"] .cid-selected-box,
html[data-theme="escuro"] .cid-ai-card,
html[data-theme="escuro"] .cid-ai-suggestion,
html[data-theme="escuro"] .imagem-exame-preview-item,
html[data-theme="escuro"] .imagem-exame-preview-box,
html[data-theme="escuro"] .cliente-detail-card .border.rounded,
html[data-theme="escuro"] .cliente-detail-card .border.rounded-4,
html[data-theme="escuro"] #resumo-exame-selecionado
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .shortcut-card:hover,
html[data-theme="escuro"] .cid-result-item:hover,
html[data-theme="escuro"] .guia-producao-item:hover,
html[data-theme="escuro"] .guia-procedure-item:hover
{
background:rgba(148,163,184,.14) !important;
border-color:rgba(148,163,184,.30) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .imagem-exame-drop-area.ativo,
html[data-theme="escuro"] #drop-area-prontuario_anexos.border-primary
{
background:rgba(148,163,184,.16) !important;
border-color:rgba(203,213,225,.42) !important;
}

html[data-theme="escuro"] .shortcut-card h6,
html[data-theme="escuro"] .shortcut-card span,
html[data-theme="escuro"] .cirurgia-item-title,
html[data-theme="escuro"] .contexto-clinico-titulo,
html[data-theme="escuro"] .prontuario-info-item .value,
html[data-theme="escuro"] .prontuario-actions-title,
html[data-theme="escuro"] .prontuario-cirurgia-texto,
html[data-theme="escuro"] .prescricao-meta-item .value,
html[data-theme="escuro"] .documento-meta-item .value,
html[data-theme="escuro"] .imagem-exame-meta-item .value,
html[data-theme="escuro"] .resultado-metric-value,
html[data-theme="escuro"] .impressos-metric-value,
html[data-theme="escuro"] .impressos-patient-name,
html[data-theme="escuro"] .impressos-mini-value,
html[data-theme="escuro"] .historico-kpi strong,
html[data-theme="escuro"] .historico-item-title,
html[data-theme="escuro"] .app-empty-state h3,
html[data-theme="escuro"] .repasses-filter .form-label,
html[data-theme="escuro"] .repasse-table td,
html[data-theme="escuro"] .repasse-table td strong
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .shortcut-card small,
html[data-theme="escuro"] .contexto-clinico-meta,
html[data-theme="escuro"] .contexto-clinico-texto,
html[data-theme="escuro"] .prontuario-info-item .label,
html[data-theme="escuro"] .prescricao-meta-item .label,
html[data-theme="escuro"] .documento-meta-item .label,
html[data-theme="escuro"] .imagem-exame-meta-item .label,
html[data-theme="escuro"] .resultado-metric-label,
html[data-theme="escuro"] .resultado-metric-note,
html[data-theme="escuro"] .resultado-empty p,
html[data-theme="escuro"] .impressos-metric-label,
html[data-theme="escuro"] .impressos-metric-note,
html[data-theme="escuro"] .impressos-patient-meta,
html[data-theme="escuro"] .impressos-mini-label,
html[data-theme="escuro"] .impressos-empty,
html[data-theme="escuro"] .historico-kpi small,
html[data-theme="escuro"] .historico-item-meta,
html[data-theme="escuro"] .historico-item-text,
html[data-theme="escuro"] .app-empty-state p,
html[data-theme="escuro"] #paciente-resumo,
html[data-theme="escuro"] #profissional-resumo,
html[data-theme="escuro"] #ia-feedback,
html[data-theme="escuro"] #historico-paciente,
html[data-theme="escuro"] #contexto-clinico-paciente,
html[data-theme="escuro"] #resumo-clinico,
html[data-theme="escuro"] #resumo-exame-selecionado,
html[data-theme="escuro"] .repasse-table th
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .shortcut-card i,
html[data-theme="escuro"] .prontuario-tip i,
html[data-theme="escuro"] .resultado-empty i,
html[data-theme="escuro"] .impressos-empty i,
html[data-theme="escuro"] .app-empty-state i
{
color:var(--primary-color) !important;
}

html[data-theme="escuro"] .impressos-chip
{
background:rgba(148,163,184,.14) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .guia-alerta,
html[data-theme="escuro"] .text-danger
{
color:#fca5a5 !important;
}

html[data-theme="escuro"] .status-cancelada
{
background:rgba(148,163,184,.16) !important;
color:#cbd5e1 !important;
}

html[data-theme="escuro"] .repasse-table,
html[data-theme="escuro"] .repasses-table-card .table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .repasse-table thead th,
html[data-theme="escuro"] .repasses-table-card thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

/* Profissionais */
html[data-theme="escuro"] .prof-form-hero,
html[data-theme="escuro"] .profissionais-hero,
html[data-theme="escuro"] .profissional-hero,
html[data-theme="escuro"] .prof-config-hero,
html[data-theme="escuro"] .doc-hero
{
background:linear-gradient(135deg, #0b1018 0%, #162235 55%, #243a57 100%) !important;
color:#ffffff !important;
box-shadow:0 20px 48px rgba(0,0,0,.28) !important;
}

html[data-theme="escuro"] .form-card,
html[data-theme="escuro"] .form-side-card,
html[data-theme="escuro"] .doc-card,
html[data-theme="escuro"] .prof-config-mini,
html[data-theme="escuro"] .summary-box,
html[data-theme="escuro"] .info-pill,
html[data-theme="escuro"] .faixa-remuneracao-item,
html[data-theme="escuro"] .profissionais-page .prof-card-metric,
html[data-theme="escuro"] .profissionais-page .prof-card-item,
html[data-theme="escuro"] .profissionais-page .prof-empty-state,
html[data-theme="escuro"] .profissional-details-page .mini-card,
html[data-theme="escuro"] .profissional-details-page .detail-card,
html[data-theme="escuro"] .profissional-details-page .side-item,
html[data-theme="escuro"] .profissional-details-page .conv-item,
html[data-theme="escuro"] .profissional-details-page .doc-preview-item,
html[data-theme="escuro"] .profissionais-documentos-page .doc-item,
html[data-theme="escuro"] .comissoes-page .prof-card-metric,
html[data-theme="escuro"] .assistente-ia-card,
html[data-theme="escuro"] .assistente-ia-body,
html[data-theme="escuro"] .assistente-ia-box,
html[data-theme="escuro"] .assistente-ia-action,
html[data-theme="escuro"] .agenda-widget-card,
html[data-theme="escuro"] .agenda-widget-body,
html[data-theme="escuro"] .agenda-day-note,
html[data-theme="escuro"] .agenda-content,
html[data-theme="escuro"] .agenda-empty-state,
html[data-theme="escuro"] .resumo-dia-card,
html[data-theme="escuro"] .resumo-dia-item,
html[data-theme="escuro"] .resumo-dia-highlight,
html[data-theme="escuro"] .resumo-dia-card .card-header,
html[data-theme="escuro"] .dashboard-ponto-card .timeline-item,
html[data-theme="escuro"] .ponto-mini-card
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .profissional-form-page .bg-light-subtle,
html[data-theme="escuro"] .profissional-details-page .bg-light-subtle,
html[data-theme="escuro"] .profissionais-page .bg-light-subtle,
html[data-theme="escuro"] .prof-config-hero ~ .bg-light-subtle,
html[data-theme="escuro"] .tab-content .bg-light-subtle
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .assistente-ia-card .card-header,
html[data-theme="escuro"] .agenda-widget-card .card-header
{
background:linear-gradient(135deg, var(--bg-header), var(--bg-card-soft)) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .agenda-content.agora
{
background:rgba(34,197,94,.13) !important;
border-color:rgba(34,197,94,.36) !important;
}

html[data-theme="escuro"] .agenda-content.atrasado
{
background:rgba(239,68,68,.13) !important;
border-color:rgba(239,68,68,.36) !important;
}

html[data-theme="escuro"] .agenda-content.futuro
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
}

html[data-theme="escuro"] .agenda-line::before
{
background:var(--border-color) !important;
}

html[data-theme="escuro"] .agenda-dot
{
box-shadow:0 0 0 4px var(--bg-card-soft) !important;
}

html[data-theme="escuro"] .assistente-ia-status,
html[data-theme="escuro"] .resumo-dia-icon.primary,
html[data-theme="escuro"] .profissional-hero-avatar,
html[data-theme="escuro"] .prof-avatar
{
background:rgba(148,163,184,.16) !important;
border-color:var(--border-color) !important;
color:var(--primary-color) !important;
}

html[data-theme="escuro"] .resumo-dia-icon.warning
{
background:rgba(245,158,11,.18) !important;
color:#fbbf24 !important;
}

html[data-theme="escuro"] .resumo-dia-icon.success
{
background:rgba(34,197,94,.18) !important;
color:#86efac !important;
}

html[data-theme="escuro"] .resumo-dia-icon.danger
{
background:rgba(239,68,68,.18) !important;
color:#fca5a5 !important;
}

html[data-theme="escuro"] .section-title,
html[data-theme="escuro"] .form-title,
html[data-theme="escuro"] .doc-title,
html[data-theme="escuro"] .profissionais-title,
html[data-theme="escuro"] .profissional-title,
html[data-theme="escuro"] .prof-config-title,
html[data-theme="escuro"] .summary-box strong,
html[data-theme="escuro"] .prof-config-mini strong,
html[data-theme="escuro"] .prof-card-metric strong,
html[data-theme="escuro"] .prof-card-item h3,
html[data-theme="escuro"] .prof-empty-state h3,
html[data-theme="escuro"] .profissional-inline strong,
html[data-theme="escuro"] .mini-card strong,
html[data-theme="escuro"] .detail-card div,
html[data-theme="escuro"] .timeline-content strong,
html[data-theme="escuro"] .side-item strong,
html[data-theme="escuro"] .conv-item strong,
html[data-theme="escuro"] .doc-preview-item strong,
html[data-theme="escuro"] .doc-item h3,
html[data-theme="escuro"] .assistente-ia-action-title,
html[data-theme="escuro"] .agenda-paciente-nome,
html[data-theme="escuro"] .agenda-widget-metric-value,
html[data-theme="escuro"] .resumo-dia-title,
html[data-theme="escuro"] .resumo-dia-value,
html[data-theme="escuro"] .resumo-dia-highlight strong,
html[data-theme="escuro"] .comissoes-page .section-title,
html[data-theme="escuro"] .comissoes-page .prof-card-metric > strong,
html[data-theme="escuro"] .ponto-mini-card strong
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .form-subtitle,
html[data-theme="escuro"] .doc-subtitle,
html[data-theme="escuro"] .profissionais-subtitle,
html[data-theme="escuro"] .profissional-subtitle,
html[data-theme="escuro"] .prof-config-subtitle,
html[data-theme="escuro"] .summary-box span,
html[data-theme="escuro"] .info-pill,
html[data-theme="escuro"] .prof-config-mini span,
html[data-theme="escuro"] .prof-card-metric span,
html[data-theme="escuro"] .prof-card-metric small,
html[data-theme="escuro"] .section-subtitle,
html[data-theme="escuro"] .profissional-inline small,
html[data-theme="escuro"] .prof-card-item p,
html[data-theme="escuro"] .prof-card-meta,
html[data-theme="escuro"] .prof-empty-state p,
html[data-theme="escuro"] .mini-card span,
html[data-theme="escuro"] .mini-card small,
html[data-theme="escuro"] .detail-card label,
html[data-theme="escuro"] .timeline-content small,
html[data-theme="escuro"] .timeline-content p,
html[data-theme="escuro"] .side-item span,
html[data-theme="escuro"] .doc-item p,
html[data-theme="escuro"] .doc-meta,
html[data-theme="escuro"] .assistente-ia-summary,
html[data-theme="escuro"] .assistente-ia-action-note,
html[data-theme="escuro"] .agenda-widget-subtitle,
html[data-theme="escuro"] .agenda-widget-metric-label,
html[data-theme="escuro"] .agenda-empty-state,
html[data-theme="escuro"] .agenda-time,
html[data-theme="escuro"] .agenda-paciente-meta,
html[data-theme="escuro"] .resumo-dia-subtitle,
html[data-theme="escuro"] .resumo-dia-label,
html[data-theme="escuro"] .resumo-dia-note,
html[data-theme="escuro"] .comissoes-page .section-subtitle,
html[data-theme="escuro"] .comissoes-page .prof-card-metric > span,
html[data-theme="escuro"] .comissoes-page .prof-card-metric > small,
html[data-theme="escuro"] .comissoes-page .table thead th,
html[data-theme="escuro"] .comissoes-page .alert-light
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .comissoes-page .form-label,
html[data-theme="escuro"] .profissional-form-page .form-label,
html[data-theme="escuro"] .profissional-details-page .form-label,
html[data-theme="escuro"] .profissionais-page .form-label,
html[data-theme="escuro"] .prof-config-title ~ .form-label,
html[data-theme="escuro"] .tab-content .form-label
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .profissionais-table,
html[data-theme="escuro"] .comissoes-page .table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
}

html[data-theme="escuro"] .profissionais-table thead th,
html[data-theme="escuro"] .comissoes-page .table thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
}

html[data-theme="escuro"] #myTab .nav-link
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] #myTab .nav-link.active
{
background:var(--primary-color) !important;
color:#0b1018 !important;
}

/* Setores, empresa, repasses e ponto */
html[data-theme="escuro"] .empresa-hero,
html[data-theme="escuro"] .empresa-config-hero
{
background:linear-gradient(135deg, #0b1018 0%, #162235 55%, #243a57 100%) !important;
color:#ffffff !important;
box-shadow:0 22px 52px rgba(0,0,0,.30) !important;
}

html[data-theme="escuro"] .empresa-stat-card,
html[data-theme="escuro"] .empresa-filter-card,
html[data-theme="escuro"] .empresa-table-card,
html[data-theme="escuro"] .empresa-modal-panel,
html[data-theme="escuro"] .empresa-config-card,
html[data-theme="escuro"] .empresa-config-sidecard,
html[data-theme="escuro"] .empresa-config-logo-box,
html[data-theme="escuro"] .empresa-config-kpi,
html[data-theme="escuro"] .empresa-config-module-item,
html[data-theme="escuro"] .empresa-contract-box,
html[data-theme="escuro"] .empresa-log-item,
html[data-theme="escuro"] .empresa-empty-state,
html[data-theme="escuro"] .repasse-card,
html[data-theme="escuro"] .repasse-metric,
html[data-theme="escuro"] .repasse-action,
html[data-theme="escuro"] .repasse-item-row,
html[data-theme="escuro"] .resumo-jornada-detalhe,
html[data-theme="escuro"] .card-jornada-ponto,
html[data-theme="escuro"] .jornada-resumo,
html[data-theme="escuro"] .resumo-turno
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .empresa-modal-body
{
background:var(--bg-body) !important;
}

html[data-theme="escuro"] .empresa-modal-header
{
background:linear-gradient(135deg, var(--bg-header), var(--bg-card-soft)) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .empresa-config-logo-preview,
html[data-theme="escuro"] .empresa-avatar
{
background:rgba(148,163,184,.16) !important;
border-color:var(--border-color) !important;
color:var(--primary-color) !important;
}

html[data-theme="escuro"] .empresa-section-title,
html[data-theme="escuro"] .empresa-stat-value,
html[data-theme="escuro"] .empresa-main-title,
html[data-theme="escuro"] .empresa-panel-title,
html[data-theme="escuro"] .empresa-detail-item strong,
html[data-theme="escuro"] .empresa-detail-item span,
html[data-theme="escuro"] .empresa-config-section-title,
html[data-theme="escuro"] .empresa-config-kpi strong,
html[data-theme="escuro"] .empresa-config-module-item .form-check-label,
html[data-theme="escuro"] .repasse-card-value,
html[data-theme="escuro"] .repasse-item-row strong,
html[data-theme="escuro"] .repasse-metric strong,
html[data-theme="escuro"] .repasse-action h5,
html[data-theme="escuro"] .jornada-faixa,
html[data-theme="escuro"] .card-jornada-ponto .titulo,
html[data-theme="escuro"] .resumo-turno strong
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .empresa-section-subtitle,
html[data-theme="escuro"] .empresa-stat-label,
html[data-theme="escuro"] .empresa-stat-note,
html[data-theme="escuro"] .empresa-main-subtitle,
html[data-theme="escuro"] .empresa-inline-note,
html[data-theme="escuro"] .empresa-detail-item small,
html[data-theme="escuro"] .empresa-config-section-subtitle,
html[data-theme="escuro"] .empresa-config-kpi small,
html[data-theme="escuro"] .repasse-card-label,
html[data-theme="escuro"] .repasse-item-row small,
html[data-theme="escuro"] .repasse-metric small,
html[data-theme="escuro"] .repasse-action p,
html[data-theme="escuro"] .jornada-meta,
html[data-theme="escuro"] .card-jornada-ponto .meta,
html[data-theme="escuro"] .resumo-turno span
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .empresa-table,
html[data-theme="escuro"] .empresa-table-card table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .empresa-table thead th,
html[data-theme="escuro"] .empresa-table-card thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .repasse-itens-box
{
border-top-color:var(--border-color) !important;
}

html[data-theme="escuro"] .repasse-status.status-pendente,
html[data-theme="escuro"] .status-pendente,
html[data-theme="escuro"] .glosa-contestada
{
background:rgba(245,158,11,.18) !important;
color:#fbbf24 !important;
}

html[data-theme="escuro"] .repasse-status.status-parcial,
html[data-theme="escuro"] .status-parcial,
html[data-theme="escuro"] .status-identificada
{
background:rgba(14,165,233,.18) !important;
color:#7dd3fc !important;
}

html[data-theme="escuro"] .status-enviada
{
background:rgba(139,92,246,.20) !important;
color:#c4b5fd !important;
}

html[data-theme="escuro"] .repasse-status.status-pago,
html[data-theme="escuro"] .status-pago,
html[data-theme="escuro"] .status-aprovada,
html[data-theme="escuro"] .status-paga,
html[data-theme="escuro"] .glosa-resolvida
{
background:rgba(34,197,94,.18) !important;
color:#86efac !important;
}

html[data-theme="escuro"] .status-glosada,
html[data-theme="escuro"] .glosa-aberta
{
background:rgba(239,68,68,.18) !important;
color:#fca5a5 !important;
}

html[data-theme="escuro"] .repasse-status.status-cancelado,
html[data-theme="escuro"] .status-cancelado,
html[data-theme="escuro"] .status-cancelada
{
background:rgba(148,163,184,.16) !important;
color:#cbd5e1 !important;
}

/* Estrutura administrativa app-* (setores e cadastros simples) */
html[data-theme="escuro"] .app-form-panel,
html[data-theme="escuro"] .app-guide-panel,
html[data-theme="escuro"] .app-table-panel,
html[data-theme="escuro"] .app-card,
html[data-theme="escuro"] .app-filter-card,
html[data-theme="escuro"] .app-config-item,
html[data-theme="escuro"] .app-config-row,
html[data-theme="escuro"] .app-stat-card,
html[data-theme="escuro"] .app-guide-list li
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .app-table-panel .card-body,
html[data-theme="escuro"] .app-table-panel .app-panel-body,
html[data-theme="escuro"] .app-card .card-body
{
background:transparent !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .app-guide-panel h3,
html[data-theme="escuro"] .app-form-panel h3,
html[data-theme="escuro"] .app-table-panel h3,
html[data-theme="escuro"] .app-section-title h3,
html[data-theme="escuro"] .app-section-title h4,
html[data-theme="escuro"] .app-stat-card strong,
html[data-theme="escuro"] .app-table-panel .table tbody td
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .app-guide-panel p,
html[data-theme="escuro"] .app-form-panel p,
html[data-theme="escuro"] .app-section-title p,
html[data-theme="escuro"] .app-stat-card small,
html[data-theme="escuro"] .app-table-panel .table thead th
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .app-actions-row label,
html[data-theme="escuro"] .batidas-lista,
html[data-theme="escuro"] .batidas-meu-ponto
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .batida-badge.bg-success,
html[data-theme="escuro"] .batidas-meu-ponto .badge.bg-success
{
background:rgba(34,197,94,.20) !important;
color:#86efac !important;
}

html[data-theme="escuro"] .batida-badge.bg-warning,
html[data-theme="escuro"] .batidas-meu-ponto .badge.bg-warning
{
background:rgba(245,158,11,.20) !important;
color:#fbbf24 !important;
}

html[data-theme="escuro"] .batida-badge.bg-info,
html[data-theme="escuro"] .batidas-meu-ponto .badge.bg-info
{
background:rgba(14,165,233,.20) !important;
color:#7dd3fc !important;
}

html[data-theme="escuro"] .batida-badge.bg-secondary,
html[data-theme="escuro"] .batidas-meu-ponto .badge.bg-secondary
{
background:rgba(148,163,184,.20) !important;
color:#cbd5e1 !important;
}

/* Usuarios */
html[data-theme="escuro"] .user-filter-card,
html[data-theme="escuro"] .user-table-card,
html[data-theme="escuro"] .user-stat,
html[data-theme="escuro"] .user-info-card,
html[data-theme="escuro"] .user-history li
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .user-table-card .card-header,
html[data-theme="escuro"] .card-header.bg-light
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .user-modal-body
{
background:var(--bg-body) !important;
}

html[data-theme="escuro"] .user-modal-hero
{
background:linear-gradient(135deg, var(--bg-header), var(--bg-card-soft)) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .user-avatar
{
background:rgba(148,163,184,.18) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .user-chip
{
background:rgba(148,163,184,.14) !important;
border:1px solid var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .user-stat-value,
html[data-theme="escuro"] .user-info-card h6,
html[data-theme="escuro"] .user-info-item strong,
html[data-theme="escuro"] .user-info-item span,
html[data-theme="escuro"] .user-table-card table td strong,
html[data-theme="escuro"] .user-history .fw-semibold
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .user-stat-label,
html[data-theme="escuro"] .user-subtitle,
html[data-theme="escuro"] .user-info-item small,
html[data-theme="escuro"] .user-table-card .card-header .text-muted,
html[data-theme="escuro"] .user-history .text-muted
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .user-table-card table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .user-table-card table thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .user-history li
{
border-bottom-color:var(--border-color) !important;
}

html[data-theme="escuro"] .user-history li::before
{
background:var(--primary-color) !important;
box-shadow:0 0 0 5px rgba(148,163,184,.16) !important;
}

/* WhatsApp */
html[data-theme="escuro"] .whatsapp-hero,
html[data-theme="escuro"] .config-hero,
html[data-theme="escuro"] .connect-hero,
html[data-theme="escuro"] .user-modal-hero
{
background:linear-gradient(135deg, #0b1018 0%, #162235 55%, #243a57 100%) !important;
color:#ffffff !important;
box-shadow:0 22px 52px rgba(0,0,0,.30) !important;
}

html[data-theme="escuro"] .whatsapp-chat-page .chat-aside-card,
html[data-theme="escuro"] .whatsapp-chat-page .chat-main,
html[data-theme="escuro"] .whatsapp-inbox-page .metric-card,
html[data-theme="escuro"] .whatsapp-inbox-page .conversation-card,
html[data-theme="escuro"] .whatsapp-inbox-page .side-panel,
html[data-theme="escuro"] .whatsapp-inbox-page .empty-state,
html[data-theme="escuro"] .whatsapp-inbox-page .whatsapp-modal-content,
html[data-theme="escuro"] .whatsapp-config-page .config-card,
html[data-theme="escuro"] .whatsapp-ia-page .config-card,
html[data-theme="escuro"] .whatsapp-fields-page .config-card,
html[data-theme="escuro"] .whatsapp-mass-page .config-card,
html[data-theme="escuro"] .whatsapp-connect-page .connect-card,
html[data-theme="escuro"] .reminder-option,
html[data-theme="escuro"] .config-note,
html[data-theme="escuro"] .training-item,
html[data-theme="escuro"] .feature-switch,
html[data-theme="escuro"] .media-preview,
html[data-theme="escuro"] .audience-kpi,
html[data-theme="escuro"] .action-strip,
html[data-theme="escuro"] .connection-summary,
html[data-theme="escuro"] .connect-detail,
html[data-theme="escuro"] .empty-connect-state,
html[data-theme="escuro"] .connect-note,
html[data-theme="escuro"] .type-pill,
html[data-theme="escuro"] .order-pill
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .whatsapp-chat-page .chat-main,
html[data-theme="escuro"] .whatsapp-inbox-page .inbox-list,
html[data-theme="escuro"] .whatsapp-inbox-page .inbox-side,
html[data-theme="escuro"] .whatsapp-modal-content .modal-body
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .chat-main-header,
html[data-theme="escuro"] .chat-composer,
html[data-theme="escuro"] .whatsapp-modal-header
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .conversation-avatar,
html[data-theme="escuro"] .contact-avatar,
html[data-theme="escuro"] .connection-avatar,
html[data-theme="escuro"] .empty-state i,
html[data-theme="escuro"] .empty-connect-state i
{
background:rgba(148,163,184,.16) !important;
border-color:var(--border-color) !important;
color:var(--primary-color) !important;
}

html[data-theme="escuro"] .section-heading h5,
html[data-theme="escuro"] .metric-value,
html[data-theme="escuro"] .conversation-topline strong,
html[data-theme="escuro"] .side-panel h5,
html[data-theme="escuro"] .side-panel h6,
html[data-theme="escuro"] .side-panel strong,
html[data-theme="escuro"] .chat-main-header h2,
html[data-theme="escuro"] .contact-profile strong,
html[data-theme="escuro"] .aside-details strong,
html[data-theme="escuro"] .linked-name,
html[data-theme="escuro"] .thread-message,
html[data-theme="escuro"] .feature-switch strong,
html[data-theme="escuro"] .config-note strong,
html[data-theme="escuro"] .audience-kpi strong,
html[data-theme="escuro"] .action-strip strong,
html[data-theme="escuro"] .connection-summary h3,
html[data-theme="escuro"] .connect-detail strong,
html[data-theme="escuro"] .empty-connect-state h3,
html[data-theme="escuro"] .connect-note strong,
html[data-theme="escuro"] .fields-table td strong
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .metric-label,
html[data-theme="escuro"] .metric-note,
html[data-theme="escuro"] .conversation-topline span,
html[data-theme="escuro"] .conversation-meta span,
html[data-theme="escuro"] .conversation-preview,
html[data-theme="escuro"] .side-panel p,
html[data-theme="escuro"] .side-list,
html[data-theme="escuro"] .empty-state,
html[data-theme="escuro"] .aside-kicker,
html[data-theme="escuro"] .chat-main-kicker,
html[data-theme="escuro"] .contact-profile p,
html[data-theme="escuro"] .linked-text,
html[data-theme="escuro"] .aside-details span,
html[data-theme="escuro"] .chat-main-header p,
html[data-theme="escuro"] .composer-tip,
html[data-theme="escuro"] .feature-switch small,
html[data-theme="escuro"] .config-note p,
html[data-theme="escuro"] .audience-kpi .label,
html[data-theme="escuro"] .audience-kpi small,
html[data-theme="escuro"] .connection-label,
html[data-theme="escuro"] .connect-detail span,
html[data-theme="escuro"] .connection-summary p,
html[data-theme="escuro"] .empty-connect-state p,
html[data-theme="escuro"] .connect-checklist li,
html[data-theme="escuro"] .connect-note p,
html[data-theme="escuro"] .fields-table thead th
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .from-client .thread-bubble
{
background:var(--bg-card-soft) !important;
border:1px solid var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .from-team .thread-bubble
{
background:linear-gradient(135deg, #243a57, #1e293b) !important;
color:#eff6ff !important;
}

html[data-theme="escuro"] .from-system .thread-bubble,
html[data-theme="escuro"] .thread-divider span,
html[data-theme="escuro"] .inbox-badge
{
background:rgba(148,163,184,.14) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .status-bot
{
background:rgba(14,165,233,.18) !important;
color:#7dd3fc !important;
}

html[data-theme="escuro"] .status-humano
{
background:rgba(245,158,11,.18) !important;
color:#fbbf24 !important;
}

html[data-theme="escuro"] .status-timeout,
html[data-theme="escuro"] .chat-status-chip.neutral
{
background:rgba(148,163,184,.16) !important;
color:#cbd5e1 !important;
}

html[data-theme="escuro"] .status-finalizada
{
background:rgba(34,197,94,.18) !important;
color:#86efac !important;
}

html[data-theme="escuro"] .conversation-unread
{
background:rgba(239,68,68,.18) !important;
color:#fca5a5 !important;
}

html[data-theme="escuro"] .fields-table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
}

/* Financeiro */
.finance-hero,
.finance-config-hero,
.invoice-hero,
.dre-hero
{
background:linear-gradient(135deg,#131c34 0%,#253854 100%);
border-radius:24px;
color:#fff;
padding:32px;
margin-bottom:24px;
box-shadow:0 24px 50px rgba(18,30,54,.16);
}

.finance-hero-chip,
.finance-config-chip,
.invoice-chip,
.dre-chip
{
display:inline-flex;
align-items:center;
gap:8px;
padding:10px 14px;
border-radius:999px;
background:rgba(255,255,255,.1);
border:1px solid rgba(255,255,255,.12);
color:#fff;
font-weight:600;
}

.finance-metric-card,
.finance-filter-card,
.finance-panel-card,
.finance-table-card,
.finance-form-card,
.finance-side-card,
.finance-side-item,
.finance-panel,
.finance-summary,
.finance-kv-item,
.finance-notes,
.finance-config-metric,
.finance-config-panel,
.finance-chart-card,
.invoice-metric-card,
.invoice-filter-card,
.invoice-table-card,
.invoice-form-card,
.invoice-side-card,
.invoice-summary-item,
.invoice-panel,
.invoice-side,
.invoice-kv-item,
.dre-card,
.dre-filter-card,
.dre-report-card,
.dre-metric
{
background:#fff;
border:1px solid #e6edf7;
border-radius:8px;
box-shadow:0 18px 38px rgba(15,23,42,.06);
}

.finance-metric-card,
.invoice-metric-card,
.dre-metric
{
padding:24px;
height:100%;
}

.finance-filter-card,
.finance-panel-card,
.finance-table-card,
.finance-form-card,
.finance-side-card,
.finance-config-panel,
.invoice-filter-card,
.invoice-table-card,
.invoice-form-card,
.invoice-side-card,
.dre-card,
.dre-filter-card,
.dre-report-card
{
padding:28px;
}

.finance-metric-label,
.finance-config-label,
.invoice-metric-label,
.invoice-summary-label,
.invoice-kv-label,
.dre-metric-label
{
color:#73839b;
font-size:.82rem;
text-transform:uppercase;
letter-spacing:.08em;
margin-bottom:10px;
}

.finance-metric-value,
.finance-config-value,
.invoice-metric-value,
.invoice-summary-value,
.invoice-kv-value,
.dre-metric-value
{
font-size:2rem;
font-weight:800;
line-height:1;
color:#162033;
}

.finance-metric-note,
.finance-side-label,
.finance-kv-label,
.invoice-metric-note
{
margin-top:12px;
color:#5f6f86;
font-size:.97rem;
}

.finance-asaas-card
{
border-radius:8px;
padding:20px;
color:#fff;
height:100%;
}

.finance-asaas-card-success{background:#198754;}
.finance-asaas-card-warning{background:#f59f00;}
.finance-asaas-card-danger{background:#dc3545;}
.finance-asaas-card-dark{background:#131c34;}

.finance-asaas-card h4
{
margin:0;
font-weight:800;
}

.finance-asaas-card p
{
margin:0 0 10px;
opacity:.85;
}

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

.finance-chart-card
{
background:#f8fbff;
padding:18px;
}

.finance-chart-card h6
{
margin-bottom:12px;
color:#162033;
}

.finance-table-card .table > :not(caption) > * > *
{
vertical-align:middle;
}

@media (max-width:991.98px)
{
.finance-hero,
.finance-config-hero,
.invoice-hero,
.dre-hero{padding:24px;}
.finance-chart-grid{grid-template-columns:1fr;}
}

html[data-theme="escuro"] .finance-hero,
html[data-theme="escuro"] .finance-config-hero,
html[data-theme="escuro"] .invoice-hero,
html[data-theme="escuro"] .dre-hero
{
background:linear-gradient(135deg, #0b1018 0%, #162235 55%, #243a57 100%) !important;
color:#ffffff !important;
box-shadow:0 22px 52px rgba(0,0,0,.30) !important;
}

html[data-theme="escuro"] .finance-metric-card,
html[data-theme="escuro"] .finance-filter-card,
html[data-theme="escuro"] .finance-panel-card,
html[data-theme="escuro"] .finance-table-card,
html[data-theme="escuro"] .finance-chart-card,
html[data-theme="escuro"] .finance-form-card,
html[data-theme="escuro"] .finance-side-card,
html[data-theme="escuro"] .finance-side-item,
html[data-theme="escuro"] .finance-panel,
html[data-theme="escuro"] .finance-summary,
html[data-theme="escuro"] .finance-kv-item,
html[data-theme="escuro"] .finance-notes,
html[data-theme="escuro"] .finance-config-metric,
html[data-theme="escuro"] .finance-config-panel,
html[data-theme="escuro"] .dre-card,
html[data-theme="escuro"] .dre-filter-card,
html[data-theme="escuro"] .dre-report-card,
html[data-theme="escuro"] .dre-metric,
html[data-theme="escuro"] .invoice-metric-card,
html[data-theme="escuro"] .invoice-filter-card,
html[data-theme="escuro"] .invoice-table-card,
html[data-theme="escuro"] .invoice-form-card,
html[data-theme="escuro"] .invoice-side-card,
html[data-theme="escuro"] .invoice-summary-item,
html[data-theme="escuro"] .invoice-panel,
html[data-theme="escuro"] .invoice-side,
html[data-theme="escuro"] .invoice-kv-item
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .finance-hero-chip,
html[data-theme="escuro"] .finance-tag,
html[data-theme="escuro"] .finance-pill,
html[data-theme="escuro"] .finance-config-chip,
html[data-theme="escuro"] .invoice-chip,
html[data-theme="escuro"] .dre-chip
{
background:rgba(148,163,184,.14) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .finance-metric-value,
html[data-theme="escuro"] .finance-chart-card h6,
html[data-theme="escuro"] .finance-side-value,
html[data-theme="escuro"] .finance-kv-value,
html[data-theme="escuro"] .finance-config-value,
html[data-theme="escuro"] .dre-metric-value,
html[data-theme="escuro"] .invoice-metric-value,
html[data-theme="escuro"] .invoice-summary-value,
html[data-theme="escuro"] .invoice-kv-value
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .invoice-metric-card .text-dark,
html[data-theme="escuro"] .finance-metric-card .text-dark,
html[data-theme="escuro"] .dre-metric .text-dark
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .finance-metric-label,
html[data-theme="escuro"] .finance-metric-note,
html[data-theme="escuro"] .finance-side-label,
html[data-theme="escuro"] .finance-kv-label,
html[data-theme="escuro"] .finance-notes,
html[data-theme="escuro"] .finance-config-label,
html[data-theme="escuro"] .dre-metric-label,
html[data-theme="escuro"] .invoice-metric-label,
html[data-theme="escuro"] .invoice-metric-note,
html[data-theme="escuro"] .invoice-summary-label,
html[data-theme="escuro"] .invoice-kv-label
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .finance-table-card table,
html[data-theme="escuro"] .finance-config-panel table,
html[data-theme="escuro"] .dre-report-card table,
html[data-theme="escuro"] .invoice-table-card table,
html[data-theme="escuro"] .invoice-form-card table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-striped-color:var(--text-primary) !important;
--bs-table-striped-bg:rgba(148,163,184,.07) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .finance-table-card thead th,
html[data-theme="escuro"] .finance-config-panel thead th,
html[data-theme="escuro"] .dre-report-card thead th,
html[data-theme="escuro"] .invoice-table-card thead th,
html[data-theme="escuro"] .invoice-form-card thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .finance-asaas-card
{
box-shadow:none !important;
border:1px solid rgba(255,255,255,.16) !important;
}

html[data-theme="escuro"] .invoice-panel .bg-light-subtle,
html[data-theme="escuro"] .invoice-side .bg-light-subtle,
html[data-theme="escuro"] .invoice-table-card .bg-light-subtle,
html[data-theme="escuro"] .finance-panel .bg-light-subtle,
html[data-theme="escuro"] .finance-form-card .bg-light-subtle,
html[data-theme="escuro"] .dre-report-card .alert-light
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

/* Comercial */
html[data-theme="escuro"] .lead-hero,
html[data-theme="escuro"] .lead-form-hero,
html[data-theme="escuro"] .lead-edit-hero,
html[data-theme="escuro"] .lead-detail-hero,
html[data-theme="escuro"] .comercial-mini-hero
{
background:linear-gradient(135deg, #0b1018 0%, #162235 55%, #263b59 100%) !important;
color:#ffffff !important;
box-shadow:0 22px 52px rgba(0,0,0,.30) !important;
}

html[data-theme="escuro"] .lead-chip,
html[data-theme="escuro"] .lead-form-chip,
html[data-theme="escuro"] .lead-edit-chip,
html[data-theme="escuro"] .lead-detail-chip
{
background:rgba(148,163,184,.14) !important;
border-color:rgba(226,232,240,.18) !important;
color:#f8fafc !important;
}

html[data-theme="escuro"] .lead-metric-card,
html[data-theme="escuro"] .lead-filter-card,
html[data-theme="escuro"] .lead-board-card,
html[data-theme="escuro"] .lead-form-card,
html[data-theme="escuro"] .lead-form-sidecard,
html[data-theme="escuro"] .lead-edit-card,
html[data-theme="escuro"] .lead-edit-sidecard,
html[data-theme="escuro"] .lead-detail-card,
html[data-theme="escuro"] .lead-comment-card,
html[data-theme="escuro"] .comercial-card
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .lead-column,
html[data-theme="escuro"] .lead-card,
html[data-theme="escuro"] .lead-summary-item,
html[data-theme="escuro"] .lead-edit-summary-item,
html[data-theme="escuro"] .lead-detail-info-item,
html[data-theme="escuro"] .lead-form-card .bg-light,
html[data-theme="escuro"] .lead-edit-card .bg-light,
html[data-theme="escuro"] .lead-form-sidecard .alert-light,
html[data-theme="escuro"] .lead-edit-sidecard .alert-light,
html[data-theme="escuro"] .lead-detail-card .alert-light
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .lead-card > div[style]
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .lead-card:hover
{
box-shadow:0 18px 34px rgba(0,0,0,.24) !important;
}

html[data-theme="escuro"] .lead-column-count
{
background:rgba(148,163,184,.18) !important;
color:var(--text-primary) !important;
border:1px solid var(--border-color) !important;
}

html[data-theme="escuro"] .lead-metric-value,
html[data-theme="escuro"] .lead-column-title,
html[data-theme="escuro"] .lead-card-title,
html[data-theme="escuro"] .lead-form-title,
html[data-theme="escuro"] .lead-edit-title,
html[data-theme="escuro"] .lead-detail-info-item span,
html[data-theme="escuro"] .lead-detail-info-item strong,
html[data-theme="escuro"] .lead-detail-card .card-title,
html[data-theme="escuro"] .comercial-card .card-title
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .lead-metric-label,
html[data-theme="escuro"] .lead-metric-note,
html[data-theme="escuro"] .lead-card-info,
html[data-theme="escuro"] .lead-form-subtitle,
html[data-theme="escuro"] .lead-edit-subtitle,
html[data-theme="escuro"] .lead-summary-item small,
html[data-theme="escuro"] .lead-edit-summary-item small,
html[data-theme="escuro"] .lead-detail-info-item small,
html[data-theme="escuro"] .lead-comment-card small
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .lead-board,
html[data-theme="escuro"] .lead-filter-card .card-body,
html[data-theme="escuro"] .lead-board-card .card-body,
html[data-theme="escuro"] .lead-form-card .card-body,
html[data-theme="escuro"] .lead-form-sidecard .card-body,
html[data-theme="escuro"] .lead-edit-card .card-body,
html[data-theme="escuro"] .lead-edit-sidecard .card-body,
html[data-theme="escuro"] .lead-detail-card .card-body,
html[data-theme="escuro"] .comercial-card .card-body
{
background:transparent !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .lead-card-actions a.bg-warning
{
background:rgba(245,158,11,.22) !important;
color:#fbbf24 !important;
}

/* Editores de texto */
html[data-theme="escuro"] .tox.tox-tinymce,
html[data-theme="escuro"] .tox .tox-editor-container,
html[data-theme="escuro"] .tox .tox-sidebar-wrap,
html[data-theme="escuro"] .tox .tox-edit-area,
html[data-theme="escuro"] .tox .tox-statusbar,
html[data-theme="escuro"] .tox .tox-menubar,
html[data-theme="escuro"] .tox .tox-toolbar,
html[data-theme="escuro"] .tox .tox-toolbar__primary,
html[data-theme="escuro"] .tox .tox-toolbar-overlord,
html[data-theme="escuro"] .tox .tox-dialog,
html[data-theme="escuro"] .tox .tox-dialog__header,
html[data-theme="escuro"] .tox .tox-dialog__body,
html[data-theme="escuro"] .tox .tox-dialog__footer,
html[data-theme="escuro"] .tox .tox-collection,
html[data-theme="escuro"] .tox .tox-menu
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .tox .tox-edit-area__iframe
{
background:var(--input-bg) !important;
}

html[data-theme="escuro"] .tox .tox-tbtn,
html[data-theme="escuro"] .tox .tox-mbtn,
html[data-theme="escuro"] .tox .tox-statusbar__path-item,
html[data-theme="escuro"] .tox .tox-statusbar__wordcount,
html[data-theme="escuro"] .tox .tox-statusbar a,
html[data-theme="escuro"] .tox .tox-collection__item,
html[data-theme="escuro"] .tox .tox-label,
html[data-theme="escuro"] .tox .tox-toolbar-label
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .tox .tox-tbtn svg,
html[data-theme="escuro"] .tox .tox-mbtn svg
{
fill:var(--text-primary) !important;
}

html[data-theme="escuro"] .tox .tox-tbtn:hover,
html[data-theme="escuro"] .tox .tox-tbtn--enabled,
html[data-theme="escuro"] .tox .tox-mbtn:hover,
html[data-theme="escuro"] .tox .tox-collection__item--active,
html[data-theme="escuro"] .tox .tox-collection__item:hover
{
background:var(--bg-card-soft) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .tox .tox-split-button,
html[data-theme="escuro"] .tox .tox-tbtn,
html[data-theme="escuro"] .tox .tox-mbtn,
html[data-theme="escuro"] .tox .tox-textfield,
html[data-theme="escuro"] .tox .tox-textarea,
html[data-theme="escuro"] .tox .tox-listboxfield .tox-listbox--select,
html[data-theme="escuro"] .tox .tox-color-input span
{
border-color:var(--border-color) !important;
}

/* Chamados */
html[data-theme="escuro"] .chamados-hero,
html[data-theme="escuro"] .chamado-hero
{
background:linear-gradient(135deg, #0b1018 0%, #162235 55%, #263b59 100%) !important;
color:#ffffff !important;
box-shadow:0 22px 52px rgba(0,0,0,.30) !important;
}

html[data-theme="escuro"] .chamados-card,
html[data-theme="escuro"] .chamados-filter-card,
html[data-theme="escuro"] .chamados-kanban-card,
html[data-theme="escuro"] .chamados-metric-card,
html[data-theme="escuro"] .chamado-form-card,
html[data-theme="escuro"] .chamado-side-card,
html[data-theme="escuro"] .chamado-panel,
html[data-theme="escuro"] .chamado-tab-card,
html[data-theme="escuro"] .chamado-kpi
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .chamados-kanban-column,
html[data-theme="escuro"] .chamado-card,
html[data-theme="escuro"] .chamado-side-item,
html[data-theme="escuro"] .drop-area-modern,
html[data-theme="escuro"] .chamado-conversa-box,
html[data-theme="escuro"] .chamado-list-compact .list-group-item,
html[data-theme="escuro"] .chamado-tab-card .alert-light,
html[data-theme="escuro"] .chamado-panel .alert-light,
html[data-theme="escuro"] .chamado-form-card .bg-light,
html[data-theme="escuro"] .chamado-tab-card .bg-light
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .chamados-kanban-body.is-over
{
background:rgba(148,163,184,.10) !important;
outline-color:rgba(203,213,225,.32) !important;
}

html[data-theme="escuro"] .chamados-empty
{
background:rgba(148,163,184,.08) !important;
border-color:rgba(148,163,184,.34) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .chamados-kanban-count
{
background:rgba(148,163,184,.18) !important;
color:var(--text-primary) !important;
border:1px solid var(--border-color) !important;
}

html[data-theme="escuro"] .chamado-meta small
{
background:rgba(148,163,184,.12) !important;
color:var(--text-secondary) !important;
border:1px solid rgba(148,163,184,.18) !important;
}

html[data-theme="escuro"] .chamados-metric-value,
html[data-theme="escuro"] .chamados-kanban-title,
html[data-theme="escuro"] .chamado-title,
html[data-theme="escuro"] .chamado-kpi-value,
html[data-theme="escuro"] .chamado-side-item strong,
html[data-theme="escuro"] .chamado-tab-card .card-title,
html[data-theme="escuro"] .chamado-panel .card-title
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .chamados-metric-label,
html[data-theme="escuro"] .chamados-metric-note,
html[data-theme="escuro"] .chamado-side-label,
html[data-theme="escuro"] .chamado-kpi-label,
html[data-theme="escuro"] .chamado-desc,
html[data-theme="escuro"] .chamado-list-compact .small,
html[data-theme="escuro"] .chamado-tab-card .text-muted,
html[data-theme="escuro"] .chamado-panel .text-muted
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .chamado-bubble.is-tecnico
{
background:var(--bg-card-soft) !important;
border:1px solid var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .chamado-bubble.is-cliente
{
background:linear-gradient(135deg, #243a57, #1e293b) !important;
color:#eff6ff !important;
}

html[data-theme="escuro"] .chamado-card .text-muted strong,
html[data-theme="escuro"] .chamado-tab-card .text-muted strong
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .chamado-actions .btn-warning,
html[data-theme="escuro"] .chamado-actions .bg-warning
{
background:rgba(245,158,11,.22) !important;
border-color:rgba(245,158,11,.34) !important;
color:#fbbf24 !important;
}

/* Painel de suporte */
html[data-theme="escuro"] .suporte-chat-hero
{
background:linear-gradient(135deg, #0b1018 0%, #162235 55%, #263b59 100%) !important;
color:#ffffff !important;
box-shadow:0 22px 52px rgba(0,0,0,.30) !important;
}

html[data-theme="escuro"] .suporte-chat-chip
{
background:rgba(148,163,184,.14) !important;
border-color:rgba(226,232,240,.18) !important;
color:#f8fafc !important;
}

html[data-theme="escuro"] .suporte-chat-stat,
html[data-theme="escuro"] .suporte-chat-shell,
html[data-theme="escuro"] .suporte-chat-panel,
html[data-theme="escuro"] .suporte-chat-composer,
html[data-theme="escuro"] .suporte-chat-sidebar,
html[data-theme="escuro"] .suporte-chat-main,
html[data-theme="escuro"] .suporte-chat-main-bottom
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .suporte-chat-sidebar-top,
html[data-theme="escuro"] .suporte-chat-search,
html[data-theme="escuro"] .suporte-chat-main-top,
html[data-theme="escuro"] .suporte-chat-status-box,
html[data-theme="escuro"] .suporte-chat-thread,
html[data-theme="escuro"] .suporte-chat-preview,
html[data-theme="escuro"] .suporte-chat-attachment
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .suporte-chat-thread:hover,
html[data-theme="escuro"] .suporte-chat-thread.active
{
background:rgba(148,163,184,.12) !important;
border-color:rgba(148,163,184,.30) !important;
}

html[data-theme="escuro"] .suporte-chat-avatar
{
background:rgba(148,163,184,.16) !important;
border:1px solid var(--border-color) !important;
color:var(--primary-color) !important;
}

html[data-theme="escuro"] .suporte-chat-messages
{
background:
  radial-gradient(circle at top left, rgba(148,163,184,.10), transparent 28%),
  linear-gradient(180deg, #0d1522 0%, #111827 100%) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .suporte-chat-bubble.cliente
{
background:var(--bg-card-soft) !important;
border:1px solid var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .suporte-chat-bubble.suporte
{
background:linear-gradient(135deg, #243a57, #1e293b) !important;
color:#eff6ff !important;
}

html[data-theme="escuro"] .suporte-chat-stat-value,
html[data-theme="escuro"] .suporte-chat-thread-title,
html[data-theme="escuro"] #nome-empresa-chat,
html[data-theme="escuro"] .suporte-chat-empty .text-dark
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .suporte-chat-stat-label,
html[data-theme="escuro"] .suporte-chat-stat-note,
html[data-theme="escuro"] .suporte-chat-thread-subtitle,
html[data-theme="escuro"] .suporte-chat-thread-meta,
html[data-theme="escuro"] .suporte-chat-bubble-footer,
html[data-theme="escuro"] .suporte-chat-empty,
html[data-theme="escuro"] .suporte-chat-sidebar .text-muted,
html[data-theme="escuro"] .suporte-chat-main .text-muted
{
color:var(--text-secondary) !important;
}

/* Gerenciamento de patrimonio */
html[data-theme="escuro"] .patrimonio-hero,
html[data-theme="escuro"] .patrimonio-form-hero,
html[data-theme="escuro"] .patrimonio-edit-hero,
html[data-theme="escuro"] .patrimonio-detalhe-hero,
html[data-theme="escuro"] .desfazimento-hero
{
background:linear-gradient(135deg, #0b1018 0%, #162235 55%, #263b59 100%) !important;
color:#ffffff !important;
box-shadow:0 22px 52px rgba(0,0,0,.30) !important;
}

html[data-theme="escuro"] .patrimonio-chip,
html[data-theme="escuro"] .patrimonio-form-chip,
html[data-theme="escuro"] .patrimonio-edit-chip,
html[data-theme="escuro"] .patrimonio-detalhe-chip
{
background:rgba(148,163,184,.14) !important;
border-color:rgba(226,232,240,.18) !important;
color:#f8fafc !important;
}

html[data-theme="escuro"] .patrimonio-metric,
html[data-theme="escuro"] .patrimonio-filtros,
html[data-theme="escuro"] .patrimonio-lista-card,
html[data-theme="escuro"] .patrimonio-mobile-card,
html[data-theme="escuro"] .patrimonio-modal-card,
html[data-theme="escuro"] .patrimonio-form-card,
html[data-theme="escuro"] .patrimonio-summary-card,
html[data-theme="escuro"] .patrimonio-edit-card,
html[data-theme="escuro"] .patrimonio-edit-summary,
html[data-theme="escuro"] .patrimonio-detalhe-card,
html[data-theme="escuro"] .patrimonio-detalhe-side,
html[data-theme="escuro"] .patrimonio-detalhe-gallery,
html[data-theme="escuro"] .patrimonio-detalhe-log,
html[data-theme="escuro"] .desfazimento-card,
html[data-theme="escuro"] .desfazimento-side,
html[data-theme="escuro"] .patrimonio-modal
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .patrimonio-summary-block,
html[data-theme="escuro"] .patrimonio-edit-block,
html[data-theme="escuro"] .patrimonio-detalhe-block,
html[data-theme="escuro"] .desfazimento-item,
html[data-theme="escuro"] .patrimonio-dropzone,
html[data-theme="escuro"] .patrimonio-log-item,
html[data-theme="escuro"] .patrimonio-pagination-nav .page-link,
html[data-theme="escuro"] .patrimonio-pagination-nav .page-item.disabled .page-link,
html[data-theme="escuro"] .patrimonio-pagination-nav .page-item-ellipsis .page-link
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .patrimonio-modal .modal-header
{
background:linear-gradient(135deg, #111827, #1e293b) !important;
color:#ffffff !important;
border-bottom-color:var(--border-color) !important;
}

html[data-theme="escuro"] .patrimonio-modal .modal-footer
{
background:var(--bg-card-soft) !important;
border-top-color:var(--border-color) !important;
}

html[data-theme="escuro"] .patrimonio-lista-card table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .patrimonio-lista-card .table th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .patrimonio-pagination-nav .page-item.active .page-link
{
background:rgba(148,163,184,.22) !important;
border-color:rgba(148,163,184,.38) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .patrimonio-metric-value,
html[data-theme="escuro"] .patrimonio-nome,
html[data-theme="escuro"] .patrimonio-summary-value,
html[data-theme="escuro"] .patrimonio-edit-value,
html[data-theme="escuro"] .patrimonio-detalhe-value,
html[data-theme="escuro"] .desfazimento-value,
html[data-theme="escuro"] .patrimonio-lista-card .text-dark,
html[data-theme="escuro"] .patrimonio-detalhe-log .text-dark,
html[data-theme="escuro"] .patrimonio-modal .text-dark
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .patrimonio-metric-label,
html[data-theme="escuro"] .patrimonio-meta,
html[data-theme="escuro"] .patrimonio-pagination-info,
html[data-theme="escuro"] .patrimonio-summary-label,
html[data-theme="escuro"] .patrimonio-edit-label,
html[data-theme="escuro"] .patrimonio-detalhe-label,
html[data-theme="escuro"] .desfazimento-label,
html[data-theme="escuro"] .patrimonio-detalhe-log .text-muted,
html[data-theme="escuro"] .patrimonio-modal .text-muted
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .patrimonio-status-stack .bg-info-subtle,
html[data-theme="escuro"] .patrimonio-lista-card .bg-info-subtle,
html[data-theme="escuro"] .patrimonio-mobile-card .bg-info-subtle
{
background:rgba(14,165,233,.18) !important;
color:#7dd3fc !important;
}

html[data-theme="escuro"] .patrimonio-status-stack .bg-warning-subtle,
html[data-theme="escuro"] .patrimonio-lista-card .bg-warning-subtle,
html[data-theme="escuro"] .patrimonio-mobile-card .bg-warning-subtle
{
background:rgba(245,158,11,.18) !important;
color:#fbbf24 !important;
}

html[data-theme="escuro"] .patrimonio-status-stack .bg-success-subtle,
html[data-theme="escuro"] .patrimonio-lista-card .bg-success-subtle,
html[data-theme="escuro"] .patrimonio-mobile-card .bg-success-subtle
{
background:rgba(34,197,94,.18) !important;
color:#86efac !important;
}

html[data-theme="escuro"] .patrimonio-status-stack .bg-danger-subtle,
html[data-theme="escuro"] .patrimonio-lista-card .bg-danger-subtle,
html[data-theme="escuro"] .patrimonio-mobile-card .bg-danger-subtle
{
background:rgba(239,68,68,.18) !important;
color:#fca5a5 !important;
}

html[data-theme="escuro"] .patrimonio-status-stack .bg-secondary-subtle,
html[data-theme="escuro"] .patrimonio-lista-card .bg-secondary-subtle,
html[data-theme="escuro"] .patrimonio-mobile-card .bg-secondary-subtle
{
background:rgba(148,163,184,.16) !important;
color:#cbd5e1 !important;
}

/* Estoque */
html[data-theme="escuro"] .estoque-hero
{
background:linear-gradient(135deg, #0b1018 0%, #162235 55%, #263b59 100%) !important;
color:#ffffff !important;
box-shadow:0 22px 52px rgba(0,0,0,.30) !important;
}

html[data-theme="escuro"] .estoque-hero .hero-tags span
{
background:rgba(148,163,184,.14) !important;
border-color:rgba(226,232,240,.18) !important;
color:#f8fafc !important;
}

html[data-theme="escuro"] .estoque-metric-card,
html[data-theme="escuro"] .estoque-metric-card.warning,
html[data-theme="escuro"] .estoque-metric-card.success,
html[data-theme="escuro"] .estoque-panel-card,
html[data-theme="escuro"] .estoque-modal-content
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .estoque-check,
html[data-theme="escuro"] .estoque-mini-block,
html[data-theme="escuro"] .detail-box
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .estoque-table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .estoque-table thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .estoque-table tbody td
{
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .estoque-metric-card strong,
html[data-theme="escuro"] .panel-heading .card-title,
html[data-theme="escuro"] .mini-title,
html[data-theme="escuro"] .mini-list strong,
html[data-theme="escuro"] .item-main strong,
html[data-theme="escuro"] .item-subinfo strong,
html[data-theme="escuro"] .item-stock strong,
html[data-theme="escuro"] .detail-box strong
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .metric-label,
html[data-theme="escuro"] .estoque-metric-card small,
html[data-theme="escuro"] .estoque-panel-card .card-text,
html[data-theme="escuro"] .mini-list span,
html[data-theme="escuro"] .item-main span,
html[data-theme="escuro"] .item-subinfo span,
html[data-theme="escuro"] .item-stock small,
html[data-theme="escuro"] .item-main small,
html[data-theme="escuro"] .detail-box span,
html[data-theme="escuro"] .detail-box small
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .estoque-table .bg-success-subtle
{
background:rgba(34,197,94,.18) !important;
color:#86efac !important;
}

html[data-theme="escuro"] .estoque-table .bg-warning-subtle
{
background:rgba(245,158,11,.18) !important;
color:#fbbf24 !important;
}

html[data-theme="escuro"] .estoque-table .bg-danger-subtle
{
background:rgba(239,68,68,.18) !important;
color:#fca5a5 !important;
}

html[data-theme="escuro"] .estoque-table .bg-secondary-subtle
{
background:rgba(148,163,184,.16) !important;
color:#cbd5e1 !important;
}

html[data-theme="escuro"] .app-table-panel .table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-striped-bg:rgba(148,163,184,.07) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .app-table-panel .table thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
}

html[data-theme="escuro"] .app-btn-soft
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .app-btn-soft:hover
{
background:rgba(148,163,184,.14) !important;
border-color:rgba(148,163,184,.30) !important;
color:var(--text-primary) !important;
}

/* Pronto atendimento */
html[data-theme="escuro"] .pronto-atendimento-page .app-card,
html[data-theme="escuro"] .pronto-atendimento-page .card.app-card,
html[data-theme="escuro"] .pronto-atendimento-page .pa-metric,
html[data-theme="escuro"] .pronto-atendimento-page .pa-ai-panel
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .card.app-card .card-body
{
background:transparent !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .pa-step-note,
html[data-theme="escuro"] .pronto-atendimento-page .pa-guide-list li,
html[data-theme="escuro"] .pronto-atendimento-page .pa-info-box,
html[data-theme="escuro"] .pronto-atendimento-page .pa-triagem-ai,
html[data-theme="escuro"] .pronto-atendimento-page .pa-flow-note,
html[data-theme="escuro"] .pronto-atendimento-page .fila-loader,
html[data-theme="escuro"] .pronto-atendimento-page .pa-ai-box
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .pa-guide-warning,
html[data-theme="escuro"] .pronto-atendimento-page .pa-ai-disclaimer
{
background:rgba(245,158,11,.14) !important;
border-color:rgba(245,158,11,.35) !important;
color:#fbbf24 !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .card-title,
html[data-theme="escuro"] .pronto-atendimento-page .form-label,
html[data-theme="escuro"] .pronto-atendimento-page .pa-metric strong,
html[data-theme="escuro"] .pronto-atendimento-page .pa-info-box strong,
html[data-theme="escuro"] .pronto-atendimento-page .pa-guide-list strong,
html[data-theme="escuro"] .pronto-atendimento-page .pa-ai-panel h6,
html[data-theme="escuro"] .pronto-atendimento-page .text-dark
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .pa-metric small,
html[data-theme="escuro"] .pronto-atendimento-page .pa-metric span,
html[data-theme="escuro"] .pronto-atendimento-page .pa-info-box small,
html[data-theme="escuro"] .pronto-atendimento-page .pa-ai-output,
html[data-theme="escuro"] .pronto-atendimento-page .pa-history-list,
html[data-theme="escuro"] .pronto-atendimento-page .text-muted
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .pa-guide-list i
{
color:#93c5fd !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .badge.bg-light,
html[data-theme="escuro"] .pronto-atendimento-page .badge.text-dark
{
background:rgba(148,163,184,.18) !important;
border:1px solid rgba(148,163,184,.30) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .fila-table,
html[data-theme="escuro"] .pronto-atendimento-page .repasse-table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-striped-bg:rgba(148,163,184,.07) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .fila-table thead th,
html[data-theme="escuro"] .pronto-atendimento-page .repasse-table thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .fila-table tbody td,
html[data-theme="escuro"] .pronto-atendimento-page .repasse-table tbody td
{
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .status-aguardando,
html[data-theme="escuro"] .status-aguardando
{
background:rgba(148,163,184,.18) !important;
color:#e2e8f0 !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .status-triagem,
html[data-theme="escuro"] .status-triagem
{
background:rgba(245,158,11,.18) !important;
color:#fbbf24 !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .status-em-atendimento,
html[data-theme="escuro"] .status-em-atendimento
{
background:rgba(239,68,68,.18) !important;
color:#fca5a5 !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .status-finalizado,
html[data-theme="escuro"] .status-finalizado
{
background:rgba(14,165,233,.18) !important;
color:#7dd3fc !important;
}

html[data-theme="escuro"] .pronto-atendimento-page .status-cancelado,
html[data-theme="escuro"] .status-cancelado
{
background:rgba(100,116,139,.20) !important;
color:#cbd5e1 !important;
}

/* Internacoes */
html[data-theme="escuro"] .internacoes-page .app-card,
html[data-theme="escuro"] .internacoes-page .repasses-filter,
html[data-theme="escuro"] .internacoes-page .repasses-table-card,
html[data-theme="escuro"] .internacoes-page .internacao-metric,
html[data-theme="escuro"] .internacoes-page .modal-content
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .internacoes-page .leito-card,
html[data-theme="escuro"] .internacoes-page .timeline-item,
html[data-theme="escuro"] .internacoes-page .app-empty-state
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .internacoes-page .modal-header
{
background:linear-gradient(135deg, #111827, #1e293b) !important;
border-bottom-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .internacoes-page .modal-footer
{
background:var(--bg-card) !important;
border-top-color:var(--border-color) !important;
}

html[data-theme="escuro"] .internacoes-page h5,
html[data-theme="escuro"] .internacoes-page .form-label,
html[data-theme="escuro"] .internacoes-page .internacao-metric strong,
html[data-theme="escuro"] .internacoes-page .leito-card strong,
html[data-theme="escuro"] .internacoes-page .info-item strong,
html[data-theme="escuro"] .internacoes-page .timeline-item strong,
html[data-theme="escuro"] .internacoes-page .text-dark
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .internacoes-page .internacao-metric small,
html[data-theme="escuro"] .internacoes-page .leito-meta,
html[data-theme="escuro"] .internacoes-page .info-item small,
html[data-theme="escuro"] .internacoes-page .text-muted,
html[data-theme="escuro"] .internacoes-page .app-empty-state p
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .internacoes-page .badge.bg-light,
html[data-theme="escuro"] .internacoes-page .badge.text-dark
{
background:rgba(148,163,184,.18) !important;
border:1px solid rgba(148,163,184,.30) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .internacoes-page .repasse-table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-striped-bg:rgba(148,163,184,.07) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .internacoes-page .repasse-table thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .internacoes-page .repasse-table tbody td
{
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .internacoes-page .status-aguardando,
html[data-theme="escuro"] .internacoes-page .leito-reservado
{
background:rgba(245,158,11,.18) !important;
color:#fbbf24 !important;
}

html[data-theme="escuro"] .internacoes-page .status-ativa,
html[data-theme="escuro"] .internacoes-page .status-transferida,
html[data-theme="escuro"] .internacoes-page .leito-disponivel
{
background:rgba(34,197,94,.18) !important;
color:#86efac !important;
}

html[data-theme="escuro"] .internacoes-page .status-alta,
html[data-theme="escuro"] .internacoes-page .leito-manutencao
{
background:rgba(14,165,233,.18) !important;
color:#7dd3fc !important;
}

html[data-theme="escuro"] .internacoes-page .leito-ocupado
{
background:rgba(239,68,68,.18) !important;
color:#fca5a5 !important;
}

html[data-theme="escuro"] .internacoes-page .status-cancelada,
html[data-theme="escuro"] .internacoes-page .leito-inativo
{
background:rgba(100,116,139,.20) !important;
color:#cbd5e1 !important;
}

html[data-theme="escuro"] .internacoes-page .btn-outline-dark
{
--bs-btn-color:var(--text-primary);
--bs-btn-border-color:rgba(148,163,184,.38);
--bs-btn-hover-color:#ffffff;
--bs-btn-hover-bg:rgba(148,163,184,.18);
--bs-btn-hover-border-color:rgba(148,163,184,.56);
--bs-btn-active-color:#ffffff;
--bs-btn-active-bg:rgba(148,163,184,.24);
--bs-btn-active-border-color:rgba(148,163,184,.60);
}

/* Website, paginas e servicos */
html[data-theme="escuro"] .pages-metric,
html[data-theme="escuro"] .menu-metric,
html[data-theme="escuro"] .site-services-page .service-metric,
html[data-theme="escuro"] .pages-filter-card,
html[data-theme="escuro"] .pages-table-card,
html[data-theme="escuro"] .menu-table-card,
html[data-theme="escuro"] .menu-form-card,
html[data-theme="escuro"] .menu-actions-card,
html[data-theme="escuro"] .site-services-page .service-filter-card,
html[data-theme="escuro"] .site-services-page .service-table-card,
html[data-theme="escuro"] .website-page-hero + .section .card
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .menu-form-section,
html[data-theme="escuro"] .site-services-page .service-visual,
html[data-theme="escuro"] .website-page-hero + .section .card .card
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .pages-filter-card .card-header,
html[data-theme="escuro"] .pages-table-card .card-header,
html[data-theme="escuro"] .menu-table-card .card-header,
html[data-theme="escuro"] .menu-form-card .card-header,
html[data-theme="escuro"] .site-services-page .service-filter-card .card-header,
html[data-theme="escuro"] .site-services-page .service-table-card .card-header
{
background:linear-gradient(180deg, var(--bg-card-soft) 0%, var(--bg-card) 100%) !important;
border-bottom-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .pages-table .table,
html[data-theme="escuro"] .menu-table .table,
html[data-theme="escuro"] .site-services-page .service-table .table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-striped-bg:rgba(148,163,184,.07) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .pages-table thead th,
html[data-theme="escuro"] .menu-table thead th,
html[data-theme="escuro"] .site-services-page .service-table thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .pages-table tbody td,
html[data-theme="escuro"] .menu-table tbody td,
html[data-theme="escuro"] .site-services-page .service-table tbody td
{
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .pages-metric-value,
html[data-theme="escuro"] .menu-metric-value,
html[data-theme="escuro"] .site-services-page .service-metric-value,
html[data-theme="escuro"] .pages-title,
html[data-theme="escuro"] .menu-title,
html[data-theme="escuro"] .site-services-page .service-title,
html[data-theme="escuro"] .menu-form-section h5,
html[data-theme="escuro"] .website-page-hero + .section h2,
html[data-theme="escuro"] .website-page-hero + .section h5,
html[data-theme="escuro"] .site-services-page .text-dark
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .pages-metric-label,
html[data-theme="escuro"] .pages-metric-note,
html[data-theme="escuro"] .pages-slug,
html[data-theme="escuro"] .pages-empty,
html[data-theme="escuro"] .menu-metric-label,
html[data-theme="escuro"] .menu-metric-note,
html[data-theme="escuro"] .menu-parent-meta,
html[data-theme="escuro"] .menu-empty,
html[data-theme="escuro"] .menu-form-section p,
html[data-theme="escuro"] .site-services-page .service-metric-label,
html[data-theme="escuro"] .site-services-page .service-metric-note,
html[data-theme="escuro"] .site-services-page .service-sub,
html[data-theme="escuro"] .site-services-page .service-empty,
html[data-theme="escuro"] .website-page-hero + .section .text-muted,
html[data-theme="escuro"] .website-page-hero + .section .form-text,
html[data-theme="escuro"] .site-services-page .text-muted
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .pages-empty i,
html[data-theme="escuro"] .menu-empty i,
html[data-theme="escuro"] .site-services-page .service-empty i,
html[data-theme="escuro"] .site-services-page .service-visual
{
color:var(--primary-color) !important;
}

html[data-theme="escuro"] .menu-table .badge.bg-light,
html[data-theme="escuro"] .menu-table .badge.text-dark,
html[data-theme="escuro"] .site-services-page .badge.bg-light,
html[data-theme="escuro"] .site-services-page .badge.text-dark
{
background:rgba(148,163,184,.18) !important;
border:1px solid rgba(148,163,184,.30) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .website-page-hero + .section img[style*="border: 1px solid #ddd"]
{
border-color:var(--border-color) !important;
background:var(--bg-card) !important;
}

/* Comandas */
html[data-theme="escuro"] .comandas-hero,
html[data-theme="escuro"] .comanda-form-hero,
html[data-theme="escuro"] .comanda-edit-hero,
html[data-theme="escuro"] .comanda-close-hero
{
background:linear-gradient(135deg, #0b1018 0%, #162235 55%, #263b59 100%) !important;
color:#ffffff !important;
box-shadow:0 22px 52px rgba(0,0,0,.30) !important;
}

html[data-theme="escuro"] .comandas-chip,
html[data-theme="escuro"] .comanda-form-chip,
html[data-theme="escuro"] .comanda-edit-chip,
html[data-theme="escuro"] .comanda-close-chip
{
background:rgba(148,163,184,.14) !important;
border-color:rgba(226,232,240,.18) !important;
color:#f8fafc !important;
}

html[data-theme="escuro"] .comandas-metric,
html[data-theme="escuro"] .comandas-filter-card,
html[data-theme="escuro"] .comandas-list-card,
html[data-theme="escuro"] .comanda-mobile-card,
html[data-theme="escuro"] .comanda-form-card,
html[data-theme="escuro"] .comanda-summary-card,
html[data-theme="escuro"] .comanda-edit-card,
html[data-theme="escuro"] .comanda-side-card,
html[data-theme="escuro"] .comanda-close-card,
html[data-theme="escuro"] .comanda-close-side,
html[data-theme="escuro"] .modal-content.comanda-modal
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .comanda-summary-block,
html[data-theme="escuro"] .comanda-side-block,
html[data-theme="escuro"] .comanda-close-block,
html[data-theme="escuro"] .comanda-item-resumo,
html[data-theme="escuro"] #lista_clientes,
html[data-theme="escuro"] .comanda-cliente-option,
html[data-theme="escuro"] .comanda-edit-card .list-group-item
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .comanda-cliente-option:hover
{
background:rgba(148,163,184,.12) !important;
}

html[data-theme="escuro"] .comanda-modal .modal-header
{
background:linear-gradient(135deg, #111827, #1e293b) !important;
color:#ffffff !important;
border-bottom-color:var(--border-color) !important;
}

html[data-theme="escuro"] .comanda-modal .modal-footer
{
background:var(--bg-card) !important;
border-top-color:var(--border-color) !important;
}

html[data-theme="escuro"] .comandas-section-title,
html[data-theme="escuro"] .comandas-metric-value,
html[data-theme="escuro"] .comanda-cliente,
html[data-theme="escuro"] .comanda-summary-value,
html[data-theme="escuro"] .comanda-side-value,
html[data-theme="escuro"] .comanda-close-value,
html[data-theme="escuro"] .comanda-item-resumo-title,
html[data-theme="escuro"] .comanda-form-card h4,
html[data-theme="escuro"] .comanda-summary-card h5,
html[data-theme="escuro"] .comanda-edit-card h4,
html[data-theme="escuro"] .comanda-edit-card h5,
html[data-theme="escuro"] .comanda-edit-card h6,
html[data-theme="escuro"] .comanda-close-card h4,
html[data-theme="escuro"] .comanda-close-card h5,
html[data-theme="escuro"] .comanda-close-card h6,
html[data-theme="escuro"] .comandas-list-card .text-dark,
html[data-theme="escuro"] .comanda-mobile-card .text-dark,
html[data-theme="escuro"] .comanda-side-card .text-dark
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .comandas-metric-label,
html[data-theme="escuro"] .comandas-section-subtitle,
html[data-theme="escuro"] .comanda-meta,
html[data-theme="escuro"] .comandas-pagination-info,
html[data-theme="escuro"] .comanda-summary-label,
html[data-theme="escuro"] .comanda-side-label,
html[data-theme="escuro"] .comanda-close-label,
html[data-theme="escuro"] .comanda-item-resumo-meta,
html[data-theme="escuro"] .comanda-cliente-option span,
html[data-theme="escuro"] .comandas-metric .text-secondary,
html[data-theme="escuro"] .comanda-form-card .text-secondary,
html[data-theme="escuro"] .comanda-close-card .text-secondary,
html[data-theme="escuro"] .comanda-close-side .text-secondary,
html[data-theme="escuro"] .comanda-edit-card .text-muted,
html[data-theme="escuro"] .comanda-edit-card .text-secondary
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .comandas-table,
html[data-theme="escuro"] .comanda-items-table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-striped-bg:rgba(148,163,184,.07) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .comandas-table th,
html[data-theme="escuro"] .comanda-items-table th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .comandas-table td,
html[data-theme="escuro"] .comanda-items-table td
{
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .comanda-tab-btn.nav-link
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .comanda-tab-btn.nav-link.active
{
background:rgba(148,163,184,.22) !important;
border-color:rgba(148,163,184,.38) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .comandas-pagination-nav .page-link
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .comandas-pagination-nav .page-item.active .page-link
{
background:rgba(148,163,184,.22) !important;
border-color:rgba(148,163,184,.38) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .comandas-pagination-nav .page-item.disabled .page-link
{
background:var(--bg-card-soft) !important;
color:var(--text-muted) !important;
}

html[data-theme="escuro"] .comanda-status-aberta
{
background:rgba(34,197,94,.18) !important;
color:#86efac !important;
}

html[data-theme="escuro"] .comanda-status-fechada
{
background:rgba(14,165,233,.18) !important;
color:#7dd3fc !important;
}

html[data-theme="escuro"] .comanda-status-cancelada
{
background:rgba(239,68,68,.18) !important;
color:#fca5a5 !important;
}

html[data-theme="escuro"] .comandas-list-card .alert-light
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

/* Pesquisas de satisfacao */
html[data-theme="escuro"] .ps-hero,
html[data-theme="escuro"] .ps-public-top
{
background:linear-gradient(135deg, #0b1018 0%, #162235 55%, #263b59 100%) !important;
color:#ffffff !important;
box-shadow:0 22px 52px rgba(0,0,0,.30) !important;
}

html[data-theme="escuro"] .ps-chip
{
background:rgba(148,163,184,.14) !important;
border:1px solid rgba(226,232,240,.18) !important;
color:#f8fafc !important;
}

html[data-theme="escuro"] .ps-metric,
html[data-theme="escuro"] .ps-card,
html[data-theme="escuro"] .ps-public-card
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:none !important;
}

html[data-theme="escuro"] .ps-question-box,
html[data-theme="escuro"] .ps-card .border,
html[data-theme="escuro"] .ps-public-card .border,
html[data-theme="escuro"] .ps-rating label,
html[data-theme="escuro"] .ps-public-card .alert-light
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .ps-card .card-header
{
background:linear-gradient(180deg, var(--bg-card-soft) 0%, var(--bg-card) 100%) !important;
border-bottom-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .ps-metric strong,
html[data-theme="escuro"] .ps-card strong,
html[data-theme="escuro"] .ps-public-card h1,
html[data-theme="escuro"] .ps-public-card h2,
html[data-theme="escuro"] .ps-public-card h3,
html[data-theme="escuro"] .ps-question-box strong
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .ps-metric small,
html[data-theme="escuro"] .ps-metric .text-muted,
html[data-theme="escuro"] .ps-card .text-muted,
html[data-theme="escuro"] .ps-card small,
html[data-theme="escuro"] .ps-public-card .text-muted,
html[data-theme="escuro"] .ps-public-card small
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .ps-card .table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-striped-bg:rgba(148,163,184,.07) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .ps-card .table thead th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .ps-card .table tbody td,
html[data-theme="escuro"] .ps-card .border-bottom
{
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .ps-rating input:checked + label
{
background:rgba(148,163,184,.24) !important;
border-color:rgba(148,163,184,.48) !important;
color:#ffffff !important;
}

html[data-theme="escuro"] .ps-public-shell
{
background:
  radial-gradient(circle at top left, rgba(71,85,105,.18), transparent 34%),
  linear-gradient(180deg, #0b1018 0%, #0e1622 100%) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .ps-card .badge.bg-light,
html[data-theme="escuro"] .ps-card .badge.text-dark,
html[data-theme="escuro"] .ps-public-card .badge.bg-light,
html[data-theme="escuro"] .ps-public-card .badge.text-dark
{
background:rgba(148,163,184,.18) !important;
border:1px solid rgba(148,163,184,.30) !important;
color:var(--text-primary) !important;
}

/* Licitações e cesta de preços */
.cesta-precos-page .cesta-precos-hero,
.cesta-hero,
.relatorio-fornecedores-hero,
.aderencia-hero,
.validacao-hero,
.correcao-hero,
.fontes-report-hero,
.fontes-hero,
.divergencia-hero,
.demo-hero,
.quote-hero
{
background:
  var(--app-hero-radial),
  var(--app-hero-gradient) !important;
border-radius:24px !important;
color:#ffffff !important;
box-shadow:0 18px 42px rgba(15,23,42,.15) !important;
}

.cesta-hero p,
.relatorio-fornecedores-hero p,
.aderencia-hero p,
.validacao-hero p,
.correcao-hero p,
.fontes-report-hero p,
.fontes-hero p,
.divergencia-hero p,
.demo-hero p,
.quote-hero p
{
color:rgba(255,255,255,.78) !important;
}

.cesta-precos-page .metric-card,
.cesta-precos-page .cesta-kpi-card,
.relatorio-kpi,
.aderencia-kpi,
.aderencia-card,
.validacao-kpi,
.validacao-card,
.divergencia-kpi,
.divergencia-card,
.correcao-kpi,
.correcao-card,
.fonte-card,
.fonte-kpi,
.demo-step,
.quote-card
{
border:1px solid #e2e8f0;
background:#ffffff;
box-shadow:0 10px 28px rgba(15,23,42,.05);
}

html[data-theme="escuro"] .licitacoes-page .licitacoes-hero,
html[data-theme="escuro"] .cesta-precos-page .cesta-precos-hero,
html[data-theme="escuro"] .cesta-hero,
html[data-theme="escuro"] .relatorio-fornecedores-hero,
html[data-theme="escuro"] .aderencia-hero,
html[data-theme="escuro"] .validacao-hero,
html[data-theme="escuro"] .correcao-hero,
html[data-theme="escuro"] .fontes-report-hero,
html[data-theme="escuro"] .fontes-hero,
html[data-theme="escuro"] .divergencia-hero,
html[data-theme="escuro"] .demo-hero,
html[data-theme="escuro"] .quote-hero
{
background:
  radial-gradient(circle at top left, rgba(96,165,250,.16), transparent 34%),
  linear-gradient(135deg, #0b1018 0%, #162235 55%, #263b59 100%) !important;
box-shadow:0 22px 52px rgba(0,0,0,.32) !important;
border:1px solid rgba(148,163,184,.18) !important;
}

html[data-theme="escuro"] .licitacoes-page .metric-card,
html[data-theme="escuro"] .licitacoes-filtros-card,
html[data-theme="escuro"] .licitacoes-side-card,
html[data-theme="escuro"] .licitacoes-card,
html[data-theme="escuro"] .licitacoes-orgao,
html[data-theme="escuro"] .licitacoes-meta-grid div,
html[data-theme="escuro"] .licitacoes-acompanhada-form,
html[data-theme="escuro"] .licitacoes-results-header,
html[data-theme="escuro"] .licitacoes-empty-state,
html[data-theme="escuro"] .licitacoes-check-grid .form-check,
html[data-theme="escuro"] .licitacoes-alert-preview,
html[data-theme="escuro"] .cesta-precos-page .metric-card,
html[data-theme="escuro"] .cesta-kpi-card,
html[data-theme="escuro"] .cesta-actions-card,
html[data-theme="escuro"] .cesta-side-card,
html[data-theme="escuro"] .cesta-item-card,
html[data-theme="escuro"] .cesta-preco-result-card,
html[data-theme="escuro"] .cesta-detail-line,
html[data-theme="escuro"] .cesta-selection-summary,
html[data-theme="escuro"] .cesta-selection-summary > div,
html[data-theme="escuro"] .cesta-filter-subpanel,
html[data-theme="escuro"] .cesta-item-indicadores,
html[data-theme="escuro"] .cesta-item-indicadores div,
html[data-theme="escuro"] .cesta-method-box,
html[data-theme="escuro"] .cesta-ia-box,
html[data-theme="escuro"] .cesta-check-card,
html[data-theme="escuro"] .relatorio-kpi,
html[data-theme="escuro"] .aderencia-kpi,
html[data-theme="escuro"] .aderencia-card,
html[data-theme="escuro"] .validacao-kpi,
html[data-theme="escuro"] .validacao-card,
html[data-theme="escuro"] .divergencia-kpi,
html[data-theme="escuro"] .divergencia-card,
html[data-theme="escuro"] .correcao-kpi,
html[data-theme="escuro"] .correcao-card,
html[data-theme="escuro"] .fonte-card,
html[data-theme="escuro"] .fonte-kpi,
html[data-theme="escuro"] .demo-step,
html[data-theme="escuro"] .quote-card
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:0 18px 44px rgba(0,0,0,.22) !important;
}

html[data-theme="escuro"] .licitacoes-side-card-alt,
html[data-theme="escuro"] .licitacoes-tag-input,
html[data-theme="escuro"] .licitacoes-match-reasons,
html[data-theme="escuro"] .licitacoes-match-reasons .match-chip,
html[data-theme="escuro"] .cesta-side-card .card-header,
html[data-theme="escuro"] .cesta-itens-accordion .accordion-button,
html[data-theme="escuro"] .cesta-itens-accordion .accordion-button:not(.collapsed),
html[data-theme="escuro"] .cesta-item-numbers span,
html[data-theme="escuro"] .cesta-mini-stat,
html[data-theme="escuro"] .cesta-modal .modal-body,
html[data-theme="escuro"] .cesta-modal .modal-footer
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .licitacoes-side-card h5,
html[data-theme="escuro"] .licitacoes-side-card h6,
html[data-theme="escuro"] .licitacoes-results-header h5,
html[data-theme="escuro"] .licitacoes-card h3,
html[data-theme="escuro"] .licitacoes-orgao strong,
html[data-theme="escuro"] .licitacoes-meta-grid strong,
html[data-theme="escuro"] .licitacoes-empty-state strong,
html[data-theme="escuro"] .licitacoes-ia-conteudo,
html[data-theme="escuro"] .cesta-kpi-card strong,
html[data-theme="escuro"] .cesta-section-head h5,
html[data-theme="escuro"] .cesta-item-title strong,
html[data-theme="escuro"] .cesta-item-numbers span,
html[data-theme="escuro"] .cesta-mini-stat strong,
html[data-theme="escuro"] .cesta-ia-box h5,
html[data-theme="escuro"] .cesta-preco-result-title strong,
html[data-theme="escuro"] .cesta-preco-result-value,
html[data-theme="escuro"] .cesta-detail-line strong,
html[data-theme="escuro"] .cesta-detail-line small,
html[data-theme="escuro"] .cesta-selection-summary strong,
html[data-theme="escuro"] .cesta-filter-subpanel strong,
html[data-theme="escuro"] .metric-card .metric-value,
html[data-theme="escuro"] .relatorio-kpi strong,
html[data-theme="escuro"] .aderencia-kpi strong,
html[data-theme="escuro"] .aderencia-card h5,
html[data-theme="escuro"] .validacao-kpi strong,
html[data-theme="escuro"] .divergencia-kpi strong,
html[data-theme="escuro"] .correcao-kpi strong,
html[data-theme="escuro"] .fonte-card h5,
html[data-theme="escuro"] .fonte-kpi strong
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .licitacoes-side-card p,
html[data-theme="escuro"] .licitacoes-side-card .side-list,
html[data-theme="escuro"] .licitacoes-orgao span,
html[data-theme="escuro"] .licitacoes-meta-grid span,
html[data-theme="escuro"] .licitacoes-details,
html[data-theme="escuro"] .licitacoes-loading,
html[data-theme="escuro"] .licitacoes-empty-state,
html[data-theme="escuro"] .cesta-kpi-label,
html[data-theme="escuro"] .cesta-kpi-card small,
html[data-theme="escuro"] .cesta-section-head span,
html[data-theme="escuro"] .cesta-section-head small,
html[data-theme="escuro"] .cesta-item-title span,
html[data-theme="escuro"] .cesta-item-numbers small,
html[data-theme="escuro"] .cesta-mini-stat span,
html[data-theme="escuro"] .cesta-ia-box p,
html[data-theme="escuro"] .cesta-detail-line span,
html[data-theme="escuro"] .cesta-selection-summary span,
html[data-theme="escuro"] .metric-card .metric-label,
html[data-theme="escuro"] .metric-card .metric-note,
html[data-theme="escuro"] .relatorio-kpi span,
html[data-theme="escuro"] .aderencia-kpi span,
html[data-theme="escuro"] .aderencia-card p,
html[data-theme="escuro"] .validacao-kpi span,
html[data-theme="escuro"] .divergencia-kpi span,
html[data-theme="escuro"] .correcao-kpi span,
html[data-theme="escuro"] .fonte-card p,
html[data-theme="escuro"] .fonte-kpi span
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .licitacoes-chip,
html[data-theme="escuro"] .licitacoes-badge,
html[data-theme="escuro"] .cesta-chip,
html[data-theme="escuro"] .relatorio-chip,
html[data-theme="escuro"] .fonte-badge.documental
{
background:rgba(59,130,246,.16) !important;
border:1px solid rgba(96,165,250,.28) !important;
color:#bfdbfe !important;
}

html[data-theme="escuro"] .licitacoes-status-aberta,
html[data-theme="escuro"] .fonte-badge.ativa
{
background:rgba(34,197,94,.16) !important;
color:#86efac !important;
}

html[data-theme="escuro"] .licitacoes-status-futura,
html[data-theme="escuro"] .licitacoes-keyword-hit
{
background:rgba(245,158,11,.18) !important;
color:#fcd34d !important;
}

html[data-theme="escuro"] .licitacoes-status-encerrada
{
background:rgba(239,68,68,.16) !important;
color:#fca5a5 !important;
}

html[data-theme="escuro"] .licitacoes-status-neutra
{
background:rgba(148,163,184,.16) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .licitacoes-tag-field
{
background:transparent !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .licitacoes-tag-field::placeholder
{
color:var(--text-muted) !important;
}

html[data-theme="escuro"] .cesta-fontes-table,
html[data-theme="escuro"] .validacao-table,
html[data-theme="escuro"] .divergencia-table
{
--bs-table-bg:var(--bg-card) !important;
--bs-table-color:var(--text-primary) !important;
--bs-table-border-color:var(--border-color) !important;
--bs-table-striped-bg:rgba(148,163,184,.07) !important;
--bs-table-hover-bg:rgba(148,163,184,.12) !important;
--bs-table-hover-color:var(--text-primary) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .cesta-fontes-table thead th,
html[data-theme="escuro"] .validacao-table th,
html[data-theme="escuro"] .divergencia-table th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .cesta-itens-accordion .accordion-item,
html[data-theme="escuro"] .cesta-itens-accordion .accordion-collapse,
html[data-theme="escuro"] .cesta-itens-accordion .accordion-body
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .cesta-status-line,
html[data-theme="escuro"] .cesta-timeline-item,
html[data-theme="escuro"] .cesta-fontes-table td,
html[data-theme="escuro"] .validacao-table td,
html[data-theme="escuro"] .divergencia-table td
{
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .cesta-timeline-item::before
{
background:#60a5fa !important;
box-shadow:0 0 0 4px rgba(96,165,250,.12) !important;
}

html[data-theme="escuro"] .cesta-side-card .cesta-timeline-item span,
html[data-theme="escuro"] .cesta-side-card .cesta-timeline-item small
{
color:#b8c5d9 !important;
}

html[data-theme="escuro"] .cesta-side-card .cesta-timeline-item strong
{
color:#f1f5f9 !important;
font-weight:800 !important;
}

html[data-theme="escuro"] .cesta-side-card .cesta-timeline-item .btn-outline-secondary,
html[data-theme="escuro"] .cesta-side-card .cesta-timeline-item .btn-light
{
background:rgba(148,163,184,.10) !important;
border-color:rgba(203,213,225,.42) !important;
color:#e5edf8 !important;
}

html[data-theme="escuro"] .cesta-side-card .cesta-timeline-item .btn-outline-secondary:hover,
html[data-theme="escuro"] .cesta-side-card .cesta-timeline-item .btn-light:hover
{
background:rgba(148,163,184,.20) !important;
border-color:rgba(226,232,240,.58) !important;
color:#ffffff !important;
}

html[data-theme="escuro"] .cesta-ia-icon
{
background:rgba(96,165,250,.16) !important;
color:#bfdbfe !important;
}

html[data-theme="escuro"] .cesta-ia-box.is-collapsed::after
{
background:linear-gradient(180deg, rgba(17,24,39,0), var(--bg-card) 72%) !important;
}

html[data-theme="escuro"] .cesta-modal .modal-content,
html[data-theme="escuro"] .cesta-loading-card
{
background:var(--bg-card) !important;
border:1px solid var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:0 24px 70px rgba(0,0,0,.38) !important;
}

html[data-theme="escuro"] .cesta-modal .modal-header
{
background:linear-gradient(135deg, #0b1018 0%, #263b59 100%) !important;
border-bottom-color:var(--border-color) !important;
}

html[data-theme="escuro"] .cesta-loading-card small
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .cesta-precos-page .alert-info,
html[data-theme="escuro"] .cesta-modal .alert-info
{
background:rgba(59,130,246,.14) !important;
border:1px solid rgba(96,165,250,.26) !important;
color:#dbeafe !important;
}

html[data-theme="escuro"] .cesta-precos-page .badge.bg-light,
html[data-theme="escuro"] .cesta-precos-page .badge.text-dark,
html[data-theme="escuro"] .fontes-report-page .badge.bg-light,
html[data-theme="escuro"] .fontes-report-page .badge.text-dark
{
background:rgba(148,163,184,.18) !important;
border:1px solid rgba(148,163,184,.30) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .fontes-report-kpi,
html[data-theme="escuro"] .fonte-lote-card,
html[data-theme="escuro"] .fontes-report-page .card
{
background:var(--bg-card) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
box-shadow:0 18px 44px rgba(0,0,0,.22) !important;
}

html[data-theme="escuro"] .fontes-report-kpi span,
html[data-theme="escuro"] .fonte-lote-head span,
html[data-theme="escuro"] .fontes-muted
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .fontes-report-kpi strong,
html[data-theme="escuro"] .fonte-lote-head h5,
html[data-theme="escuro"] .fontes-report-page h5,
html[data-theme="escuro"] .fontes-report-page table td strong
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .fonte-lote-head,
html[data-theme="escuro"] .fontes-report-page table th
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .fontes-report-page table,
html[data-theme="escuro"] .fontes-report-page table td,
html[data-theme="escuro"] .fontes-report-page table th
{
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .fontes-report-page table tr:hover td
{
background:rgba(148,163,184,.08) !important;
}

html[data-theme="escuro"] .fonte-status.ok
{
background:rgba(34,197,94,.16) !important;
color:#86efac !important;
}

html[data-theme="escuro"] .fonte-status.warn
{
background:rgba(245,158,11,.18) !important;
color:#fcd34d !important;
}

.pwa-install-card,
.pwa-push-card
{
display:flex;
align-items:flex-start;
gap:16px;
padding:18px;
margin:-6px 0 24px;
border:1px solid rgba(var(--app-accent-rgb), .16);
border-radius:18px;
background:
  radial-gradient(circle at top right, rgba(var(--app-accent-rgb), .10), transparent 34%),
  #ffffff;
box-shadow:0 18px 42px rgba(15,23,42,.08);
color:var(--app-ink);
}

.pwa-install-card[hidden],
.pwa-push-card[hidden],
.pwa-install-card [hidden],
.pwa-push-card [hidden]
{
display:none !important;
}

.pwa-install-icon
{
width:48px;
height:48px;
border-radius:16px;
display:inline-flex;
align-items:center;
justify-content:center;
flex:0 0 auto;
background:var(--app-accent-soft);
color:var(--app-accent-strong);
font-size:1.35rem;
border:1px solid rgba(var(--app-accent-rgb), .14);
}

.pwa-install-content
{
flex:1;
min-width:0;
}

.pwa-install-kicker
{
display:block;
margin-bottom:4px;
font-size:.76rem;
font-weight:800;
letter-spacing:0;
text-transform:uppercase;
color:var(--app-muted);
}

.pwa-install-content h5
{
margin:0 0 6px;
font-size:1.05rem;
font-weight:800;
color:var(--app-ink);
}

.pwa-install-content p
{
margin:0 0 12px;
color:var(--app-muted);
line-height:1.5;
}

.pwa-push-status
{
margin:0 0 12px;
color:var(--app-muted);
line-height:1.5;
}

.pwa-push-status.is-success
{
color:var(--app-success);
font-weight:700;
}

.pwa-push-status.is-danger
{
color:#dc2626;
font-weight:700;
}

.pwa-install-actions
{
display:flex;
flex-wrap:wrap;
gap:10px;
}

.pwa-install-instructions
{
display:grid;
gap:3px;
padding:12px 14px;
border-radius:14px;
background:var(--app-accent-soft);
border:1px solid rgba(var(--app-accent-rgb), .14);
color:var(--app-ink-soft);
}

.pwa-install-instructions strong
{
color:var(--app-ink);
}

.pwa-install-instructions span
{
color:var(--app-muted);
}

.pwa-install-close
{
width:36px;
height:36px;
border:0;
border-radius:12px;
display:inline-flex;
align-items:center;
justify-content:center;
flex:0 0 auto;
background:rgba(148,163,184,.14);
color:var(--app-muted);
}

.pwa-install-close:hover,
.pwa-install-close:focus
{
background:rgba(var(--app-accent-rgb), .14);
color:var(--app-accent-strong);
outline:none;
}

html[data-theme="escuro"] .pwa-install-card,
html[data-theme="escuro"] .pwa-push-card
{
background:
  radial-gradient(circle at top right, rgba(var(--app-accent-rgb), .12), transparent 34%),
  var(--bg-card);
border-color:var(--border-color);
box-shadow:0 18px 42px rgba(0,0,0,.24);
color:var(--text-primary);
}

html[data-theme="escuro"] .pwa-install-content h5,
html[data-theme="escuro"] .pwa-install-instructions strong
{
color:var(--text-primary);
}

html[data-theme="escuro"] .pwa-install-content p,
html[data-theme="escuro"] .pwa-push-status,
html[data-theme="escuro"] .pwa-install-kicker,
html[data-theme="escuro"] .pwa-install-instructions span
{
color:var(--text-secondary);
}

html[data-theme="escuro"] .pwa-install-icon,
html[data-theme="escuro"] .pwa-install-instructions
{
background:rgba(var(--app-accent-rgb), .14);
border-color:rgba(var(--app-accent-rgb), .26);
color:var(--text-primary);
}

html[data-theme="escuro"] .pwa-install-close
{
background:rgba(148,163,184,.14);
color:var(--text-secondary);
}

@media (max-width:767.98px)
{
.pwa-install-card,
.pwa-push-card
{
padding:16px;
gap:12px;
border-radius:16px;
}

.pwa-install-icon
{
width:42px;
height:42px;
border-radius:14px;
}
}

/*--------------------------------------------------------------
# Radar Commerce
--------------------------------------------------------------*/
.radar-kpi-grid
{
display:grid;
grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
gap:16px;
}

.radar-kpi-card,
.radar-repeat-block,
.radar-public-card,
.radar-answer-box,
.radar-faq-item
{
border:1px solid rgba(148,163,184,.18);
background:var(--bg-card, #fff);
color:var(--text-primary, #0f172a);
box-shadow:0 14px 34px rgba(15,23,42,.06);
}

.radar-kpi-card
{
display:flex;
align-items:center;
gap:14px;
padding:18px;
border-radius:18px;
}

.radar-kpi-icon
{
width:44px;
height:44px;
display:inline-flex;
align-items:center;
justify-content:center;
border-radius:14px;
background:rgba(var(--app-accent-rgb), .12);
color:var(--app-accent-strong);
font-size:1.25rem;
}

.radar-kpi-card strong
{
display:block;
font-size:1.5rem;
line-height:1;
}

.radar-kpi-card span:not(.radar-kpi-icon)
{
color:var(--text-secondary, var(--app-muted));
font-weight:600;
}

.radar-repeat-block
{
border-radius:16px;
padding:14px;
margin-bottom:14px;
}

.radar-current-file
{
padding:10px 12px;
border-radius:12px;
background:rgba(var(--app-accent-rgb), .08);
color:var(--text-secondary, var(--app-muted));
font-size:.9rem;
}

.radar-textarea-lg
{
min-height:260px;
}

.radar-public-body
{
margin:0;
background:var(--bg-body, #f6f9ff);
color:var(--text-primary, #0f172a);
font-family:"Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.radar-public-shell,
.radar-public-article
{
width:min(1120px, calc(100% - 32px));
margin:0 auto;
padding:32px 0;
}

.radar-public-article
{
max-width:920px;
}

.radar-public-header
{
border-radius:24px;
padding:34px;
margin-bottom:28px;
background:var(--app-primary-gradient);
color:#fff;
}

.radar-public-header span,
.radar-public-breadcrumb
{
display:block;
font-size:.82rem;
font-weight:800;
text-transform:uppercase;
letter-spacing:.08em;
opacity:.78;
margin-bottom:10px;
}

.radar-public-header h1,
.radar-public-article h1
{
font-weight:800;
letter-spacing:0;
}

.radar-public-grid
{
display:grid;
grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
gap:18px;
}

.radar-public-card,
.radar-answer-box,
.radar-faq-item
{
border-radius:18px;
padding:20px;
}

.radar-public-card h2
{
font-size:1.15rem;
line-height:1.35;
}

.radar-public-card a
{
color:var(--app-accent-strong);
text-decoration:none;
}

.radar-answer-box
{
margin:22px 0;
background:rgba(var(--app-accent-rgb), .08);
}

.radar-lead
{
font-size:1.08rem;
line-height:1.75;
color:var(--text-secondary, var(--app-muted));
}

.radar-content
{
line-height:1.8;
margin:28px 0;
}

.radar-faq-item
{
margin-bottom:14px;
}

.radar-faq-item h3
{
font-size:1.05rem;
font-weight:800;
}

.radar-public-empty
{
padding:24px;
border-radius:18px;
background:var(--bg-card, #fff);
color:var(--text-secondary, var(--app-muted));
}

html[data-theme="escuro"] .radar-kpi-card,
html[data-theme="escuro"] .radar-repeat-block,
html[data-theme="escuro"] .radar-public-card,
html[data-theme="escuro"] .radar-answer-box,
html[data-theme="escuro"] .radar-faq-item,
html[data-theme="escuro"] .radar-public-empty
{
background:var(--bg-card);
border-color:var(--border-color);
box-shadow:0 18px 42px rgba(0,0,0,.24);
color:var(--text-primary);
}

html[data-theme="escuro"] .radar-public-body
{
background:var(--bg-body);
color:var(--text-primary);
}

.radar-score-panel
{
display:grid;
grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
gap:14px;
}

.radar-score-pill
{
border:1px solid rgba(148,163,184,.18);
border-radius:18px;
padding:18px;
background:var(--bg-card, #fff);
box-shadow:0 14px 34px rgba(15,23,42,.06);
}

.radar-score-pill strong
{
display:block;
font-size:1.65rem;
line-height:1;
color:var(--app-accent-strong);
}

.radar-score-pill span
{
display:block;
margin-top:6px;
color:var(--text-secondary, var(--app-muted));
font-weight:700;
}

.radar-checklist
{
display:grid;
gap:10px;
}

.radar-check-item
{
display:flex;
align-items:center;
gap:10px;
padding:10px 12px;
border-radius:14px;
background:rgba(148,163,184,.10);
color:var(--text-secondary, var(--app-muted));
font-weight:600;
}

.radar-check-item.is-ok
{
background:rgba(34,197,94,.12);
color:#15803d;
}

.radar-check-item.is-pending
{
background:rgba(234,179,8,.12);
color:#92400e;
}

.radar-meta-list
{
display:grid;
gap:12px;
}

.radar-meta-list div
{
padding:12px;
border-radius:14px;
background:rgba(148,163,184,.10);
}

.radar-meta-list strong,
.radar-meta-list span
{
display:block;
overflow-wrap:anywhere;
}

.radar-meta-list strong
{
font-size:.82rem;
text-transform:uppercase;
letter-spacing:.04em;
color:var(--text-secondary, var(--app-muted));
}

.radar-json-preview
{
font-family:var(--bs-font-monospace);
font-size:.86rem;
}

.radar-public-logo
{
margin-bottom:18px;
}

.radar-public-logo img
{
max-width:180px;
max-height:70px;
object-fit:contain;
}

html[data-theme="escuro"] .radar-score-pill,
html[data-theme="escuro"] .radar-meta-list div
{
background:var(--bg-card);
border-color:var(--border-color);
box-shadow:0 18px 42px rgba(0,0,0,.24);
}

html[data-theme="escuro"] .radar-check-item.is-ok
{
color:#86efac;
}

html[data-theme="escuro"] .radar-check-item.is-pending
{
color:#fde68a;
}

.radar-editorial-grid
{
display:grid;
grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
gap:18px;
}

.radar-editorial-card
{
background:var(--bg-card, #fff);
border:1px solid var(--border-color, rgba(148,163,184,.25));
border-radius:18px;
padding:18px;
box-shadow:0 16px 34px rgba(15,23,42,.08);
}

.radar-editorial-card-head
{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:14px;
}

.radar-editorial-card-head h3
{
font-size:1.1rem;
margin:10px 0 4px;
}

.radar-editorial-card-head p
{
margin:0;
color:var(--text-secondary, var(--app-muted));
}

.radar-editorial-card-head > i
{
font-size:1.7rem;
color:var(--bs-primary);
}

.radar-mini-kpis
{
display:grid;
grid-template-columns:repeat(2, minmax(0,1fr));
gap:10px;
margin-top:16px;
}

.radar-mini-kpis span
{
display:block;
padding:10px;
border-radius:12px;
background:rgba(148,163,184,.10);
color:var(--text-secondary, var(--app-muted));
font-size:.86rem;
}

.radar-mini-kpis strong
{
display:block;
font-size:1.15rem;
color:var(--text-primary, inherit);
}

html[data-theme="escuro"] .radar-editorial-card
{
background:var(--bg-card);
border-color:var(--border-color);
box-shadow:0 18px 42px rgba(0,0,0,.24);
}

.public-institutional-page
{
min-height:100vh;
margin:0;
background:
  radial-gradient(circle at 8% 8%, rgba(var(--app-accent-rgb), .12), transparent 30%),
  linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
color:var(--app-ink);
font-family:'Open Sans', Arial, sans-serif;
}

.public-institutional-topbar,
.public-institutional-shell,
.public-institutional-footer
{
width:min(1120px, calc(100% - 32px));
margin-inline:auto;
}

.public-institutional-topbar
{
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
padding:26px 0 18px;
}

.public-institutional-brand
{
display:inline-flex;
align-items:center;
min-width:180px;
}

.public-institutional-brand img
{
max-width:190px;
max-height:54px;
object-fit:contain;
}

.public-institutional-nav
{
display:flex;
align-items:center;
justify-content:flex-end;
flex-wrap:wrap;
gap:8px;
}

.public-institutional-nav a,
.public-institutional-footer a,
.public-institutional-section a,
.public-institutional-contact a
{
color:var(--app-accent-strong);
font-weight:700;
text-decoration:none;
}

.public-institutional-nav a
{
padding:9px 12px;
border-radius:8px;
font-size:.92rem;
}

.public-institutional-nav a:hover,
.public-institutional-nav a:focus,
.public-institutional-footer a:hover,
.public-institutional-footer a:focus,
.public-institutional-section a:hover,
.public-institutional-section a:focus,
.public-institutional-contact a:hover,
.public-institutional-contact a:focus
{
color:var(--app-success);
text-decoration:underline;
}

.public-institutional-shell
{
display:grid;
gap:22px;
padding:18px 0 48px;
}

.public-institutional-hero,
.public-institutional-section,
.public-institutional-contact,
.public-institutional-card
{
border:1px solid rgba(148,163,184,.24);
border-radius:8px;
background:rgba(255,255,255,.92);
box-shadow:0 22px 60px rgba(15,23,42,.08);
}

.public-institutional-hero
{
padding:42px;
background:
  var(--app-hero-radial),
  var(--app-hero-gradient);
color:#fff;
}

.public-institutional-kicker
{
display:block;
margin-bottom:14px;
color:rgba(255,255,255,.76);
font-size:.78rem;
font-weight:800;
letter-spacing:.08em;
text-transform:uppercase;
}

.public-institutional-hero h1
{
max-width:780px;
margin:0 0 16px;
color:#fff;
font-size:clamp(2rem, 4vw, 3.45rem);
font-weight:800;
line-height:1.05;
}

.public-institutional-hero p
{
max-width:830px;
margin:0;
color:rgba(255,255,255,.86);
font-size:1.05rem;
line-height:1.75;
}

.public-institutional-hero p + p
{
margin-top:12px;
}

.public-institutional-grid
{
display:grid;
grid-template-columns:repeat(2, minmax(0, 1fr));
gap:18px;
}

.public-institutional-card,
.public-institutional-section,
.public-institutional-contact
{
padding:28px;
}

.public-institutional-card i
{
display:inline-flex;
align-items:center;
justify-content:center;
width:46px;
height:46px;
margin-bottom:18px;
border-radius:8px;
background:rgba(var(--app-accent-rgb), .12);
color:var(--app-accent-strong);
font-size:1.35rem;
}

.public-institutional-card h2,
.public-institutional-section h2,
.public-institutional-contact h2
{
margin:0 0 12px;
color:var(--app-ink);
font-size:1.28rem;
font-weight:800;
}

.public-institutional-card p,
.public-institutional-section p,
.public-institutional-contact dd,
.public-institutional-list span
{
color:var(--app-ink-soft);
font-size:1rem;
line-height:1.72;
}

.public-institutional-card p,
.public-institutional-section p
{
margin:0;
}

.public-institutional-section p + p
{
margin-top:12px;
}

.public-institutional-list
{
display:grid;
grid-template-columns:repeat(2, minmax(0, 1fr));
gap:12px;
margin-top:20px;
}

.public-institutional-list div,
.public-institutional-contact dl div
{
padding:16px;
border:1px solid rgba(148,163,184,.22);
border-radius:8px;
background:rgba(241,245,249,.74);
}

.public-institutional-list strong,
.public-institutional-contact dt
{
display:block;
margin-bottom:4px;
color:var(--app-ink);
font-weight:800;
}

.public-institutional-list span
{
display:block;
}

.public-institutional-action
{
display:inline-flex;
align-items:center;
margin-top:18px;
padding:11px 14px;
border-radius:8px;
background:var(--app-primary-gradient);
color:#fff !important;
box-shadow:0 14px 32px rgba(15,23,42,.18);
}

.public-institutional-action:hover,
.public-institutional-action:focus
{
color:#fff !important;
text-decoration:none !important;
filter:brightness(1.05);
}

.public-institutional-contact dl
{
display:grid;
grid-template-columns:repeat(2, minmax(0, 1fr));
gap:12px;
margin:16px 0 0;
}

.public-institutional-contact dd
{
margin:0;
overflow-wrap:anywhere;
}

.public-institutional-updated
{
font-size:.94rem !important;
}

.public-institutional-document .public-institutional-section
{
box-shadow:none;
}

.public-institutional-footer
{
display:flex;
align-items:center;
justify-content:center;
flex-wrap:wrap;
gap:14px;
padding:0 0 34px;
font-size:.94rem;
}

.app-ai-test-result,
.app-ai-summary,
.app-ai-list,
.app-chat-list
{
display:grid;
gap:.8rem;
}

.app-ai-test-result
{
padding:1rem;
border:1px solid rgba(148,163,184,.22);
border-radius:16px;
background:#f8fafc;
color:#334155;
white-space:pre-wrap;
min-height:72px;
}

.app-ai-summary div,
.app-ai-list-item
{
padding:.95rem;
border:1px solid rgba(148,163,184,.18);
border-radius:16px;
background:#f8fafc;
}

.app-ai-summary small
{
display:block;
margin-bottom:.35rem;
color:#64748b;
font-size:.74rem;
font-weight:800;
text-transform:uppercase;
letter-spacing:.08em;
}

.app-ai-summary strong,
.app-ai-summary span
{
display:block;
color:#0f172a;
overflow-wrap:anywhere;
}

.app-ai-list-item
{
display:flex;
align-items:center;
justify-content:space-between;
gap:1rem;
}

.app-ai-hub-grid
{
display:grid;
grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
gap:.9rem;
}

.app-ai-hub-card
{
display:grid;
gap:.45rem;
padding:1rem;
border:1px solid rgba(148,163,184,.18);
border-radius:16px;
background:#f8fafc;
color:#0f172a;
text-decoration:none;
min-height:150px;
}

.app-ai-hub-card:hover
{
background:#eef2f7;
color:#0f172a;
}

.app-ai-hub-card i
{
font-size:1.35rem;
color:var(--primary-color);
}

.app-ai-hub-card strong
{
font-size:1rem;
}

.app-ai-hub-card span
{
color:#64748b;
line-height:1.45;
}

.app-chat-message
{
display:flex;
}

.app-chat-message.is-out
{
justify-content:flex-end;
}

.app-chat-bubble
{
max-width:min(620px, 92%);
padding:.95rem 1rem;
border:1px solid rgba(148,163,184,.20);
border-radius:18px;
background:#f8fafc;
color:#0f172a;
}

.app-chat-message.is-out .app-chat-bubble
{
background:#eef6ff;
border-color:rgba(14,165,233,.28);
}

.app-chat-bubble small
{
display:block;
margin-bottom:.35rem;
color:#64748b;
font-weight:700;
}

.app-chat-bubble p
{
margin:0;
overflow-wrap:anywhere;
}

.status-comercial
{
background:#eef6ff !important;
color:#1d4ed8 !important;
}

.status-comercial-light
{
background:#f8fafc !important;
color:#334155 !important;
border-color:#dbe5f1 !important;
}

html[data-theme="escuro"] .app-ai-test-result,
html[data-theme="escuro"] .app-ai-summary div,
html[data-theme="escuro"] .app-ai-list-item,
html[data-theme="escuro"] .app-ai-hub-card,
html[data-theme="escuro"] .app-chat-bubble
{
background:var(--bg-card-soft) !important;
border-color:var(--border-color) !important;
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .app-chat-message.is-out .app-chat-bubble
{
background:rgba(14,165,233,.14) !important;
border-color:rgba(14,165,233,.30) !important;
}

html[data-theme="escuro"] .app-ai-summary small,
html[data-theme="escuro"] .app-chat-bubble small
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .app-ai-summary strong,
html[data-theme="escuro"] .app-ai-summary span,
html[data-theme="escuro"] .app-ai-hub-card,
html[data-theme="escuro"] .app-ai-hub-card strong
{
color:var(--text-primary) !important;
}

html[data-theme="escuro"] .app-ai-hub-card:hover
{
background:rgba(148,163,184,.14) !important;
}

html[data-theme="escuro"] .app-ai-hub-card span
{
color:var(--text-secondary) !important;
}

html[data-theme="escuro"] .status-comercial
{
background:rgba(59,130,246,.18) !important;
color:#93c5fd !important;
}

html[data-theme="escuro"] .status-comercial-light
{
background:rgba(148,163,184,.16) !important;
color:#cbd5e1 !important;
border-color:var(--border-color) !important;
}

html[data-theme="escuro"] .public-institutional-page
{
background:
  radial-gradient(circle at 8% 8%, rgba(var(--app-accent-rgb), .20), transparent 30%),
  linear-gradient(180deg, #020617 0%, #0f172a 100%);
color:var(--text-primary);
}

html[data-theme="escuro"] .public-institutional-brand img
{
filter:brightness(0) invert(1);
}

html[data-theme="escuro"] .public-institutional-hero,
html[data-theme="escuro"] .public-institutional-section,
html[data-theme="escuro"] .public-institutional-contact,
html[data-theme="escuro"] .public-institutional-card
{
background:var(--bg-card);
border-color:var(--border-color);
box-shadow:0 22px 60px rgba(0,0,0,.26);
color:var(--text-primary);
}

html[data-theme="escuro"] .public-institutional-hero
{
background:
  var(--app-hero-radial),
  var(--app-hero-gradient);
}

html[data-theme="escuro"] .public-institutional-card h2,
html[data-theme="escuro"] .public-institutional-section h2,
html[data-theme="escuro"] .public-institutional-contact h2,
html[data-theme="escuro"] .public-institutional-list strong,
html[data-theme="escuro"] .public-institutional-contact dt
{
color:var(--text-primary);
}

html[data-theme="escuro"] .public-institutional-card p,
html[data-theme="escuro"] .public-institutional-section p,
html[data-theme="escuro"] .public-institutional-contact dd,
html[data-theme="escuro"] .public-institutional-list span
{
color:var(--text-secondary);
}

html[data-theme="escuro"] .public-institutional-list div,
html[data-theme="escuro"] .public-institutional-contact dl div,
html[data-theme="escuro"] .public-institutional-nav a
{
background:var(--bg-card-soft);
border-color:var(--border-color);
}

@media (prefers-color-scheme: dark)
{
  .public-institutional-page
  {
  background:
    radial-gradient(circle at 8% 8%, rgba(var(--app-accent-rgb), .20), transparent 30%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color:#e5e7eb;
  }

  .public-institutional-brand img
  {
  filter:brightness(0) invert(1);
  }

  .public-institutional-hero,
  .public-institutional-section,
  .public-institutional-contact,
  .public-institutional-card
  {
  background:#111827;
  border-color:rgba(148,163,184,.24);
  box-shadow:0 22px 60px rgba(0,0,0,.26);
  color:#e5e7eb;
  }

  .public-institutional-hero
  {
  background:
    var(--app-hero-radial),
    var(--app-hero-gradient);
  }

  .public-institutional-card h2,
  .public-institutional-section h2,
  .public-institutional-contact h2,
  .public-institutional-list strong,
  .public-institutional-contact dt
  {
  color:#f8fafc;
  }

  .public-institutional-card p,
  .public-institutional-section p,
  .public-institutional-contact dd,
  .public-institutional-list span
  {
  color:#cbd5e1;
  }

  .public-institutional-list div,
  .public-institutional-contact dl div,
  .public-institutional-nav a
  {
  background:#172033;
  border-color:rgba(148,163,184,.24);
  }

  .public-institutional-nav a,
  .public-institutional-footer a,
  .public-institutional-section a,
  .public-institutional-contact a
  {
  color:#93c5fd;
  }
}

@media (max-width: 767px)
{
  .public-institutional-topbar
  {
  align-items:flex-start;
  flex-direction:column;
  }

  .public-institutional-nav
  {
  justify-content:flex-start;
  }

  .public-institutional-hero,
  .public-institutional-card,
  .public-institutional-section,
  .public-institutional-contact
  {
  padding:24px;
  }

  .public-institutional-grid,
  .public-institutional-list,
  .public-institutional-contact dl
  {
  grid-template-columns:1fr;
  }
}

.lead-whatsapp-panel
{
display:flex;
flex-wrap:wrap;
gap:6px;
margin-top:12px;
}

.lead-whatsapp-badge
{
display:inline-flex;
align-items:center;
gap:6px;
border-radius:999px;
padding:6px 10px;
background:rgba(15,23,42,.08);
color:#0f172a;
font-size:.76rem;
font-weight:700;
line-height:1.2;
}

.lead-whatsapp-badge-success
{
background:rgba(34,197,94,.14);
color:#166534;
}

.lead-whatsapp-badge-info
{
background:rgba(14,165,233,.14);
color:#075985;
}

.lead-whatsapp-badge-muted
{
background:rgba(148,163,184,.18);
color:#475569;
}

.lead-card-action-form
{
margin:0;
display:inline-flex;
}

.lead-card-actions button.lead-action-whatsapp,
.lead-card-actions a.lead-action-whatsapp
{
display:inline-flex;
align-items:center;
justify-content:center;
width:36px;
height:36px;
border-radius:12px;
border:0;
background:#16a34a;
color:#fff;
text-decoration:none;
}

.lead-card-actions button.lead-action-whatsapp:hover,
.lead-card-actions a.lead-action-whatsapp:hover
{
background:#15803d;
color:#fff;
}

html[data-theme="escuro"] .lead-whatsapp-badge
{
background:rgba(148,163,184,.18);
color:#e5e7eb;
}

html[data-theme="escuro"] .lead-whatsapp-badge-success
{
background:rgba(34,197,94,.18);
color:#bbf7d0;
}

html[data-theme="escuro"] .lead-whatsapp-badge-info
{
background:rgba(56,189,248,.18);
color:#bae6fd;
}

html[data-theme="escuro"] .lead-whatsapp-badge-muted
{
background:rgba(100,116,139,.22);
color:#cbd5e1;
}

/* Orçamentos */
.orcamentos-page .card,
.orc-public .card,
.orc-print-page {
border:1px solid rgba(148,163,184,.18);
box-shadow:0 18px 45px rgba(15,23,42,.06);
}

.orc-metric,
.orc-integration {
height:100%;
padding:18px;
border-radius:8px;
background:var(--app-card-bg, #fff);
border:1px solid rgba(148,163,184,.18);
box-shadow:0 18px 42px rgba(15,23,42,.06);
}

.orc-metric small,
.orc-integration span {
display:block;
color:#64748b;
font-weight:700;
font-size:.78rem;
text-transform:uppercase;
}

.orc-metric strong,
.orc-integration strong {
display:block;
font-size:1.55rem;
color:#0f172a;
margin-top:8px;
}

.orc-status {
display:inline-flex;
align-items:center;
border-radius:999px;
padding:6px 10px;
font-size:.76rem;
font-weight:800;
background:#e2e8f0;
color:#334155;
white-space:nowrap;
}

.orc-status-rascunho { background:#f1f5f9; color:#475569; }
.orc-status-enviado,
.orc-status-visualizado { background:#dbeafe; color:#1d4ed8; }
.orc-status-aprovado_empresa { background:#e0f2fe; color:#075985; }
.orc-status-aguardando_aceite { background:#fef3c7; color:#92400e; }
.orc-status-em_negociacao { background:#fef3c7; color:#92400e; }
.orc-status-aprovado,
.orc-status-aceito,
.orc-status-convertido { background:#dcfce7; color:#166534; }
.orc-status-recusado,
.orc-status-cancelado,
.orc-status-vencido { background:#fee2e2; color:#991b1b; }

.orc-tabs .nav-link {
font-weight:700;
color:#475569;
}

.orc-item-row {
padding:18px;
border:1px solid rgba(148,163,184,.22);
border-radius:8px;
background:#fff;
margin-bottom:14px;
}

.orc-total-box,
.orc-summary-line {
display:grid;
grid-template-columns:1fr auto;
gap:10px;
align-items:center;
padding:10px 0;
border-bottom:1px solid rgba(148,163,184,.18);
}

.orc-total-box strong,
.orc-summary-line strong {
color:#0f172a;
}

.orc-summary-line.total {
font-size:1.2rem;
border-bottom:0;
}

.orc-attachment {
display:flex;
align-items:center;
gap:10px;
padding:14px;
border-radius:8px;
border:1px solid rgba(148,163,184,.22);
background:#fff;
color:#0f172a;
text-decoration:none;
height:100%;
}

.orc-attachment i {
font-size:1.3rem;
color:var(--app-accent, #2563eb);
}

.orc-public-body,
.orc-print-body {
background:#f8fafc;
color:#0f172a;
}

.orc-public,
.orc-print-page {
width:min(980px, calc(100% - 32px));
margin:32px auto;
}

.orc-public-hero {
display:flex;
justify-content:space-between;
gap:24px;
align-items:flex-end;
padding:30px;
border-radius:8px;
background:var(--app-hero-gradient);
color:#fff;
margin-bottom:24px;
}

.orc-public-hero span {
font-weight:800;
text-transform:uppercase;
font-size:.78rem;
opacity:.78;
}

.orc-public-hero h1 {
font-size:2rem;
margin:10px 0;
}

.orc-public-hero strong {
font-size:1.6rem;
white-space:nowrap;
}

.orc-public-logo {
display:block;
max-width:160px;
max-height:72px;
object-fit:contain;
margin-bottom:14px;
}

.orc-print-page {
background:#fff;
padding:36px;
}

.orc-print-header {
display:flex;
justify-content:space-between;
gap:24px;
border-bottom:2px solid #0f172a;
padding-bottom:18px;
margin-bottom:28px;
}

.orc-print-header h1 {
font-size:1.5rem;
margin:0 0 6px;
}

.orc-print-totals {
max-width:360px;
margin-left:auto;
}

.orc-print-totals div {
display:flex;
justify-content:space-between;
gap:16px;
padding:8px 0;
border-bottom:1px solid #e2e8f0;
}

.orc-print-totals .total {
font-size:1.25rem;
font-weight:800;
}

.orc-print-footer {
margin-top:42px;
padding-top:16px;
border-top:1px solid #e2e8f0;
font-size:.85rem;
color:#64748b;
}

.orc-form-guide {
position:sticky;
top:90px;
}

.orc-guide-list {
display:grid;
gap:12px;
}

.orc-guide-item {
padding:14px;
border-radius:8px;
background:#f8fafc;
border:1px solid rgba(148,163,184,.18);
}

.orc-guide-item strong {
display:block;
color:#0f172a;
margin-bottom:4px;
}

.orc-guide-item span {
color:#64748b;
font-size:.9rem;
}

html[data-theme="escuro"] .orcamentos-page .card,
html[data-theme="escuro"] .orc-metric,
html[data-theme="escuro"] .orc-integration,
html[data-theme="escuro"] .orc-item-row,
html[data-theme="escuro"] .orc-attachment,
html[data-theme="escuro"] .orc-guide-item {
background:#111827;
border-color:rgba(148,163,184,.22);
box-shadow:none;
}

html[data-theme="escuro"] .orc-metric small,
html[data-theme="escuro"] .orc-integration span {
color:#94a3b8;
}

html[data-theme="escuro"] .orc-metric strong,
html[data-theme="escuro"] .orc-integration strong,
html[data-theme="escuro"] .orc-total-box strong,
html[data-theme="escuro"] .orc-summary-line strong,
html[data-theme="escuro"] .orc-attachment,
html[data-theme="escuro"] .orc-guide-item strong {
color:#f8fafc;
}

html[data-theme="escuro"] .orc-guide-item span {
color:#94a3b8;
}

@media (max-width: 768px) {
.orc-public-hero,
.orc-print-header {
flex-direction:column;
align-items:flex-start;
}

.orc-public-hero h1 {
font-size:1.55rem;
}
}

@media print {
.orc-print-body {
background:#fff;
}

.orc-print-page {
width:100%;
margin:0;
box-shadow:none;
border:0;
}
}

.radar-check-grid {
display:grid;
gap:10px;
padding:12px;
border:1px solid rgba(148,163,184,.24);
border-radius:8px;
background:rgba(248,250,252,.72);
}

.radar-check-grid label {
display:flex;
align-items:center;
gap:8px;
margin:0;
font-weight:600;
color:#334155;
}

.radar-check-grid input {
width:16px;
height:16px;
}

html[data-theme="escuro"] .radar-check-grid {
background:rgba(15,23,42,.48);
border-color:rgba(148,163,184,.24);
}

html[data-theme="escuro"] .radar-check-grid label {
color:#e2e8f0;
}

.fin-hero {
background:linear-gradient(135deg,#132238 0%,#24445f 100%);
border-radius:8px;
color:#fff;
padding:28px;
margin-bottom:22px;
box-shadow:0 18px 34px rgba(15,23,42,.12);
}

.fin-hero .btn {
white-space:normal;
}

.fin-chip {
display:inline-flex;
align-items:center;
gap:8px;
padding:8px 12px;
border-radius:999px;
background:rgba(255,255,255,.12);
border:1px solid rgba(255,255,255,.18);
color:#fff;
font-weight:600;
font-size:.92rem;
}

.fin-card,
.fin-filter,
.fin-table-panel,
.fin-metric {
background:#fff;
border:1px solid #e6edf7;
border-radius:8px;
box-shadow:0 14px 30px rgba(15,23,42,.055);
}

.fin-card,
.fin-filter,
.fin-table-panel {
padding:22px;
}

.fin-metric {
height:100%;
padding:18px;
}

.fin-metric-label {
color:#64748b;
font-size:.78rem;
text-transform:uppercase;
letter-spacing:.04em;
margin-bottom:8px;
}

.fin-metric-value {
color:#162033;
font-size:1.45rem;
font-weight:800;
line-height:1.15;
overflow-wrap:anywhere;
}

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

.fin-kv-item {
background:#f8fbff;
border:1px solid #e8eef8;
border-radius:8px;
padding:14px;
}

.fin-kv-label {
color:#64748b;
font-size:.78rem;
text-transform:uppercase;
letter-spacing:.04em;
margin-bottom:6px;
}

.fin-kv-value {
color:#162033;
font-weight:700;
overflow-wrap:anywhere;
}

.fin-ai-box {
min-height:130px;
white-space:pre-wrap;
}

html[data-theme="escuro"] .fin-card,
html[data-theme="escuro"] .fin-filter,
html[data-theme="escuro"] .fin-table-panel,
html[data-theme="escuro"] .fin-metric {
background:#111827;
border-color:rgba(148,163,184,.22);
box-shadow:none;
}

html[data-theme="escuro"] .fin-kv-item {
background:rgba(15,23,42,.48);
border-color:rgba(148,163,184,.22);
}

html[data-theme="escuro"] .fin-metric-label,
html[data-theme="escuro"] .fin-kv-label {
color:#94a3b8;
}

html[data-theme="escuro"] .fin-metric-value,
html[data-theme="escuro"] .fin-kv-value {
color:#f8fafc;
}

@media (max-width: 768px) {
.fin-hero {
padding:22px;
}

.fin-kv-grid {
grid-template-columns:1fr;
}
}
