:root {
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --upm-sidebar-width: 280px;
    --upm-sidebar-collapsed-width: 80px;
    --upm-sidebar-tablet-width: 272px;
    --upm-header-min-height: 58px;
    --upm-footer-min-height: 41px;
    --cms-brand-navy: #0b1d44;
    --cms-brand-blue: #0d6efd;
    --cms-brand-gold: #d99b37;
    --cms-surface: #ffffff;
    --cms-surface-muted: #f8fafc;
    --cms-border: #dbe3ee;
    --cms-text-muted: #64748b;
    --cms-soft-shadow: 0 .75rem 1.75rem rgba(15, 23, 42, .08);
}

html {
    height: 100%;
}

body {
    font-weight: 400;
    font-size: 0.875rem;
    overflow: hidden;
    min-height: 100%;
}

.cms-topbar {
    min-height: var(--upm-header-min-height);
    background: var(--cms-surface);
}

.cms-topbar-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--cms-brand-navy);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.1;
}

.upm-page-lead,
.campaign-page-lead,
.push-page-lead,
.guests-page-lead,
.registered-users-page-lead,
.live-stream-page-lead,
.survey-page-lead {
    max-width: 760px;
    margin: .35rem 0 0;
    color: #475569;
    font-size: .9rem;
    line-height: 1.55;
}

.cms-card {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .65rem;
    background: var(--cms-surface);
    box-shadow: var(--cms-soft-shadow);
}

.cms-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.cms-card-icon,
.upm-card-header-icon,
.campaign-card-icon,
.push-card-icon,
.guests-card-icon,
.registered-users-card-icon,
.access-activity-card-icon,
.live-stream-card-icon,
.survey-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    border-radius: .6rem;
    color: var(--cms-brand-blue);
    background: rgba(13, 110, 253, .1);
}

.cms-row-actions,
.upm-row-actions,
.campaign-row-actions,
.push-row-actions,
.guest-action-group,
.registered-user-action-group,
.live-stream-action-group,
.survey-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    white-space: nowrap;
}

.cms-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: .45rem;
}

.cms-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 180px;
    padding: 2rem;
    color: var(--cms-text-muted);
    text-align: center;
}

.cms-empty-state i {
    color: rgba(13, 110, 253, .45);
    font-size: 2rem;
}

.cms-diagnostic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.cms-diagnostic-card {
    display: flex;
    gap: .9rem;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid var(--cms-border);
    border-radius: .7rem;
    background: var(--cms-surface);
}

.cms-diagnostic-card > .min-w-0 {
    min-width: 0;
}

.cms-diagnostic-card ul {
    display: grid;
    gap: .2rem;
    line-height: 1.45;
}

.cms-diagnostic-card li {
    overflow-wrap: anywhere;
}

.cms-diagnostic-card .cms-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-basis: 2.25rem;
}

.cms-diagnostic-card.is-ok .cms-card-icon {
    color: #0f766e;
    background: rgba(20, 184, 166, .12);
}

.cms-diagnostic-card.is-warning .cms-card-icon {
    color: #a16207;
    background: rgba(217, 155, 55, .16);
}

.cms-diagnostic-card.is-danger .cms-card-icon {
    color: #b91c1c;
    background: rgba(220, 38, 38, .12);
}

.cms-diagnostic-card.is-muted .cms-card-icon {
    color: #475569;
    background: rgba(100, 116, 139, .12);
}

.cms-status-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 700;
}

.cms-status-dot {
    display: inline-block;
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: currentColor;
}

.cms-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.cms-token-chip {
    display: inline-flex;
    align-items: center;
    padding: .25rem .5rem;
    border: 1px solid var(--cms-border);
    border-radius: 999px;
    background: var(--cms-surface-muted);
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .72rem;
}

.audit-nowrap {
    white-space: nowrap;
}

.cms-template-preview-frame {
    width: 100%;
    min-height: 560px;
    border: 1px solid var(--cms-border);
    border-radius: .65rem;
    background: #fff;
}

.modal-content {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .8rem;
    box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, .18);
}

.modal-header,
.modal-footer {
    background: var(--cms-surface-muted);
}

.btn {
    font-weight: 600;
}

.btn i {
    line-height: 1;
}

.wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

.sidebar-backdrop,
.sidebar-mobile-close {
    display: none;
}


.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1020;
    display: flex;
    flex-direction: column;
    width: var(--upm-sidebar-width);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    transition: width .25s ease, box-shadow .25s ease;
    background-color: #222e3c;
    border-right: 1px solid rgba(233, 236, 239, .5);
}

.sidebar-header {
    flex: 0 0 auto;
    padding: 1rem;
    background-color: #fff;
    border-bottom: 3px solid #db1e24;
}

.sidebar-logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 118px;
    height: auto;
    margin: 0 auto;
}

.sidebar-menu {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1rem 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 236, 239, .32) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: .45rem;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background-color: rgba(233, 236, 239, .32);
}

.sidebar-menu-list {
    min-width: 0;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: rgba(233, 236, 239, .5);
    font-size: 0.875rem;
    font-weight: 400;
    border-radius: 0.375rem;
    min-height: 44px;
    min-width: 0;
    touch-action: manipulation;
}

.sidebar .nav-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar .nav-link:hover {
    /*background-color: #f1f5f9;*/
    color: rgba(233, 236, 239, .75);
}

.sidebar .nav-link.active {
    background-color: rgba(13, 110, 253, .18);
    color: #fff;
    font-weight: 600;
}

.sidebar .sidebar-group.open > .sidebar-group-toggle {
    color: rgba(233, 236, 239, .95);
    font-weight: 600;
}

.sidebar .sidebar-chevron {
    transition: transform .2s ease;
}

.sidebar .sidebar-group.open > .sidebar-group-toggle .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar .nav-link i {
    flex: 0 0 auto;
    font-size: 1rem;
    line-height: 1;
}

.submenu {
    padding-left: 2.75rem;
    padding-right: 0.75rem;
}

.submenu .nav-link {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
}

.submenu .submenu {
    padding-left: 1rem;
    padding-right: 0;
}

.submenu .sidebar-group-toggle {
    font-size: 0.75rem;
}

.sidebar-footer {
    flex: 0 0 auto;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
}




.sidebar.collapsed {
    width: var(--upm-sidebar-collapsed-width);
}

/* Ocultar textos */
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .sidebar-logo {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    min-height: 3px;
    padding: 0;
}

/* Centrar iconos */
.sidebar.collapsed .nav-link {
    justify-content: center;
    min-height: 48px;
    padding-right: .75rem;
    padding-left: .75rem;
}

.sidebar.collapsed .nav-link .bi-chevron-down {
    display: none;
}

/* Submenús ocultos en modo icon-only */
.sidebar.collapsed .collapse {
    display: none !important;
}

/* Ajuste footer */
.sidebar.collapsed .sidebar-footer span {
    display: none;
}

.sidebar.collapsed .sidebar-footer .btn {
    display: inline-flex;
    justify-content: center;
    min-height: 40px;
    padding-right: .5rem;
    padding-left: .5rem;
}

.content-wrapper {
    position: relative;
    width: calc(100% - var(--upm-sidebar-width)) !important;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    transition: margin-left .25s ease;
    margin-left: var(--upm-sidebar-width);
}

.content-wrapper.collapsed {
    width: calc(100% - var(--upm-sidebar-collapsed-width)) !important;
    margin-left: var(--upm-sidebar-collapsed-width);
    /*margin-left:: 0px;*/
}

.content-wrapper > header,
.content-wrapper > footer {
    flex: 0 0 auto;
}

.content-wrapper > header {
    min-height: var(--upm-header-min-height);
}

.content-wrapper > footer {
    min-height: var(--upm-footer-min-height);
}

.content-area {
    /*position: relative;
    width: 100%;*/
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --upm-sidebar-collapsed-width: 72px;
    }

    .sidebar {
        width: var(--upm-sidebar-tablet-width);
        box-shadow: 0 0 0 rgba(15, 23, 42, 0);
    }

    .sidebar:not(.collapsed) {
        box-shadow: .5rem 0 1.5rem rgba(15, 23, 42, .18);
    }

    .content-wrapper,
    .content-wrapper.collapsed {
        width: calc(100% - var(--upm-sidebar-collapsed-width)) !important;
        margin-left: var(--upm-sidebar-collapsed-width);
    }

    .content-area {
        padding: 1rem !important;
    }
}

@media (max-width: 767.98px), (hover: none) and (pointer: coarse) {
    :root {
        --upm-sidebar-width: min(320px, 86vw);
        --upm-sidebar-collapsed-width: 0px;
    }

    body.sidebar-mobile-open {
        overflow: hidden;
    }

    .sidebar {
        z-index: 1040;
        width: var(--upm-sidebar-width);
        transform: translateX(-100%);
        box-shadow: none;
        transition: transform .25s ease, box-shadow .25s ease;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: .5rem 0 1.75rem rgba(15, 23, 42, .28);
    }

    .sidebar.collapsed {
        width: var(--upm-sidebar-width);
        transform: translateX(-100%);
    }

    .sidebar.collapsed .nav-link span,
    .sidebar.collapsed .sidebar-logo,
    .sidebar.collapsed .sidebar-footer span {
        display: inline;
    }

    .sidebar.collapsed .nav-link {
        justify-content: flex-start;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .sidebar.collapsed .nav-link .bi-chevron-down {
        display: inline-block;
    }

    .sidebar-header {
        position: relative;
        padding-right: 3.25rem;
    }

    .sidebar-mobile-close {
        position: absolute;
        top: .75rem;
        right: .75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.35rem;
        height: 2.35rem;
        padding: 0;
        border: 1px solid rgba(233, 236, 239, .24);
        border-radius: .375rem;
        background: rgba(255, 255, 255, .06);
        color: rgba(233, 236, 239, .86);
    }

    .sidebar-mobile-close:hover,
    .sidebar-mobile-close:focus {
        border-color: rgba(233, 236, 239, .42);
        background: rgba(255, 255, 255, .10);
        color: #fff;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1030;
        display: block;
        pointer-events: none;
        background: rgba(15, 23, 42, .52);
        opacity: 0;
        transition: opacity .2s ease;
    }

    body.sidebar-mobile-open .sidebar-backdrop {
        pointer-events: auto;
        opacity: 1;
    }

    .content-wrapper > header {
        position: relative;
        z-index: 1025;
    }

    .content-wrapper,
    .content-wrapper.collapsed {
        width: 100% !important;
        margin-left: 0;
    }

    .content-area {
        padding: .875rem !important;
    }
}




/* =========================================================
   CMS - QuillJS: editor enriquecido reutilizable
   ---------------------------------------------------------
   Uso recomendado:
   <div class="quill-container size-m">
       <div class="quill-editor" data-target="mi_textarea"></div>
       <textarea id="mi_textarea" name="mi_textarea" data-quill></textarea>
   </div>

   El scroll vertical se aplica SOLO al cuerpo editable (.ql-editor),
   por lo que la barra de herramientas permanece siempre visible arriba.
   ========================================================= */
.quill-container {
    --upm-quill-min-height: 140px;
    --upm-quill-max-height: 320px;

    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    overflow: hidden;
    background: var(--bs-body-bg);
}

.quill-container.size-xs {
    --upm-quill-min-height: 72px;
    --upm-quill-max-height: 120px;
}

.quill-container.size-s {
    --upm-quill-min-height: 96px;
    --upm-quill-max-height: 180px;
}

.quill-container.size-m {
    --upm-quill-min-height: 160px;
    --upm-quill-max-height: 320px;
}

.quill-container.size-l {
    --upm-quill-min-height: 240px;
    --upm-quill-max-height: 480px;
}

.quill-container.size-xl {
    --upm-quill-min-height: 320px;
    --upm-quill-max-height: 640px;
}

.quill-container .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    position: relative;
    z-index: 2;
}

.quill-container .quill-editor.ql-container.ql-snow {
    border: 0;
    height: auto;
    font-size: .95rem;
}

.quill-container .quill-editor .ql-editor {
    min-height: var(--upm-quill-min-height);
    max-height: var(--upm-quill-max-height);
    overflow-y: auto;
}

.quill-container .quill-editor .ql-editor p + p {
    margin-top: .75rem;
}

.quill-container .quill-editor .ql-editor .ql-softbreak-placeholder {
    display: inline-block;
    width: 0;
    height: 0;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

.quill-container .ql-editor.ql-blank::before {
    color: var(--bs-secondary-color);
    font-style: normal;
}

.quill-container textarea,
textarea[data-quill] {
    display: none !important;
}



.datatable-container {
    font-size: 0.825rem;
}


table.dataTable td,
table.dataTable th {
    vertical-align: middle;
}

table.dataTable tfoot th,
table.dataTable tfoot td {
    padding: 8px 10px;
}

table.dataTable thead th,
table.dataTable thead td {
    padding: 10px 10px;
}

/* ================================
   DataTables - cabeceras y filtros
   ================================ */

div.dt-container .dt-layout-row {
  gap: .75rem;
  margin-bottom: .85rem;
}

div.dt-container .dt-layout-cell {
  display: flex;
  align-items: center;
  gap: .5rem;
}

div.dt-container .dt-layout-cell.dt-layout-end {
  justify-content: flex-end;
}

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

table.dataTable thead th,
table.dataTable thead td,
table.dataTable tfoot th,
table.dataTable tfoot td {
  text-align: center;
}

table.dataTable thead th {
  border-bottom: 1px solid var(--cms-border);
  background: var(--cms-surface-muted);
  color: #0f172a;
  font-weight: 750;
}

table.dataTable tfoot th,
table.dataTable tfoot td {
  border-top: 1px solid var(--cms-border);
  background: #ffffff;
}

table.dataTable tbody td {
  color: #1f2937;
}

table.dataTable tbody tr > * {
  transition: background-color .15s ease;
}

table.dataTable tbody tr:hover > * {
  background-color: rgba(13, 110, 253, .035);
}

.datatable-wrap,
.table-responsive.dt-scroll-host {
  overflow-x: visible !important;
}

.datatable-wrap .dt-container .dt-layout-table,
.table-responsive.dt-scroll-host .dt-container .dt-layout-table {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.datatable-wrap .dt-container .dt-layout-table > div,
.table-responsive.dt-scroll-host .dt-container .dt-layout-table > div {
  min-width: 100%;
}

div.dt-container div.dt-buttons,
div.dataTables_wrapper div.dt-buttons,
div.dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}

div.dt-container div.dt-buttons > .btn,
div.dt-container div.dt-buttons .btn-group > .btn,
div.dt-container div.dt-buttons .dt-button,
div.dataTables_wrapper div.dt-buttons > .btn,
div.dataTables_wrapper div.dt-buttons .btn-group > .btn,
div.dataTables_wrapper div.dt-buttons .dt-button,
div.dt-buttons > .btn,
div.dt-buttons .btn-group > .btn,
div.dt-buttons .dt-button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  border-radius: var(--bs-border-radius) !important;
  border-color: var(--bs-border-color) !important;
  background: var(--bs-body-bg) !important;
  color: var(--bs-secondary-color) !important;
  font-weight: 500;
  box-shadow: none !important;
}

div.dt-container div.dt-buttons > .btn:hover,
div.dt-container div.dt-buttons > .btn:focus,
div.dt-container div.dt-buttons > .btn.show,
div.dt-container div.dt-buttons .btn-group > .btn:hover,
div.dt-container div.dt-buttons .btn-group > .btn:focus,
div.dt-container div.dt-buttons .btn-group > .btn.show,
div.dt-container div.dt-buttons .dt-button:hover,
div.dt-container div.dt-buttons .dt-button:focus,
div.dataTables_wrapper div.dt-buttons > .btn:hover,
div.dataTables_wrapper div.dt-buttons > .btn:focus,
div.dataTables_wrapper div.dt-buttons > .btn.show,
div.dataTables_wrapper div.dt-buttons .btn-group > .btn:hover,
div.dataTables_wrapper div.dt-buttons .btn-group > .btn:focus,
div.dataTables_wrapper div.dt-buttons .btn-group > .btn.show,
div.dataTables_wrapper div.dt-buttons .dt-button:hover,
div.dataTables_wrapper div.dt-buttons .dt-button:focus,
div.dt-buttons > .btn:hover,
div.dt-buttons > .btn:focus,
div.dt-buttons > .btn.show,
div.dt-buttons .btn-group > .btn:hover,
div.dt-buttons .btn-group > .btn:focus,
div.dt-buttons .btn-group > .btn.show,
div.dt-buttons .dt-button:hover,
div.dt-buttons .dt-button:focus {
  border-color: rgba(13, 110, 253, .35) !important;
  background: rgba(13, 110, 253, .08) !important;
  color: var(--bs-primary) !important;
}

div.dt-container .dt-search .form-control,
div.dt-container .dt-length .form-select,
div.dataTables_wrapper .dataTables_filter .form-control,
div.dataTables_wrapper .dataTables_length .form-select {
  border-radius: var(--bs-border-radius);
}

.form-check.upm-switch-control {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: max-content;
  min-height: 2.25rem;
  padding: .25rem .65rem;
  margin-bottom: 0;
  border: 1px solid rgba(13, 110, 253, .18);
  border-radius: 999px;
  background: rgba(13, 110, 253, .07);
  transition: background-color .15s ease, border-color .15s ease;
}

.form-check.upm-switch-control .form-check-input {
  float: none;
  flex: 0 0 auto;
  width: 2.2rem;
  height: 1.15rem;
  margin: 0;
  cursor: pointer;
  border-color: rgba(13, 110, 253, .32);
  background-color: rgba(13, 110, 253, .18);
  box-shadow: none;
}

.form-check.upm-switch-control .form-check-input:not(:checked) {
  border-color: rgba(108, 117, 125, .28);
  background-color: rgba(108, 117, 125, .22);
}

.form-check.upm-switch-control .form-check-input:checked {
  border-color: rgba(13, 110, 253, .62);
  background-color: var(--bs-primary);
}

.form-check.upm-switch-control .form-check-input:focus {
  border-color: rgba(13, 110, 253, .45);
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.form-check.upm-switch-control .form-check-input:disabled {
  cursor: not-allowed;
}

.form-check.upm-switch-control .form-check-label {
  margin: 0;
  color: var(--bs-secondary-color);
  font-weight: 500;
}

.form-check.upm-switch-control:has(.form-check-input:checked) {
  border-color: rgba(13, 110, 253, .24);
  background: rgba(13, 110, 253, .10);
}

.form-check.upm-switch-control:has(.form-check-input:not(:checked)) {
  border-color: rgba(108, 117, 125, .18);
  background: rgba(108, 117, 125, .08);
}

.form-check.upm-switch-control:has(.form-check-input:disabled) {
  opacity: .65;
}

.form-check.upm-switch-control:hover {
  border-color: rgba(13, 110, 253, .32);
  background: rgba(13, 110, 253, .12);
}

.form-check.upm-switch-control.upm-switch-compact {
  min-height: 2rem;
  padding: .25rem .5rem;
  justify-content: center;
  gap: 0;
}

.form-check.upm-switch-control.upm-switch-compact .form-check-input {
  width: 2rem;
  height: 1.05rem;
}

table.dataTable thead th,
table.dataTable tfoot th {
  white-space: nowrap;
  vertical-align: middle;
  min-width: 120px;        /* ancho mínimo razonable */
}

/* Inputs / selects del footer (filtros) */
table.dataTable tfoot th input,
table.dataTable tfoot th select {
  min-width: 100%;
  box-sizing: border-box;
  font-size: 0.875rem;
}

/* Columnas típicamente pequeñas (acciones, switches, checkboxes) */
table.dataTable th.dt-center,
table.dataTable td.dt-center {
  min-width: 80px;
  text-align: center;
}

/* Capa visual comun para tablas CMS */
.datatable-wrap,
.table-responsive {
  width: 100%;
}

div.dt-container {
  width: 100%;
}

div.dt-container .dt-layout-row {
  align-items: center;
  gap: .85rem;
  margin: 0 0 .95rem;
}

div.dt-container .dt-layout-cell {
  flex-wrap: wrap;
}

div.dt-container .dt-layout-cell.dt-layout-end {
  margin-left: auto;
}

div.dt-container .dt-layout-table {
  margin-top: .35rem;
}

table.dataTable {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

table.dataTable thead th,
table.dataTable thead td {
  padding: .82rem 1rem;
  border-bottom: 1px solid var(--cms-border) !important;
  background: #fff;
  color: #0f172a;
  font-weight: 750;
  line-height: 1.2;
}

table.dataTable tbody td {
  padding: .82rem 1rem;
  border-top: 0;
  border-bottom: 1px solid rgba(15, 23, 42, .055);
  color: #1f2937;
}

table.dataTable tfoot th,
table.dataTable tfoot td {
  padding: .65rem .75rem;
  border-top: 1px solid var(--cms-border) !important;
  background: #fff;
}

table.dataTable.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: rgba(15, 23, 42, .045);
}

table.dataTable.table-hover > tbody > tr:hover > * {
  --bs-table-bg-state: rgba(13, 110, 253, .055);
}

table.dataTable th.text-center .dt-column-header,
table.dataTable th.dt-center .dt-column-header,
table.dataTable th.audit-nowrap .dt-column-header {
  justify-content: center;
}

table.dataTable td.text-center,
table.dataTable td.dt-center,
table.dataTable td.audit-nowrap {
  text-align: center;
}

table.dataTable .badge {
  font-weight: 700;
}

div.dt-container .dt-search {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

div.dt-container .dt-search label,
div.dt-container .dt-length label {
  color: var(--cms-text-muted);
  font-weight: 500;
}

div.dt-container .dt-search .form-control,
div.dt-container .dt-length .form-select {
  min-height: 2rem;
}
