/* ==========================================
   SALON MANAGEMENT REPORT DASHBOARD STYLES
   Prefix scoped with `rpt-` to prevent collisions
   ========================================== */

:root {
  /* Color Palette */
  --primary-color: #3bbbc4;
  --primary-hover: #329ea7;
  --primary-light: #eaf8f9;
  --accent-color: #df3d68;
  --accent-orange: #f97316;
  --text-main: #4a5568;
  --text-muted: #8e9aaf;
  --text-dark: #222222;
  --bg-app: #f4f7f9;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --sidebar-width: 240px;
  --font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* Layout Wrapper */
.dashboard-layout {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* ==========================================
   1. RPT-SIDEBAR (Clean Section Navigation matching MagicPatterns)
   ========================================== */
.rpt-sidebar {
  width: 236px;
  min-width: 236px;
  background-color: #ffffff;
  border-right: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.25s ease, min-width 0.25s ease;
  z-index: 10;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.rpt-sidebar.rpt-sidebar--collapsed {
  width: 64px;
  min-width: 64px;
}

.rpt-sidebar__header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  gap: 8px;
  box-sizing: border-box;
  background-color: #ffffff;
}

/* Brand container (hỗ trợ cả markup mới .rpt-sidebar__brand lẫn .rpt-sidebar__brand-copy/brand-icon) */
.rpt-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.rpt-sidebar__logo-badge,
.rpt-sidebar__brand-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background-color: #eef7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #287e20;
}

.rpt-sidebar__logo-badge svg,
.rpt-sidebar__brand-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.rpt-sidebar__title-wrap,
.rpt-sidebar__brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
  overflow: hidden;
  margin-left: 10px;
}

.rpt-sidebar__brand .rpt-sidebar__title-wrap {
  margin-left: 0;
}

.rpt-sidebar__title {
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.rpt-sidebar__subtitle {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.rpt-sidebar__toggle-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  padding: 0;
}

.rpt-sidebar__toggle-btn:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

.rpt-mobile-menu-label {
  display: none !important;
}

/* Sidebar Nav Body & Section Labels */
.rpt-sidebar__nav {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.rpt-sidebar__section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rpt-sidebar__section + .rpt-sidebar__section {
  margin-top: 12px;
}

.rpt-sidebar__section-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px 4px 10px;
  user-select: none;
}

.rpt-sidebar__menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rpt-sidebar__menu-li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Navigation Items (clean rounded rows) */
.rpt-submenu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  color: #1e293b;
  box-sizing: border-box;
}

.rpt-submenu-item:hover:not(.rpt-submenu-item--active) {
  background-color: #f8fafc;
  color: #0f172a;
}

.rpt-submenu-item:hover:not(.rpt-submenu-item--active) .rpt-submenu-item__icon {
  background-color: #e2e8f0;
  color: #1e293b;
}

.rpt-submenu-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #475569;
  transition: all 0.15s ease;
}

.rpt-submenu-item__icon svg {
  display: block;
}

.rpt-submenu-item__label {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Active State (matches Run Payroll in reference screenshot) */
.rpt-submenu-item--active {
  background-color: #eaf5e9 !important;
  color: #287e20 !important;
}

.rpt-submenu-item--active .rpt-submenu-item__icon {
  background-color: #287e20 !important;
  color: #ffffff !important;
}

.rpt-submenu-item--active .rpt-submenu-item__label {
  color: #287e20 !important;
  font-weight: 700 !important;
}

/* Collapsed Sidebar adjustments */
.rpt-sidebar.rpt-sidebar--collapsed .rpt-sidebar__title-wrap,
.rpt-sidebar.rpt-sidebar--collapsed .rpt-sidebar__brand-copy,
.rpt-sidebar.rpt-sidebar--collapsed .rpt-sidebar__section-label,
.rpt-sidebar.rpt-sidebar--collapsed .rpt-submenu-item__label {
  display: none !important;
}

.rpt-sidebar.rpt-sidebar--collapsed .rpt-sidebar__header {
  padding: 12px 10px;
  justify-content: center;
}

.rpt-sidebar.rpt-sidebar--collapsed .rpt-sidebar__brand,
.rpt-sidebar.rpt-sidebar--collapsed .rpt-sidebar__brand-icon {
  display: none !important;
}

.rpt-sidebar.rpt-sidebar--collapsed .rpt-submenu-item {
  justify-content: center;
  padding: 6px 0;
}

/* ==========================================
   2. MAIN CONTENT & MINIMALIST TOP BAR
   ========================================== */
.rpt-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px 100px 20px;
  gap: 14px;
  box-sizing: border-box;
}

#tabContentContainer {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 24px;
}

/* Minimalist Top Bar Controls */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: transparent;
  padding: 0;
}

.date-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.date-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn-icon {
  background: #ffffff;
  border: none;
  border-right: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 0;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.btn-icon:last-child {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

.btn-icon:hover {
  background-color: #f1f5f9;
  color: var(--primary-color);
}

.btn-text,
.btn-stepper-today,
.btn-text-date {
  background: #ffffff;
  border: none;
  border-right: 1px solid var(--border-color);
  height: 32px;
  padding: 0 14px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-text:hover,
.btn-stepper-today:hover,
.btn-text-date:hover {
  background-color: #f1f5f9;
  color: var(--primary-color);
}

.date-display-btn {
  background: #ffffff;
  border: none;
  height: 32px;
  padding: 0 16px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.date-display-btn:hover {
  background-color: var(--primary-light);
}

.view-mode-select {
  height: 34px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 12px;
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.view-mode-select:hover,
.view-mode-select:focus {
  border-color: var(--primary-color);
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#defaultActions {
  display: flex;
  gap: 6px;
}

/* Expandable Search Bar for Tab MORE */
.rpt-search-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  height: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.rpt-search-btn {
  background: transparent;
  border: none;
  height: 34px;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  font-size: 13px;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.rpt-search-btn:hover {
  color: var(--primary-color);
}

.rpt-search-input {
  width: 0;
  opacity: 0;
  border: none;
  outline: none;
  font-size: 12px;
  color: var(--text-dark);
  background: transparent;
  padding: 0;
  transition:
    width 0.3s ease,
    opacity 0.2s ease,
    padding 0.3s ease;
}

.rpt-search-clear-btn {
  background: transparent;
  border: none;
  height: 34px;
  width: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.rpt-search-clear-btn:hover {
  color: var(--accent-color);
}

.rpt-search-wrapper.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 187, 196, 0.15);
}

.rpt-search-wrapper.active .rpt-search-input {
  width: 190px;
  opacity: 1;
  padding: 0 4px;
}

.rpt-search-wrapper.active .rpt-search-clear-btn {
  display: flex;
}

.btn-more-action {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.btn-more-action:hover {
  background-color: #f1f5f9;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-more-icon {
  font-size: 12px;
}

.btn-more-label {
  font-size: 11px;
  font-weight: 700;
}

/* Minimalist Tabs Bar */
.tabs-nav {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid var(--border-color);
  margin-top: 4px;
}

.tab-item {
  padding: 8px 4px 10px 4px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: -2px;
}

.tab-item--active {
  color: var(--text-dark);
  border-bottom-color: var(--primary-color);
}

.tab-item:hover:not(.tab-item--active) {
  color: var(--primary-color);
}

/* Tab Content Container & Cards Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 4px;
}

.report-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  align-self: flex-start;
}

.report-card__header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  background-color: #ffffff;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.report-card__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.report-card__body {
  display: flex;
  flex-direction: column;
}

/* Data Rows & Interactive Modal Triggers */
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  transition: background-color 0.15s ease;
}

.data-row--clickable {
  cursor: pointer;
}

.data-row--clickable:hover {
  background-color: #f8fafc;
}

.data-row:last-child {
  border-bottom: none;
}

.data-row__label {
  color: var(--text-main);
  font-weight: 500;
}

.data-row__value {
  font-weight: 700;
  color: var(--text-dark);
}

/* Highlighted Total Rows */
.data-row--total {
  background-color: #fafbfc;
}

.data-row--total .data-row__label {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dark);
}

.data-row--total .data-row__value {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-color);
}

/* Placeholder View Content cho các Tab khác */
.tab-placeholder-view {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.tab-placeholder-view__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.tab-placeholder-view__desc {
  color: var(--text-muted);
  font-size: 13px;
}

/* ==========================================
   DATE PICKER MODAL / POPOVER FIX
   ========================================== */
.date-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-picker-overlay {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 1050;
  display: none;
}

.date-picker-overlay.show {
  display: block;
}

.date-picker-modal {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 16px;
  width: 580px;
}

.date-picker__calendars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calendar-box {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  background-color: #ffffff;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.calendar-nav-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.calendar-nav-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 0;
  text-align: center;
}

.day-cell {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: 50%;
  margin: 0 auto;
  width: 28px;
  transition: all 0.15s ease;
}

.day-cell:hover:not(.day-cell--empty):not(.day-cell--selected) {
  background-color: #f1f5f9;
}

.day-cell--empty {
  cursor: default;
}

.day-cell--selected {
  background-color: var(--primary-color);
  color: #ffffff;
}

.day-cell--start {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 4px;
}

.day-cell--end {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 4px;
}

.day-cell--in-range {
  background-color: #e6f7f8 !important;
  color: var(--text-dark) !important;
  border-radius: 0;
  width: 100%;
}

.date-picker__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.btn-modal-cancel {
  background-color: #64748b;
  color: #ffffff;
  border: none;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-modal-cancel:hover {
  background-color: #475569;
}

.btn-modal-save {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-modal-save:hover {
  background-color: var(--primary-hover);
}

/* ==========================================
   3. TAB MORE - TABLE SCOPED STYLES (rpt-more-)
   ========================================== */
.rpt-more-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.rpt-more-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  text-align: right;
  white-space: nowrap;
}

.rpt-more-table th {
  background-color: #f8fafc;
  color: var(--text-dark);
  font-weight: 800;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid #f1f5f9;
}

.rpt-more-table th.rpt-more-table__group-header {
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  padding: 12px 16px;
  background-color: #ffffff;
}

.rpt-more-table th.rpt-more-table__sub-header {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.rpt-more-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f8fafc;
  color: var(--text-dark);
  font-weight: 600;
}

.rpt-more-table .border-right-divider {
  border-right: 2px solid var(--border-color) !important;
}

.rpt-more-table tr:hover:not(.rpt-more-table__row--total) {
  background-color: #f8fafc;
}

.rpt-more-table__row--total {
  background-color: #ffffff;
  font-weight: 800;
}

.rpt-more-table__row--total td {
  font-weight: 800;
  color: var(--text-dark);
}

.rpt-more-table__staff-cell {
  text-align: left !important;
  font-weight: 700 !important;
}

.rpt-more-table__staff-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  transition: color 0.15s ease;
}

.rpt-more-table__staff-btn:hover {
  color: var(--primary-color);
}

.rpt-more-table__play-icon {
  color: var(--primary-color);
  font-size: 9px;
}

.rpt-more-table__total-pink {
  color: var(--accent-color) !important;
  font-weight: 800 !important;
}

/* ==========================================
   4. REUSABLE 1-LEVEL DATA MODAL (rpt-modal-)
   ========================================== */
.rpt-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 9999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rpt-modal-overlay.show {
  display: flex !important;
}

.rpt-modal {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 66vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 85vh;
  animation: rptModalFade 0.25s ease-out;
}

@keyframes rptModalFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rpt-modal__header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
}

.rpt-modal__header-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rpt-modal__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.rpt-modal__date-range {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.rpt-modal__header-right {
  display: flex;
  align-items: center;
  gap: var(--px-8);
}

.rpt-modal__badge {
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rpt-modal__badge-title {
  color: var(--text-muted);
}

.rpt-modal__badge-value {
  color: var(--accent-color);
  font-weight: 800;
}

.rpt-modal__close-btn {
  background: none;
  border: none;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s ease;
}

.rpt-modal__close-btn:hover {
  color: var(--text-dark);
}

.rpt-modal__body {
  padding: 0;
  overflow-y: auto;
  max-height: calc(85vh - 70px);
}

.rpt-modal__table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rpt-modal__table th {
  background-color: #f8fafc;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
}

.rpt-modal__table td {
  padding: 12px 20px;
  font-size: 12.5px;
  color: var(--text-main);
  border-bottom: 1px solid #f1f5f9;
}

.rpt-modal__table tbody tr:hover {
  background-color: #f8fafc;
}

.rpt-modal__cell-date {
  font-weight: 600;
  color: var(--text-dark);
}

.rpt-modal__cell-num {
  font-weight: 600;
}

.rpt-modal__cell-amount {
  font-weight: 700;
  color: var(--accent-color);
}

.rpt-modal__action-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--primary-color, #15803d);
  border: none;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease;
  padding: 0;
  outline: none;
}

.rpt-modal__action-btn i {
  color: #ffffff !important;
  font-size: 10px !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rpt-modal__action-btn:hover {
  transform: scale(1.12);
  filter: brightness(0.92);
}

/* ==========================================
   5. NESTED MODAL SCOPED STYLES (rpt-nested-)
   ========================================== */
.rpt-nested-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 9999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rpt-nested-overlay.show {
  display: flex;
}

.rpt-nested-modal {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 88vh;
  animation: rptNestedModalFade 0.25s ease-out;
}

@keyframes rptNestedModalFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rpt-nested-modal__header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
}

.rpt-nested-modal__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rpt-nested-modal__back-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.rpt-nested-modal__back-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.rpt-nested-modal__title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.rpt-nested-modal__date {
  color: var(--tdr-teal);
  font-size: 13px;
  font-weight: 700;
  margin-left: 4px;
}

/* Header Action Pill Shape Total Badge */
.rpt-nested-modal__total-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 5px 14px;
  margin-right: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.rpt-nested-modal__pill-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #64748b;
}

.rpt-nested-modal__pill-value {
  font-size: 13px;
  font-weight: 800;
  color: #df3d68;
}

.rpt-nested-modal__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpt-nested-modal__icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rpt-nested-modal__icon-btn:hover {
  background-color: #f1f5f9;
  color: var(--text-dark);
}

.rpt-nested-modal__close-btn {
  font-size: 18px;
  font-weight: bold;
}

.rpt-nested-modal__body {
  padding: 0;
  overflow-y: auto;
  max-height: calc(85vh - 65px);
}

/* Nested View 1 Table Styling */
.rpt-nested-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rpt-nested-table th {
  background-color: transparent;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 18px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.rpt-nested-table td {
  padding: 12px 18px;
  font-size: 12.5px;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
}

.rpt-nested-table tr:hover:not(.rpt-nested-table__row--total) {
  background-color: #f8fafc;
}

.rpt-nested-table__row--total td {
  font-weight: 800;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
  background-color: #ffffff;
}

.rpt-nested-play-btn,
.rpt-nested-action-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-color, #15803d);
  border: none;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease;
  padding: 0;
  outline: none;
}

.rpt-nested-play-btn:hover,
.rpt-nested-action-btn:hover {
  transform: scale(1.12);
  background-color: #166534;
}

.rpt-nested-play-btn i,
.rpt-nested-action-btn i {
  color: #ffffff !important;
  font-size: 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.rpt-nested-play-btn svg,
.rpt-nested-action-btn svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
  display: block;
}

/* Nested View 2 Grouped Sections Styling */
.rpt-nested-group {
  border-bottom: 1px solid var(--border-color);
}

.rpt-nested-group:last-child {
  border-bottom: none;
}

.rpt-nested-group__title {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 800;
  padding: 14px 20px 8px 20px;
}

.rpt-nested-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 20px 14px 20px;
  background-color: #ffffff;
}

.rpt-nested-grid__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rpt-nested-grid__label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.rpt-nested-grid__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.rpt-nested-group-table {
  width: 100%;
  border-collapse: collapse;
}

.rpt-nested-group-table th {
  background-color: #f8fafc;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  padding: 8px 20px;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  text-transform: uppercase;
}

.rpt-nested-group-table td {
  padding: 10px 20px;
  font-size: 12.5px;
  border-bottom: 1px solid #f1f5f9;
}

.rpt-nested-group-table .text-orange {
  color: var(--accent-orange) !important;
  font-weight: 700;
}

/* ==========================================
   RESPONSIVE DESIGN (Desktop & iPad/Tablet)
   ========================================== */
dialog.tech-daily-report-overlay {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

.tech-daily-report {
  --primary-color: #3bbbc4;
  --border-color: #e2e8f0;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --accent-orange: #ea580c;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tech-daily-report .rpt-nested-modal__header {
  flex: none;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-daily-report .rpt-nested-modal__header-left {
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.tech-daily-report .rpt-nested-modal__title {
  overflow-wrap: anywhere;
}
.tech-daily-report .rpt-nested-modal__body {
  flex: 1;
  min-height: 0;
  max-height: none;
}
.tech-daily-report .rpt-nested-modal__close-btn {
  width: 44px;
  height: 44px;
  flex: none;
}
.tech-daily-report .rpt-nested-modal__total-pill {
  margin-right: 0;
}
.tech-daily-report .text-right {
  text-align: right;
}
.tech-daily-report .rpt-nested-grid__value {
  overflow-wrap: anywhere;
}
.tech-daily-report__sale {
  overflow-x: auto;
}
.tech-daily-report__sale table {
  min-width: 680px;
}
.tech-daily-report__sale td {
  white-space: nowrap;
}
.tech-daily-report__total {
  font-weight: 800;
}
.tech-daily-report__pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
}
.tech-daily-report__pagination button {
  width: 44px;
  height: 44px;
}
.tech-daily-report__status {
  padding: 24px 20px;
}
.tech-daily-report__status button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

/* ===== NEW OWNER / TECH DAILY REPORT DESIGN ===== */
.tech-daily-report {
  --tdr-bg: #F0F4EE;
  --tdr-surface: #FFFFFF;
  --tdr-surface-2: #F5F8F3;
  --tdr-ink: #16261A;
  --tdr-ink-2: #4E6153;
  --tdr-ink-3: #98A89B;
  --tdr-line: #E0E8DD;
  --tdr-teal: #3A9821;
  --tdr-teal-soft: #EAF5E4;
  --tdr-orange: #D9541E;
  --tdr-red: #D23A4A;
  --tdr-font: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tdr-font-c: "IBM Plex Sans Condensed", "Arial Narrow", Arial, sans-serif;
  font-family: var(--tdr-font);
  color: var(--tdr-ink);
  background: var(--tdr-bg);
}

.tech-daily-report .num {
  font-variant-numeric: tabular-nums;
}
.tech-daily-report .zero {
  color: var(--tdr-ink-3) !important;
}

/* Toolbar */
.tech-daily-report .tdr-toolbar {
  max-width: 900px;
  margin: 12px 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tech-daily-report .tdr-seg {
  display: inline-flex;
  background: var(--tdr-surface);
  border: 1px solid var(--tdr-line);
  border-radius: 10px;
  padding: 3px;
}
.tech-daily-report .tdr-seg button {
  border: 0;
  background: transparent;
  color: var(--tdr-ink-2);
  padding: 6px 14px;
  border-radius: 7px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tech-daily-report .tdr-seg button[aria-pressed="true"] {
  background: var(--tdr-teal-soft);
  color: var(--tdr-teal);
  font-weight: 700;
}
.tech-daily-report .tdr-chk {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--tdr-ink-2);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.tech-daily-report .tdr-chk input {
  accent-color: var(--tdr-teal);
  width: 16px;
  height: 16px;
  margin: 0;
  visibility: visible;
}
.tech-daily-report .tdr-btn-print {
  margin-left: auto;
  border: 0;
  background: var(--tdr-ink);
  color: var(--tdr-surface);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}
.tech-daily-report .tdr-btn-print svg {
  width: 16px;
  height: 16px;
}

/* Screen Sheet */
.tech-daily-report .tdr-sheet {
  max-width: 900px;
  margin: 0 auto 30px;
  background: var(--tdr-surface);
  border: 1px solid var(--tdr-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

/* Strip (6 columns) */
.tech-daily-report .tdr-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--tdr-line);
}
.tech-daily-report .tdr-strip > div {
  padding: 10px 14px;
}
.tech-daily-report .tdr-strip > div + div {
  border-left: 1px solid var(--tdr-line);
}
.tech-daily-report .tdr-strip .att {
  background: var(--tdr-surface-2);
}
.tech-daily-report .tdr-strip .k {
  display: block;
  font-size: 11.5px;
  color: var(--tdr-ink-3);
  font-weight: 500;
  margin-bottom: 2px;
}
.tech-daily-report .tdr-strip .v {
  font-size: 15px;
  font-weight: 600;
}
.tech-daily-report .tdr-strip .v.hl {
  color: var(--tdr-teal);
}

/* Sections */
.tech-daily-report .tdr-sec {
  padding: 14px 18px;
}
.tech-daily-report .tdr-sec-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tdr-teal);
}
.tech-daily-report .tdr-sec-h .sum {
  margin-left: auto;
  color: var(--tdr-ink);
  font-weight: 700;
}
.tech-daily-report .tdr-sec-h .cnt {
  color: var(--tdr-ink-3);
  font-weight: 500;
  font-size: 12.5px;
}

/* Sale table */
.tech-daily-report .tdr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tdr-line);
  border-radius: 10px;
}
.tech-daily-report .tdr-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  table-layout: fixed;
}
.tech-daily-report .tdr-table th:nth-child(2) { width: 160px; }
.tech-daily-report .tdr-table th:nth-child(3) { width: 90px; }
.tech-daily-report .tdr-table th:nth-child(4) { width: 80px; }
.tech-daily-report .tdr-table th:nth-child(5) { width: 105px; }
.tech-daily-report .tdr-table th:nth-child(6) { width: 100px; }
.tech-daily-report .tdr-table th,
.tech-daily-report .tdr-table td {
  padding: 8px 12px;
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
}
.tech-daily-report .tdr-table th:first-child,
.tech-daily-report .tdr-table td:first-child {
  text-align: left;
  white-space: normal;
}
.tech-daily-report .tdr-table thead th {
  background: var(--tdr-surface-2);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tdr-ink-3);
  border-bottom: 1px solid var(--tdr-line);
}
.tech-daily-report .tdr-table tbody tr + tr td {
  border-top: 1px solid var(--tdr-line);
}
.tech-daily-report .tdr-table tr.total td {
  background: var(--tdr-teal-soft);
  font-weight: 700;
}
.tech-daily-report .tdr-table tbody tr.items-row td {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 10px;
}
.tech-daily-report .tdr-table tbody tr.trow td {
  padding-bottom: 6px;
}
.tech-daily-report .tdr-tline {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.tech-daily-report .tdr-tno {
  font-size: 12px;
  color: var(--tdr-ink-3);
  font-weight: 500;
}
.tech-daily-report .tdr-cust {
  font-weight: 600;
}
.tech-daily-report .tdr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tech-daily-report .tdr-chips span {
  white-space: nowrap;
  font-size: 12px;
  background: var(--tdr-surface-2);
  border: 1px solid var(--tdr-line);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--tdr-ink-2);
}
.tech-daily-report .tdr-pc .sep {
  color: var(--tdr-ink-3);
  margin: 0 2px;
}
.tech-daily-report .tdr-disc {
  color: var(--tdr-orange);
}
.tech-daily-report td.tdr-amt {
  font-weight: 700;
}

/* Bottom grid 4 */
.tech-daily-report .tdr-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--tdr-line);
}
.tech-daily-report .tdr-grid4 .tdr-sec + .tdr-sec {
  border-left: 1px solid var(--tdr-line);
}
.tech-daily-report .tdr-kv {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tech-daily-report .tdr-kv li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
}
.tech-daily-report .tdr-kv li + li {
  border-top: 1px dashed var(--tdr-line);
}
.tech-daily-report .tdr-kv li.has span:last-child {
  font-weight: 700;
}
.tech-daily-report .tdr-kv li.has span:first-child {
  font-weight: 500;
}
.tech-daily-report.hide-zero .tdr-kv li.z {
  display: none;
}
.tech-daily-report .tdr-kv .empty {
  color: var(--tdr-ink-3);
  font-size: 12.5px;
  display: none;
}
.tech-daily-report.hide-zero .tdr-kv.allzero .empty {
  display: block;
}

/* ===== 80mm Receipt Preview ===== */
.tech-daily-report .tdr-receipt-stage {
  display: none;
  justify-content: center;
  padding: 0 14px 40px;
}
.tech-daily-report.is-preview .tdr-sheet {
  display: none;
}
.tech-daily-report.is-preview .tdr-receipt-stage {
  display: flex;
}
.tech-daily-report .tdr-receipt {
  width: 80mm;
  background: #fff;
  color: #000;
  padding: 3.5mm 4mm 5mm;
  font-family: var(--tdr-font-c);
  font-size: 8.6pt;
  line-height: 1.25;
  box-shadow: 0 1px 0 #0001, 0 10px 30px -12px rgba(0,0,0,0.25);
  box-sizing: border-box;
}
.tech-daily-report .tdr-receipt * {
  color: #000;
}
.tech-daily-report .tdr-rr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2mm;
}
.tech-daily-report .tdr-rr > span:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tech-daily-report .tdr-r-top .name {
  font-size: 14pt;
  font-weight: 700;
  letter-spacing: .04em;
}
.tech-daily-report .tdr-r-top .d {
  font-weight: 600;
}
.tech-daily-report .tdr-r-sub {
  display: flex;
  justify-content: space-between;
  font-size: 8.2pt;
  margin-top: .5mm;
}
.tech-daily-report .tdr-r-sub b {
  border: 1.1px solid #000;
  border-radius: 2px;
  padding: 0 4px;
}
.tech-daily-report .tdr-hr {
  border: 0;
  border-top: 1px dashed #000;
  margin: 1.8mm 0;
}
.tech-daily-report .tdr-hr.b {
  border-top: 1.4px solid #000;
}
.tech-daily-report .tdr-r-att {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
}
.tech-daily-report .tdr-r-att > div + div {
  border-left: 1px dotted #000;
}
.tech-daily-report .tdr-r-att .l {
  font-size: 7.4pt;
  display: block;
}
.tech-daily-report .tdr-r-att .t {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tech-daily-report .tdr-r-att .t.b {
  font-weight: 700;
}
.tech-daily-report .tdr-r-h {
  font-weight: 700;
  font-size: 9.4pt;
  margin-bottom: .8mm;
}
.tech-daily-report .tdr-r-tk {
  padding: 1.2mm 0;
}
.tech-daily-report .tdr-r-tk + .tdr-r-tk {
  border-top: 1px dotted #000;
}
.tech-daily-report .tdr-r-tk .no {
  font-size: 7.8pt;
}
.tech-daily-report .tdr-r-tk .cn {
  font-weight: 700;
}
.tech-daily-report .tdr-r-tk .amt {
  font-weight: 700;
  font-size: 9.6pt;
}
.tech-daily-report .tdr-r-items {
  margin: .4mm 0 .8mm 2mm;
  padding: 0;
  list-style: none;
  font-size: 8.2pt;
}
.tech-daily-report .tdr-r-items li::before {
  content: "› ";
}
.tech-daily-report .tdr-mini {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr 1fr;
  font-variant-numeric: tabular-nums;
}
.tech-daily-report .tdr-mini > span {
  text-align: right;
  white-space: nowrap;
}
.tech-daily-report .tdr-mini > span:first-child {
  text-align: left;
}
.tech-daily-report .tdr-mini .lb {
  font-size: 7pt;
}
.tech-daily-report .tdr-r-total {
  border: 1.4px solid #000;
  border-radius: 1.5mm;
  padding: 1.2mm 1.6mm;
  margin-top: 1mm;
}
.tech-daily-report .tdr-r-total .big {
  font-size: 11pt;
  font-weight: 700;
}
.tech-daily-report .tdr-r-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3mm;
}
.tech-daily-report .tdr-r-col .tdr-r-h {
  border-bottom: 1px solid #000;
  padding-bottom: .4mm;
}
.tech-daily-report .tdr-r-col .tdr-rr {
  padding: .25mm 0;
}
.tech-daily-report .tdr-r-col .tdr-rr.has > span {
  font-weight: 700;
}
.tech-daily-report.hide-zero .tdr-receipt .tdr-rr.z {
  display: none;
}
.tech-daily-report .tdr-r-col .none {
  display: none;
  font-size: 7.6pt;
}
.tech-daily-report.hide-zero .tdr-r-col.allzero .none {
  display: block;
}
.tech-daily-report .tdr-r-foot {
  font-size: 7.4pt;
  text-align: center;
  margin-top: 1.6mm;
}

@media (max-width: 760px) {
  .tech-daily-report .tdr-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .tech-daily-report .tdr-strip > div:nth-child(4) {
    border-left: 0;
  }
  .tech-daily-report .tdr-strip > div:nth-child(n+4) {
    border-top: 1px solid var(--tdr-line);
  }
  .tech-daily-report .tdr-grid4 {
    grid-template-columns: 1fr 1fr;
  }
  .tech-daily-report .tdr-grid4 .tdr-sec:nth-child(3) {
    border-left: 0;
  }
  .tech-daily-report .tdr-grid4 .tdr-sec:nth-child(n+3) {
    border-top: 1px solid var(--tdr-line);
  }
}

@media (max-width: 480px) {
  .tech-daily-report .tdr-strip > div {
    padding: 8px 10px;
  }
  .tech-daily-report .tdr-strip .v {
    font-size: 14px;
  }
  .tech-daily-report .tdr-toolbar {
    padding: 0 10px;
  }
}

@media print {
  body.tdr-printing * {
    visibility: hidden;
  }
  body.tdr-printing .tech-daily-report-overlay,
  body.tdr-printing .tech-daily-report-overlay * {
    visibility: visible;
  }
  body.tdr-printing .tdr-toolbar,
  body.tdr-printing .tdr-sheet,
  body.tdr-printing .rpt-nested-modal__header {
    display: none !important;
  }
  body.tdr-printing .tdr-receipt-stage {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff !important;
  }
  body.tdr-printing .tdr-receipt {
    box-shadow: none !important;
    margin: 0 auto;
    width: 80mm !important;
  }
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .rpt-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .date-picker-modal {
    width: 100%;
    max-width: 340px;
  }

  .rpt-nested-modal {
    max-width: 95%;
  }

  .rpt-nested-modal__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .rpt-nested-modal__header-actions {
    align-self: flex-end;
  }
}

/* ==========================================
   6. BATCH TAB SCOPED STYLES (rpt-batch-)
   ========================================== */
.rpt-batch-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: auto;
}

.rpt-batch-select {
  height: 34px;
  min-width: 120px;
  max-width: 180px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  background-color: #ffffff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%234b5563' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.rpt-batch-select:hover {
  border-color: var(--primary-color);
}

.rpt-batch-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rpt-batch-action-item {
  position: relative;
}

.rpt-batch-action-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s ease;
}

.rpt-batch-action-btn:hover {
  color: var(--primary-color);
}

.rpt-batch-action-icon {
  font-size: 18px;
}

.rpt-batch-action-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.rpt-batch-action-btn:hover .rpt-batch-action-label {
  color: var(--primary-color);
}

/* Search Popover */
.rpt-batch-search-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 1010;
  animation: rptPopFade 0.15s ease-out;
}

.rpt-batch-search-input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 12.5px;
  outline: none;
  box-sizing: border-box;
}

.rpt-batch-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 187, 196, 0.15);
}

/* Dropdown Menu */
.rpt-batch-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  z-index: 1010;
  animation: rptPopFade 0.15s ease-out;
}

@keyframes rptPopFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rpt-batch-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.rpt-batch-dropdown-item:hover {
  background-color: #f8fafc;
  color: var(--primary-color);
}

.rpt-batch-dropdown-item i {
  font-size: 12px;
  color: var(--text-muted);
}

/* BATCH MAIN LAYOUT & TABLE */
.rpt-batch-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rpt-batch-table-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rpt-batch-table-scroll {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: auto;
}

.rpt-batch-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

.rpt-batch-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f8fafc;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-color);
}

.rpt-batch-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
}

.rpt-batch-pagination__info {
  color: var(--text-main);
}

.rpt-batch-pagination__btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpt-batch-page-btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.rpt-batch-page-btn:hover:not(:disabled) {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.rpt-batch-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f1f5f9;
}

.rpt-batch-table td {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-main);
  border-bottom: 1px solid #f1f5f9;
}

.rpt-batch-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.rpt-batch-table tbody tr:hover {
  background-color: #f1f5f9;
}

.rpt-batch-table .font-bold {
  font-weight: 700;
  color: var(--text-dark);
}

/* SUMMARY BOX */
.rpt-batch-summary-box {
  align-self: flex-end;
  width: 100%;
  max-width: 520px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rpt-batch-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rpt-batch-summary-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rpt-batch-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.rpt-batch-summary-label {
  color: var(--text-dark);
  font-weight: 600;
}

.rpt-batch-summary-value {
  font-weight: 700;
  color: var(--text-dark);
}

.rpt-batch-summary-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 13px;
}

.rpt-batch-total-label {
  font-weight: 800;
  color: var(--text-dark);
}

.rpt-batch-total-value {
  font-weight: 800;
  color: #e84a68;
  font-size: 14px;
}

/* ==========================================
   7. REUSABLE EMPTY STATE COMPONENT (rpt-empty-)
   ========================================== */
.rpt-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

.rpt-empty-state__icon {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.rpt-empty-state__text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================
   8. TICKET DETAIL MODAL (rpt-ticket-modal-)
   ========================================== */
.rpt-batch-table__row--clickable {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.rpt-batch-table__row--clickable:hover {
  background-color: #f1f5f9 !important;
}

.rpt-ticket-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rpt-ticket-modal-overlay.show {
  display: flex !important;
}

.rpt-ticket-modal {
  background-color: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rptTicketFade 0.2s ease-out;
}

@keyframes rptTicketFade {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.rpt-ticket-modal__content {
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rpt-ticket-modal__logo-box {
  background-color: #fef08a;
  width: 140px;
  height: 140px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
}

.rpt-ticket-modal__semicolon {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.rpt-ticket-modal__logo-circle {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background-color: #14532d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fef08a;
  padding: 4px;
}

.rpt-ticket-modal__logo-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: -1px;
}

.rpt-ticket-modal__logo-subtitle {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  margin-top: 3px;
  letter-spacing: 0.4px;
}

.rpt-ticket-modal__points-section {
  text-align: center;
  width: 100%;
}

.rpt-ticket-modal__earned-points {
  font-size: 13.5px;
  font-weight: 800;
  color: #334155;
  display: block;
}

.rpt-ticket-modal__main-points {
  font-size: 40px;
  font-weight: 900;
  color: #df3d68;
  margin: 0;
  line-height: 1.1;
}

.rpt-ticket-modal__current-label {
  font-size: 20px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 18px;
}

.rpt-ticket-modal__payment-section {
  width: 100%;
  text-align: left;
  padding-top: 14px;
}

.rpt-ticket-modal__payment-title {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.rpt-ticket-modal__payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.rpt-ticket-modal__payment-desc {
  color: #1e293b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rpt-ticket-modal__details-link {
  color: #3bbbc4;
  text-decoration: none;
  font-weight: 600;
  font-size: 11.5px;
}

.rpt-ticket-modal__details-link:hover {
  text-decoration: underline;
}

.rpt-ticket-modal__payment-amount {
  font-weight: 700;
  color: #1e293b;
  font-size: 12.5px;
}

.rpt-ticket-modal__footer {
  display: flex;
  padding: 0 16px 16px 16px;
  gap: 8px;
}

.rpt-ticket-modal__btn {
  flex: 1;
  height: 38px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  transition: opacity 0.15s ease;
}

.rpt-ticket-modal__btn:hover {
  opacity: 0.9;
}

.rpt-ticket-modal__btn--receipt {
  background-color: #f6c23e;
}

.rpt-ticket-modal__btn--edit {
  background-color: #3bbbc4;
}

.rpt-ticket-modal__receipt-details {
  width: 100%;
}

/* Receipt Details Container (POS Receipt Print Aesthetics) */
.rpt-ticket-modal__receipt-box {
  font-family: "Courier New", Courier, monospace, var(--font-family);
  width: 100%;
  color: #1e293b;
  font-size: 13px;
  margin-bottom: 12px;
}

.rpt-ticket-modal__dashed-line {
  border-top: 1px dashed #94a3b8;
  margin: 10px 0;
  width: 100%;
}

.rpt-ticket-modal__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.rpt-ticket-modal__meta-label {
  font-weight: 700;
  color: #334155;
}

.rpt-ticket-modal__meta-val {
  font-weight: 700;
  color: #0f172a;
}

.rpt-ticket-modal__meta-date-group {
  display: flex;
  gap: 16px;
  font-weight: 700;
}

.rpt-ticket-modal__table-header {
  display: flex;
  font-weight: 800;
  color: #334155;
  padding: 2px 0;
}

.rpt-ticket-modal__table-header .col-item {
  flex: 1;
  text-align: left;
}

.rpt-ticket-modal__table-header .col-qty {
  width: 50px;
  text-align: center;
}

.rpt-ticket-modal__table-header .col-amt {
  width: 80px;
  text-align: right;
}

.rpt-ticket-modal__items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpt-ticket-modal__item-group {
  display: flex;
  flex-direction: column;
}

.rpt-ticket-modal__item-name {
  font-weight: 800;
  color: #0f172a;
  text-align: left;
}

.rpt-ticket-modal__item-subrow {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.rpt-ticket-modal__item-tech {
  flex: 1;
  text-align: left;
  color: #475569;
  font-weight: 600;
}

.rpt-ticket-modal__item-qty {
  width: 50px;
  text-align: center;
  font-weight: 700;
}

.rpt-ticket-modal__item-amount {
  width: 80px;
  text-align: right;
  font-weight: 800;
}

.rpt-ticket-modal__summary-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rpt-ticket-modal__summary-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
}

/* Accordion Data Modal Master & Detail Rows */
.rpt-modal__master-row {
  cursor: pointer !important;
  transition: background-color 0.15s ease;
}

.rpt-modal__master-row * {
  pointer-events: none;
}

.rpt-modal__master-row:hover {
  background-color: #f8fafc;
}

.rpt-modal__cell-emp {
  font-weight: 800;
  color: #1e293b;
}

.rpt-modal__amount-flex {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.rpt-modal__amount-val {
  font-weight: 800;
  color: #df3d68;
}

.rpt-modal__toggle-icon {
  font-size: 16px;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.rpt-modal__toggle-icon--cyan {
  color: #38bdf8;
}

.rpt-modal__toggle-icon--up {
  color: #64748b;
}

.p-0 {
  padding: 0 !important;
}

/* Sub-table Accordion Detail Container */
.rpt-modal__sub-table-wrapper {
  background-color: #ffffff;
  padding: 0;
  border-bottom: 1px solid #e2e8f0;
}

.rpt-modal__sub-table {
  width: 100%;
  border-collapse: collapse;
}

.rpt-modal__sub-table thead tr {
  background-color: #eaf8f9;
}

.rpt-modal__sub-table thead th {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 12px;
  border-bottom: none;
}

.rpt-modal__sub-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  color: #334155;
  vertical-align: middle;
}

.rpt-modal__ticket-badge {
  display: inline-block;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 700;
  color: #334155;
  font-size: 11.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rpt-modal__sub-services {
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
}

.rpt-modal__sub-amount {
  font-weight: 800;
  color: #df3d68;
}

/* ==========================================
   SALE TAB CUSTOM DROPDOWN FILTERS
   ========================================== */
.rpt-sale-filters,
.rpt-sales-perf-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rpt-custom-select {
  position: relative;
  user-select: none;
}

.rpt-custom-select__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rpt-custom-select__trigger:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.rpt-custom-select.open .rpt-custom-select__trigger {
  border-color: #3bbbc4;
  box-shadow: 0 0 0 2px rgba(59, 187, 196, 0.15);
}

.rpt-custom-select__arrow {
  font-size: 11px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.rpt-custom-select.open .rpt-custom-select__arrow {
  transform: rotate(180deg);
}

.rpt-custom-select__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  max-width: 280px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.05);
  z-index: 1050;
  overflow: hidden;
}

.rpt-custom-select.open .rpt-custom-select__menu {
  display: block;
  animation: rptSelectFadeIn 0.15s ease-out;
}

@keyframes rptSelectFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rpt-custom-select__search-box {
  position: relative;
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.rpt-custom-select__search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 12px;
}

.rpt-custom-select__search {
  width: 100%;
  height: 34px;
  padding: 0 10px 0 32px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  background-color: #f8fafc;
}

.rpt-custom-select__search:focus {
  border-color: #3bbbc4;
  background-color: #ffffff;
}

.rpt-custom-select__list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 240px;
  overflow-y: auto;
}

.rpt-custom-select__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.rpt-custom-select__item:hover {
  background-color: #f1f5f9;
}

.rpt-custom-select__item-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rpt-custom-select__avatar-initials,
.rpt-custom-select__avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.rpt-custom-select__avatar-initials {
  background-color: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rpt-custom-select__radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.rpt-custom-select__radio.active {
  border-color: #3bbbc4;
}

.rpt-custom-select__radio.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: #3bbbc4;
  border-radius: 50%;
}

/* More Action Button & Dropdown Menu */
.rpt-more-wrapper {
  position: relative;
  display: inline-block;
}

.btn-more-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 6px);
  color: var(--text-dark, #334155);
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
  transition: all 0.2s ease;
}

.btn-more-action:hover {
  background: var(--bg-hover, #f8fafc);
  border-color: var(--accent-color, #3bbb3b);
  color: var(--accent-color, #3bbb3b);
}

.rpt-more-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  padding: 6px 0;
  overflow: hidden;
}

.rpt-more-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 8px 14px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  text-decoration: none;
}

.rpt-more-dropdown-item:hover {
  background: #f1f5f9;
  color: var(--accent-color, #3bbb3b);
}

.rpt-more-dropdown-item i {
  font-size: 14px;
  width: 16px;
  text-align: center;
  color: #64748b;
}

.rpt-more-dropdown-item:hover i {
  color: var(--accent-color, #3bbb3b);
}

/* Màu xanh hệ thống cho các cột TOTAL */
.rpt-more-table__total-blue {
  color: #0284c7 !important;
  font-weight: 700;
}

/* Global font-bold helper & Modal total row font-weight */
.font-bold {
  font-weight: 700 !important;
}

.rpt-modal__table tr.font-bold td {
  font-weight: 700 !important;
}


/* ==========================================
   QUICK PEEK TAB (Redesign matching MagicPatterns)
   ========================================== */

/* Main Header (Title + Subtitle) */
.rpt-main-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rpt-main-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
}

.rpt-main-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: #64748b;
  margin: 0;
}

.top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background-color: transparent;
  padding: 0;
  flex-wrap: wrap;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rpt-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background-color: #15803d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rpt-btn-export:hover {
  background-color: #166534;
}

/* 4 Summary Cards (KPIs) Row */
.rpt-qp-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.rpt-qp-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.rpt-qp-kpi-card {
  background: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.rpt-qp-kpi-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.rpt-qp-kpi-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpt-qp-kpi-title {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

.rpt-qp-kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.rpt-qp-kpi-sub {
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
}

/* Dots */
.rpt-qp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.rpt-qp-dot--square {
  border-radius: 2px;
}

.bg-green { background-color: #16a34a; }
.bg-blue { background-color: #2563eb; }
.bg-purple { background-color: #7c3aed; }
.bg-light-purple { background-color: #a78bfa; }
.bg-very-light-purple { background-color: #ddd6fe; }
.bg-teal { background-color: #0d9488; }
.bg-gray { background-color: #94a3b8; }

/* Hint bar */
.rpt-qp-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #64748b;
  padding: 2px 0;
}

/* 3-Column Content Grid */
.rpt-qp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  align-items: start;
}

.rpt-qp-col {
  display: flex;
  flex-direction: column;
}

/* Detail Card */
.rpt-qp-card {
  background: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.rpt-qp-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rpt-qp-card__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rpt-qp-card__icon-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rpt-qp-card__icon-badge--sales {
  background-color: #eef7ed;
  color: #15803d;
}

.rpt-qp-card__icon-badge--payments {
  background-color: #ecfdf5;
  color: #059669;
}

.rpt-qp-card__icon-badge--staff {
  background-color: #eff6ff;
  color: #2563eb;
}

.rpt-qp-card__icon-badge--clients {
  background-color: #faf5ff;
  color: #9333ea;
}

.rpt-qp-card__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rpt-qp-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.rpt-qp-card__subtitle {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 400;
}

.rpt-qp-card__header-value {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}

.rpt-qp-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 12px 0 6px 0;
  user-select: none;
}

/* Data Rows */
.rpt-qp-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.rpt-qp-data-row:hover {
  opacity: 0.75;
}

.rpt-qp-data-row__label {
  color: #334155;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpt-qp-data-row__value {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

.rpt-qp-card__divider {
  border-top: 1px solid #f1f5f9;
  margin: 10px 0;
}

.rpt-qp-data-row--total {
  padding-top: 4px;
}

.rpt-qp-data-row--total .rpt-qp-data-row__label {
  font-weight: 700;
  color: #0f172a;
  font-size: 13.5px;
}

.rpt-qp-data-row--total .rpt-qp-data-row__value {
  font-weight: 700;
  color: #15803d;
  font-size: 15px;
}

/* Progress bar */
.rpt-qp-progress-bar {
  height: 8px;
  border-radius: 999px;
  background-color: #f1f5f9;
  display: flex;
  overflow: hidden;
  margin: 10px 0 12px 0;
  width: 100%;
}

.rpt-qp-progress-seg {
  height: 100%;
  transition: width 0.3s ease;
}

/* Staff Team Mini-Boxes */
.rpt-qp-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 6px 0 10px 0;
}

.rpt-qp-team-box {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rpt-qp-team-box:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.rpt-qp-team-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.rpt-qp-team-val {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

/* Commission Highlight Box */
.rpt-qp-highlight-box {
  background-color: #f0f7ff;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.rpt-qp-highlight-box:hover {
  background-color: #e0f2fe;
}

.rpt-qp-highlight-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.rpt-qp-highlight-val {
  font-size: 14.5px;
  font-weight: 700;
  color: #2563eb;
}

/* Status Pill Badges */
.rpt-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.rpt-status-badge--serviced {
  background-color: #ecfdf5;
  color: #15803d;
}

.rpt-status-badge--left-before {
  background-color: #fff7ed;
  color: #c2410c;
}

.rpt-status-badge--left-during {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* Tabs-nav alignment */
.tabs-nav {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
}

.tab-item {
  padding: 8px 2px 10px 2px;
  font-weight: 600;
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: -1px;
}

.tab-item:hover {
  color: #0f172a;
}

.tab-item--active {
  color: #15803d !important;
  border-bottom-color: #15803d !important;
  font-weight: 600 !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .rpt-qp-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .rpt-qp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .rpt-qp-kpis {
    grid-template-columns: 1fr;
  }
  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ========================================================
   TOPBAR PARITY FIX: Stepper, Standalone Today & Export
   ======================================================== */
.top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  background-color: transparent !important;
  padding: 0 !important;
  flex-wrap: wrap !important;
}

.top-bar__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.date-controls {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative !important;
}

/* 1. Stepper: Unified Pill Container */
.date-stepper {
  height: 36px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  display: inline-flex !important;
  align-items: center !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

.date-stepper .btn-icon {
  height: 36px !important;
  width: 32px !important;
  min-width: 32px !important;
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
}

.date-stepper .btn-icon:hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

.date-stepper .btn-stepper-prev {
  border-right: 1px solid #e2e8f0 !important;
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
}

.date-stepper .btn-stepper-next {
  border-left: 1px solid #e2e8f0 !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
}

.date-stepper .date-display-btn {
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition: background-color 0.15s ease !important;
}

.date-stepper .date-display-btn:hover {
  background-color: #f8fafc !important;
}

.date-stepper .date-display-btn svg {
  color: #0f172a !important;
  flex-shrink: 0 !important;
}

/* 2. Standalone Today Button */
.btn-stepper-today {
  height: 36px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.btn-stepper-today:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

/* 3. View Mode Dropdown */
.view-mode-select {
  height: 36px !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 0 28px 0 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
}

.view-mode-select:hover {
  border-color: #cbd5e1 !important;
}


/* 4. Solid Green Export Button & Dropdown Wrapper */
.rpt-export-wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.rpt-export-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  min-width: 180px !important;
  background: #ffffff !important;
  border: 1px solid var(--border-color, #e2e8f0) !important;
  border-radius: var(--radius-md, 8px) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  z-index: 1050 !important;
  padding: 6px 0 !important;
  overflow: hidden !important;
}

/* 4. Solid Green Export Button */
.rpt-btn-export {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 36px !important;
  padding: 0 16px !important;
  background-color: #15803d !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  transition: background-color 0.15s ease !important;
  white-space: nowrap !important;
}

.rpt-btn-export:hover {
  background-color: #166534 !important;
}

/* 5. Hide 3-dots more button on Quick Peek */
body:has(#tabContentContainer .rpt-qp-container) .rpt-more-wrapper,
.rpt-main-content:has(.rpt-qp-container) .rpt-more-wrapper {
  display: none !important;
}



/* ========================================================
   DATE PICKER POSITION & VIEWPORT ALIGNMENT FIX
   ======================================================== */
.date-controls .date-picker-overlay,
#datePickerModal {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 1050 !important;
}

.date-controls .date-picker-modal,
#datePickerModal .date-picker-modal {
  width: 580px !important;
  max-width: calc(100vw - 32px) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #e2e8f0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .date-controls .date-picker-overlay,
  #datePickerModal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
  }
}

@media (max-width: 640px) {
  .date-controls .date-picker-modal,
  #datePickerModal .date-picker-modal {
    width: 92vw !important;
    max-width: 360px !important;
    padding: 12px !important;
  }
  .date-picker__calendars {
    grid-template-columns: 1fr !important;
  }
}


/* ========================================================
   STAFF REVENUE TAB REDESIGN (MagicPatterns 100% Match)
   ======================================================== */
.rpt-sr-container {
  padding: 0 0 40px 0;
  width: 100%;
}

/* 4 KPI Summary Cards */
.rpt-sr-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .rpt-sr-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rpt-sr-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.rpt-sr-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 106px;
}

.rpt-sr-kpi-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 6px;
}

.rpt-sr-kpi-label.text-blue {
  color: #2563eb !important;
  font-weight: 600;
}

.rpt-sr-kpi-label.text-green {
  color: #15803d !important;
  font-weight: 600;
}

.rpt-sr-kpi-val {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rpt-sr-kpi-val.text-blue {
  color: #2563eb !important;
}

.rpt-sr-kpi-val.text-green {
  color: #15803d !important;
}

.rpt-sr-kpi-sub {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* Multi-color segmented progress bar */
.rpt-sr-progress {
  height: 6px;
  border-radius: 9999px;
  background: #f1f5f9;
  display: flex;
  overflow: hidden;
  margin-top: 10px;
  width: 100%;
}

.rpt-sr-prog-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.rpt-sr-prog-seg.bg-blue { background-color: #2563eb; }
.rpt-sr-prog-seg.bg-teal { background-color: #0d9488; }
.rpt-sr-prog-seg.bg-amber { background-color: #f59e0b; }
.rpt-sr-prog-seg.bg-purple { background-color: #8b5cf6; }

/* Filter & Controls Bar */
.rpt-sr-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.rpt-sr-controls-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rpt-sr-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
  height: 36px;
  width: 220px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.rpt-sr-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  width: 100%;
  color: #0f172a;
}

.rpt-sr-search input::placeholder {
  color: #94a3b8;
}

.rpt-sr-sort-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rpt-sr-sort-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-right: 6px;
}

.rpt-sr-sort-pill {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rpt-sr-sort-pill:hover {
  color: #0f172a;
}

.rpt-sr-sort-pill.is-active {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* View switcher */
.rpt-sr-view-toggle {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.rpt-sr-view-pill {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.rpt-sr-view-pill:hover {
  color: #0f172a;
}

.rpt-sr-view-pill.is-active {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Table Card */
.rpt-sr-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.rpt-sr-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.rpt-sr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: right;
  white-space: nowrap;
}

/* Super Header */
.rpt-sr-super-header th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: center;
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
}

.rpt-sr-super-group.rpt-sr-group-sales {
  border-right: 1px solid #e2e8f0;
}

.rpt-sr-super-group.rpt-sr-group-payment {
  border-right: 1px solid #e2e8f0;
}

/* Sub Header */
.rpt-sr-sub-header th {
  padding: 12px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  background: #fafbfc;
  border-bottom: 1px solid #e2e8f0;
}

.rpt-sr-sub-header th.rpt-sr-col-commission {
  color: #2563eb !important;
  font-weight: 700;
  background: #f4f8ff !important;
}

.rpt-sr-sub-header th.rpt-sr-col-total {
  color: #15803d !important;
  font-weight: 700;
  background: #f0fdf4 !important;
}

/* Data Rows */
.rpt-sr-row {
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.rpt-sr-row:hover {
  background-color: #f8fafc;
}

.rpt-sr-row td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}

.rpt-sr-cell-staff {
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 160px;
}

.rpt-sr-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}

.rpt-sr-staff-info {
  display: flex;
  flex-direction: column;
}

.rpt-sr-staff-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.rpt-sr-staff-sub {
  font-size: 11.5px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.25;
}

.rpt-sr-cell-commission {
  color: #2563eb !important;
  font-weight: 700 !important;
  background: #f8faff !important;
}

.rpt-sr-cell-total {
  color: #15803d !important;
  font-weight: 800 !important;
  background: #f0fdf4 !important;
  font-size: 13.5px !important;
}

.rpt-sr-divider {
  border-right: 1px solid #edf2f7 !important;
}

.rpt-sr-row td.text-danger {
  color: #c2410c !important;
}

.rpt-sr-row td.text-muted {
  color: #94a3b8 !important;
  font-weight: 400;
}

.rpt-sr-row td.text-dark {
  color: #0f172a;
  font-weight: 600;
}

/* Grid View Styles */
.rpt-sr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.rpt-sr-grid-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px 18px 18px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}

.rpt-sr-grid-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.08);
}

.rpt-sr-gc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rpt-sr-gc-staff {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rpt-sr-gc-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.rpt-sr-gc-total-sec {
  margin-bottom: 14px;
}

.rpt-sr-gc-total-label {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.rpt-sr-gc-total-val {
  font-size: 22px;
  font-weight: 700;
  color: #15803d;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.rpt-sr-gc-metrics {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.rpt-sr-gc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  line-height: 1.3;
}

.rpt-sr-gc-label {
  color: #64748b;
  font-weight: 400;
}

.rpt-sr-gc-val {
  color: #0f172a;
}

.rpt-sr-gc-progress-sec {
  margin-top: auto;
  padding-top: 10px;
}

.rpt-sr-gc-progress-bar {
  display: flex;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  background-color: #f1f5f9;
  margin-bottom: 7px;
}

.rpt-sr-gc-prog-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.rpt-sr-gc-legend {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
