/* Shared professional report workspace */
html.erp-report-page body {
  background: #f4f7fb;
}

html.erp-report-page .content-wrapper {
  background: #f4f7fb;
}

html.erp-report-page .content-header {
  padding: 23px 8px 13px;
}

html.erp-report-page .content-header h1 {
  margin: 0;
  color: #172b4d;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.025em;
}

html.erp-report-page .content-header h1 .erp-report-subtitle {
  display: block;
  margin-top: 5px;
  color: #748196;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

html.erp-report-page .breadcrumb {
  margin-top: 7px;
  padding: 0;
  background: transparent;
  font-size: 11px;
}

html.erp-report-page .breadcrumb a {
  color: #2563eb;
  font-weight: 700;
}

html.erp-report-page .content {
  padding-bottom: 30px;
}

html.erp-report-page .content .card {
  overflow: hidden;
  border: 1px solid #e1e8f1;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 25px rgba(15, 23, 42, .05);
}

html.erp-report-page .content .card>.card-header {
  min-height: 57px;
  padding: 17px 18px;
  border-bottom: 1px solid #e7edf4;
  background: #fff;
}

html.erp-report-page .content .card>.card-header .card-title {
  margin: 0;
  color: #24324a;
  font-size: 14px;
  font-weight: 800;
}

html.erp-report-page .content .card>.card-body {
  padding: 18px;
  background: #fbfcfe;
}

/* Filter workspace */
html.erp-report-page form.erp-report-filter {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid #e0e7f0;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .025);
}

.erp-report-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid #edf1f6;
}

.erp-report-filter-heading strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 12px;
}

.erp-report-filter-heading strong i {
  color: #2563eb;
}

.erp-report-filter-heading span {
  color: #8290a4;
  font-size: 10px;
}

html.erp-report-page form.erp-report-filter .row {
  align-items: flex-end;
}

html.erp-report-page form.erp-report-filter .form-group {
  margin-bottom: 12px;
}

html.erp-report-page form.erp-report-filter label {
  margin-bottom: 6px;
  color: #536176;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

html.erp-report-page form.erp-report-filter .form-control,
html.erp-report-page form.erp-report-filter .select2-selection--single {
  min-height: 38px;
  border: 1px solid #d8e1ec;
  border-radius: 7px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  box-shadow: none;
}

html.erp-report-page form.erp-report-filter .form-control:focus {
  border-color: #8eaff5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

html.erp-report-page form.erp-report-filter .select2-selection__rendered {
  padding-top: 6px;
}

html.erp-report-page form.erp-report-filter button[type="submit"] {
  min-height: 38px;
  margin-top: 0 !important;
  padding: 8px 15px;
  border: 1px solid #2563eb;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(37, 99, 235, .15);
}

html.erp-report-page form.erp-report-filter button[type="submit"]:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

html.erp-report-page form.erp-report-filter input[type="radio"] {
  width: 15px;
  height: 15px;
  margin: 0 5px 0 11px;
  vertical-align: -3px;
  accent-color: #2563eb;
}

html.erp-report-page form.erp-report-filter input[type="radio"]:first-child {
  margin-left: 0;
}

html.erp-report-page form.erp-report-filter>div>div>.form-group:first-child {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #526176;
  font-size: 11px;
}

/* Report output, tables and totals */
html.erp-report-page #print {
  overflow: visible;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
}

html.erp-report-page #print>.row:first-child:not(.no-print),
html.erp-report-page #print>.box-header:first-child {
  border-radius: 11px 11px 0 0;
}

html.erp-report-page .box-header {
  padding: 10px 15px;
  color: #334155;
  text-align: center;
}

html.erp-report-page .box-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.erp-report-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #bdc8d7 transparent;
}

html.erp-report-page table.table {
  min-width: 680px;
}

html.erp-report-page table.table.erp-report-table {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: #334155;
  background: #fff;
}

/* Report tables live inside #print and are intentionally excluded from the
   generic table enhancer. These scoped rules provide their complete design. */
html.erp-report-page body table.table.erp-report-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 11px !important;
  vertical-align: middle !important;
  border: 0 !important;
  border-bottom: 1px solid #d7e1ed !important;
  background: #eaf0f8 !important;
  color: #40516a !important;
  font-size: 10px !important;
  line-height: 1.25;
  font-weight: 800 !important;
  letter-spacing: .05em;
  text-align: left !important;
  text-transform: uppercase;
  white-space: nowrap;
}

html.erp-report-page body table.table.erp-report-table tbody td,
html.erp-report-page body table.table.erp-report-table tbody th {
  padding: 10px 11px !important;
  vertical-align: middle !important;
  border: 0 !important;
  border-bottom: 1px solid #e9eef5 !important;
  background: #fff !important;
  color: #3d4b60 !important;
  font-size: 11px !important;
  line-height: 1.4;
  text-align: left !important;
}

html.erp-report-page body table.table.erp-report-table tbody tr:nth-child(even)>td,
html.erp-report-page body table.table.erp-report-table tbody tr:nth-child(even)>th {
  background: #f8fafc !important;
}

html.erp-report-page body table.table.erp-report-table tbody tr:hover>td,
html.erp-report-page body table.table.erp-report-table tbody tr:hover>th {
  background: #edf5ff !important;
}

html.erp-report-page body table.table.erp-report-table tbody:last-child tr:last-child>td,
html.erp-report-page body table.table.erp-report-table tbody:last-child tr:last-child>th {
  border-bottom: 0 !important;
}

html.erp-report-page body table.table.erp-report-table .erp-report-number {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

html.erp-report-page body table.table.erp-report-table .erp-report-center {
  text-align: center !important;
}

html.erp-report-page body table.table.erp-report-table .erp-report-primary {
  color: #172b4d !important;
  font-weight: 700 !important;
}

html.erp-report-page table.table tbody+tbody tr:last-child th,
html.erp-report-page table.table tfoot th,
html.erp-report-page table.table tfoot td {
  border-top: 2px solid #cbd5e1 !important;
  background: #f1f5f9 !important;
  color: #172b4d !important;
  font-weight: 800 !important;
}

html.erp-report-page .no-print {
  margin: 14px 0 0;
}

html.erp-report-page .no-print .btn-primary,
html.erp-report-page a[onclick*="printDiv"] {
  min-width: 104px;
  padding: 8px 14px;
  border: 1px solid #c9dcff;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  box-shadow: none;
}

html.erp-report-page a[onclick*="printDiv"]:hover {
  border-color: #93b4f8;
  background: #dfeafe;
  color: #1e40af;
}

.erp-report-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 3px 0 10px;
  color: #7b8799;
  font-size: 10px;
}

.erp-report-results-meta strong {
  color: #334155;
  font-size: 11px;
}

/* Remove legacy fixed-position datepicker behavior on report screens. */
html.erp-report-page .datepicker-dropdown {
  z-index: 1080 !important;
}

@media (max-width:767px) {
  html.erp-report-page .content-header {
    padding-top: 17px;
  }

  html.erp-report-page .content-header h1 {
    font-size: 21px;
  }

  html.erp-report-page .breadcrumb {
    display: none;
  }

  html.erp-report-page .content .card>.card-body {
    padding: 11px;
  }

  html.erp-report-page form.erp-report-filter {
    padding: 12px;
  }

  html.erp-report-page form.erp-report-filter [class*="col-md-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  html.erp-report-page form.erp-report-filter button[type="submit"] {
    width: 100%;
  }

  html.erp-report-page table.table {
    min-width: 620px;
  }

  .erp-report-filter-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {

  html.erp-report-page body,
  html.erp-report-page .content-wrapper,
  html.erp-report-page .content .card>.card-body {
    background: #fff !important;
  }

  html.erp-report-page .content-header,
  html.erp-report-page form.erp-report-filter,
  .erp-report-results-meta {
    display: none !important;
  }

  html.erp-report-page .content .card,
  html.erp-report-page #print {
    border: 0 !important;
    box-shadow: none !important;
  }

  .erp-report-table-scroll {
    overflow: visible !important;
  }

  html.erp-report-page table.table {
    min-width: 0 !important;
  }

  html.erp-report-page body table.table.erp-report-table thead th,
  html.erp-report-page body table.table.erp-report-table tbody td,
  html.erp-report-page body table.table.erp-report-table tbody th {
    padding: 5px !important;
    font-size: 9px !important;
  }
}