/* SmartHipica — tabelas e formulários */
.brand-link .fa-horse {
  font-size: 1.15rem;
  opacity: .9;
}
.nav-link.disabled {
  opacity: .65;
  pointer-events: none;
}

:root {
  --sh-teal: #1d6f6a;
  --sh-teal-dark: #14524e;
  --sh-gold: #d69e2e;
  --brand-primary: var(--sh-teal);
  --brand-secondary: var(--sh-teal-dark);
}

/* WhiteLabel: sidebar e acentos seguem cores do centro */
body.sh-brand-wl .main-sidebar {
  background: linear-gradient(180deg, var(--sh-teal-dark), #0d1f14) !important;
}
body.sh-brand-wl .brand-link {
  border-bottom-color: rgba(255,255,255,.08) !important;
}
body.sh-brand-wl .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
body.sh-brand-wl .sidebar-dark-primary .nav-treeview > .nav-item > .nav-link.active {
  background: var(--sh-teal) !important;
  color: #fff !important;
}
body.sh-brand-wl .card.sh-table-card .card-header {
  background: linear-gradient(120deg, var(--sh-teal), var(--sh-teal-dark)) !important;
}
body.sh-brand-wl .btn-success {
  background-color: var(--sh-teal);
  border-color: var(--sh-teal-dark);
}
body.sh-brand-wl .btn-success:hover {
  background-color: var(--sh-teal-dark);
  border-color: var(--sh-teal-dark);
}
body.sh-brand-wl .info-box .info-box-icon.bg-success,
body.sh-brand-wl .bg-success {
  background-color: var(--sh-teal) !important;
}

/* Marca d'água discreta — powered by SmartHipica (somente WL) */
.sh-powered-by {
  position: fixed;
  right: 14px;
  bottom: 10px;
  z-index: 1080;
  pointer-events: none;
  user-select: none;
  font-family: "Source Sans Pro", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1a202c;
  opacity: 0.28;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
body.login-page .sh-powered-by {
  bottom: 16px;
  opacity: 0.32;
}
body.dark-mode .sh-powered-by {
  color: #f7fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  opacity: 0.3;
}
@media print {
  .sh-powered-by { display: none !important; }
}
body.login-page.sh-brand-wl .btn-primary {
  background-color: var(--sh-teal, #1d6f6a);
  border-color: var(--sh-teal-dark, #14524e);
}
body.login-page.sh-brand-wl .login-logo a {
  color: var(--sh-teal-dark, #14524e);
}
body.sh-brand-wl .navbar-success {
  background-color: var(--sh-teal) !important;
}

.content-wrapper {
  background: #eef3f2;
}

/* ---- Tabelas ---- */
.card.sh-table-card {
  border: 0;
  box-shadow: 0 8px 24px rgba(20, 82, 78, .08);
  overflow: hidden;
}
.card.sh-table-card .card-header {
  background: linear-gradient(120deg, #1d6f6a, #2b6cb0);
  color: #fff;
  border: 0;
  align-items: center;
}
.card.sh-table-card .card-title,
.card.sh-table-card .card-title i {
  color: #fff;
}
.card.sh-table-card .sh-ico {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}
.card.sh-table-card .card-tools .btn {
  border-radius: 20px;
  font-weight: 600;
}

table.table thead th,
table.dataTable thead th {
  background: #14524e !important;
  color: #fff !important;
  border: 0 !important;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle !important;
  padding: .7rem .75rem !important;
}
table.table thead th i,
table.dataTable thead th i {
  opacity: .85;
  margin-right: .35rem;
}
table.table tbody td,
table.dataTable tbody td {
  vertical-align: middle;
  padding: .65rem .75rem;
  border-color: #e6eeed;
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(29, 111, 106, .06);
}
.table-hover tbody tr:hover {
  background-color: rgba(43, 108, 176, .1) !important;
}
.sh-cell-code {
  font-weight: 700;
  color: #14524e;
}
.sh-cell-code i {
  color: #2b6cb0;
  margin-right: .35rem;
}
.sh-badge {
  font-weight: 600;
  padding: .4em .7em;
  border-radius: 20px;
  font-size: .75rem;
}
.sh-badge i {
  margin-right: .25rem;
}
.sh-money {
  font-weight: 700;
  color: #276749;
  white-space: nowrap;
}
.sh-actions .btn {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  padding: 0;
  line-height: 30px;
  margin-right: 2px;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding: .65rem 1rem;
  color: #4a5568;
}
.dataTables_wrapper .dataTables_filter input {
  border-radius: 20px;
  border: 1px solid #c5d5d3;
  padding: .2rem .8rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 16px !important;
}

/* ---- Formulários em boxes ---- */
.sh-form-row {
  margin-left: -8px;
  margin-right: -8px;
}
.sh-form-row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}
.sh-box {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(20, 82, 78, .08);
  overflow: hidden;
}
.sh-box .card-header {
  border: 0;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.sh-box .card-tools {
  margin-left: auto;
}
.sh-box .card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.sh-box .card-body {
  padding: .85rem 1rem .5rem;
}
.sh-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .55rem;
  color: #fff;
  flex-shrink: 0;
}
.sh-box-info .card-header { background: #ebf8ff; color: #2b6cb0; }
.sh-box-info .sh-ico { background: #2b6cb0; }
.sh-box-success .card-header { background: #f0fff4; color: #276749; }
.sh-box-success .sh-ico { background: #38a169; }
.sh-box-warning .card-header { background: #fffaf0; color: #975a16; }
.sh-box-warning .sh-ico { background: #d69e2e; }
.sh-box-primary .card-header { background: #ebf4ff; color: #2c5282; }
.sh-box-primary .sh-ico { background: #3182ce; }
.sh-box-danger .card-header { background: #fff5f5; color: #9b2c2c; }
.sh-box-danger .sh-ico { background: #e53e3e; }
.sh-box-secondary .card-header { background: #f7fafc; color: #4a5568; }
.sh-box-secondary .sh-ico { background: #718096; }

/* Painel: card que ainda não usa sh-box herda o cromado */
body.sidebar-mini .content-wrapper .card:not(.sh-box):not(.sh-table-card) {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(20, 82, 78, .08);
  overflow: hidden;
}
body.sidebar-mini .content-wrapper .card:not(.sh-box):not(.sh-table-card) > .card-header {
  border: 0;
  background: #ebf8ff;
  color: #2b6cb0;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-weight: 700;
}
body.sidebar-mini .content-wrapper .card-header > h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}
body.sidebar-mini .content-wrapper .card-title > i:first-child,
body.sidebar-mini .content-wrapper .card-header > h3 > i:first-child,
body.sidebar-mini .content-wrapper .card-header > h5 > i:first-child {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .55rem;
  color: #fff !important;
  background: #2b6cb0;
  font-size: .9rem;
}
.sh-box-success .card-title > i:first-child,
.sh-box-success .card-header > h5 > i:first-child { background: #38a169; }
.sh-box-warning .card-title > i:first-child,
.sh-box-warning .card-header > h5 > i:first-child { background: #d69e2e; }
.sh-box-primary .card-title > i:first-child,
.sh-box-primary .card-header > h5 > i:first-child { background: #3182ce; }
.sh-box-danger .card-title > i:first-child,
.sh-box-danger .card-header > h5 > i:first-child { background: #e53e3e; }
.sh-box-secondary .card-title > i:first-child,
.sh-box-secondary .card-header > h5 > i:first-child { background: #718096; }
.sh-box .card-footer {
  background: #fff;
  border: 0;
  padding: .7rem 1rem 1rem;
}
.sh-box .card-body.row,
.sh-box .card-body.p-0 { padding-bottom: 0; }

.sh-box .form-group {
  margin-bottom: .7rem;
}
.sh-box .form-group label {
  font-size: .78rem;
  font-weight: 700;
  color: #4a5568;
  margin-bottom: .25rem;
}
.sh-box .form-control,
.sh-box .select2-container--bootstrap4 .select2-selection {
  border-radius: 8px;
  border-color: #d5e2e0;
  min-height: 38px;
}
.sh-box .input-group-text {
  background: #edf4f3;
  border-color: #d5e2e0;
  color: #1d6f6a;
  border-radius: 8px 0 0 8px;
  min-width: 40px;
  justify-content: center;
}
.sh-box .input-group .select2-container {
  flex: 1 1 auto;
  width: 1% !important;
}
.card.sh-table-card .card-tools .btn-info {
  background: #ebf8ff;
  color: #2b6cb0;
  border: 0;
}
.card.sh-table-card .card-tools .btn-success {
  background: #f0fff4;
  color: #276749;
  border: 0;
}
.sh-form-actions {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(20, 82, 78, .08);
  padding: .7rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.sh-form-actions .form-control {
  width: auto;
  min-width: 140px;
}
.sh-box > .sh-form-actions {
  box-shadow: none;
  padding: .7rem 1rem 1rem;
}
.sh-switch {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  margin: 0;
}
.sh-switch input {
  position: absolute;
  opacity: 0;
}
.sh-switch-slider {
  width: 42px;
  height: 22px;
  background: #cbd5e0;
  border-radius: 20px;
  position: relative;
  transition: .2s;
}
.sh-switch-slider:after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: .2s;
}
.sh-switch input:checked + .sh-switch-slider {
  background: #38a169;
}
.sh-switch input:checked + .sh-switch-slider:after {
  left: 23px;
}

.sh-view-dl dt {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #718096;
  margin-bottom: .15rem;
}
.sh-view-dl dd {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: .75rem;
}

#tbl-composicao th { white-space: nowrap; }
#tbl-composicao .sh-qtd { min-width: 5.5rem; }
#tbl-composicao .sh-vezes { min-width: 4.5rem; }
#tbl-composicao .sh-total { white-space: nowrap; }
.sh-rel-grid .small-box { min-height: 170px; }
.sh-rel-grid .small-box h4 { font-size: 1.15rem; font-weight: 600; }
.sh-rel-mod {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .9;
  margin-bottom: .35rem;
}
.sh-rel-grid .small-box p { font-size: .9rem; }

.sh-anexo-form .input-group {
  flex-wrap: nowrap;
  align-items: stretch;
  height: 38px;
}
.sh-anexo-form .custom-select,
.sh-anexo-form .custom-file,
.sh-anexo-form .custom-file-input,
.sh-anexo-form .custom-file-label,
.sh-anexo-form .input-group-append,
.sh-anexo-form .input-group-append .btn {
  height: 38px !important;
  min-height: 38px !important;
  box-sizing: border-box;
}
.sh-anexo-form .custom-select {
  flex: 0 0 7.5rem;
  max-width: 7.5rem;
  width: 7.5rem;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 36px;
}
.sh-anexo-form .custom-file {
  flex: 1 1 auto;
  min-width: 0;
}
.sh-anexo-form .custom-file-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 36px;
}
.sh-anexo-form .custom-file-label::after {
  height: 36px !important;
  line-height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  top: 0;
  bottom: 0;
}
.sh-anexo-form .input-group-append,
.sh-anexo-form .input-group-append .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.sh-anexo-form .input-group-append .btn {
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

a.info-box {
  color: inherit;
  text-decoration: none;
}
a.info-box:hover {
  color: inherit;
}

@media (max-width: 767.98px) {
  .sh-trato-table thead {
    display: none;
  }
  .sh-trato-table tr {
    display: block;
    border-bottom: 1px solid #e6eeed;
    padding: .75rem 1rem;
  }
  .sh-trato-table td {
    display: block;
    border: 0 !important;
    padding: .25rem 0 !important;
    white-space: normal;
  }
  .sh-trato-table td[data-label]:before {
    content: attr(data-label);
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #718096;
  }
  .sh-trato-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    width: 100%;
    margin-top: .35rem;
  }
  .sh-trato-actions input.form-control {
    flex: 1 1 120px;
    width: auto !important;
    min-height: 40px;
  }
  .sh-trato-actions .btn {
    min-height: 40px;
    padding: .45rem 1rem;
  }
}

/* ---- Open-WA + não lidas (header) ---- */
.sh-ow-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.sh-ow-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #adb5bd;
  box-shadow: 0 0 0 2px #fff;
  flex: 0 0 10px;
}
.sh-ow-wa { font-size: 1.2rem; color: #25d366; line-height: 1; }
#sh-ow-monitor[data-agg="down"] .sh-ow-wa,
#sh-ow-monitor[data-agg="deaf"] .sh-ow-wa { color: #6c757d; }
#sh-ow-monitor[data-agg="degraded"] .sh-ow-wa { color: #c9a227; }
.sh-ow-drop { min-width: 320px; max-width: 360px; }
.sh-ow-row { display: flex; align-items: center; gap: .45rem; padding: .2rem 0; font-size: .85rem; }
.sh-ow-unread-list { max-height: 340px; overflow-y: auto; }
.sh-ow-msg { white-space: normal; }
.sh-ow-msg-preview {
  font-size: .82rem;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

/* ---- Chat WhatsApp ---- */
.content:has(#sh-chat) { padding-left: 0; padding-right: 0; }
.content-wrapper:has(#sh-chat) .content-header { display: none; }
.sh-chat {
  display: flex;
  height: calc(100vh - 120px);
  min-height: 420px;
  background: #e5ddd5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 82, 78, .08);
}
.sh-chat-list {
  width: 320px;
  max-width: 40%;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #dee2e6;
}
.sh-chat-list-head { padding: .75rem .85rem; border-bottom: 1px solid #f0f0f0; }
.sh-chat-list-body { overflow-y: auto; flex: 1; }
.sh-chat-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .7rem .9rem;
  border-bottom: 1px solid #f4f4f4;
  cursor: pointer;
}
.sh-chat-item:hover { background: #f4faf8; }
.sh-chat-item.is-active { background: #d9efe9; }
.sh-chat-item-name { font-weight: 700; color: #14524e; }
.sh-chat-item-preview {
  font-size: .8rem;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-chat-item-meta { font-size: .7rem; color: #adb5bd; }
.sh-chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sh-chat-main-head {
  background: #1d6f6a;
  color: #fff;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.sh-chat-head-actions { display: flex; gap: .3rem; flex-shrink: 0; }
.sh-chat-head-actions .btn { width: 34px; height: 34px; padding: 0; }
.sh-chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.sh-chat-body .sh-chat-thread { flex: 1; min-width: 0; overflow-y: auto; }
.sh-chat-panel {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-left: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sh-chat-panel[hidden] { display: none !important; }
.sh-chat-doc {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .4rem;
  padding: .45rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.sh-chat-doc .btn { flex-shrink: 0; }
.sh-chat-panel-head {
  background: #14524e;
  color: #fff;
  padding: .55rem .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sh-chat-panel-body { overflow-y: auto; padding: .8rem; font-size: .88rem; flex: 1; }
.sh-chat-panel dt { font-size: .72rem; color: #6c757d; margin-top: .45rem; }
.sh-chat-panel dd { margin: 0; }
.sh-chat-rec { background: #dc3545 !important; color: #fff !important; }
.sh-chat-main-head h6 { color: #fff; }
.sh-chat-main-head .text-muted { color: rgba(255,255,255,.75) !important; }
.sh-chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="2" cy="2" r="1" fill="%23d4ccc4"/></svg>');
}
.sh-bubble {
  max-width: 72%;
  padding: .45rem .7rem;
  border-radius: 8px;
  margin-bottom: .45rem;
  box-shadow: 0 1px 1px rgba(0,0,0,.06);
}
.sh-bubble-in { background: #fff; margin-right: auto; }
.sh-bubble-out { background: #dcf8c6; margin-left: auto; }
.sh-bubble-text { white-space: pre-wrap; word-break: break-word; }
.sh-bubble-time { font-size: .68rem; color: #6c757d; text-align: right; }
.sh-chat-send {
  display: flex;
  gap: .5rem;
  padding: .6rem;
  background: #f0f0f0;
}
.sh-chat-send textarea { resize: none; }
@media (max-width: 767px) {
  .sh-chat { height: calc(100vh - 100px); }
  .sh-chat-list { width: 100%; max-width: 100%; }
  .sh-chat.has-open .sh-chat-list { display: none; }
}

.sh-perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem 1rem;
}
.sh-perm-group {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: .35rem;
  padding: .6rem .75rem;
}
.sh-perm-group-title {
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .35rem;
}
.sh-perm-group .form-check { margin-bottom: .2rem; }
.sh-perm-matrix {
  font-size: .88rem;
  background: #fff;
}
.sh-perm-matrix thead th {
  background: #1d6f6a;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  border-color: #175e5a;
}
.sh-perm-matrix thead th:first-child { text-align: left; }
.sh-perm-matrix td { vertical-align: middle; }
.sh-perm-matrix .sh-perm-head td {
  background: #e8f3f2;
  color: #1d6f6a;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.sh-perm-matrix .sh-switch { justify-content: center; gap: 0; }
.sh-switch input:disabled + .sh-switch-slider {
  opacity: .42;
  cursor: not-allowed;
}

.sh-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.sh-mapa-canvas {
  width: 100%;
  background: #14524e;
  border-radius: 8px;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid #d5e2e0;
}
.sh-mapa-canvas svg {
  width: 100%;
  height: auto;
  min-height: 420px;
  display: block;
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 8% 12.8%;
}
.sh-mapa-canvas-vivo svg { cursor: pointer; }
.sh-mapa-el.is-sel { filter: drop-shadow(0 0 1.5px #f6e05e); }
.sh-mapa-tool.active {
  background: #1d6f6a !important;
  color: #fff !important;
  border-color: #1d6f6a !important;
}
.sh-cam-shot {
  background: #14524e;
  max-height: 280px;
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.sh-cam-thumb {
  max-height: 48px;
  background: #14524e;
  border-radius: 6px;
}
.sh-modal {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(20, 82, 78, .16);
}
.sh-modal .modal-header {
  background: #ebf8ff;
  color: #2b6cb0;
  border: 0;
  align-items: center;
}
.sh-modal .modal-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  font-size: 1rem;
}
.sh-modal .modal-title .sh-ico { background: #2b6cb0; }

/* ---- Webmail ---- */
.content-wrapper:has(#sh-webmail) .content-header { display: none; }
.sh-webmail {
  display: flex;
  gap: .75rem;
  height: calc(100vh - 170px);
  min-height: 420px;
  align-items: stretch;
}
.sh-webmail > .card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sh-wm-pastas { width: 210px; flex-shrink: 0; }
.sh-wm-lista { width: 340px; flex-shrink: 0; }
.sh-wm-leitura { flex: 1; min-width: 0; }
.sh-wm-pastas .card-body,
.sh-wm-lista .card-body,
.sh-wm-leitura .card-body { overflow: auto; flex: 1; }
.sh-wm-pasta {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  border: 0 !important;
}
.sh-wm-pasta.active { background: #d9efe9; color: #14524e; font-weight: 700; }
.sh-wm-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #eef3f2;
  background: #fff;
  padding: .65rem .85rem;
}
.sh-wm-item:hover { background: #f4faf8; }
.sh-wm-item.is-active { background: #d9efe9; }
.sh-wm-item.is-unread .sh-wm-item-from { font-weight: 700; color: #14524e; }
.sh-wm-item-from { font-size: .85rem; color: #14524e; }
.sh-wm-item-sub { font-size: .8rem; }
.sh-wm-item-snip { font-size: .75rem; color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-wm-dock {
  position: fixed;
  right: 24px;
  bottom: 0;
  width: 480px;
  max-width: 96vw;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 22px rgba(20, 82, 78, .16);
  z-index: 1040;
  padding: 0 .85rem .85rem;
}
.sh-wm-dock-head {
  background: #1d6f6a;
  color: #fff;
  margin: 0 -.85rem .75rem;
  padding: .6rem .85rem;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sh-vitrine-page { background: #eef3f2; }
.sh-vitrine-logo { max-height: 72px; }
.sh-vitrine-foto { height: 160px; object-fit: cover; }

@media (max-width: 991px) {
  .sh-webmail { flex-direction: column; height: auto; }
  .sh-wm-pastas, .sh-wm-lista { width: 100%; }
}

/* Sidebar: scroll interno fixo (layout-fixed) + treeview estável */
body.layout-fixed .main-sidebar .sidebar {
  overflow-y: auto !important;
  overflow-x: hidden;
  scroll-behavior: auto;
  overscroll-behavior: contain;
  height: calc(100vh - (3.5rem + 1px));
}
.main-sidebar .nav-treeview {
  display: none;
}
.main-sidebar .nav-item.menu-open > .nav-treeview {
  display: block;
}

/* ——— Relatórios (tela + impressão) ——— */
.sh-report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--sh-teal, #1d6f6a);
}
.sh-report-brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.sh-report-logo { max-height: 52px; max-width: 120px; object-fit: contain; }
.sh-report-logo-fallback {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--sh-teal, #1d6f6a); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.sh-report-product { font-size: 1.15rem; font-weight: 700; color: #1a202c; line-height: 1.2; }
.sh-report-centro { font-size: 0.85rem; color: #4a5568; }
.sh-report-meta { text-align: right; }
.sh-report-title { font-size: 1.2rem; font-weight: 700; color: #1a202c; }
.sh-report-sub, .sh-report-date { font-size: 0.85rem; color: #718096; }
.sh-report-table { font-size: 0.875rem; margin-bottom: 0; }
.sh-report-table thead th {
  background: #f0f7f6;
  color: #14524e;
  border-bottom-width: 2px;
  white-space: nowrap;
  vertical-align: bottom;
  font-weight: 600;
}
.sh-report-table td, .sh-report-table th { padding: 0.45rem 0.55rem; vertical-align: middle; }
.sh-report-chart-wrap { height: 240px; position: relative; }
.sh-report-nota { margin-top: 0.75rem; font-size: 0.8rem; color: #718096; }
.sh-report-foot {
  margin-top: 1.25rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #a0aec0;
}
.sh-report-kpi .info-box-number { font-size: 1.05rem; word-break: break-word; }

@media print {
  @page { margin: 10mm 12mm; size: A4 landscape; }
  html, body {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .sh-print-hide, .main-header, .main-sidebar, .main-footer, .content-header,
  .sh-form-actions, .navbar, .breadcrumb, .alert, .sh-report-filters,
  .control-sidebar, .preloader {
    display: none !important;
  }
  .wrapper, .content-wrapper, .content, .container-fluid, .content-wrapper > .content {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  body.sidebar-mini .content-wrapper,
  body.sidebar-mini.sidebar-collapse .content-wrapper,
  body.sidebar-open .content-wrapper {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  .sh-print-page {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    page-break-inside: auto;
  }
  .sh-print-page.card, .sh-report-chart-card.card {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  .sh-print-page .card-body { padding: 0 !important; overflow: visible !important; }
  .sh-report-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 8mm !important;
    padding-bottom: 4mm !important;
    border-bottom: 2px solid #14524e !important;
  }
  .sh-report-logo { max-height: 40px !important; max-width: 100px !important; }
  .sh-report-table-wrap, .table-responsive {
    overflow: visible !important;
    max-width: 100% !important;
  }
  .sh-report-table {
    font-size: 8.5pt !important;
    width: 100% !important;
    table-layout: auto !important;
  }
  .sh-report-table th, .sh-report-table td {
    padding: 2mm 1.5mm !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }
  .sh-report-table thead { display: table-header-group; }
  .sh-report-table tr { break-inside: avoid; page-break-inside: avoid; }
  .sh-report-foot { break-inside: avoid; }
  a[href]::after { content: none !important; }
}
