/*
 * RestauranteBO · Interfaz unificada de reportes
 * Compatible con Bootstrap 3 / AdminLTE y páginas de impresión independientes.
 * Se carga desde los reportes y vistas administrativas relacionadas.
 */

html.report-ui-html {
  min-height: 100%;
  background:
    radial-gradient(circle at 8% 4%, rgba(214, 39, 50, .10), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(245, 158, 11, .09), transparent 24rem),
    #eef2f6;
}

body.report-ui {
  --report-primary: #d62732;
  --report-primary-dark: #991b23;
  --report-primary-soft: #fff1f2;
  --report-accent: #f59e0b;
  --report-success: #16865a;
  --report-info: #2563eb;
  --report-danger: #c51f2a;
  --report-ink: #172033;
  --report-text: #344054;
  --report-muted: #667085;
  --report-border: #dfe5ec;
  --report-border-soft: #edf1f5;
  --report-surface: #ffffff;
  --report-bg: #f3f5f8;
  --report-shadow: 0 24px 70px rgba(25, 35, 55, .13);
  color: var(--report-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.report-ui *,
body.report-ui *::before,
body.report-ui *::after {
  box-sizing: border-box;
}

body.report-ui a,
body.report-ui button,
body.report-ui input,
body.report-ui select,
body.report-ui textarea {
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

body.report-ui button:focus-visible,
body.report-ui input:focus-visible,
body.report-ui select:focus-visible,
body.report-ui textarea:focus-visible,
body.report-ui a:focus-visible {
  outline: 3px solid rgba(214, 39, 50, .20);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* PÁGINAS DEL PANEL: formularios, filtros, inventario y conciliación          */
/* -------------------------------------------------------------------------- */

body.report-ui-screen .content-wrapper {
  min-height: calc(100vh - 50px) !important;
  background:
    radial-gradient(circle at 98% 0%, rgba(214, 39, 50, .08), transparent 28rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%) !important;
}

body.report-ui-screen .content-header {
  position: relative;
  padding: 28px 30px 8px !important;
}

body.report-ui-screen .content-header::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 39, 50, .24), rgba(214, 39, 50, 0));
}

body.report-ui-screen .content-header h1 {
  margin: 0 !important;
  color: var(--report-ink) !important;
  font-size: clamp(24px, 2.4vw, 34px) !important;
  font-weight: 800 !important;
  letter-spacing: -.025em;
  line-height: 1.2;
}

body.report-ui-screen .content-header h1 > i {
  margin-right: 9px;
  color: var(--report-primary);
}

body.report-ui-screen .content-header small,
body.report-ui-screen .report-ui-subtitle {
  display: block;
  max-width: 780px;
  margin: 8px 0 0 !important;
  color: var(--report-muted) !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.55;
}

body.report-ui-screen .report-ui-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--report-primary-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.report-ui-screen .report-ui-kicker::before {
  content: "";
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--report-primary), var(--report-accent));
}

body.report-ui-screen .content {
  padding: 22px 30px 36px !important;
}

body.report-ui-screen .content::before,
body.report-ui-screen .content::after {
  display: table;
  content: "";
}

body.report-ui-screen .content::after {
  clear: both;
}

body.report-ui-screen .content > [class*="col-"] {
  float: none !important;
  width: 100% !important;
  max-width: 980px;
  margin: 0 !important;
  padding: 0 !important;
}

body.report-ui-screen .content > .row,
body.report-ui-screen .content .row.report-ui-row {
  margin-left: -9px;
  margin-right: -9px;
}

body.report-ui-screen .box,
body.report-ui-screen .report-ui-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px !important;
  border: 1px solid rgba(207, 216, 227, .82) !important;
  border-top: 1px solid rgba(207, 216, 227, .82) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 16px 42px rgba(31, 43, 64, .09) !important;
}

body.report-ui-screen .box::before,
body.report-ui-screen .report-ui-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--report-primary), #ef4444 58%, var(--report-accent));
}

body.report-ui-screen .box-header {
  padding: 21px 24px 16px !important;
  border-bottom: 1px solid var(--report-border-soft) !important;
  background: linear-gradient(180deg, #fff, #fbfcfd) !important;
}

body.report-ui-screen .box-header .box-title,
body.report-ui-screen .box-header h3 {
  color: var(--report-ink) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
}

body.report-ui-screen .box-body {
  padding: 24px !important;
}

body.report-ui-screen .box-footer {
  padding: 16px 24px !important;
  border-top: 1px solid var(--report-border-soft) !important;
  background: #fbfcfd !important;
}

body.report-ui-screen .report-ui-help {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 13px 15px;
  border: 1px solid #f5d8da;
  border-radius: 12px;
  color: #7f1d26;
  background: linear-gradient(135deg, #fff6f7, #fffaf1);
  font-size: 13px;
  line-height: 1.45;
}

body.report-ui-screen .report-ui-help .report-ui-help-icon {
  display: inline-flex;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  background: var(--report-primary);
  font-size: 14px;
  font-weight: 800;
}

body.report-ui-screen form.report-ui-filter-form {
  width: 100%;
  max-width: 760px;
}

body.report-ui-screen form.report-ui-filter-form > table,
body.report-ui-screen .report-ui-filter-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 11px !important;
}

body.report-ui-screen .report-ui-filter-table tr {
  background: transparent !important;
}

body.report-ui-screen .report-ui-filter-table td {
  padding: 0 7px !important;
  border: 0 !important;
  vertical-align: middle !important;
}

body.report-ui-screen .report-ui-filter-table td:first-child {
  width: 190px;
  padding-left: 0 !important;
  color: var(--report-ink);
  font-size: 13px;
  font-weight: 700;
}

body.report-ui-screen .report-ui-filter-table td:last-child {
  padding-right: 0 !important;
}

body.report-ui-screen .report-ui-filter-table td[colspan] {
  width: auto !important;
  padding-top: 7px !important;
  text-align: right !important;
}

body.report-ui-screen label,
body.report-ui-screen .control-label {
  color: var(--report-ink);
  font-size: 13px;
  font-weight: 700;
}

body.report-ui-screen .form-control,
body.report-ui-screen input[type="text"],
body.report-ui-screen input[type="date"],
body.report-ui-screen input[type="number"],
body.report-ui-screen input[type="email"],
body.report-ui-screen input[type="search"],
body.report-ui-screen select,
body.report-ui-screen textarea {
  min-height: 42px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cfd7e3 !important;
  border-radius: 10px !important;
  color: var(--report-ink) !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03) !important;
  font-size: 14px;
}

body.report-ui-screen input[readonly] {
  cursor: pointer;
  background: #f8fafc !important;
}

body.report-ui-screen .form-control:focus,
body.report-ui-screen input:focus,
body.report-ui-screen select:focus,
body.report-ui-screen textarea:focus {
  border-color: rgba(214, 39, 50, .62) !important;
  box-shadow: 0 0 0 4px rgba(214, 39, 50, .10) !important;
}

body.report-ui-screen .input-group .form-control {
  border-radius: 10px 0 0 10px !important;
}

body.report-ui-screen .input-group-btn:last-child > .btn {
  min-height: 42px;
  border-radius: 0 10px 10px 0 !important;
}

body.report-ui-screen .btn,
body.report-ui-screen input[type="submit"],
body.report-ui-screen button {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 10px !important;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .01em;
}

body.report-ui-screen .btn:hover,
body.report-ui-screen input[type="submit"]:hover,
body.report-ui-screen button:hover {
  transform: translateY(-1px);
}

body.report-ui-screen .btn-success,
body.report-ui-screen .btn-primary,
body.report-ui-screen input[type="submit"].btn-success,
body.report-ui-screen input[type="submit"].btn-primary,
body.report-ui-screen .report-ui-primary-action {
  border-color: var(--report-primary-dark) !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--report-primary), var(--report-primary-dark)) !important;
  box-shadow: 0 8px 18px rgba(153, 27, 35, .18) !important;
}

body.report-ui-screen .btn-success:hover,
body.report-ui-screen .btn-primary:hover,
body.report-ui-screen input[type="submit"].btn-success:hover,
body.report-ui-screen input[type="submit"].btn-primary:hover,
body.report-ui-screen .report-ui-primary-action:hover {
  border-color: #7f151c !important;
  background: linear-gradient(135deg, #e03540, #86141b) !important;
}

body.report-ui-screen .btn-default {
  border-color: #cfd7e3 !important;
  color: var(--report-text) !important;
  background: #fff !important;
}

body.report-ui-screen .btn-danger {
  border-color: #b91c27 !important;
  background: #c9202b !important;
}

body.report-ui-screen .btn-warning {
  border-color: #d97706 !important;
  color: #fff !important;
  background: #e58a00 !important;
}

body.report-ui-screen .small-box,
body.report-ui-screen .info-box {
  overflow: hidden;
  border: 1px solid var(--report-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(31, 43, 64, .08) !important;
}

body.report-ui-screen .metric-card {
  position: relative;
  overflow: hidden;
  min-height: 112px !important;
  margin-bottom: 18px !important;
  padding: 20px 21px !important;
  border: 1px solid var(--report-border) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #ffffff, #fbfcfe) !important;
  box-shadow: 0 12px 30px rgba(31, 43, 64, .08) !important;
}

body.report-ui-screen .metric-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 78px;
  height: 78px;
  border-radius: 0 0 0 100%;
  background: linear-gradient(135deg, rgba(214, 39, 50, .10), rgba(245, 158, 11, .04));
  pointer-events: none;
}

body.report-ui-screen .metric-card .metric-label {
  position: relative;
  z-index: 1;
  margin-bottom: 9px !important;
  color: var(--report-muted) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.report-ui-screen .metric-card .metric-value {
  position: relative;
  z-index: 1;
  color: var(--report-ink);
  font-size: clamp(22px, 2.3vw, 29px) !important;
  font-weight: 850 !important;
  letter-spacing: -.025em;
  line-height: 1.12;
}

body.report-ui-screen .metric-card .text-muted {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: var(--report-muted) !important;
  font-size: 12px;
}

body.report-ui-screen .table-responsive,
body.report-ui-screen .report-table-wrap {
  overflow: auto;
  border: 1px solid var(--report-border);
  border-radius: 14px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

body.report-ui-screen table.table,
body.report-ui-screen table.report-data-table {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fff;
}

body.report-ui-screen table.table thead th,
body.report-ui-screen table.report-data-table thead th {
  padding: 12px 13px !important;
  border: 0 !important;
  border-bottom: 1px solid #283447 !important;
  color: #fff !important;
  background: #1f2937 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle !important;
}

body.report-ui-screen table.table tbody td,
body.report-ui-screen table.report-data-table tbody td {
  padding: 11px 13px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--report-border-soft) !important;
  color: var(--report-text);
  background: #fff;
  font-size: 13px;
  vertical-align: middle !important;
}

body.report-ui-screen table.table tbody tr:nth-child(even) td,
body.report-ui-screen table.report-data-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

body.report-ui-screen table.table tbody tr:hover td,
body.report-ui-screen table.report-data-table tbody tr:hover td {
  background: #fff7f7 !important;
}

body.report-ui-screen .label,
body.report-ui-screen .badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 700;
}

body.report-ui-screen .pagination > li > a,
body.report-ui-screen .pagination > li > span {
  margin: 0 2px;
  border: 1px solid var(--report-border) !important;
  border-radius: 8px !important;
  color: var(--report-text);
}

body.report-ui-screen .pagination > .active > a,
body.report-ui-screen .pagination > .active > span {
  border-color: var(--report-primary) !important;
  background: var(--report-primary) !important;
}

body.report-ui-screen .ui-autocomplete {
  z-index: 10000 !important;
  overflow: hidden;
  max-height: 280px;
  padding: 6px !important;
  border: 1px solid var(--report-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 18px 46px rgba(31, 43, 64, .16) !important;
}

body.report-ui-screen .ui-menu-item,
body.report-ui-screen .ui-menu-item-wrapper {
  margin: 0 !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: var(--report-text) !important;
  background: transparent !important;
  font-size: 13px !important;
}

body.report-ui-screen .ui-state-active {
  color: var(--report-primary-dark) !important;
  background: var(--report-primary-soft) !important;
}

body.report-ui-screen .ui-datepicker {
  padding: 10px !important;
  border: 1px solid var(--report-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 46px rgba(31, 43, 64, .16) !important;
}

body.report-ui-screen .ui-datepicker-header {
  border: 0 !important;
  border-radius: 9px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--report-primary), var(--report-primary-dark)) !important;
}

body.report-ui-screen .ui-datepicker select {
  min-height: 28px !important;
  width: auto !important;
  padding: 3px 6px !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #111827 !important;
}

/* -------------------------------------------------------------------------- */
/* DOCUMENTOS: vista A4 y reportes independientes                              */
/* -------------------------------------------------------------------------- */

body.report-ui-document {
  position: relative;
  width: min(1120px, calc(100% - 32px)) !important;
  min-height: 240px;
  height: auto !important;
  margin: 28px auto 105px !important;
  padding: 34px 40px 38px !important;
  border: 1px solid rgba(207, 216, 227, .9);
  border-top: 6px solid var(--report-primary);
  border-radius: 18px;
  color: var(--report-text) !important;
  background: var(--report-surface) !important;
  box-shadow: var(--report-shadow);
  font-size: 13px !important;
  line-height: 1.45;
}

body.report-ui-document.report-ui-ticket {
  width: min(82mm, calc(100% - 24px)) !important;
  margin-top: 22px !important;
  padding: 6mm 5.5mm 7mm !important;
  border-top-width: 4px;
  border-radius: 13px;
  font-size: 10.5px !important;
  box-shadow: 0 18px 50px rgba(25, 35, 55, .18);
}

body.report-ui-document .report-ui-document-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--report-primary-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

body.report-ui-document .report-ui-document-brand::before,
body.report-ui-document .report-ui-document-brand::after {
  content: "";
  width: 28px;
  height: 1px;
  background: #e8b9bd;
}

body.report-ui-document h1,
body.report-ui-document h2,
body.report-ui-document .report-ui-title {
  margin: 0 0 18px !important;
  color: var(--report-ink) !important;
  font-size: clamp(22px, 3vw, 31px) !important;
  font-weight: 850 !important;
  letter-spacing: -.03em;
  line-height: 1.16;
  text-align: center !important;
}

body.report-ui-document.report-ui-ticket h1,
body.report-ui-document.report-ui-ticket h2,
body.report-ui-document.report-ui-ticket .report-ui-title {
  margin-bottom: 10px !important;
  font-size: 15px !important;
  letter-spacing: -.01em;
}

body.report-ui-document h3,
body.report-ui-document h4 {
  color: var(--report-ink);
  font-weight: 800;
}

body.report-ui-document .report-ui-meta,
body.report-ui-document table.meta,
body.report-ui-document table.details {
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 0;
  border: 1px solid var(--report-border) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px;
  background: #f8fafc !important;
}

body.report-ui-document .report-ui-meta td,
body.report-ui-document table.meta td,
body.report-ui-document table.details td {
  padding: 8px 11px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--report-border-soft) !important;
  color: var(--report-text);
  background: transparent !important;
  font-size: 12px;
}

body.report-ui-document .report-ui-meta tr:last-child td,
body.report-ui-document table.meta tr:last-child td,
body.report-ui-document table.details tr:last-child td {
  border-bottom: 0 !important;
}

body.report-ui-document .report-ui-meta td:first-child,
body.report-ui-document table.meta td:first-child,
body.report-ui-document table.details td:first-child {
  width: 180px;
  color: var(--report-muted);
  font-weight: 700;
}

body.report-ui-document.report-ui-ticket .report-ui-meta,
body.report-ui-document.report-ui-ticket table.meta,
body.report-ui-document.report-ui-ticket table.details {
  margin-bottom: 10px !important;
  border-radius: 8px;
}

body.report-ui-document.report-ui-ticket .report-ui-meta td,
body.report-ui-document.report-ui-ticket table.meta td,
body.report-ui-document.report-ui-ticket table.details td {
  padding: 4px 5px !important;
  font-size: 9.5px;
}

body.report-ui-document.report-ui-ticket .report-ui-meta td:first-child,
body.report-ui-document.report-ui-ticket table.meta td:first-child,
body.report-ui-document.report-ui-ticket table.details td:first-child {
  width: 38%;
}

body.report-ui-document .report-table-wrap {
  overflow: auto;
  width: 100%;
  margin: 15px 0 18px;
  border: 1px solid var(--report-border);
  border-radius: 13px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

body.report-ui-document.report-ui-ticket .report-table-wrap {
  overflow: visible;
  margin: 8px 0 10px;
  border-color: #cfd6df;
  border-radius: 7px;
}

body.report-ui-document table.report-data-table,
body.report-ui-document table.css-data_table,
body.report-ui-document table.data,
body.report-ui-document table.detail {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: auto;
  background: #fff;
}

body.report-ui-document table.report-data-table thead th,
body.report-ui-document table.report-data-table > tbody > tr:first-child > th,
body.report-ui-document table.css-data_table thead th,
body.report-ui-document table.css-data_table > tbody > tr:first-child > th,
body.report-ui-document table.data thead th,
body.report-ui-document table.data > tbody > tr:first-child > th,
body.report-ui-document table.detail thead th,
body.report-ui-document table.detail > tbody > tr:first-child > th {
  padding: 10px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid #182131 !important;
  color: #fff !important;
  background: #202b3c !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .045em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  vertical-align: middle !important;
  white-space: nowrap;
}

body.report-ui-document table.report-data-table tbody td,
body.report-ui-document table.css-data_table tbody td,
body.report-ui-document table.data tbody td,
body.report-ui-document table.detail tbody td {
  padding: 9px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--report-border-soft) !important;
  color: var(--report-text) !important;
  background: #fff !important;
  font-size: 11.5px !important;
  line-height: 1.38;
  vertical-align: top !important;
}

body.report-ui-document table.report-data-table tbody tr:nth-child(even) td,
body.report-ui-document table.css-data_table tbody tr:nth-child(even) td,
body.report-ui-document table.data tbody tr:nth-child(even) td,
body.report-ui-document table.detail tbody tr:nth-child(even) td {
  background: #f8fafc !important;
}

body.report-ui-document table.report-data-table tbody tr:last-child td,
body.report-ui-document table.css-data_table tbody tr:last-child td,
body.report-ui-document table.data tbody tr:last-child td,
body.report-ui-document table.detail tbody tr:last-child td {
  border-bottom: 0 !important;
}

body.report-ui-document.report-ui-ticket table.report-data-table thead th,
body.report-ui-document.report-ui-ticket table.report-data-table > tbody > tr:first-child > th,
body.report-ui-document.report-ui-ticket table.css-data_table thead th,
body.report-ui-document.report-ui-ticket table.css-data_table > tbody > tr:first-child > th,
body.report-ui-document.report-ui-ticket table.data thead th,
body.report-ui-document.report-ui-ticket table.data > tbody > tr:first-child > th,
body.report-ui-document.report-ui-ticket table.detail thead th,
body.report-ui-document.report-ui-ticket table.detail > tbody > tr:first-child > th {
  padding: 5px 3px !important;
  color: #111827 !important;
  background: #eceff3 !important;
  border-bottom: 1px solid #374151 !important;
  font-size: 7.8px !important;
  letter-spacing: .02em;
  white-space: normal;
}

body.report-ui-document.report-ui-ticket table.report-data-table tbody td,
body.report-ui-document.report-ui-ticket table.css-data_table tbody td,
body.report-ui-document.report-ui-ticket table.data tbody td,
body.report-ui-document.report-ui-ticket table.detail tbody td {
  padding: 4px 3px !important;
  font-size: 8.7px !important;
  line-height: 1.25;
}

body.report-ui-document .report-total-row td,
body.report-ui-document tr.grand td,
body.report-ui-document tr.strong td {
  color: var(--report-ink) !important;
  background: #fff5f5 !important;
  border-top: 1px solid #e7aeb3 !important;
  font-weight: 800 !important;
}

body.report-ui-document tr.report-grand-total td,
body.report-ui-document tr.grand td {
  padding-top: 11px !important;
  padding-bottom: 11px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--report-primary), var(--report-primary-dark)) !important;
  border-top: 0 !important;
  font-size: 13px !important;
}

body.report-ui-document.report-ui-ticket tr.report-grand-total td,
body.report-ui-document.report-ui-ticket tr.grand td {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  color: #111827 !important;
  background: #eceff3 !important;
  border-top: 2px solid #111827 !important;
  font-size: 9.5px !important;
}

body.report-ui-document table.summary,
body.report-ui-document .report-ui-summary {
  width: min(540px, 100%) !important;
  margin: 18px 0 0 auto !important;
  border: 1px solid var(--report-border) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

body.report-ui-document table.summary td,
body.report-ui-document .report-ui-summary td {
  padding: 8px 11px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--report-border-soft) !important;
  font-size: 11.5px;
}

body.report-ui-document table.summary tr:last-child td,
body.report-ui-document .report-ui-summary tr:last-child td {
  border-bottom: 0 !important;
}

body.report-ui-document.report-ui-ticket table.summary,
body.report-ui-document.report-ui-ticket .report-ui-summary {
  width: 100% !important;
  margin-top: 9px !important;
  border-radius: 7px;
}

body.report-ui-document.report-ui-ticket table.summary td,
body.report-ui-document.report-ui-ticket .report-ui-summary td {
  padding: 4px 5px !important;
  font-size: 8.8px;
}

body.report-ui-document .warning,
body.report-ui-document .alert,
body.report-ui-document .report-ui-warning {
  margin: 14px 0 !important;
  padding: 11px 13px !important;
  border: 1px solid #f4d28b !important;
  border-radius: 10px !important;
  color: #764d00 !important;
  background: #fff9e8 !important;
  font-size: 11px !important;
  line-height: 1.45;
}

body.report-ui-document .sync,
body.report-ui-document .note-history,
body.report-ui-document .report-ui-note {
  margin-top: 12px;
  color: var(--report-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.45;
}

body.report-ui-document .section {
  margin: 19px 0 8px !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-left: 4px solid var(--report-primary) !important;
  border-radius: 0 8px 8px 0;
  color: var(--report-ink) !important;
  background: #f8fafc !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: left !important;
  text-transform: uppercase;
}

body.report-ui-document .report-empty-row td,
body.report-ui-document .empty {
  padding: 25px 12px !important;
  color: var(--report-muted) !important;
  background: #fbfcfd !important;
  font-style: normal;
  text-align: center !important;
}

body.report-ui-document .report-ui-actions,
body.report-ui-document .no-print,
body.report-ui-document .css-no_print,
body.report-ui-document .actions {
  position: fixed !important;
  z-index: 9999;
  right: 20px;
  bottom: 20px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  margin: 0 !important;
  padding: 9px !important;
  border: 1px solid rgba(207, 216, 227, .94);
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 16px 42px rgba(31, 43, 64, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center !important;
}

body.report-ui-document .report-ui-actions hr,
body.report-ui-document .no-print hr,
body.report-ui-document .css-no_print hr {
  display: none;
}

body.report-ui-document .report-ui-actions button,
body.report-ui-document .no-print button,
body.report-ui-document .css-no_print button,
body.report-ui-document .actions button,
body.report-ui-document .btn-print,
body.report-ui-document .btn-close {
  min-height: 38px;
  padding: 8px 14px !important;
  border: 1px solid var(--report-primary-dark) !important;
  border-radius: 9px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--report-primary), var(--report-primary-dark)) !important;
  box-shadow: 0 7px 16px rgba(153, 27, 35, .17);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.2;
}

body.report-ui-document .report-ui-actions button:hover,
body.report-ui-document .no-print button:hover,
body.report-ui-document .css-no_print button:hover,
body.report-ui-document .actions button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #e03540, #86141b) !important;
}

body.report-ui-document .report-ui-actions .report-ui-close,
body.report-ui-document .actions .btn-close {
  border-color: #cfd7e3 !important;
  color: var(--report-text) !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.report-ui-document .right,
body.report-ui-document [align="right"],
body.report-ui-document .text-right {
  text-align: right !important;
}

body.report-ui-document .center,
body.report-ui-document [align="center"],
body.report-ui-document .text-center {
  text-align: center !important;
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE                                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  body.report-ui-screen .content-header {
    padding: 22px 17px 8px !important;
  }

  body.report-ui-screen .content-header::after {
    left: 17px;
    right: 17px;
  }

  body.report-ui-screen .content {
    padding: 18px 14px 28px !important;
  }

  body.report-ui-screen .box-body {
    padding: 18px !important;
  }

  body.report-ui-screen .report-ui-filter-table,
  body.report-ui-screen .report-ui-filter-table tbody,
  body.report-ui-screen .report-ui-filter-table tr,
  body.report-ui-screen .report-ui-filter-table td {
    display: block;
    width: 100% !important;
  }

  body.report-ui-screen .report-ui-filter-table {
    border-spacing: 0 !important;
  }

  body.report-ui-screen .report-ui-filter-table tr {
    margin-bottom: 15px;
  }

  body.report-ui-screen .report-ui-filter-table td {
    padding: 0 !important;
  }

  body.report-ui-screen .report-ui-filter-table td:first-child {
    margin-bottom: 6px;
  }

  body.report-ui-screen .report-ui-filter-table td[colspan] {
    margin-top: 3px;
  }

  body.report-ui-screen .report-ui-filter-table input[type="submit"],
  body.report-ui-screen .report-ui-filter-table .btn-primary,
  body.report-ui-screen .report-ui-filter-table .btn-success {
    width: 100%;
  }

  body.report-ui-document {
    width: calc(100% - 18px) !important;
    margin: 9px auto 92px !important;
    padding: 24px 18px 28px !important;
    border-radius: 13px;
  }

  body.report-ui-document.report-ui-ticket {
    width: calc(100% - 14px) !important;
    max-width: 82mm;
    padding: 5mm 4mm 6mm !important;
  }

  body.report-ui-document h1,
  body.report-ui-document h2,
  body.report-ui-document .report-ui-title {
    font-size: 22px !important;
  }

  body.report-ui-document .report-ui-meta td:first-child,
  body.report-ui-document table.meta td:first-child,
  body.report-ui-document table.details td:first-child {
    width: 42%;
  }

  body.report-ui-document .report-ui-actions,
  body.report-ui-document .no-print,
  body.report-ui-document .css-no_print,
  body.report-ui-document .actions {
    right: 9px;
    bottom: 9px;
    left: 9px;
    flex-wrap: wrap;
  }
}

/* -------------------------------------------------------------------------- */
/* IMPRESIÓN                                                                   */
/* -------------------------------------------------------------------------- */

@media print {
  html.report-ui-html,
  body.report-ui {
    background: #fff !important;
  }

  body.report-ui-screen .main-header,
  body.report-ui-screen .main-sidebar,
  body.report-ui-screen .content-header,
  body.report-ui-screen .main-footer,
  body.report-ui-screen .report-ui-help,
  body.report-ui-screen .no-print,
  body.report-ui-screen .actions {
    display: none !important;
  }

  body.report-ui-screen .content-wrapper {
    min-height: auto !important;
    margin-left: 0 !important;
    background: #fff !important;
  }

  body.report-ui-screen .content {
    padding: 0 !important;
  }

  body.report-ui-screen .box,
  body.report-ui-screen .report-ui-card {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.report-ui-screen .box::before,
  body.report-ui-screen .report-ui-card::before {
    display: none !important;
  }

  body.report-ui-document,
  body.report-ui-document.report-ui-ticket {
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.report-ui-document .report-ui-document-brand {
    margin-bottom: 4px;
    color: #111 !important;
  }

  body.report-ui-document .report-ui-actions,
  body.report-ui-document .no-print,
  body.report-ui-document .css-no_print,
  body.report-ui-document .actions {
    display: none !important;
  }

  body.report-ui-document .report-table-wrap,
  body.report-ui-screen .report-table-wrap,
  body.report-ui-screen .table-responsive {
    overflow: visible !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.report-ui-document table.report-data-table thead th,
  body.report-ui-document table.report-data-table > tbody > tr:first-child > th,
  body.report-ui-document table.css-data_table thead th,
  body.report-ui-document table.css-data_table > tbody > tr:first-child > th,
  body.report-ui-document table.data thead th,
  body.report-ui-document table.data > tbody > tr:first-child > th,
  body.report-ui-document table.detail thead th,
  body.report-ui-document table.detail > tbody > tr:first-child > th,
  body.report-ui-screen table.table thead th,
  body.report-ui-screen table.report-data-table thead th {
    color: #111 !important;
    background: #e8ebef !important;
    border-bottom: 1px solid #333 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.report-ui-document tr.report-grand-total td,
  body.report-ui-document tr.grand td {
    color: #111 !important;
    background: #e8ebef !important;
    border-top: 2px solid #111 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.report-ui-document table,
  body.report-ui-screen table {
    page-break-inside: auto;
  }

  body.report-ui-document tr,
  body.report-ui-screen tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  body.report-ui-document thead,
  body.report-ui-screen thead {
    display: table-header-group;
  }

  body.report-ui-document tfoot,
  body.report-ui-screen tfoot {
    display: table-footer-group;
  }
}
