:root {
  --ds-ink: #0b1f1a;
  --ds-ink-2: #173b32;
  --ds-muted: #6b7b74;
  --ds-soft: #879891;
  --ds-line: #e6ece9;
  --ds-line-strong: #d4dfdb;
  --ds-panel: #ffffff;
  --ds-bg: #f5f8f7;
  --ds-green: #083f32;
  --ds-green-2: #0d5a48;
  --ds-mint: #bff4dc;
  --ds-orange: #ff6b1a;
  --ds-orange-soft: #fff1e8;
  --ds-blue: #407bff;
  --ds-red: #de3651;
  --ds-yellow: #f6b800;
  --ds-shadow: 0 18px 48px rgba(8, 63, 50, 0.08);
  --ds-shadow-soft: 0 8px 26px rgba(8, 63, 50, 0.06);
  --ds-radius: 12px;
}

/* DentiSoft Aurora redesign */
:root {
  --ds-ink: #0f172a;
  --ds-ink-2: #102a43;
  --ds-muted: #64748b;
  --ds-soft: #8aa4b8;
  --ds-line: #dbe7ef;
  --ds-line-strong: #bfd3df;
  --ds-panel: #ffffff;
  --ds-bg: #f4f9fc;
  --ds-green: #102a43;
  --ds-green-2: #0f5e7a;
  --ds-mint: #b9f3ff;
  --ds-orange: #0ea5e9;
  --ds-orange-soft: #e0f7ff;
  --ds-blue: #2563eb;
  --ds-red: #e11d48;
  --ds-yellow: #f59e0b;
  --ds-shadow: 0 22px 55px rgba(15, 42, 67, 0.12);
  --ds-shadow-soft: 0 12px 30px rgba(15, 42, 67, 0.08);
}

body:not(.ds-login-body) {
  background:
    radial-gradient(circle at 82% 8%, rgba(14, 165, 233, 0.12), transparent 34%),
    radial-gradient(circle at 12% 16%, rgba(45, 212, 191, 0.10), transparent 28%),
    linear-gradient(135deg, #f8fcff 0%, #eef8fb 54%, #fffaf6 100%) !important;
  color: var(--ds-ink);
}

#app,
#main,
.page-content {
  background: transparent !important;
}

#sidebar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-right: 1px solid rgba(191, 211, 223, 0.7);
  box-shadow: 16px 0 45px rgba(15, 42, 67, 0.06);
  backdrop-filter: blur(16px);
}

#sidebar .sidebar-wrapper {
  background: transparent !important;
}

#sidebar .sidebar-header img {
  max-height: 42px;
  width: auto;
}

#sidebar .menu .sidebar-link {
  border-radius: 14px;
  color: #516a7b;
  font-weight: 800;
  letter-spacing: 0;
}

#sidebar .menu .sidebar-link i,
#sidebar .menu .sidebar-link svg {
  color: #7b94a5;
}

#sidebar .menu .sidebar-item.active > .sidebar-link,
#sidebar .menu .sidebar-link:hover {
  background: linear-gradient(135deg, #dff7ff 0%, #eefcff 100%) !important;
  color: #075985 !important;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.14);
}

#sidebar .menu .sidebar-item.active > .sidebar-link i,
#sidebar .menu .sidebar-item.active > .sidebar-link svg {
  color: #0ea5e9 !important;
}

.navbar,
.header-navbar {
  background: rgba(255, 255, 255, 0.78) !important;
  border-bottom: 1px solid rgba(191, 211, 223, 0.64);
  backdrop-filter: blur(18px);
}

.burger-btn,
.navbar .nav-link,
.navbar a {
  color: #075985 !important;
}

.avatar,
.avatar img,
.dropdown .avatar {
  border-radius: 16px !important;
}

.card,
.table-responsive,
.dataTable-container,
.ds-card,
.ds-action-list,
.ds-module-card,
.modal-content {
  border: 1px solid rgba(191, 211, 223, 0.76) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: var(--ds-shadow-soft) !important;
}

h1,
h2,
h3,
h4,
h5,
.page-heading h3,
.card-title {
  color: #082f49 !important;
  letter-spacing: 0;
}

.btn {
  border-radius: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.btn-primary,
.btn-success,
.btn-warning,
.buttons-excel,
.ds-command,
.ds-action-list a:first-child {
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%) !important;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.18) !important;
}

.btn-danger,
.buttons-pdf {
  border: 0 !important;
  background: linear-gradient(135deg, #e11d48 0%, #fb7185 100%) !important;
  box-shadow: 0 16px 28px rgba(225, 29, 72, 0.16) !important;
}

.btn-info {
  border: 0 !important;
  background: linear-gradient(135deg, #06b6d4 0%, #38bdf8 100%) !important;
  color: #082f49 !important;
}

.btn-secondary {
  border: 0 !important;
  background: linear-gradient(135deg, #64748b 0%, #334155 100%) !important;
}

.form-control,
.form-select,
.dataTable-selector,
.dataTable-input,
input,
select,
textarea {
  border-color: #cfe0ea !important;
  border-radius: 12px !important;
}

.form-control:focus,
.form-select:focus,
.dataTable-input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.15) !important;
}

.table,
.dataTable-table {
  color: var(--ds-ink);
}

.table thead th,
.dataTable-table thead th {
  background: #eff8fc !important;
  color: #075985 !important;
  border-color: #d8e9f2 !important;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table tbody tr,
.dataTable-table tbody tr {
  background: rgba(255, 255, 255, 0.88) !important;
}

.table tbody tr:nth-child(odd),
.dataTable-table tbody tr:nth-child(odd) {
  background: rgba(239, 248, 252, 0.72) !important;
}

.fc .fc-toolbar-title,
.fc-toolbar-title {
  color: #082f49 !important;
  font-weight: 900;
}

.fc .fc-button-primary {
  background: #102a43 !important;
  border-color: #102a43 !important;
  border-radius: 10px !important;
}

.fc-event,
.fc-daygrid-event {
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%) !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.ds-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(56, 189, 248, 0.26), transparent 30%),
    radial-gradient(circle at 72% 78%, rgba(45, 212, 191, 0.18), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #102a43 54%, #075985 100%) !important;
}

.ds-hero h1 {
  color: #fff !important;
}

.ds-hero p,
.ds-hero .ds-eyebrow {
  color: rgba(236, 254, 255, 0.84) !important;
}

.ds-network {
  background:
    radial-gradient(circle at 50% 45%, rgba(14, 165, 233, 0.16), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #f4fbff 100%) !important;
}

.ds-network-center {
  background: #102a43 !important;
  box-shadow: 0 24px 50px rgba(15, 42, 67, 0.18) !important;
}

.ds-network-node {
  color: #102a43 !important;
}

.ds-network-node i {
  color: #0ea5e9 !important;
}

.ds-login-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(56, 189, 248, 0.30), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(45, 212, 191, 0.18), transparent 28%),
    linear-gradient(135deg, #071827 0%, #0f172a 42%, #082f49 100%) !important;
  color: #ecfeff;
}

.ds-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 520px) 1fr;
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 4.5rem);
}

.ds-login-panel {
  width: 100%;
  max-width: 500px;
}

.ds-login-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.ds-login-brand img {
  width: 174px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(14, 165, 233, 0.18));
}

.ds-login-brand span {
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ds-login-copy {
  margin-bottom: 1.5rem;
}

.ds-login-copy .ds-eyebrow {
  color: #67e8f9;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.ds-login-copy h1 {
  margin: 0.65rem 0;
  color: #fff !important;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  font-weight: 900;
}

.ds-login-copy p {
  max-width: 430px;
  color: #bdd7e8;
  font-size: 1.04rem;
  line-height: 1.7;
}

.ds-login-card {
  padding: 1.25rem;
  border: 1px solid rgba(148, 210, 230, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.ds-login-card label {
  display: block;
  margin: 0.25rem 0 0.45rem;
  color: #dff7ff;
  font-weight: 900;
}

.ds-login-field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding: 0 0.9rem;
  min-height: 54px;
  border: 1px solid rgba(207, 224, 234, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
}

.ds-login-field i {
  color: #0284c7;
  font-size: 1.2rem;
}

.ds-login-field input {
  width: 100%;
  height: 50px;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #0f172a;
  font-weight: 800;
}

.ds-login-card .btn {
  min-height: 54px;
  margin-top: 0.25rem;
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%) !important;
}

.ds-login-alert {
  margin: 0 0 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 14px;
  background: rgba(225, 29, 72, 0.16);
  color: #ffe4e6;
  font-weight: 800;
}

.ds-login-link {
  display: inline-flex;
  margin-top: 1rem;
  color: #a5f3fc;
  font-weight: 900;
}

.ds-login-showcase {
  min-height: min(74vh, 720px);
  border: 1px solid rgba(148, 210, 230, 0.18);
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.25), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 30px 90px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.ds-orbit {
  width: min(540px, 80vw);
  aspect-ratio: 1;
  border: 1px solid rgba(186, 230, 253, 0.28);
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
}

.ds-orbit::before,
.ds-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(186, 230, 253, 0.18);
  border-radius: 999px;
}

.ds-orbit::before {
  inset: 13%;
}

.ds-orbit::after {
  inset: 28%;
}

.ds-orbit img {
  width: 118px;
  height: 118px;
  z-index: 2;
  filter: drop-shadow(0 26px 44px rgba(14, 165, 233, 0.30));
}

.ds-orbit span {
  position: absolute;
  min-width: 122px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(186, 230, 253, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #e0f7ff;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(14px);
}

.ds-orbit span:nth-of-type(1) {
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
}

.ds-orbit span:nth-of-type(2) {
  left: -6%;
  top: 50%;
  transform: translateY(-50%);
}

.ds-orbit span:nth-of-type(3) {
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
}

.ds-orbit span:nth-of-type(4) {
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 991.98px) {
  .ds-login {
    grid-template-columns: 1fr;
    padding: 1.1rem;
  }

  .ds-login-panel {
    max-width: 100%;
  }

  .ds-login-brand {
    margin-bottom: 1.5rem;
  }

  .ds-login-showcase {
    min-height: 360px;
    border-radius: 24px;
  }
}

@media (max-width: 575.98px) {
  .ds-login-copy h1 {
    font-size: 2.35rem;
  }

  .ds-login-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .ds-login-card {
    border-radius: 20px;
    padding: 1rem;
  }

  .ds-login-showcase {
    display: none;
  }
}

* {
  letter-spacing: 0 !important;
}

body {
  background:
    radial-gradient(circle at top right, rgba(255, 107, 26, 0.045), transparent 28rem),
    linear-gradient(180deg, #fbfdfc 0%, #f6faf8 100%);
  color: var(--ds-ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 15px;
}

a {
  color: var(--ds-green-2);
}

.btn {
  min-height: 38px;
  border-radius: 9px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  line-height: 1.1;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--ds-orange) !important;
  border-color: var(--ds-orange) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #eb5b0d !important;
  border-color: #eb5b0d !important;
}

.btn-light-primary {
  background: var(--ds-orange-soft) !important;
  color: var(--ds-orange) !important;
}

.btn-success {
  background: #159463 !important;
  border-color: #159463 !important;
}

.btn-warning {
  background: var(--ds-yellow) !important;
  border-color: var(--ds-yellow) !important;
  color: #3f2f00 !important;
}

.btn-danger {
  background: var(--ds-red) !important;
  border-color: var(--ds-red) !important;
}

.btn-secondary {
  background: #64748b !important;
  border-color: #64748b !important;
}

.card {
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  box-shadow: var(--ds-shadow-soft);
  background: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
}

.card .card-header {
  background: transparent;
}

.form-control,
.form-select,
.dataTable-input {
  min-height: 42px;
  border-radius: 9px;
  border-color: var(--ds-line);
  background-color: #fbfdfc;
}

.form-control:focus,
.form-select:focus,
.dataTable-input:focus {
  border-color: var(--ds-green-2);
  box-shadow: 0 0 0 4px rgba(13, 90, 72, 0.11);
}

.table {
  color: var(--ds-ink);
  margin-bottom: 0;
}

.table thead th,
.dataTable-table thead th {
  color: var(--ds-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  background: #f8fbfa;
  border-bottom-color: var(--ds-line-strong) !important;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  white-space: nowrap;
}

.table td,
.dataTable-table td {
  padding: 0.7rem 0.75rem;
  border-color: #eef3f1;
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.table tbody tr:hover {
  background: #f8fbfa;
}

#sidebar .sidebar-wrapper {
  width: 260px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--ds-line);
  box-shadow: 14px 0 42px rgba(8, 63, 50, 0.04);
}

#main {
  margin-left: 260px;
}

.sidebar-wrapper .sidebar-header {
  padding: 1.3rem 1.35rem 0.65rem;
}

.sidebar-wrapper .sidebar-header .logo a {
  display: inline-flex;
  align-items: center;
}

.ds-logo {
  width: 150px;
  max-width: 100%;
  height: auto;
}

.sidebar-wrapper .menu {
  margin-top: 1rem;
  padding: 0 1rem 1.2rem;
}

.sidebar-wrapper .menu .sidebar-item {
  margin-top: 0.25rem;
}

.sidebar-wrapper .menu .sidebar-link {
  border-radius: 10px;
  color: var(--ds-muted);
  font-size: 0.88rem;
  font-weight: 750;
  padding: 0.68rem 0.8rem;
}

.sidebar-wrapper .menu .sidebar-link i,
.sidebar-wrapper .menu .sidebar-link svg {
  color: #8aa098;
}

.sidebar-wrapper .menu .sidebar-link span {
  margin-left: 0.75rem;
}

.sidebar-wrapper .menu .sidebar-link:hover {
  background: #f3f8f6;
  color: var(--ds-green);
}

.sidebar-wrapper .menu .sidebar-item.active > .sidebar-link,
.sidebar-wrapper .menu .sidebar-item.active > .sidebar-link.has-sub {
  background: var(--ds-orange-soft);
  color: var(--ds-orange);
  box-shadow: none;
}

.sidebar-wrapper .menu .sidebar-item.active .sidebar-link span,
.sidebar-wrapper .menu .sidebar-item.active .sidebar-link i,
.sidebar-wrapper .menu .sidebar-item.active .sidebar-link svg {
  color: var(--ds-orange);
  fill: var(--ds-orange);
}

.sidebar-wrapper .menu .submenu {
  padding-left: 0.6rem;
}

.sidebar-wrapper .menu .submenu .submenu-item a {
  border-left: 2px solid var(--ds-line);
  color: var(--ds-muted);
}

.navbar {
  height: 64px;
  padding: 0.8rem 1.45rem;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--ds-line);
  backdrop-filter: blur(16px);
}

.navbar .user-name h6 {
  color: var(--ds-green) !important;
  font-weight: 900;
}

.avatar img,
.avatar .avatar-content {
  background: var(--ds-orange);
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 26, 0.22);
}

#main #main-content {
  padding: 1.35rem;
}

.page-heading h3,
.section h3 {
  color: var(--ds-ink);
  font-weight: 850;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  margin-bottom: 0.7rem;
}

.badge {
  border-radius: 999px;
  font-weight: 800;
}

.bg-light-success {
  background: #e7fbf0 !important;
  color: #127044 !important;
}

.bg-light-warning {
  background: #fff4dc !important;
  color: #935a00 !important;
}

.bg-light-danger {
  background: #ffe8e6 !important;
  color: #aa2b20 !important;
}

.modal .modal-content {
  border-radius: 14px;
  border: 1px solid var(--ds-line);
  box-shadow: 0 24px 70px rgba(8, 31, 26, 0.22);
}

.modal .modal-header.bg-info,
.modal .modal-header.bg-danger {
  background: var(--ds-green) !important;
}

.footer {
  color: var(--ds-muted);
}

.ds-dashboard {
  display: grid;
  gap: 1.05rem;
}

.ds-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--ds-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 107, 26, 0.08), transparent 16rem),
    #ffffff;
  box-shadow: var(--ds-shadow-soft);
}

.ds-command h1 {
  margin: 0.25rem 0 0.2rem;
  color: var(--ds-green);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 850;
}

.ds-command p {
  margin: 0;
  color: var(--ds-muted);
  font-weight: 650;
}

.ds-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.ds-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: stretch;
}

.ds-hero-main {
  min-height: 190px;
  border-radius: 16px;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 107, 26, 0.18), transparent 10rem),
    linear-gradient(135deg, #093c31 0%, #0b5748 100%);
  color: white;
  overflow: hidden;
  position: relative;
}

.ds-hero-main:after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.ds-eyebrow {
  color: #ffb37f;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ds-hero-main h1 {
  max-width: 720px;
  margin: 0.8rem 0 0.6rem;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 850;
  line-height: 1.05;
}

.ds-hero-main p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
}

.ds-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.ds-hero-actions .btn {
  min-height: 42px;
}

.ds-hero-side {
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--ds-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--ds-shadow);
}

.ds-system-map {
  min-height: 198px;
  position: relative;
  display: grid;
  place-items: center;
}

.ds-system-map:before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid var(--ds-line);
}

.ds-system-map img {
  width: 74px;
  height: 74px;
  z-index: 1;
}

.ds-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ds-line);
  color: var(--ds-muted);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(8, 63, 50, 0.07);
}

.ds-node:nth-child(2) { top: 4px; left: 28%; }
.ds-node:nth-child(3) { top: 48%; right: 2px; }
.ds-node:nth-child(4) { bottom: 4px; left: 26%; }
.ds-node:nth-child(5) { top: 48%; left: 2px; }

.ds-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1rem;
}

.ds-stat-card {
  border-radius: 13px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ds-line);
  background: #fff;
  box-shadow: var(--ds-shadow-soft);
}

.ds-stat-card span {
  color: var(--ds-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ds-stat-card strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--ds-green);
  font-size: 1.75rem;
  font-weight: 850;
}

.ds-stat-card small {
  display: block;
  margin-top: 0.2rem;
  color: var(--ds-soft);
  font-weight: 650;
}

.ds-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 1rem;
}

.ds-panel {
  border-radius: 13px;
  border: 1px solid var(--ds-line);
  background: #fff;
  box-shadow: var(--ds-shadow-soft);
  padding: 1rem;
}

.ds-panel h5 {
  color: var(--ds-green);
  font-weight: 850;
  margin-bottom: 1rem;
}

.ds-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.ds-panel-title h5 {
  margin: 0;
}

.ds-panel-title a {
  color: var(--ds-orange);
  font-size: 0.86rem;
  font-weight: 800;
}

.ds-quick-list {
  display: grid;
  gap: 0.65rem;
}

.ds-quick-list a,
.ds-timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--ds-line);
  color: var(--ds-ink);
  background: #fbfdfc;
}

.ds-timeline-row small {
  color: var(--ds-muted);
  font-weight: 800;
}

.ds-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--ds-orange);
  flex: 0 0 auto;
}

.ds-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 1rem;
}

.ds-module {
  display: grid;
  gap: 0.35rem;
  min-height: 132px;
  padding: 1rem;
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  background: #fff;
  color: var(--ds-ink);
  box-shadow: var(--ds-shadow-soft);
}

.ds-module:hover {
  border-color: rgba(255, 107, 26, 0.38);
  transform: translateY(-1px);
}

.ds-module i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ds-orange-soft);
  color: var(--ds-orange);
}

.ds-module strong {
  color: var(--ds-green);
  font-size: 1.05rem;
  font-weight: 850;
}

.ds-module span {
  color: var(--ds-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

#auth {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 107, 26, 0.16), transparent 24rem),
    linear-gradient(135deg, #f7fbf9 0%, #edf5f2 100%);
}

#auth #auth-left {
  padding: 4rem min(7vw, 7rem);
}

#auth #auth-left h1 {
  color: var(--ds-green);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0;
}

#auth #auth-left h1:after {
  content: "Tu clinica completa en un solo sistema.";
  display: block;
  max-width: 420px;
  margin-top: 0.8rem;
  color: var(--ds-muted);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}

#auth #auth-left:before {
  content: "";
  display: block;
  width: 210px;
  height: 56px;
  margin-bottom: 3rem;
  background: url("../images/dentisoft-logo.svg") left center / contain no-repeat;
}

#auth #auth-left form {
  max-width: 430px;
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--ds-line);
  box-shadow: var(--ds-shadow);
}

#auth #auth-right {
  background:
    radial-gradient(circle at 58% 42%, rgba(255, 107, 26, 0.34), transparent 10rem),
    linear-gradient(145deg, #083f32 0%, #0a2f27 100%) !important;
  position: relative;
}

#auth #auth-right:before {
  content: "";
  position: absolute;
  inset: 10%;
  background: url("../images/dentisoft-mark.svg") center / 180px no-repeat;
  opacity: 0.96;
}

#auth #auth-right:after {
  content: "Agenda, pacientes, tratamientos y cobros conectados.";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 14%;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
}

@media screen and (max-width: 1199px) {
  #main {
    margin-left: 0;
  }
}

@media screen and (max-width: 991px) {
  .ds-hero,
  .ds-work-grid {
    grid-template-columns: 1fr;
  }

  .ds-stat-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .ds-command {
    align-items: flex-start;
    flex-direction: column;
  }

  .ds-command-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .ds-module-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media screen and (max-width: 767px) {
  #auth #auth-left {
    padding: 2rem;
  }

  .ds-stat-grid {
    grid-template-columns: 1fr;
  }

  .ds-command-actions .btn {
    flex: 1 1 100%;
  }

  .ds-module-grid {
    grid-template-columns: 1fr;
  }
}

/* Professional workspace layer */
.page-content {
  padding: 0;
}

.section {
  max-width: 1500px;
  margin: 0 auto;
}

.ds-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ds-line);
}

.ds-page-header h3 {
  margin: 0.2rem 0 0.15rem;
}

.ds-page-header p {
  margin: 0;
  color: var(--ds-muted);
  font-weight: 650;
}

.ds-page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.ds-page-actions form {
  margin: 0;
}

.section > .btn,
.section > a.btn,
#main-content > .btn,
#main-content > form {
  margin: 0 0.55rem 0.75rem 0;
}

.section > .card:first-of-type:empty {
  display: none;
}

.card .card-body {
  padding: 1rem 1.15rem;
}

.dataTable-wrapper {
  display: grid;
  gap: 0.65rem;
}

.dataTable-top,
.dataTable-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0;
}

.dataTable-top label,
.dataTable-bottom,
.dataTable-info {
  color: var(--ds-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.dataTable-dropdown,
.dataTable-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dataTable-selector {
  min-width: 86px;
}

.dataTable-input {
  min-width: min(100%, 250px);
}

.dataTable-container,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: #f7faf9;
}

.table td:last-child,
.dataTable-table td:last-child {
  white-space: nowrap;
}

.table td .btn,
.dataTable-table td .btn {
  min-height: 34px;
  padding: 0.48rem 0.68rem;
  margin: 0.12rem;
  font-size: 0.86rem;
}

.table td .btn i,
.dataTable-table td .btn i {
  font-size: 0.9rem;
}

.modal-body .card {
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
}

.modal-body .card-body {
  padding: 0;
}

.modal-body form label,
.modal-body .form-label {
  color: var(--ds-ink-2);
  font-weight: 750;
  margin-bottom: 0.35rem;
}

.modal-body form input:not([type="color"]),
.modal-body form select,
.modal-body form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ds-line);
  border-radius: 9px;
  padding: 0.55rem 0.75rem;
  background: #fbfdfc;
}

.modal-body form button[type="submit"]:not(.btn) {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  padding: 0.55rem 0.95rem;
  background: var(--ds-orange);
  color: #fff;
  font-weight: 800;
}

.modal-header {
  border-bottom-color: var(--ds-line);
}

.modal-footer {
  border-top-color: var(--ds-line);
}

.modal-title {
  font-weight: 850;
  color: var(--ds-green);
}

.modal-header.bg-primary .modal-title,
.modal-header.bg-danger .modal-title,
.modal-header.bg-info .modal-title,
.modal-header.bg-primary,
.modal-header.bg-danger,
.modal-header.bg-info {
  color: #fff !important;
}

.close {
  border: 0;
  background: transparent;
}

.fc {
  --fc-border-color: var(--ds-line);
  --fc-today-bg-color: #fff8d9;
  --fc-page-bg-color: #fff;
  --fc-neutral-bg-color: #f8fbfa;
  color: var(--ds-ink);
}

.fc .fc-toolbar {
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem !important;
}

.fc .fc-toolbar-title {
  color: var(--ds-green);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 850;
}

.fc .fc-button {
  min-height: 36px;
  border-radius: 9px !important;
  border: 1px solid var(--ds-line-strong) !important;
  background: #fff !important;
  color: var(--ds-green) !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: var(--ds-green) !important;
  color: #fff !important;
}

.fc .fc-daygrid-day {
  min-height: 112px;
}

.fc .fc-daygrid-day-number {
  color: var(--ds-green);
  font-weight: 800;
  text-decoration: none;
}

.fc .fc-col-header-cell-cushion {
  color: var(--ds-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  text-decoration: none;
}

.fc-event {
  border: 0 !important;
  border-radius: 8px !important;
  padding: 0.18rem 0.28rem;
  box-shadow: 0 8px 16px rgba(8, 63, 50, 0.08);
}

.fc-event-main {
  font-size: 0.78rem;
  line-height: 1.25;
}

#calendar {
  padding: 1rem;
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--ds-shadow-soft);
}

.container.mt-5 {
  max-width: none;
  margin-top: 1rem !important;
  padding: 0;
}

.container.mt-5 > h1 {
  display: none;
}

.ds-calendar-page + * {
  clear: both;
}

.ds-calendar-page .container.mt-5 {
  margin-top: 0 !important;
}

#main-content > a.btn[href*="ExcelCitas"],
#main-content > form[action*="llama_citas_pdf"] {
  display: inline-flex;
  vertical-align: top;
}

#main-content > a.btn[href*="ExcelCitas"] {
  margin-top: 0;
}

.modal-acerca {
  backdrop-filter: blur(4px);
}

.modal-contenido-acerca {
  background: #fff !important;
  color: var(--ds-ink) !important;
  border: 1px solid var(--ds-line);
  border-radius: 16px !important;
  box-shadow: 0 26px 80px rgba(8, 31, 26, 0.22) !important;
}

.modal-contenido-acerca h4 {
  color: var(--ds-green);
  font-weight: 850;
}

.cerrar-acerca {
  color: var(--ds-muted) !important;
}

@media screen and (max-width: 1199px) {
  #sidebar .sidebar-wrapper {
    width: 280px;
  }
}

@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .navbar {
    height: 58px;
    padding: 0.65rem 0.9rem;
  }

  #main #main-content {
    padding: 0.9rem;
  }

  .section > .btn,
  .section > a.btn,
  #main-content > .btn,
  #main-content > form,
  #main-content > form .btn {
    width: 100%;
    margin-right: 0;
  }

  .card {
    border-radius: 12px;
  }

  .card .card-body {
    padding: 0.8rem;
  }

  .dataTable-top,
  .dataTable-bottom,
  .dataTable-dropdown,
  .dataTable-search {
    align-items: stretch;
    width: 100%;
  }

  .dataTable-selector,
  .dataTable-input {
    width: 100%;
  }

  table.table,
  .dataTable-table {
    border-collapse: separate;
    border-spacing: 0 0.75rem;
  }

  .table thead,
  .dataTable-table thead {
    display: none;
  }

  .table tbody,
  .table tr,
  .table td,
  .dataTable-table tbody,
  .dataTable-table tr,
  .dataTable-table td {
    display: block;
    width: 100%;
  }

  .table tbody tr,
  .dataTable-table tbody tr {
    border: 1px solid var(--ds-line);
    border-radius: 12px;
    background: #fff !important;
    box-shadow: var(--ds-shadow-soft);
    overflow: hidden;
  }

  .table td,
  .dataTable-table td {
    border: 0;
    padding: 0.55rem 0.75rem;
    white-space: normal !important;
  }

  .table td:last-child,
  .dataTable-table td:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .table td .btn,
  .dataTable-table td .btn {
    flex: 1 1 140px;
    margin: 0;
  }

  #calendar {
    padding: 0.65rem;
    overflow-x: auto;
  }

  .fc .fc-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fc .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
  }

  .fc .fc-daygrid-day {
    min-height: 86px;
  }

  .fc-event-main {
    font-size: 0.68rem;
  }

  .modal-dialog {
    margin: 0.75rem;
  }
}

/* Final visual authority: keep the Aurora identity above legacy rules. */
:root {
  --ds-ink: #0f172a;
  --ds-ink-2: #102a43;
  --ds-muted: #64748b;
  --ds-soft: #8aa4b8;
  --ds-line: #dbe7ef;
  --ds-line-strong: #bfd3df;
  --ds-panel: #ffffff;
  --ds-bg: #f4f9fc;
  --ds-green: #102a43;
  --ds-green-2: #0f5e7a;
  --ds-mint: #b9f3ff;
  --ds-orange: #0ea5e9;
  --ds-orange-soft: #e0f7ff;
  --ds-blue: #2563eb;
  --ds-red: #e11d48;
  --ds-yellow: #f59e0b;
  --ds-shadow: 0 22px 55px rgba(15, 42, 67, 0.12);
  --ds-shadow-soft: 0 12px 30px rgba(15, 42, 67, 0.08);
}

body:not(.ds-login-body) {
  background:
    radial-gradient(circle at 82% 8%, rgba(14, 165, 233, 0.12), transparent 34%),
    radial-gradient(circle at 12% 16%, rgba(45, 212, 191, 0.10), transparent 28%),
    linear-gradient(135deg, #f8fcff 0%, #eef8fb 54%, #fffaf6 100%) !important;
  color: var(--ds-ink);
}

#sidebar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-right: 1px solid rgba(191, 211, 223, 0.75) !important;
  box-shadow: 16px 0 45px rgba(15, 42, 67, 0.06) !important;
}

#sidebar .menu .sidebar-link {
  border-radius: 14px !important;
  color: #516a7b !important;
}

#sidebar .menu .sidebar-item.active > .sidebar-link,
#sidebar .menu .sidebar-link:hover {
  background: linear-gradient(135deg, #dff7ff 0%, #eefcff 100%) !important;
  color: #075985 !important;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.14) !important;
}

.navbar,
.header-navbar {
  background: rgba(255, 255, 255, 0.78) !important;
  border-bottom: 1px solid rgba(191, 211, 223, 0.64) !important;
  backdrop-filter: blur(18px);
}

.card,
.table-responsive,
.dataTable-container,
.ds-card,
.ds-stat,
.ds-action-list,
.ds-module-card,
.modal-content {
  border: 1px solid rgba(191, 211, 223, 0.76) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: var(--ds-shadow-soft) !important;
}

.btn-primary,
.btn-success,
.btn-warning,
.buttons-excel,
.ds-command,
.ds-action-list a:first-child {
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%) !important;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.18) !important;
}

.btn-danger,
.buttons-pdf {
  border: 0 !important;
  background: linear-gradient(135deg, #e11d48 0%, #fb7185 100%) !important;
  box-shadow: 0 16px 28px rgba(225, 29, 72, 0.16) !important;
}

.btn-info {
  border: 0 !important;
  background: linear-gradient(135deg, #06b6d4 0%, #38bdf8 100%) !important;
  color: #082f49 !important;
}

.btn-secondary {
  border: 0 !important;
  background: linear-gradient(135deg, #64748b 0%, #334155 100%) !important;
  color: #fff !important;
}

.ds-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(56, 189, 248, 0.26), transparent 30%),
    radial-gradient(circle at 72% 78%, rgba(45, 212, 191, 0.18), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #102a43 54%, #075985 100%) !important;
}

.ds-hero h1,
.ds-hero h2,
.ds-hero h3 {
  color: #ffffff !important;
}

.ds-hero p,
.ds-hero span,
.ds-hero .ds-eyebrow {
  color: rgba(236, 254, 255, 0.86) !important;
}

.ds-network {
  background:
    radial-gradient(circle at 50% 45%, rgba(14, 165, 233, 0.16), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #f4fbff 100%) !important;
}

.ds-network-center {
  background: #102a43 !important;
  box-shadow: 0 24px 50px rgba(15, 42, 67, 0.18) !important;
}

.ds-network-node i,
.ds-module-icon,
.ds-stat i {
  color: #0ea5e9 !important;
}

.ds-command {
  background:
    radial-gradient(circle at 86% 18%, rgba(56, 189, 248, 0.26), transparent 30%),
    radial-gradient(circle at 72% 78%, rgba(45, 212, 191, 0.18), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #102a43 54%, #075985 100%) !important;
}

.ds-command h1,
.ds-command h2,
.ds-command h3 {
  color: #ffffff !important;
}

.ds-command p,
.ds-command span,
.ds-command .ds-eyebrow {
  color: rgba(236, 254, 255, 0.86) !important;
}

.ds-command .btn-light,
.ds-command .btn-outline-light {
  border: 1px solid rgba(186, 230, 253, 0.42) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #102a43 !important;
  box-shadow: none !important;
}

.ds-stat-card,
.ds-panel,
.ds-module {
  border: 1px solid rgba(191, 211, 223, 0.76) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: var(--ds-shadow-soft) !important;
}

@media (max-width: 1199.98px) {
  #main {
    margin-left: 0 !important;
    width: 100% !important;
  }

  #sidebar:not(.active) {
    visibility: hidden !important;
    pointer-events: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-right: 0 !important;
  }

  #sidebar:not(.active) .sidebar-wrapper {
    transform: translateX(-105%) !important;
  }

  #sidebar.active {
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

.sidebar-header .logo {
  min-width: 178px !important;
}

#sidebar .sidebar-header .ds-logo,
#sidebar .sidebar-header img.ds-logo {
  width: 176px !important;
  max-width: 176px !important;
  max-height: none !important;
  height: auto !important;
  display: block;
}

.ds-login-brand img {
  width: 216px !important;
  max-width: 58vw;
}

.avatar.avatar-md {
  width: 48px !important;
  height: 48px !important;
}

.avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  background: #0f172a !important;
  border: 2px solid #fff !important;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.22) !important;
}

.ds-budget-page {
  display: grid;
  gap: 1.1rem;
}

.ds-budget-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 18%, rgba(56, 189, 248, 0.30), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #102a43 58%, #075985 100%);
  color: #fff;
  box-shadow: var(--ds-shadow);
}

.ds-budget-hero h1 {
  margin: 0.2rem 0;
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
}

.ds-budget-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(236, 254, 255, 0.86);
}

.ds-budget-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1rem;
  align-items: start;
}

.ds-budget-builder,
.ds-budget-summary,
.ds-history-card {
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(191, 211, 223, 0.76);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ds-shadow-soft);
}

.ds-budget-summary {
  position: sticky;
  top: 92px;
}

.ds-budget-summary h2 {
  margin: 0.35rem 0 0.1rem;
  color: #082f49 !important;
  font-size: 2.6rem;
  font-weight: 900;
}

.ds-budget-summary p {
  color: var(--ds-muted);
  font-weight: 800;
}

.ds-budget-lines {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.ds-budget-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 88px 120px 126px 48px;
  gap: 0.7rem;
  align-items: end;
  padding: 0.8rem;
  border: 1px solid rgba(191, 211, 223, 0.76);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 248, 252, 0.92), rgba(255, 255, 255, 0.96));
}

.ds-budget-line label {
  margin-bottom: 0.35rem;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.line-main {
  display: grid;
  gap: 0.45rem;
}

.line-subtotal strong {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: #082f49;
  font-size: 1.05rem;
  font-weight: 900;
}

.line-remove {
  width: 42px;
  height: 42px;
  padding: 0 !important;
}

.ds-switch-line {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1.2rem 0;
  padding: 0.9rem;
  border: 1px solid #dbe7ef;
  border-radius: 14px;
  background: #f4fbff;
  color: #102a43;
  font-weight: 800;
}

.ds-switch-line input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
}

.ds-empty-state {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  min-height: 160px;
  color: var(--ds-muted);
  text-align: center;
}

.ds-empty-state i {
  color: #0ea5e9;
  font-size: 2rem;
}

@media (max-width: 991.98px) {
  .ds-budget-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .ds-budget-grid {
    grid-template-columns: 1fr;
  }

  .ds-budget-summary {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .ds-budget-line {
    grid-template-columns: 1fr;
  }

  .line-remove {
    width: 100%;
  }
}

.ds-daily-dashboard {
  display: grid;
  gap: 1rem;
}

.ds-daily-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ds-daily-head h1 {
  margin: 0.25rem 0 0.1rem;
  color: #0f172a !important;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 900;
}

.ds-daily-head p {
  margin: 0;
  color: #64748b;
  font-weight: 800;
}

.ds-daily-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ds-daily-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 1rem;
}

.ds-daily-stat {
  min-height: 122px;
  padding: 1rem;
  border: 1px solid rgba(191, 211, 223, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ds-shadow-soft);
  color: #0f172a;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.ds-daily-stat:hover {
  border-color: rgba(14, 165, 233, 0.44);
  color: #0f172a;
  transform: translateY(-1px);
}

.ds-stat-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 0.85rem;
  border-radius: 9px;
  font-size: 1rem;
}

.ds-stat-icon.purple {
  color: #7c3aed;
  background: #f3e8ff;
}

.ds-stat-icon.indigo {
  color: #4338ca;
  background: #e0e7ff;
}

.ds-stat-icon.blue {
  color: #0284c7;
  background: #e0f2fe;
}

.ds-stat-icon.green {
  color: #16a34a;
  background: #dcfce7;
}

.ds-daily-stat small {
  display: block;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ds-daily-stat strong {
  display: block;
  margin-top: 0.2rem;
  color: #0f172a;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
}

.ds-daily-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ds-daily-card {
  min-height: 230px;
  padding: 1rem;
  border: 1px solid rgba(191, 211, 223, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ds-shadow-soft);
}

.ds-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e7eef4;
}

.ds-card-title span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ds-card-title a {
  color: #0ea5e9;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.ds-empty-today {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 170px;
  color: #94a3b8;
  text-align: center;
}

.ds-empty-today span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  background: #e0f2fe;
  color: #38bdf8;
  font-size: 1.7rem;
}

.ds-empty-today span.is-green {
  background: #dcfce7;
  color: #22c55e;
}

.ds-empty-today strong {
  color: #64748b;
  font-weight: 900;
}

.ds-empty-today p {
  margin: 0.25rem 0 0;
  color: #94a3b8;
}

.ds-appointment-list,
.ds-balance-list {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.85rem;
}

.ds-appointment,
.ds-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid #e1edf4;
  border-radius: 14px;
  background: #fbfdff;
}

.ds-appointment-time {
  display: grid;
  min-width: 78px;
  color: #0284c7;
}

.ds-appointment-time small,
.ds-appointment span,
.ds-balance-row span {
  color: #64748b;
  font-weight: 800;
}

.ds-appointment strong,
.ds-balance-row strong {
  color: #0f172a;
  font-weight: 900;
}

.ds-balance-row > strong {
  color: #e11d48;
  white-space: nowrap;
}

.ds-daily-tools {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 0.75rem;
}

.ds-daily-tools a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 58px;
  padding: 0.8rem;
  border: 1px solid rgba(191, 211, 223, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #102a43;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--ds-shadow-soft);
}

.ds-daily-tools i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e0f7ff;
  color: #0ea5e9;
}

@media (max-width: 1199.98px) {
  .ds-daily-stats {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .ds-daily-grid {
    grid-template-columns: 1fr;
  }

  .ds-daily-tools {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 767.98px) {
  .ds-daily-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ds-daily-actions,
  .ds-daily-actions .btn {
    width: 100%;
  }

  .ds-daily-stats,
  .ds-daily-tools {
    grid-template-columns: 1fr;
  }

  .ds-appointment,
  .ds-balance-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.ds-patient-page,
.ds-record-page {
  display: grid;
  gap: 1rem;
}

.ds-patient-head,
.ds-record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(191, 211, 223, 0.76);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ds-shadow-soft);
}

.ds-patient-head h1,
.ds-record-header h1 {
  margin: 0.2rem 0;
  color: #0f172a !important;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
}

.ds-patient-head p,
.ds-record-header p {
  margin: 0;
  color: #64748b;
  font-weight: 800;
}

.ds-patient-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1rem;
}

.ds-patient-stat {
  min-height: 130px;
  padding: 1.2rem;
  border: 1px solid rgba(191, 211, 223, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ds-shadow-soft);
}

.ds-patient-stat i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 1.1rem;
}

.ds-patient-stat span {
  display: block;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-patient-stat strong {
  color: #0f172a;
  font-size: 2rem;
  font-weight: 900;
}

.ds-patient-stat.danger strong,
.ds-patient-stat.danger i {
  color: #ef4444;
}

.ds-patient-stat.warning strong,
.ds-patient-stat.warning i {
  color: #f59e0b;
}

.ds-patient-stat.blue strong,
.ds-patient-stat.blue i {
  color: #2563eb;
}

.ds-patient-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px 170px;
  gap: 0.75rem;
}

.ds-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid #dbe7ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}

.ds-search i {
  color: #0ea5e9;
}

.ds-search input {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ds-patient-table {
  overflow: hidden;
  border: 1px solid rgba(191, 211, 223, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ds-shadow-soft);
}

.ds-patient-table table {
  margin-bottom: 0;
}

.ds-patient-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ds-patient-name > span,
.ds-record-person > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-weight: 900;
}

.ds-patient-name strong {
  display: block;
  color: #0f172a;
  font-weight: 900;
}

.ds-patient-name small {
  color: #64748b;
  font-weight: 800;
}

.ds-risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 900;
}

.ds-risk-badge.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.ds-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ds-patient-modal .modal-header,
.ds-patient-modal .modal-footer {
  border-color: #e7eef4;
}

.ds-form-section {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe7ef;
  border-radius: 18px;
  background: #fff;
}

.ds-form-section h6,
.ds-record-card h2 {
  margin-bottom: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e7eef4;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 0.8rem;
}

.ds-form-section label {
  display: grid;
  gap: 0.35rem;
  color: #64748b;
  font-weight: 900;
}

.ds-record-person,
.ds-record-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.ds-record-card {
  padding: 1rem;
  border: 1px solid rgba(191, 211, 223, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ds-shadow-soft);
}

.ds-record-card dl {
  display: grid;
  grid-template-columns: 170px 1fr;
  margin: 0;
}

.ds-record-card dt,
.ds-record-card dd {
  margin: 0;
  padding: 0.55rem 0;
  border-bottom: 1px solid #edf3f7;
}

.ds-record-card dt {
  color: #64748b;
  font-weight: 800;
}

.ds-record-card dd {
  color: #0f172a;
  font-weight: 800;
}

.ds-record-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ds-note-form,
.ds-mini-form,
.ds-record-list {
  display: grid;
  gap: 0.65rem;
}

.ds-mini-form {
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  margin-bottom: 0.9rem;
}

.ds-mini-form textarea,
.ds-mini-form.wide textarea {
  grid-column: 1 / -1;
}

.ds-mini-form.wide {
  grid-template-columns: 180px 1fr auto;
}

.ds-record-list > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem;
  border: 1px solid #e1edf4;
  border-radius: 14px;
  background: #fbfdff;
}

.ds-record-list strong {
  color: #0f172a;
  font-weight: 900;
}

.ds-record-list span,
.ds-record-list small,
.ds-muted-text {
  color: #64748b;
  font-weight: 800;
}

@media (max-width: 1199.98px) {
  .ds-patient-stats,
  .ds-form-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .ds-record-grid,
  .ds-patient-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .ds-patient-head,
  .ds-record-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ds-patient-stats,
  .ds-form-grid {
    grid-template-columns: 1fr;
  }

  .ds-record-card dl,
  .ds-mini-form,
  .ds-mini-form.wide {
    grid-template-columns: 1fr;
  }
}

.ds-odont-page {
  display: grid;
  place-items: start center;
  min-width: 0;
  overflow-x: hidden;
}

.ds-odont-shell {
  width: min(1180px, 100%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid rgba(191, 211, 223, 0.76);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ds-shadow);
}

.ds-odont-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e7eef4;
}

.ds-odont-header h1 {
  margin: 0.15rem 0;
  color: #0f172a !important;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 900;
}

.ds-odont-header p {
  margin: 0;
  color: #64748b;
  font-weight: 800;
}

.ds-odont-actions,
.ds-odont-tools,
.ds-odont-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.ds-odont-tools {
  padding: 1rem 0 0.75rem;
}

.ds-odont-tools > span {
  color: #64748b;
  font-weight: 900;
}

.ds-odont-tools button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border: 1px solid #dbe7ef;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 900;
}

.ds-odont-tools button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #0891b2, #2563eb);
  color: #fff;
}

.ds-odont-tools i,
.ds-odont-legend i,
.ds-history-row i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.ds-odont-meta {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px;
  gap: 0.75rem;
  align-items: end;
  padding: 0.85rem;
  border: 1px solid #dbe7ef;
  border-radius: 18px;
  background: #f8fcff;
}

.ds-odont-meta label,
.ds-selected-tooth span {
  display: grid;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ds-selected-tooth strong {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 12px;
  background: #e0f7ff;
  color: #075985;
  font-size: 1.35rem;
  font-weight: 900;
}

.ds-odont-board {
  margin-top: 1rem;
  padding: 1.3rem 1rem;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #dbe7ef;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  overflow-x: auto;
}

.ds-arch-title {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.ds-arch-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  min-width: 820px;
  padding: 0.75rem 0;
}

.ds-teeth-group {
  display: grid;
  grid-template-columns: repeat(8, 42px);
  gap: 0.35rem;
}

.ds-tooth {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 900;
}

.ds-tooth b {
  position: relative;
  display: block;
  width: 31px;
  height: 34px;
  border: 2px solid #93c5fd;
  border-radius: 8px;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.ds-tooth b::before,
.ds-tooth b::after {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: #bfdbfe;
}

.ds-tooth b::before {
  left: 9px;
}

.ds-tooth b::after {
  right: 9px;
}

.ds-tooth b i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 22px;
  border-radius: 5px;
  background: var(--tooth-color, #bfdbfe);
  box-shadow: 0 0 0 2px #fff;
}

.ds-tooth b em {
  position: absolute;
  display: block;
  opacity: 0.92;
  transition: background-color 0.16s ease, opacity 0.16s ease;
}

.ds-tooth b .s-o {
  inset: 11px 9px;
  border-radius: 4px;
  background: var(--surf-o, rgba(191, 219, 254, 0.3));
}

.ds-tooth b .s-v {
  top: 2px;
  right: 6px;
  left: 6px;
  height: 8px;
  border-radius: 5px 5px 2px 2px;
  background: var(--surf-v, transparent);
}

.ds-tooth b .s-l {
  right: 6px;
  bottom: 2px;
  left: 6px;
  height: 8px;
  border-radius: 2px 2px 5px 5px;
  background: var(--surf-l, transparent);
}

.ds-tooth b .s-m {
  top: 7px;
  bottom: 7px;
  left: 2px;
  width: 7px;
  border-radius: 5px 2px 2px 5px;
  background: var(--surf-m, transparent);
}

.ds-tooth b .s-d {
  top: 7px;
  right: 2px;
  bottom: 7px;
  width: 7px;
  border-radius: 2px 5px 5px 2px;
  background: var(--surf-d, transparent);
}

.ds-tooth[data-condition="sano"] b i {
  opacity: 0.28;
}

.ds-tooth[data-condition="extraccion"] b::after {
  top: 3px;
  left: 14px;
  width: 3px;
  height: 28px;
  background: #18181b;
  transform: rotate(45deg);
}

.ds-tooth[data-condition="extraccion"] b::before {
  top: 3px;
  left: 14px;
  width: 3px;
  height: 28px;
  background: #18181b;
  transform: rotate(-45deg);
}

.ds-tooth.is-selected b {
  outline: 3px solid rgba(14, 165, 233, 0.22);
  border-color: #0ea5e9;
}

.ds-midline {
  width: min(860px, 90%);
  height: 1px;
  margin: 0.2rem auto;
  background: #cbd5e1;
}

.ds-surface-popover {
  position: fixed;
  z-index: 1100;
  display: none;
  padding: 0.9rem;
  border: 1px solid #dbe7ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.ds-surface-popover.is-open {
  display: block;
}

.ds-surface-popover strong {
  display: block;
  margin-bottom: 0.65rem;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
}

.ds-surface-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.ds-surface-grid button,
.ds-surface-all,
.ds-surface-close {
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-weight: 900;
}

.ds-surface-grid button {
  display: grid;
  gap: 0.1rem;
  min-height: 44px;
  padding: 0.35rem 0.25rem;
  text-align: center;
}

.ds-surface-grid button:hover,
.ds-surface-grid button:focus {
  border-color: #0ea5e9;
  background: #e0f7ff;
  color: #075985;
}

.ds-surface-grid b {
  font-size: 0.85rem;
  line-height: 1;
}

.ds-surface-grid span {
  font-size: 0.62rem;
  line-height: 1.1;
}

.ds-surface-all {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.45rem 0.6rem;
  border-color: #f59e0b;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #fff;
  text-transform: uppercase;
}

.ds-surface-close {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-color: transparent;
  background: transparent;
  color: #94a3b8;
}

.ds-odont-legend {
  padding: 0.9rem 0;
  border-bottom: 1px solid #e7eef4;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 800;
}

.ds-odont-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ds-odont-history {
  padding-top: 1rem;
}

.ds-history-row {
  display: grid;
  grid-template-columns: 56px 1fr minmax(120px, auto) 34px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid #edf3f7;
}

.ds-history-row strong {
  color: #0284c7;
  font-weight: 900;
}

.ds-history-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #334155;
  font-weight: 800;
}

.ds-history-row small {
  color: #94a3b8;
  font-weight: 800;
}

.ds-history-row button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.35rem;
}

.ds-odont-empty {
  padding: 1rem 0;
  color: #64748b;
  font-weight: 800;
}

@media (max-width: 767.98px) {
  .ds-odont-header,
  .ds-odont-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ds-odont-meta {
    grid-template-columns: 1fr;
  }

  .ds-history-row {
    grid-template-columns: 48px 1fr 30px;
  }

  .ds-history-row small {
    grid-column: 2 / 3;
  }
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  #sidebar,
  .navbar,
  .header-navbar,
  .ds-odont-actions,
  .ds-odont-meta,
  .ds-surface-popover,
  .footer {
    display: none !important;
  }

  #main,
  #main-content {
    margin: 0 !important;
    padding: 0 !important;
  }

  body {
    background: #fff !important;
  }

  .ds-odont-shell {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    border: 0;
    box-shadow: none;
  }

  .ds-odont-board {
    overflow: visible !important;
    padding: 0.7rem 0.5rem !important;
    border-color: #cbd5e1 !important;
    background: #fff !important;
    page-break-inside: avoid;
  }

  .ds-arch-row {
    min-width: 0 !important;
    gap: 0.45rem !important;
    padding: 0.45rem 0 !important;
  }

  .ds-teeth-group {
    grid-template-columns: repeat(8, 31px) !important;
    gap: 0.25rem !important;
  }

  .ds-tooth {
    font-size: 0.56rem !important;
    gap: 0.12rem !important;
  }

  .ds-tooth b {
    width: 25px !important;
    height: 28px !important;
    border-color: #60a5fa !important;
    background: #eff6ff !important;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85) !important;
  }

  .ds-tooth b::before {
    left: 7px !important;
  }

  .ds-tooth b::after {
    right: 7px !important;
  }

  .ds-tooth b em {
    opacity: 1 !important;
  }

  .ds-tooth b .s-o {
    inset: 9px 7px !important;
  }

  .ds-tooth b .s-v,
  .ds-tooth b .s-l {
    right: 5px !important;
    left: 5px !important;
    height: 7px !important;
  }

  .ds-tooth b .s-m,
  .ds-tooth b .s-d {
    top: 6px !important;
    bottom: 6px !important;
    width: 6px !important;
  }

  .ds-tooth b i {
    display: none !important;
  }

  .ds-odont-legend,
  .ds-history-row {
    page-break-inside: avoid;
  }
}
