/* Complementos do clone */
body { background: #f3f3f4; }
body { --hvs-sidebar-limit: 224px; --hvs-sidebar-width: var(--hvs-sidebar-limit); }
body.hvs-sidebar-compact { --hvs-sidebar-width: 58px; }
#page-header .navbar-brand { color: #2c3e50; font-weight: 600; }
#page-header .navbar-top-links li a { color: #41B5AD; }
#breadcrumbs ol.breadcrumb { margin: 0; background: transparent; padding: 15px 0 0 16px; }
#breadcrumbs .breadcrumb > li { color: #52626d; }
#breadcrumbs .breadcrumb > li + li:before { content: "/ "; color: #bbb; }
#content { padding: 0 15px 40px; }
#page-wrapper { min-height: calc(100vh - 52px); margin-top: 51px; }
#hvs-sidebar {
  position: fixed;
  inset: var(--hvs-header-bottom, 51px) auto 0 0;
  z-index: 1020;
  display: flex;
  flex-direction: column;
  width: var(--hvs-sidebar-width);
  max-width: var(--hvs-sidebar-limit);
  overflow: hidden;
  color: #edf4f5;
  background: #192a34;
  border-right: 1px solid #30434d;
}
#hvs-sidebar[hidden], #mobile-sidebar-toggle { display: none; }
#sidebar-toggle, #mobile-sidebar-toggle {
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
}
#sidebar-toggle {
  display: inline-flex;
  flex: 0 0 34px;
  align-self: flex-end;
  margin: 10px 10px 2px;
  background: #253d48;
  border: 1px solid #49626e;
  color: #e4f2f4;
}
#sidebar-toggle:disabled { opacity: .55; cursor: default; }
#sidebar-links a:hover, #sidebar-links summary:hover, .sidebar-logout:hover { background: #2a424c; }
#hvs-sidebar :focus-visible, #mobile-sidebar-toggle:focus-visible { outline: 2px solid #70d7c5; outline-offset: -2px; }
#sidebar-links { flex: 1; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
#sidebar-links a, #sidebar-links summary, .sidebar-group-title, .sidebar-logout, .sidebar-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 10px;
  color: inherit;
  border-radius: 6px;
}
#sidebar-links [hidden] { display: none !important; }
.sidebar-main, .sidebar-admin, .sidebar-account { padding: 6px 8px; }
.sidebar-footer { margin-top: auto; }
.sidebar-account { border-top: 1px solid #3a4a54; }
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 10px 2px;
  padding: 0 8px;
  border: 1px solid #49626e;
  border-radius: 6px;
  background: #14252e;
  color: #d1e1e6;
}
.sidebar-search input {
  width: 100%;
  min-width: 0;
  height: 34px;
  background: transparent;
  border: 0;
  color: #edf4f5;
  font-weight: 400;
}
.sidebar-search input::placeholder { color: #a9bdc5; }
.sidebar-empty { margin: 6px 12px; color: #c1d3da; font-size: 12px; }
#sidebar-links summary { cursor: pointer; list-style: none; }
#sidebar-links summary::-webkit-details-marker { display: none; }
.sidebar-chevron { margin-left: auto; }
.sidebar-admin-badge {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 4px;
  background: #e0f1ed;
  color: #214941;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}
.sidebar-admin-badge + .sidebar-chevron { margin-left: 0; }
.sidebar-branch[open] .sidebar-chevron { transform: rotate(90deg); }
.sidebar-children { margin-left: 16px; padding-left: 5px; border-left: 1px solid #49626e; }
.sidebar-themes {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  margin: 8px;
  padding: 3px;
  background: #223843;
  border: 1px solid #49626e;
  border-radius: 7px;
}
.sidebar-themes button {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 28px;
  padding: 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #d8e7eb;
  font-size: 12px;
}
.sidebar-themes button[aria-pressed="true"] { color: #14252e; background: #c8e8e0; font-weight: 600; }
.sidebar-logout { width: 100%; border: 0; background: transparent; text-align: left; }
#sidebar-links a[aria-current="page"] { background: #284a53; color: #b6f2e4; }
#sidebar-links i { flex: 0 0 16px; text-align: center; }
#sidebar-links span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-identity { margin-top: 6px; background: #253842; }
.sidebar-identity i { font-size: 16px; }
@media (min-width: 768px) {
  #page-header .navbar-header { width: var(--hvs-sidebar-limit); border-right: 1px solid #d6dce0; }
  body.md-skin.has-hvs-sidebar #wrapper #page-wrapper { margin-left: var(--hvs-sidebar-width); }
  body.hvs-sidebar-compact #sidebar-links span {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
  }
  body.hvs-sidebar-compact #sidebar-toggle { align-self: center; margin-inline: 0; }
  body.hvs-sidebar-compact #sidebar-toggle i { transform: rotate(180deg); }
  body.hvs-sidebar-compact #sidebar-links :is(a, summary, .sidebar-logout, .sidebar-identity) { justify-content: center; }
  body.hvs-sidebar-compact :is(.sidebar-search, .sidebar-chevron) { display: none; }
  body.hvs-sidebar-compact .sidebar-children { margin-left: 0; padding-left: 0; border-left: 0; }
  body.hvs-sidebar-compact .sidebar-themes { margin-inline: 3px; padding: 2px; }
}
@media (max-width: 767px) {
  #hvs-sidebar { display: none; width: min(var(--hvs-sidebar-limit), 100vw); }
  #hvs-sidebar.is-open:not([hidden]) { display: flex; }
  #sidebar-toggle { display: none; }
  #mobile-sidebar-toggle:not([hidden]) { display: inline-flex; float: left; margin: 7px 0 0 5px; color: #134650; }
  body.has-hvs-sidebar #page-header .navbar-toggle { display: none; }
}
@media print {
  #hvs-sidebar, #mobile-sidebar-toggle { display: none !important; }
  body.md-skin.has-hvs-sidebar #wrapper #page-wrapper { margin-left: 0; }
}
.page-actions { min-height: 34px; margin-bottom: 12px; }
.page-actions .btn { margin-left: 4px; }
#content .report-actions {
  display: flex;
  position: static;
  justify-content: flex-end;
  height: auto;
}
#content .report-actions > .pull-right { display: flex; flex-wrap: wrap; gap: 6px; height: auto; }
#content .report-actions .btn { margin: 0; }
.wrapper-content > .container:has(> #content > .clinical-layout) { max-width: none; padding-inline: 0; }
#content:has(> .clinical-layout) { padding: 12px clamp(12px, 1vw, 20px) 40px; }
.clinical-layout .row > [class*="col-"], .board-main, .board-side { min-width: 0; }
#page-wrapper:has(> .wrapper-content > .container > #content > .case-layout),
#page-wrapper > .wrapper-content:has(> .container > #content > .case-layout) { padding-inline: 0; }
#page-wrapper > .wrapper-content > .container:has(> #content > .case-layout) { width: 100%; max-width: none; margin: 0; }
#content:has(> .case-layout) { padding-inline: 16px; }
.case-overview, .case-body, .case-details { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.case-overview > div, .case-body > div, .case-details > div { min-width: 0; }
.case-warning, .case-chart-column > .ibox { margin-bottom: 0; }
.case-layout [data-case-panel][hidden] { display: none; }
.case-view-switch { display: flex; gap: 6px; margin-block: 8px 16px; }
.case-clinical-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.case-evolution-form { margin-bottom: 12px; }
.case-evolution-list time { margin-inline-start: 5px; white-space: nowrap; }
.case-notes-panel form + form { margin-top: 14px; }
.case-history-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.case-history-actions .btn { margin: 0; }
.case-weight-entry > summary { cursor: pointer; }
.case-weight-entry > summary > .fa { margin-inline: 4px; }
@media (min-width: 992px) {
  .case-overview { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .case-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.board-layout {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(0, 3.35fr);
  grid-template-areas: "side main";
  gap: 16px;
  align-items: start;
}
.board-main { grid-area: main; }
.board-side { grid-area: side; }
.clinical-panel > .ibox-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 15px; }
.clinical-panel > .ibox-title h5 { float: none; margin: 0; }
.clinical-panel > .ibox-title .ibox-tools { position: static; display: block; flex: 1 1 auto; min-width: 0; }
.case-toolbar, .board-actions > .nav-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px; margin: 0; }
.case-toolbar .btn, .board-actions .nav-tabs > li > a { margin: 0; padding: 6px 8px; white-space: normal; text-align: left; }
.board-actions > .nav-tabs { border-bottom: 0; }
.board-actions > .nav-tabs::before, .board-actions > .nav-tabs::after { display: none; }
.board-actions > .nav-tabs > li { float: none; margin: 0; }
.board-actions > .nav-tabs > li.active > a { border-bottom-color: #ddd; border-radius: 4px; }
.clinical-form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.board-period-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.board-hour-controls { display: flex; align-items: center; gap: 4px; }
.board-period-controls .form-control, .board-period-controls .btn { height: 34px; margin: 0; }
#board-date { width: 142px; }
#hourWindowSelect { width: 70px; }
#vetSelect { width: min(220px, 100%); }
.board-grid-scroll { max-width: 100%; overflow-x: auto; }
.board-grid-scroll .fc-view { overflow: visible; }
.board-grid-scroll .internments-table {
  --board-patient-width: 214px;
  table-layout: fixed;
  min-width: calc(var(--board-patient-width) + var(--board-hour-count) * 48px + 40px);
}
.board-grid-scroll .internments-table tr > :first-child { width: var(--board-patient-width); }
.board-grid-scroll .internments-table th.board-hour-heading { width: auto; white-space: nowrap; }
.board-grid-scroll .internments-table th.board-action-heading { width: 40px; }
.board-grid-scroll .internments-table .board-species-heading > th,
.clinic-species-heading {
  padding: 7px 10px;
  text-align: left;
  color: #234e44;
  background: #dceee9;
}
.board-grid-scroll .internments-table .board-species-heading > th { width: auto; }
.clinic-species-heading { margin: 0; font-size: 13px; }
.clinic-species-list > .list-group { margin-bottom: 0; }
.clinic-released-list { max-height: 420px; overflow-y: auto; margin-bottom: 0; }
.clinic-released-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.clinic-released-list .list-group-item { overflow-wrap: anywhere; }
.clinic-released-tutor { margin-top: 6px; }
.daily-messages-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 12px; }
.daily-messages-nav input { flex: 0 1 134px; width: 134px; min-width: 0; }
.daily-messages-list { max-height: 60vh; overflow-y: auto; }
.daily-messages-board .daily-messages-list { max-height: 260px; }
.daily-messages-dashboard .daily-messages-list { height: clamp(440px, 56vh, 720px); max-height: none; }
.daily-message-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 8px; }
.daily-message-actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.daily-message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.admission-navigation, .admission-steps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admission-navigation { margin-bottom: 14px; }
.directory-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-bottom: 16px; }
.directory-filters label { display: block; margin: 0; }
.directory-filters label[hidden] { display: none; }
.directory-filters label:first-child { flex: 1 1 220px; }
.directory-filters input, .directory-filters select { margin-top: 4px; }
.directory-period, .directory-filter-error { flex-basis: 100%; }
.directory-period:empty { display: none; }
.admission-condition legend { width: auto; margin: 0 0 5px; padding: 0; border: 0; color: inherit; font: inherit; font-weight: 700; }
.admission-condition-options { display: flex; flex-wrap: wrap; gap: 6px; }
.admission-condition-option { margin: 0; cursor: pointer; }
.admission-condition-option span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid transparent; border-radius: 4px; }
.admission-condition-option input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 2px; }
.admission-condition-option input:checked + span { border-color: currentColor; }
.admission-condition-option .admission-heart-selected,
.admission-condition-option input:checked + span .admission-heart-empty { display: none; }
.admission-condition-option input:checked + span .admission-heart-selected { display: inline-block; }
.admission-sex legend { width: auto; margin: 0 0 5px; padding: 0; border: 0; color: inherit; font: inherit; font-weight: 700; }
.admission-sex-options { display: flex; flex-wrap: wrap; gap: 8px; }
.admission-sex-options label { margin: 0; cursor: pointer; }
.admission-sex-options span { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border: 1px solid currentColor; border-radius: 20px; }
.admission-sex-options input:checked + span { color: #fff; background: #134650; border-color: #134650; }
.admission-sex-options input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 2px; }
body.dark .admission-sex-options input:checked + span { color: #134650; background: #a7e5db; border-color: #a7e5db; }
.clinic-schedule {
  --calendar-line: #dce4e7;
  --calendar-weekend: #f1f6f7;
  --calendar-heading: #f6f8f9;
  --calendar-muted: #617580;
  --calendar-today: #147367;
  --calendar-holiday: #8b431b;
  --calendar-state-holiday: #594088;
}
.schedule-toolbar, .schedule-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.schedule-toolbar { justify-content: space-between; margin-bottom: 14px; }
.schedule-controls input { width: auto; max-width: 100%; }
.schedule-views [aria-pressed="true"] { background: #134650; color: #fff; border-color: #134650; }
.schedule-period { margin: 0 0 10px; text-transform: capitalize; }
.schedule-scroll { overflow-x: auto; }
.schedule-grid { width: 100%; min-width: 790px; table-layout: fixed; border-collapse: collapse; }
.schedule-grid th, .schedule-grid td { border: 1px solid var(--calendar-line); padding: 8px; }
.schedule-grid th { text-align: center; background: var(--calendar-heading); }
.schedule-grid td { height: 80px; vertical-align: top; }
.schedule-grid.schedule-weekly td { height: 145px; }
.schedule-grid .schedule-weekend { background: var(--calendar-weekend); }
.schedule-grid td.schedule-adjacent { color: var(--calendar-muted); }
.schedule-grid .schedule-today { box-shadow: inset 0 0 0 2px var(--calendar-today); }
.schedule-grid time { font-weight: 600; }
.schedule-grid .schedule-today time { color: var(--calendar-today); }
.schedule-holiday { margin: 3px 0; overflow-wrap: anywhere; color: var(--calendar-holiday); font-size: 11px; line-height: 1.25; }
.schedule-holiday[data-scope="São Paulo"] { color: var(--calendar-state-holiday); }
.schedule-holiday small { margin-left: 4px; }
.schedule-shifts { display: grid; gap: 4px; list-style: none; margin: 6px 0 0; padding: 0; }
.schedule-shift { color: var(--shift-text); background: var(--shift-bg); border-radius: 4px; border-inline-start: 3px solid currentColor; padding: 3px 5px; font-size: 11px; line-height: 1.25; overflow-wrap: anywhere; }
.schedule-shift-hours { display: block; font-variant-numeric: tabular-nums; }
.schedule-shift[data-shift-color="clinic"] { --shift-text: #18614f; --shift-bg: #e4f2eb; }
.schedule-shift[data-shift-color="day"] { --shift-text: #135b86; --shift-bg: #e4f0fa; }
.schedule-shift[data-shift-color="night"] { --shift-text: #613a86; --shift-bg: #f1eafa; }
.schedule-shift[data-shift-color="intern"] { --shift-text: #81490c; --shift-bg: #fff1d8; }
body.dark .schedule-shift[data-shift-color="clinic"] { --shift-text: #a8e6cf; --shift-bg: #243e34; }
body.dark .schedule-shift[data-shift-color="day"] { --shift-text: #acdafa; --shift-bg: #203c50; }
body.dark .schedule-shift[data-shift-color="night"] { --shift-text: #e3c9ff; --shift-bg: #3c3050; }
body.dark .schedule-shift[data-shift-color="intern"] { --shift-text: #ffdaa2; --shift-bg: #4a3925; }
.case-condition { position: relative; }
.case-condition summary { cursor: pointer; list-style: none; font-size: 16px; }
.case-condition summary::-webkit-details-marker { display: none; }
.case-condition-options { position: absolute; z-index: 2; right: 0; white-space: nowrap; margin-top: 4px; padding: 4px; }
.case-condition-options button { text-align: left; display: block; width: 100%; }
.report-date-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.report-date-controls input { width: auto; }
.report-date-controls label { margin: 0; }
body.dark .clinic-schedule {
  --calendar-line: #3b525d;
  --calendar-weekend: #293e48;
  --calendar-heading: #23343d;
  --calendar-muted: #abc0cb;
  --calendar-today: #8cdbcc;
  --calendar-holiday: #ffc69f;
  --calendar-state-holiday: #d5baf5;
}
body.dark .schedule-views [aria-pressed="true"] { background: #a7e5db; color: #173a42; border-color: #a7e5db; }
body.dark .board-grid-scroll .internments-table .board-species-heading > th,
body.dark .clinic-species-heading {
  color: #d5eee9;
  background: #294a48;
}
.board-patient { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.board-patient-avatar { width: 32px; height: 32px; flex: 0 0 32px; object-fit: cover; border-radius: 5px; }
.board-patient-details { min-width: 0; }
.board-patient-name { display: block; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.board-patient-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 3px; }
.board-patient-meta:empty { display: none; }
@media (max-width: 991px) {
  .board-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side"; gap: 0; }
}
@media (max-width: 767px) {
  .clinical-layout .ibox, .clinical-layout .ibox-content.slim { margin-inline: 0; }
  #page-wrapper .case-layout .ibox { margin-inline: 0; }
  .clinical-panel > .ibox-title .ibox-tools { flex-basis: 100%; }
  .case-toolbar, .board-actions > .nav-tabs { justify-content: flex-start; }
}
#login { padding-top: 40px; }
#login .ibox { max-width: 480px; margin: 0 auto; }
.hvs-mark { display: inline-grid; place-items: center; padding: 4px 7px; border-radius: 6px; background: #134650; color: #fff; font: 800 12px/1.2 system-ui, sans-serif; letter-spacing: .07em; vertical-align: middle; }
.hvs-mark.login-logo { display: grid; width: 78px; height: 54px; margin: 0 auto 10px; font-size: 23px; border-radius: 12px; }
.clinic-hvs-brand { margin: 12px 0 24px; color: #2c3e50; }
.clinic-hvs-brand h2 { margin: 0; }
.clinic-hvs-brand .hvs-mark { font-size: 15px; margin-right: 3px; }
body.dark .clinic-hvs-brand { color: #e1edf1; }
.animal-card, .person-card { margin: 10px auto; }
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.people-grid .person-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #dce5e8;
  border-radius: 7px;
  background: #fff;
  color: #283d48;
}
.person-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 8px;
  background: #e8f1f3;
  color: #315b66;
  font-size: 18px;
}
.person-card-details { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.person-card-details small { color: #546873; }
.people-grid .person-card:hover, .people-grid .person-card:focus-visible { border-color: #5ca79b; }
body.dark .people-grid .person-card { background: #1d303a; border-color: #48616e; color: #dfedf1; }
body.dark .person-card-details small { color: #afc2cb; }
@media (max-width: 767px) { .people-grid { grid-template-columns: minmax(0, 1fr); } }

.history-day-control { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.history-day-control label { margin: 0 4px 0 0; }
.history-day-control select { width: auto; max-width: 100%; min-width: 0; }
.history-day-single { margin-bottom: 12px; }
.history-day-single time { margin-left: 6px; }
.history-table-scroll { max-width: 100%; overflow-x: auto; }
.history-grade-table { table-layout: fixed; min-width: 1120px; margin-bottom: 0; }
.history-grade-table :is(th, td) { text-align: center; vertical-align: middle !important; }
.history-grade-table :is(thead, tbody) th:first-child {
  position: sticky;
  left: 0;
  width: 224px;
  padding-inline: 10px;
  text-align: left;
  white-space: pre-line;
  overflow-wrap: anywhere;
  box-shadow: 1px 0 #dae2e5;
  background: #fff;
}
.history-grade-table thead th:first-child { background: #f3f5f6; z-index: 1; }
.history-grade-table td { padding-inline: 3px !important; overflow-wrap: anywhere; }
.history-grade-mark { font-size: 12px; color: #52677a; }
.history-grade-mark[data-state="completed"] { color: #08785c; }
.history-grade-mark:is([data-state="excluded"], [data-state="removed"]) { color: #a53238; }
.history-cell-text { display: block; font-size: 11px; line-height: 1.25; }
.history-report-table { margin-bottom: 12px; }
.history-report-table th, .history-report-table td { white-space: pre-line; overflow-wrap: anywhere; }
.history-report-table :is(th, td):first-child { width: 32%; }
.history-report-table :is(th, td):only-child { width: auto; }
.history-archive-text { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.55; }
body.dark .history-grade-table :is(thead, tbody) th:first-child { background: #263c48; box-shadow: 1px 0 #48616e; }
body.dark .history-grade-mark { color: #b0c4cf; }
body.dark .history-grade-mark[data-state="completed"] { color: #79dfb9; }
body.dark .history-grade-mark:is([data-state="excluded"], [data-state="removed"]) { color: #ffa0a7; }
@media (max-width: 767px) {
  .history-grade-table :is(thead, tbody) th:first-child { width: 170px; }
  .history-day-control label { flex-basis: 100%; }
}
.c-clinic-node { list-style: none; padding: 0; }
.c-clinic-node li { display: flex; align-items: center; gap: 8px; padding: 2px 6px; }
.c-clinic-node li img { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table > tbody > tr > td { vertical-align: middle; }
.ibox-content .table { margin-bottom: 0; }
.client-avatar img, .animal-avatar img { width: 32px; height: 32px; object-fit: cover; border-radius: 5px; cursor: pointer; }
.animal-avatar img { width: 40px; height: 40px; }
.timeline-item .content h3 { margin-top: 0; }
.pet-event { display: block; margin: 2px 0; }
.current-hour .internments-table td, .current-hour .internments-table th { width: 20%; }
.internments-table th:last-child { display: table-cell; }
.internments-table th:first-child { width: 17%; }
.internments-table th:last-child { width: 6%; }
#table24 th:first-child { width: 26%; }
#table24 th { width: 3%; }
#table24 tbody tr td { padding: 1px; text-align: center; }
#table24 tbody tr td:first-child { text-align: left; padding: 0 6px; }
#table24 .pet-event { font-size: 11px; margin: 1px auto 0; }
#table24 .no-task { background: #f5f5f5; border-radius: 0; }
.pet-event.btn-primary { opacity: .75; }
.pet-event.btn-info { background: #b6b6b6; border-color: #b6b6b6; }
.action-status-1 { background-color: #6BCABA !important; border-color: #6BCABA !important; color: #fff !important; }
.tv { background: #fff; }
.tv-clock { position: fixed; right: 20px; bottom: 10px; }
.gray-bg { background: #f3f3f4; }
.widget.style1 { color: #fff; border-radius: 4px; }
.widget.style1 .fa { opacity: .7; }
.widget.yellow-bg { background: #f8ac59; }
.widget.blue-bg { background: #1c84c6; }
.widget.green-bg { background: #1ab394; }
.stat-card { border-radius: 6px; color: #fff; padding: 14px; margin-bottom: 14px; }
.clinic-stat-cards { margin-top: 16px; }
.stat-card h1 { font-size: 26px; margin: 0; }
.stat-card .fa { opacity: .5; font-size: 42px; }
.stat-card-patients { background: #176354; }
.stat-card-patients .fa { opacity: 1; }
.nav-tabs > li > a { color: #2c3e50; }
.chart-24 td.cell-hour { min-width: 38px; }
.flash-messages-container { position: fixed; top: 60px; right: 20px; z-index: 3000; width: 340px; }
.flash-messages-container .alert { margin-bottom: 8px; }
.drug-details { font-size: 11px; color: #333; }
.initials-pills > li { display: inline-block; margin: 2px; }
.btn-square { border-radius: 3px; }
.modal-open #wrapper { filter: blur(0); }
.timeline-item .btn-link { padding: 0 4px; }
.hover-menu-item { display: none; }
.hover-menu:hover .hover-menu-item { display: inline; }
.list-group-item { overflow: hidden; }
.text-navy { color: #1ab394; }
.progress-mini { height: 4px; margin-bottom: 0; }
.clinic-reset { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 4000; }
.progress { margin-bottom: 0; }
.report-textarea { width: 100%; height: 70vh; background: #fff; font-family: monospace; font-size: 12px; }
.printable { display: none; }
@media print {
  .not-printable { display: none !important; }
  .printable { display: block; }
}

/* Navbar branca (equivalente a #clinic-nav do original) */
#page-header { background: #fff; min-height: auto; margin-bottom: 12px; box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12); border: 0; }
#page-header .navbar-brand { color: #2c3e50; }
#page-header .navbar-top-links > li > a { padding: 13px 10px; color: #41B5AD; }
#page-header .navbar-top-links > li > a:hover { background: #f3f3f4; color: #1ab394; }
#page-wrapper { background: #f3f3f4; }
.wrapper-content { min-height: calc(100vh - 120px); }
.container { width: auto; max-width: 1300px; }
.white-bg { background: #fff; }
.search-entity { color: #676a6c; }
.widget.style1 { cursor: pointer; }
.widget.style1 h2 { margin: 0 0 4px; font-size: 20px; }
.widget.style1 span { font-size: 12px; }
.navy-bg { background: #1ab394; color: #fff; }
.widget.style1.white-bg { color: #2c3e50; }
.widget.style1.white-bg:hover { background: #f9f9f9; }
.clinic-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.clinic-shortcut {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 56px;
  padding: 8px;
  border: 1px solid #dce5e8;
  border-radius: 7px;
  background: #fff;
  color: #283d48;
}
.clinic-shortcut:hover, .clinic-shortcut:focus-visible {
  background: #eaf5f3;
  border-color: #7dbab1;
  color: #173c43;
}
.clinic-shortcut-icon {
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 5px;
  background: #e8f1f3;
  color: #315b66;
}
.clinic-shortcut-label { min-width: 0; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.clinic-shortcut-overview { grid-column: 1 / -1; background: #134650; border-color: #134650; color: #fff; }
.clinic-shortcut-count { margin-left: auto; padding-right: 4px; }
@media (max-width: 350px) {
  .clinic-shortcuts { grid-template-columns: minmax(0, 1fr); }
}

body.dark { color-scheme: dark; background: #101b22; color: #dce9ee; }
body.dark #page-wrapper { background: #101b22; color: #dce9ee; }
body.dark #page-header { background: #1a2b35; }
body.dark #page-header .navbar-brand, body.dark #breadcrumbs .breadcrumb > li { color: #e1edf1; }
body.dark #page-header .navbar-header { border-color: #344a55; }
body.dark #mobile-sidebar-toggle { color: #a7e5db; }
body.dark :is(.ibox-title, .ibox-content, .white-bg, .list-group-item, .form-control, .modal-content,
  .dropdown-menu, .panel, .well, .table, .table24-wrap, .navbar-collapse) {
  background: #1d303a;
  color: #dce9ee;
  border-color: #3b525d;
}
body.dark :is(.table-striped > tbody > tr:nth-of-type(odd), .table-hover > tbody > tr:hover,
  .search-entity, .nav-tabs > li.active > a, .btn-white) {
  background: #273d48;
  color: #dce9ee;
  border-color: #48616e;
}
body.dark :is(.table > :is(tbody,thead) > tr > :is(td,th), .list-group-item, .nav-tabs, .pagination > li > a) { border-color: #3b525d; }
body.dark :is(.text-muted, .help-block, .search-entity) { color: #afc2cb; }
body.dark :is(.text-primary, a:not(.btn):not(.clinic-shortcut)) { color: #9bddcf; }
body.dark .clinic-shortcut { background: #1d303a; color: #dfedf1; border-color: #3b5663; }
body.dark .clinic-shortcut-icon { background: #304c59; color: #a9dfd8; }
body.dark .clinic-shortcut-overview { background: #225963; }
body.dark .clinic-shortcut:hover { background: #2b4954; }
body.dark #table24 tbody tr.tbody-head th { background: #304b5a; }
@media print {
  body.dark, body.dark #page-wrapper { color-scheme: light; background: #fff; color: #212529; }
}
.steps-nav { margin-bottom: 15px; }
.forum-item { padding: 6px 0; }
#table24 .table-24-td { min-height: 20px; padding: 0 1px; }
#table24 .pet-event { cursor: pointer; border-radius: 2px; min-height: 14px; padding: 0 2px; }
#table24 .pet-event.no-task { background: #f5f5f5; border: 1px solid #eee; }
#table24 tbody tr.tbody-head th { background: #e1eaee; padding: 4px 6px; }
#table24 tbody tr.tbody-head th strong { text-transform: none; }
#table24 .chart-task-label { color: #08785b; }
body.dark #table24 .chart-task-label { color: #7fdfb9; }
.schedule-date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.schedule-date-fields > label { min-width: 0; }
.schedule-date-fields input { min-width: 0; }
.exam-type-field legend {
  border: 0;
  margin: 0 0 6px;
  color: inherit;
  font: inherit;
  font-weight: 600;
}
.exam-type-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 6px 12px;
}
.exam-type-choice {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}
.exam-type-choice input {
  appearance: none;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  border: 1px solid #667982;
  border-radius: 3px;
  margin: 0;
  align-self: flex-start;
  transform: translateY(2px);
  cursor: pointer;
}
.exam-type-choice input:checked { background: #08785b; border-color: #08785b; }
.exam-type-choice input:checked::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  margin: 1px auto;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.exam-type-choice input:focus-visible { outline: 2px solid #258d9b; outline-offset: 2px; }
.exam-description-field { display: block; max-width: 620px; margin: 12px auto 0; }
.action-history { margin-bottom: 14px; }
.action-history-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.action-history-navigation .form-control { width: auto; }
.action-history-navigation .btn { color: #1265a4; }
body.dark .action-history-navigation .btn { color: #8bcaff; }
.action-history [data-no-action-history], .action-history .list-group { margin: 8px 0 0; }
.action-history .list-group-item { white-space: pre-wrap; overflow-wrap: anywhere; }
.monitoring-fields { margin: 0 0 14px; min-width: 0; }
.monitoring-fields > legend {
  margin-bottom: 8px;
  padding-bottom: 4px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
}
.monitoring-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
@media (max-width: 767px) {
  .monitoring-field-grid { grid-template-columns: minmax(0, 1fr); }
}
.monitoring-previous-pills { margin-top: 5px; font-size: 12px; }
.monitoring-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.monitoring-sign-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.monitoring-sign-buttons > button { max-width: 100%; white-space: normal; text-align: left; }
.specialist-field { display: block; }
.specialist-specialty-pills { margin-bottom: 8px; }
.specialist-contact-options { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.specialist-contact-options > label { font-weight: normal; }
.monitoring-value-pills { margin-top: 5px; }
.monitoring-pills > button {
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: normal;
  text-align: left;
}
.monitoring-pills > button[aria-pressed="true"] {
  color: #075f48;
  background: #def1eb;
  border-color: #64a892;
}
body.dark .monitoring-pills > button[aria-pressed="true"] {
  color: #aff3d9;
  background: #214b41;
  border-color: #6aaa96;
}
.modal-header-with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(43%, 260px)) auto;
  align-items: start;
  gap: 10px;
}
.modal-header-with-aside::before, .modal-header-with-aside::after { content: none; }
.modal-header-with-aside > .modal-title { grid-area: 1 / 1; overflow-wrap: anywhere; }
.modal-header-with-aside > .modal-header-aside { grid-area: 1 / 2; min-width: 0; }
.modal-header-with-aside > .close { grid-area: 1 / 3; min-width: 20px; margin: 0; }
@media (max-width: 480px) {
  .schedule-date-fields input { font-size: 12px; padding-inline: 4px; }
}
.chart-grid-scroll { overflow-x: auto; }
#chart24-wrap .days-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#chart24-wrap .chart-date { width: auto; max-width: 100%; }
.chart-grid-scroll .calendar { min-width: 700px; }
.chart24-row-actions a { color: #41B5AD; margin-left: 4px; }
