/* =========================================================
   FONTS & BASE STYLES
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

html { scroll-behavior: smooth; }

body.rrm-modal-open,
body.rdp-client-modal-open,
body.rdp-inquire-modal-open { overflow: hidden; }

.rdp-shell,
.rdp-dashboard,
.rdp-dashboard * {
  font-family: 'Inter', Arial, sans-serif;
  color: #1D1D1F;
}

.rdp-shell {
  width: 100%;
  max-width: 1250px !important;
  margin: 0 auto;
  padding: 20px 16px;
}

.rdp-dashboard,
.rdp-dashboard * { font-family: 'Poppins', Arial, sans-serif !important; }

#rdp-dashboard-section,
#rdp-records-section { scroll-margin-top: 110px; }


/* =========================================================
   TOPBAR & NAVIGATION
========================================================= */
.rdp-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
  z-index: 30;
}

.rdp-topbar-left,
.rdp-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Menu Toggle */
.rdp-admin-menu-toggle {
  appearance: none;
  width: 50px;
  height: 50px;
  border: none !important;
  outline: none !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 2px 5px rgba(16,24,40,.04), 0 16px 30px rgba(16,24,40,.08) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  transition: transform .2s ease;
  color: transparent !important;
}

.rdp-admin-menu-toggle:hover,
.rdp-admin-menu-toggle:focus,
.rdp-admin-menu-toggle:active {
  border: none !important;
  outline: none !important;
  background: #2F7C52 !important;
  box-shadow: 0 2px 5px rgba(16,24,40,.04), 0 16px 30px rgba(16,24,40,.08) !important;
  color: transparent !important;
  transform: none !important;
}

.rdp-admin-menu-toggle::-moz-focus-inner { border: 0; }

.rdp-admin-menu-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #204A35 !important;
  display: block;
}

/* Brand Logo */
.rdp-admin-brand-pill {
  width: 110px;
  height: 50px;
  background: #fff;
  border: 1px solid #ECECEC;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(16,24,40,.04), 0 16px 30px rgba(16,24,40,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  overflow: hidden;
}

.rdp-admin-brand-pill img {
  height: 80px !important;
  width: auto;
  display: block;
}

/* Navigation Dropdown */
.rdp-admin-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rdp-admin-dropdown {
  position: absolute;
  top: 66px;
  left: 0;
  width: 250px;
  background: #fff;
  border: 1px solid #EDEDED;
  border-radius: 22px;
  box-shadow: 0 6px 14px rgba(15,23,42,.04), 0 28px 45px rgba(15,23,42,.10);
  padding: 18px 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .22s ease;
  pointer-events: none;
}

.rdp-admin-nav.open .rdp-admin-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.rdp-admin-dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #3A3A3C;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 14px;
  padding: 12px;
  transition: background .2s ease, color .2s ease;
}

.rdp-admin-dropdown-item:hover {
  background: #F6F7F7;
  color: #1F1F21;
}

.rdp-admin-item-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #595959;
  flex: 0 0 auto;
}

.rdp-admin-item-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Circle Buttons */
.rdp-admin-circle-btn {
  appearance: none;
  width: 50px;
  height: 50px;
  border: none !important;
  outline: none !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #606268 !important;
  box-shadow: 0 2px 5px rgba(16,24,40,.04), 0 16px 30px rgba(16,24,40,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.rdp-admin-circle-btn:hover,
.rdp-admin-circle-btn:focus,
.rdp-admin-circle-btn:active {
  background: #fff !important;
  color: #606268 !important;
  border: none !important;
  outline: none !important;
}

.rdp-admin-circle-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Avatar */
.rdp-admin-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #E9D6CA;
  box-shadow: 0 2px 5px rgba(16,24,40,.04), 0 16px 30px rgba(16,24,40,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #6A4C3C;
  overflow: hidden;
}

/* Account Menu */
.rdp-account-menu { position: relative; }

.rdp-admin-avatar-btn {
  appearance: none;
  padding: 0;
  margin: 0;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rdp-admin-avatar-btn:hover,
.rdp-admin-avatar-btn:focus,
.rdp-admin-avatar-btn:active {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.rdp-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 255px;
  background: #fff;
  border: 1px solid #ECECEC;
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(15,23,42,.10), 0 6px 16px rgba(15,23,42,.06);
  padding: 12px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: all .2s ease;
  z-index: 9999;
}

.rdp-account-menu.open .rdp-account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.rdp-account-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 16px 14px;
  border-bottom: 1px solid #EFEFEF;
}

.rdp-account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E9D6CA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #6A4C3C;
  flex: 0 0 auto;
}

.rdp-account-name {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  color: #2E3137;
}

.rdp-account-sub {
  margin-top: 4px;
  font-size: 14px;
  color: #9A9EA6;
  line-height: 1.2;
}

.rdp-account-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 16px;
  color: #B42318;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 18px 18px;
}



.rdp-account-logout:hover {
  background: #FFF5F5;
  color: #B42318;
}

.rdp-account-logout-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rdp-account-logout-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}


/* =========================================================
   LAYOUT & GRID
========================================================= */
.rdp-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 16px;
}

.rdp-left,
.rdp-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* =========================================================
   STATS CARDS
========================================================= */
.rdp-stats-row { display: grid; gap: 14px; }

.rdp-stats-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

.rdp-stats-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rdp-stat-card,
.rdp-card {
  background: #fff;
  border: 1px solid #ECECEC;
  border-radius: 16px;
  box-shadow: 0 1px 5px rgba(17,24,39,.03);
}

.rdp-stat-card {
  padding: 14px 16px;
  min-height: 112px;
  min-width: 0;
  overflow: hidden;
}

.rdp-stat-head {
  font-family: 'Poppins', Arial, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.rdp-stat-pill {
  font-size: 10px;
  color: #3BAA68;
  background: #E5F5EA;
  border: 1px solid #2F7C52;
  border-radius: 999px;
  padding: 5px 7px;
  line-height: 1;
}

.rdp-stat-body {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  margin-top: 40px;
  min-width: 0;
  overflow: hidden;
}

.rdp-stat-value {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: #212121;
  white-space: nowrap;
  letter-spacing: -.9px;
}

.rdp-stat-compare { display: none !important; }


/* =========================================================
   CARBON GAUGE CARD
========================================================= */
.rdp-carbon-gauge-panel {
  padding: 16px !important;
  min-height: 260px !important;
  overflow: visible !important;
}

.rdp-carbon-head { align-items: flex-start !important; }

.rdp-carbon-head p {
  margin: 3px 0 0 !important;
  font-size: 12px !important;
  color: #8A92A3 !important;
  font-weight: 700 !important;
}

.rdp-carbon-filter {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin: 12px 0 !important;
  align-items: center !important;
}

.rdp-carbon-select,
.rdp-carbon-date {
  width: 100% !important;
  height: 34px !important;
  border: 1px solid #E4E8EF !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  outline: none !important;
  box-shadow: none !important;
}

.rdp-carbon-apply {
  width: 100% !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #2B8B57 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 18px rgba(43,139,87,.18) !important;
}

.rdp-carbon-apply:hover { background: #24784A !important; }

.rdp-carbon-goal-line {
  margin-top: 7px !important;
  display: inline-flex !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  background: #EEF8F1 !important;
  color: #2B8B57 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.rdp-carbon-gauge-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 12px 2px 4px;
}

.rdp-carbon-gauge {
  --carbon-percent: 0%;
  display: flex !important;
  width: 124px !important;
  height: 124px !important;
  min-width: 124px !important;
  border-radius: 999px !important;
  background: conic-gradient(#2B8B57 var(--carbon-percent), #E9F2ED 0) !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: inset 0 0 0 1px rgba(47,124,82,.08), 0 14px 28px rgba(47,124,82,.10);
  flex: 0 0 auto;
}

.rdp-carbon-gauge-inner {
  display: flex !important;
  width: 86px !important;
  height: 86px !important;
  border-radius: 999px !important;
  background: #fff !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
}

.rdp-carbon-gauge-inner strong {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: #111827;
  letter-spacing: -1px;
}

.rdp-carbon-gauge-inner span {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #8B93A1;
}

.rdp-carbon-gauge-value {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: #111827;
  letter-spacing: -1.2px;
  white-space: nowrap;
}

.rdp-carbon-gauge-value span {
  font-size: 15px;
  letter-spacing: 0;
  font-weight: 800;
  color: #2B8B57;
}

.rdp-carbon-gauge-copy p {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #8A92A3;
  font-weight: 600;
}

.rdp-carbon-body { align-items: flex-end !important; justify-content: flex-start !important; }
.rdp-carbon-metric-wrap,
.rdp-carbon-value,
.rdp-carbon-unit,
.rdp-carbon-note { all: unset; }


/* =========================================================
   CHARTS
========================================================= */
.rdp-chart-card { padding: 16px 18px 14px; }

.rdp-chart-card button,
.rdp-chart-card .apply-btn,
.rdp-chart-card input[type="submit"],
.rdp-chart-card .elementor-button { transition: all .2s ease !important; }

.rdp-chart-card button:hover,
.rdp-chart-card button:focus,
.rdp-chart-card button:active,
.rdp-chart-card .apply-btn:hover,
.rdp-chart-card input[type="submit"]:hover,
.rdp-chart-card .elementor-button:hover {
  background: #2F8F52 !important;
  border-color: #2F8F52 !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

.rdp-chart-card button::before,
.rdp-chart-card button::after { display: none !important; }

.rdp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.rdp-section-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #2A2A2A;
}

.rdp-chart-head { align-items: flex-start; gap: 14px; }

.rdp-chart-subtitle {
  margin: 4px 0 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  color: #98A0AE;
  font-weight: 500;
}

.rdp-chart-total {
  margin-top: 8px;
  color: #2B8B57 !important;
  font-weight: 700 !important;
}

.rdp-section-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  color: #444;
}

.rdp-chart-wrap {
  display: grid;
  grid-template-columns: 120px 52px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  min-height: 260px;
}

.rdp-kwh-chart-wrap .rdp-chart-legend {
  width: 145px;
  flex: 0 0 145px;
  gap: 8px;
}

.rdp-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 10px;
  color: #6A6D74;
  padding-top: 42px;
}

.rdp-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.rdp-dot-green { background: #2B8B57; }
.rdp-dot-yellow { background: #CF9B10; }

.rdp-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  color: #8D8D92;
  padding: 18px 0 26px;
}

.rdp-y-axis span { font-variant-numeric: tabular-nums; }

.rdp-chart-area {
  position: relative;
  min-height: 260px;
}

.rdp-chart-area::before {
  content: "";
  position: absolute;
  inset: 10px 0 30px;
  background: linear-gradient(to bottom, rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 100% 46px;
  pointer-events: none;
}

.rdp-chart-svg {
  width: 100%;
  height: 230px;
  display: block;
}

.rdp-x-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8D8D92;
  margin-top: 4px;
  padding: 0 8px;
}

/* Analytics Filter */
.rdp-analytics-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 560px;
}

.rdp-analytics-select,
.rdp-analytics-date {
  height: 34px !important;
  border: 1px solid #ECEFF3;
  border-radius: 999px;
  background: #fff;
  padding: 0 12px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px !important;
  color: #5D6472;
  outline: none;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}

.rdp-analytics-select { min-width: 180px; }

.rdp-analytics-date {
  width: 124px !important;
  max-width: 124px !important;
  border-radius: 10px;
  padding: 0 8px !important;
}

.rdp-analytics-apply {
  height: 34px !important;
  border: 0;
  border-radius: 5px;
  background: #2B8B57;
  color: #fff;
  padding: 0 16px !important;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px !important;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(43,139,87,.18);
}


/* =========================================================
   RECORDS CARD
========================================================= */
.rdp-inquiry-card {
  padding: 28px 0 24px !important;
  background: #fff !important;
  border: 1px solid #ECECEC !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Header */
.rdp-section-head-bottom {
  margin-bottom: 22px !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 22px !important;
  margin-left: 22px !important;
  margin-right: 22px !important;
}

.rdp-section-head-bottom > div:first-child {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.rdp-section-head-bottom h3 {
  margin: 0 !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  color: #202124 !important;
}

.rdp-section-head-bottom p {
  margin: 0 !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #A5A5A5 !important;
  display: inline !important;
}

/* Search + Sort */
.rdp-inquiry-tools {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
}

.rdp-sort-pill {
  appearance: none !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  color: #707070 !important;
  white-space: nowrap !important;
  transition: opacity .18s ease !important;
}

.rdp-sort-pill:hover,
.rdp-sort-pill:focus,
.rdp-sort-pill:active {
  background: transparent !important;
  border: 0 !important;
  color: #505050 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: .9 !important;
}

.rdp-sort-icon { display: none !important; }

.rdp-sort-text {
  color: #707070 !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: -.01em !important;
}

.rdp-sort-pill::after {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid #707070 !important;
  border-bottom: 2px solid #707070 !important;
  transform: rotate(45deg) translateY(-2px) !important;
  margin-left: 12px !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
}

.rdp-inquiry-tools .rdp-search-pill.rdp-search-input {
  width: 164px !important;
  min-width: 164px !important;
  max-width: 164px !important;
  height: 39px !important;
  padding: 0 16px 0 42px !important;
  border: 1px solid #E7E7E7 !important;
  border-radius: 999px !important;
  background-color: #FAFAFA !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23707070' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 16px center !important;
  background-size: 17px 17px !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #707070 !important;
  box-shadow: none !important;
  outline: none !important;
}

.rdp-inquiry-tools .rdp-search-pill.rdp-search-input::placeholder {
  color: #8A8A8A !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

.rdp-inquiry-tools .rdp-search-pill.rdp-search-input:focus {
  background-color: #fff !important;
  border-color: #DADADA !important;
  box-shadow: none !important;
}

/* Tabs */
.rdp-tab-row {
  display: flex !important;
  align-items: center !important;
  gap: 26px !important;
  margin-bottom: 20px !important;
  border: 0 !important;
  padding: 0 22px !important;
  flex-wrap: wrap !important;
  margin-left: 22px !important;
  margin-right: 22px !important;
}

.rdp-tab {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #707070 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: none !important;
}

.rdp-tab:hover,
.rdp-tab:focus,
.rdp-tab:active {
  background: transparent !important;
  color: #202124 !important;
  box-shadow: none !important;
}

.rdp-tab.is-active {
  padding: 0 13px !important;
  border: 1px solid #2F9E55 !important;
  color: #202124 !important;
  font-weight: 500 !important;
}

.rdp-tab.is-active::after { display: none !important; }

.rdp-tab b {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  padding: 0 !important;
  margin-left: 7px !important;
  border-radius: 50% !important;
  background: #EDEEEF !important;
  color: #8A8A8A !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

.rdp-tab.is-active b {
  background: #2F9E55 !important;
  color: #fff !important;
}

/* Table */
.rdp-table-scroll{
  width:100%!important;
  overflow-x:hidden!important;
  overflow-y:visible!important;
  position:relative!important;
  background:#fff!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
}

.rdp-table{
  width:100%!important;
  min-width:100%!important;
  table-layout:auto!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  background:#fff!important;
  border:0!important;
  border-radius:0!important;
}

.rdp-table thead,
.rdp-table tbody,
.rdp-table tr,
.rdp-table th,
.rdp-table td {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.rdp-table thead,
.rdp-table thead tr,
.rdp-table th {
  background: #F6F6F6 !important;
}

.rdp-table th {
  padding: 14px 10px !important;
  text-align: left !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #777 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.rdp-table tbody tr,
.rdp-table tbody tr:hover,
.rdp-table tbody tr:hover td { background: #fff !important; }

.rdp-table td {
  padding: 17px 10px !important;
  background: #fff !important;
  vertical-align: top !important;
  text-align: left !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  color: #707070 !important;
  white-space: normal !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
}

/* First/last cell padding */
.rdp-table th:first-child,
.rdp-table td:first-child { padding-left: 22px !important; }

.rdp-table th:last-child,
.rdp-table td:last-child { padding-right: 22px !important; }

/* Column widths */
.rdp-table th:nth-child(1), .rdp-table td:nth-child(1) { width: 19% !important; }
.rdp-table th:nth-child(2), .rdp-table td:nth-child(2) { width: 12% !important; }
.rdp-table th:nth-child(3), .rdp-table td:nth-child(3) { width: 21% !important; }
.rdp-table th:nth-child(4), .rdp-table td:nth-child(4) { width: 7% !important; text-align: center !important; }
.rdp-table th:nth-child(5), .rdp-table td:nth-child(5) { width: 18% !important; font-size: 11px !important; }
.rdp-table th:nth-child(6), .rdp-table td:nth-child(6) { width: 11% !important; color: #303030 !important; }
.rdp-table th:nth-child(7), .rdp-table td:nth-child(7) { 
  width: 10% !important; 
  white-space: nowrap !important; 
  min-width: 100px !important; 
}
.rdp-table th:nth-child(8), .rdp-table td:nth-child(8) { width: 2% !important; text-align: center !important; }

/* Contact */
.rdp-contact {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.rdp-contact-avatar {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  background: #E6E6E6 !important;
  position: relative !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
}

.rdp-contact-avatar::before {
  content: '' !important;
  position: absolute !important;
  top: 7px !important;
  left: 11px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #777 !important;
}

.rdp-contact-avatar::after {
  content: '' !important;
  position: absolute !important;
  left: 5px !important;
  bottom: -4px !important;
  width: 29px !important;
  height: 17px !important;
  border-radius: 50% 50% 0 0 !important;
  background: #777 !important;
}

.rdp-contact-info { min-width: 0 !important; flex: 1 1 auto !important; }

.rdp-contact-name {
  display: block !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #242424 !important;
  overflow-wrap: anywhere !important;
}

.rdp-contact-sub {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 4px !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #707070 !important;
  overflow-wrap: anywhere !important;
}

/* Package */
.rdp-package-name {
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #202124 !important;
  white-space: normal !important;
}

.rdp-package-sub {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  margin-top: 5px !important;
  padding: 3px 7px !important;
  border-radius: 6px !important;
  background: #EFEFEF !important;
  color: #777 !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  overflow-wrap: anywhere !important;
}

/* Address */
.rdp-address-cell {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.5 !important;
  color: #707070 !important;
}

/* Remarks trigger */
.rdp-remarks-cell,
.rrm-remarks-trigger::before,
.rrm-remarks-trigger::after { display: none !important; content: none !important; }

.rdp-remarks-cell { text-align: center !important; display: table-cell !important; }

.rrm-remarks-trigger {
  width: 12px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #666 !important;
  font-size: 17px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.rrm-remarks-trigger:hover,
.rrm-remarks-trigger:focus,
.rrm-remarks-trigger:active {
  background: transparent !important;
  color: #444 !important;
  box-shadow: none !important;
}

.rrm-remarks-trigger img,
.rdp-remarks-icon {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  object-fit: contain !important;
  pointer-events: auto !important;
}

/* Status badges */
.rdp-status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  max-width: 100% !important;
  min-height: 26px !important;
  height: auto !important;
  padding: 5px 7px !important;
  border-radius: 999px !important;
  border: 0 !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.rdp-status-pending  { background: #F1F1F1 !important; color: #777 !important; }
.rdp-status-in_progress { background: #FFF9EA !important; color: #E59B00 !important; }
.rdp-status-completed { background: #EFFFF4 !important; color: #13A94F !important; }
.rdp-status-cancelled { background: #F7F7F7 !important; color: #A9A9A9 !important; }

.rdp-status::before {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

.rdp-status-pending::before {
  content: '' !important;
  width: 12px !important;
  height: 12px !important;
  border: 1.7px dashed #9A9A9A !important;
  border-radius: 50% !important;
  background: transparent !important;
}

.rdp-status-in_progress::before {
  content: '' !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: conic-gradient(#F2A000 0 75%, transparent 75% 100%) !important;
}

.rdp-status-completed::before {
  content: '✓' !important;
  color: #13A94F !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.rdp-status-cancelled::before {
  content: '' !important;
  width: 12px !important;
  height: 12px !important;
  border: 1.5px solid #A9A9A9 !important;
  border-radius: 50% !important;
  background: linear-gradient(45deg, transparent 45%, #A9A9A9 46%, #A9A9A9 55%, transparent 56%) !important;
}

/* More menu */
.rdp-more-cell {
  min-width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center !important;
  overflow: visible !important;
}

.rdp-more-wrap {
  position: relative !important;
  display: inline-flex !important;
  justify-content: center !important;
  width: 100% !important;
  overflow: visible !important;
  z-index: 999999 !important;
}

.rdp-more-btn {
  width: 22px !important;
  height: 24px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  border: 0 !important;
  outline: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 3px !important;
  position: relative !important;
  z-index: 999998 !important;
  cursor: pointer !important;
}

.rdp-more-btn:hover,
.rdp-more-btn:focus,
.rdp-more-btn:active,
.rdp-more-wrap.is-open .rdp-more-btn { background: transparent !important; box-shadow: none !important; }

.rdp-more-btn span {
  display: block !important;
  width: 3px !important;
  height: 3px !important;
  border-radius: 50% !important;
  background: #707070 !important;
}

.rdp-more-menu {
  position: absolute !important;
  bottom: 100% !important;
  right: 0 !important;
  background: #fff;
  border: 1px solid #EDEDED;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15,23,42,.12), 0 4px 14px rgba(15,23,42,.06);
  padding: 10px;
  margin-bottom: 8px !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: all .2s ease;
  z-index: 9999999 !important;
  width: 220px;
  min-width: 220px;
}

.rdp-more-wrap.is-open .rdp-more-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.rdp-more-item {
  width: 100%;
  display: flex;
  align-items: center;
  text-decoration: none;
  min-height: 38px;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 9px 12px;
  color: #35373C !important;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.rdp-more-menu .rdp-more-item:hover,
.rdp-more-menu .rdp-more-item:focus,
.rdp-more-menu .rdp-more-item:active { background: #F6F7F8 !important; color: #111827 !important; }

.rdp-more-item.is-green { color: #2F7C52 !important; }
.rdp-more-menu .rdp-more-item.is-green:hover { background: rgba(47,124,82,.08) !important; }

.rdp-more-item.is-red { color: #E5484D !important; }
.rdp-more-menu .rdp-more-item.is-red:hover { background: rgba(229,72,77,.08) !important; }

/* Status submenu */
.rdp-status-submenu {
  position: absolute;
  top: 70px;
  right: calc(100% + 8px);
  width: 210px;
  padding: 8px;
  background: #fff;
  border: 1px solid #EDEDED;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(15,23,42,.12), 0 4px 14px rgba(15,23,42,.06);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  pointer-events: none;
  transition: all .2s ease;
  z-index: 1000000 !important;
}

.rdp-more-wrap.status-open .rdp-status-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.rdp-status-form { margin: 0; }

.rdp-status-option {
  width: 100%;
  min-height: 38px;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4B5563 !important;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.rdp-status-option:hover,
.rdp-status-option:focus { background: #F3F4F6 !important; color: #1F2937 !important; }

.rdp-status-option.is-current {
  background: #F3F4F6 !important;
  color: #2F7C52 !important;
}

.rdp-status-option-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  color: #6B7280 !important;
}

.rdp-status-option-icon svg { width: 16px; height: 16px; display: block; }

.rdp-status-option-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.rdp-status-option-label { color: inherit !important; font-size: 13px; font-weight: 600; line-height: 1.12; }

.rdp-status-option-desc { margin-top: 2px; color: #9CA3AF !important; font-size: 11px; font-weight: 500; }

.rdp-status-option-check { margin-left: auto; color: #2F7C52 !important; font-size: 13px; font-weight: 700; }

.rdp-trash-form { margin: 0; padding: 0; }
.rdp-trash-form .rdp-more-item { width: 100%; text-align: left; }

.rdp-empty-cell { text-align: center; padding: 28px 12px !important; color: #A3A3A8; }


/* =========================================================
   PAGINATION
========================================================= */
.rdp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 22px 0 !important;
  padding: 12px 4px 0;
  border-top: 1px solid #F1F2F4;
  font-family: Inter, Arial, sans-serif;
}

.rdp-pagination-info {
  font-size: 11px;
  font-weight: 600;
  color: #8A8F98;
  white-space: nowrap;
}

.rdp-pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rdp-pagination-pages { display: flex; align-items: center; gap: 6px; }

.rdp-pagination-btn,
.rdp-pagination-page {
  appearance: none;
  border: 1px solid #E4E7EC !important;
  background: #fff !important;
  color: #4B5563 !important;
  border-radius: 999px !important;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16,24,40,.04) !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.rdp-pagination-page { width: 34px; padding: 0; }

.rdp-pagination-btn:hover:not(:disabled),
.rdp-pagination-page:hover,
.rdp-pagination-page.is-active {
  background: #2F7C52 !important;
  border-color: #2F7C52 !important;
  color: #fff !important;
}

.rdp-pagination-page.is-active { pointer-events: none; }
.rdp-pagination-btn:disabled { opacity: .45; cursor: not-allowed; }

.rdp-pagination-dots {
  min-width: 18px;
  text-align: center;
  color: #9CA3AF;
  font-size: 13px;
  font-weight: 700;
}


/* =========================================================
   RIGHT SIDEBAR
========================================================= */
.rdp-side-panel { padding: 14px; }

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

.rdp-side-head h3 { margin: 0; font-size: 12px; font-weight: 800; color: #2A2A2A; }

.rdp-side-head .rdp-see-all-link,
.rdp-side-head button {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #2F7C52 !important;
  border: 0 !important;
  background: transparent !important;
  text-decoration: none !important;
  cursor: pointer;
  padding: 0 !important;
}

.rdp-side-head .rdp-see-all-link:hover,
.rdp-side-head button:hover { color: #1E5C3C !important; }

.rdp-client-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #90939A;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.rdp-client-tabs button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: #90939A;
  cursor: pointer;
}

.rdp-client-tabs button.active { color: #2A8A4A; font-weight: 700; }

.rdp-client-tabs b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #EFEFEF;
  font-size: 9px;
  margin-left: 4px;
}

.rdp-side-list { display: flex; flex-direction: column; }

.rdp-side-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
}

.rdp-side-item:last-child { border-bottom: none; }

.rdp-side-main { font-size: 11px; font-weight: 700; color: #2B2D31; line-height: 1.35; }
.rdp-side-sub { font-size: 10px; color: #9EA0A8; margin-top: 3px; }
.rdp-side-item-right { font-size: 10px; color: #9EA0A8; white-space: nowrap; padding-top: 2px; }
.rdp-side-active { color: #2FA35E; font-weight: 700; margin-left: 4px; }
.rdp-email-note { margin: 0 0 10px; font-size: 10px; color: #B0B0B5; }
.rdp-email-meta { font-size: 10px; color: #9EA0A8; text-align: right; white-space: nowrap; line-height: 1.45; }
.rdp-empty-side { font-size: 11px; color: #A3A3A8; padding: 14px 0; }


/* =========================================================
   INQUIRE EMAILS PANEL
========================================================= */
.rdp-inquire-emails-panel {
  padding: 14px !important;
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid #ECECEC !important;
  box-shadow: 0 1px 5px rgba(17,24,39,.03) !important;
}

.rdp-inquire-emails-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rdp-inquire-emails-head h3 {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #2A2A2A;
}

.rdp-inquire-emails-head p { margin: 4px 0 0; font-size: 10px; font-weight: 500; color: #A5ABB5; }

.rdp-inquire-see-more {
  appearance: none;
  border: none !important;
  background: transparent !important;
  color: #2F7C52 !important;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 !important;
  white-space: nowrap;
}

.rdp-inquire-see-more:hover { text-decoration: underline; }

.rdp-inquire-summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.rdp-inquire-summary-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #F5F8F6;
  color: #7D8780;
  font-size: 9px;
  font-weight: 700;
}

.rdp-inquire-summary-row b { color: #2F7C52; font-weight: 900; }

.rdp-inquire-emails-list { display: flex; flex-direction: column; }

.rdp-inquire-email-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
}

.rdp-inquire-email-item:last-child { border-bottom: none; }
.rdp-inquire-email-left { min-width: 0; }

.rdp-inquire-email-left strong {
  display: block;
  max-width: 185px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: #2B2D31;
}

.rdp-inquire-email-left span {
  display: block;
  max-width: 185px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  font-size: 10px;
  color: #A0A5AE;
}

.rdp-inquire-email-right { flex: 0 0 auto; text-align: right; white-space: nowrap; }

.rdp-inquire-email-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
}

.rdp-inquire-email-status.is-pending { color: #C47B12; }
.rdp-inquire-email-status.is-sent { color: #21834A; }
.rdp-inquire-email-right small { display: block; margin-top: 3px; font-size: 9px; font-weight: 500; color: #B0B5BE; }
.rdp-inquire-email-empty { padding: 14px 0; font-size: 11px; color: #A3A3A8; }


/* =========================================================
   MODALS — BASE
========================================================= */
.rrm-preview-modal,
.rrm-package-modal,
.rrm-amount-modal,
.rrm-remarks-modal,
.rrm-remarks-view-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
}

.rrm-preview-modal.is-open,
.rrm-package-modal.is-open,
.rrm-amount-modal.is-open,
.rrm-remarks-modal.is-open,
.rrm-remarks-view-modal.is-open { display: block; }

.rrm-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72) !important;
}

.rrm-package-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(1px);
}

/* Record Preview Modal */
.rrm-preview-dialog {
  position: relative;
  width: calc(100% - 32px) !important;
  max-width: 584px !important;
  max-height: 90vh;
  overflow: auto;
  margin: 14px auto !important;
  background: #fff !important;
  border-radius: 14px !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.28) !important;
  padding: 22px 30px !important;
}

.rrm-preview-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px !important; }

.rrm-preview-ref { font-size: 12px !important; color: #8B8B8B !important; font-weight: 500 !important; }

.rrm-preview-top-actions { display: flex; align-items: center; gap: 12px; }

.rrm-preview-more-dot {
  display: block !important;
  border: 0 !important;
  background: transparent !important;
  color: #777 !important;
  font-size: 18px !important;
  padding: 0 !important;
}

.rrm-preview-close-btn {
  border: none;
  background: transparent;
  color: #777 !important;
  font-size: 30px !important;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.rrm-preview-close-btn:hover { color: inherit; background: transparent; }

.rrm-preview-person { display: flex; align-items: flex-start; gap: 14px !important; margin-bottom: 18px !important; }

.rrm-preview-avatar {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50%;
  background: #E7E7E7 !important;
  position: relative !important;
  overflow: hidden !important;
  flex: 0 0 auto;
}

.rrm-preview-avatar::before {
  content: "" !important;
  position: absolute !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: #777 !important;
  top: 10px !important;
  left: 16px !important;
}

.rrm-preview-avatar::after {
  content: "" !important;
  position: absolute !important;
  width: 48px !important;
  height: 26px !important;
  border-radius: 50% 50% 0 0 !important;
  background: #777 !important;
  bottom: -7px !important;
  left: 5px !important;
}

.rrm-preview-name { font-family: 'Poppins', Arial, sans-serif; font-size: 16px !important; font-weight: 600 !important; color: #555 !important; line-height: 1.2; margin-bottom: 7px !important; }

.rrm-preview-status-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.rrm-preview-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.rrm-preview-status::before { content: "•" !important; margin-right: 8px !important; font-size: 18px !important; }

.rrm-preview-status-pending  { color: #C68600; }
.rrm-preview-status-in_progress { color: #D89400; }
.rrm-preview-status-completed { color: #28A35D; }
.rrm-preview-status-cancelled { color: #9D9FA4; }

.rrm-preview-inline-link { border: none; background: transparent; color: #999 !important; font-size: 12px !important; text-decoration: underline; cursor: pointer; padding: 0; }

.rrm-preview-chip-group { display: flex; flex-wrap: wrap; gap: 6px !important; margin-bottom: 7px !important; }

.rrm-preview-chip { display: inline-flex; align-items: center; min-height: 23px !important; padding: 0 9px !important; border-radius: 999px !important; background: #ECECEC !important; color: #777 !important; font-size: 12px !important; }

.rrm-preview-section-title { font-family: 'Poppins', Arial, sans-serif; font-size: 15px !important; font-weight: 500 !important; color: #238352 !important; margin: 20px 0 10px !important; }

.rrm-preview-assessment-card { background: #FAFAFA !important; border: 0 !important; border-radius: 14px !important; padding: 17px 15px !important; margin-bottom: 14px !important; }

.rrm-preview-assessment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.rrm-preview-assessment-label { font-size: 10px !important; font-weight: 500 !important; color: #777 !important; margin-bottom: 8px; }

.rrm-preview-assessment-value { font-size: 24px !important; font-weight: 600 !important; color: #111 !important; }

.rrm-preview-assessment-value span { font-size: 16px !important; font-weight: 500; color: #222 !important; }

.rrm-preview-assessment-meta { display: flex; align-items: flex-start; justify-content: flex-end; gap: 14px; font-size: 12px; color: #7A7D82; }

/* Consumption dropdown */
.rrm-consumption-dropdown { position: relative; min-width: 138px; flex: 0 0 auto; }

.rrm-consumption-trigger {
  width: 100%;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 12px !important;
  color: #555 !important;
  box-shadow: none !important;
}

.rrm-consumption-trigger-arrow {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform .2s ease;
}

.rrm-consumption-trigger-arrow svg { width: 18px; height: 18px; display: block; }
.rrm-consumption-dropdown.is-open .rrm-consumption-trigger-arrow { transform: rotate(180deg); }

.rrm-consumption-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #E7EAE6;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.05);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: all .18s ease;
  z-index: 50;
}

.rrm-consumption-dropdown.is-open .rrm-consumption-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

.rrm-consumption-option {
  width: 100%;
  height: 42px;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #1F2023;
  cursor: pointer;
}

.rrm-consumption-option:hover { background: #F7F8F7; }
.rrm-consumption-option.is-selected { background: #F3F8F4; color: #2F7C52; }

.rrm-consumption-check {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2F7C52;
  opacity: 0;
  transform: scale(.9);
  transition: all .16s ease;
  flex: 0 0 auto;
}

.rrm-consumption-check svg { width: 18px; height: 18px; display: block; }
.rrm-consumption-option.is-selected .rrm-consumption-check { opacity: 1; transform: scale(1); }

.rrm-preview-assessment-link { color: #238352 !important; font-size: 12px !important; }

.rrm-preview-assessment-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.rrm-preview-billing-chip,
.rrm-preview-date-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px !important;
  padding: 0 10px;
  border-radius: 999px;
  background: #E9E9E9 !important;
  color: #666 !important;
  font-size: 12px !important;
  border: 0 !important;
}

.rrm-preview-dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px !important; margin-bottom: 14px; }

.rrm-preview-white-card,
.rrm-preview-gold-card { border-radius: 14px !important; padding: 16px !important; min-height: 110px !important; }

.rrm-preview-white-card { background: #FAFAFA !important; border: 0 !important; }
.rrm-preview-gold-card { background: #FFF7DC !important; border: 1px solid #E5AA22 !important; }

.rrm-preview-card-label { font-size: 10px !important; font-weight: 500 !important; color: #777 !important; margin-bottom: 10px; }
.rrm-preview-card-main { font-size: 15px !important; font-weight: 600 !important; color: #222 !important; margin-bottom: 4px; }
.rrm-preview-card-sub { font-size: 12px !important; color: #555 !important; margin-bottom: 10px; }
.rrm-preview-card-note { font-size: 10px !important; color: #A36D00 !important; font-weight: 500 !important; }
.rrm-preview-card-price { font-size: 17px !important; font-weight: 700 !important; color: #9A6B00 !important; margin-bottom: 8px; }
.rrm-preview-gold-meta { font-size: 10px !important; color: #9A7A18; margin-top: 6px; }

.rrm-preview-note-box,
.rrm-preview-remark-box {
  border: 0 !important;
  border-radius: 5px !important;
  background: #FAFAFA !important;
  color: #777 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  padding: 14px;
  margin-bottom: 12px;
}

.rrm-preview-remark-box { margin-top: 14px !important; min-height: 60px !important; border: 1px solid #E8E8E8 !important; padding: 18px 14px; }

/* Package Modal */
.rrm-package-modal { align-items: center; justify-content: center; padding: 18px; }
.rrm-package-modal.is-open { display: flex; }

.rrm-package-dialog {
  position: relative;
  width: 430px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(15,23,42,.22);
  padding: 26px 20px 16px;
  font-family: 'Poppins', Arial, sans-serif;
  animation: rrmPackagePop .18s ease-out forwards;
}

@keyframes rrmPackagePop { to { transform: translateY(0) scale(1); } }

.rrm-package-x {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none !important;
  background: transparent !important;
  color: #8A8F98 !important;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 !important;
}

.rrm-package-label { font-size: 11px; font-weight: 700; color: #8A8F98; letter-spacing: .04em; margin: 0 0 12px; }

.rrm-package-controls { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(130px, .75fr); gap: 12px; }

.rrm-package-select,
.rrm-package-type-select {
  width: 100%;
  height: 48px;
  border: 1px solid #E8EAED !important;
  border-radius: 10px !important;
  background: #FAFAFA !important;
  color: #3E3E42 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  outline: none !important;
  padding: 0 12px !important;
  box-shadow: none !important;
}

/* Amount / Remarks Modals */
.rrm-amount-dialog,
.rrm-remarks-dialog {
  position: relative;
  width: calc(100% - 28px);
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  margin: 42px auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(16,24,40,.22);
  padding: 24px;
}

.rrm-field-label { display: block; margin: 14px 0 8px; font-size: 11px; font-weight: 900; color: #8B929C; letter-spacing: .04em; text-transform: uppercase; }

.rrm-amount-input,
.rrm-remarks-textarea {
  width: 100%;
  border: 1px solid #DDE3E8 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #202124 !important;
  font: 600 13px/1.4 Inter, Arial, sans-serif !important;
  outline: none !important;
  box-shadow: none !important;
}

.rrm-amount-input { height: 44px; padding: 0 12px !important; }
.rrm-remarks-textarea { min-height: 150px; padding: 12px !important; resize: vertical; }

.rrm-amount-input:focus,
.rrm-remarks-textarea:focus { border-color: #2F7C52 !important; box-shadow: 0 0 0 4px rgba(47,124,82,.12) !important; }

.rrm-view-remarks-box {
  min-height: 120px;
  background: #FBFCFD;
  border: 1px solid #ECEFF2;
  border-radius: 16px;
  padding: 14px;
  color: #59616C;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.rrm-view-remarks-box.is-empty { color: #A0A6AF; }


/* =========================================================
   TOAST NOTIFICATIONS
========================================================= */
.rrm-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 280px;
  max-width: 360px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15,23,42,.12), 0 2px 10px rgba(15,23,42,.08);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  z-index: 9999999;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.rrm-toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }

.rrm-toast-icon { width: 24px; height: 24px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; font-weight: 700; color: #fff; }

.rrm-toast-success .rrm-toast-icon { background: #22C55E; }
.rrm-toast-error .rrm-toast-icon { background: #EF4444; }

.rrm-toast-message { flex: 1; font-size: 13px; font-weight: 500; color: #374151; line-height: 1.4; }

.rrm-toast-close { border: none !important; background: transparent !important; color: #9CA3AF !important; cursor: pointer; font-size: 18px; padding: 0 !important; }
.rrm-toast-close:hover { color: #374151 !important; }

.rrm-toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #22C55E;
  border-radius: 0 0 14px 14px;
  animation: rrmToastProgress 3.2s linear forwards;
}

.rrm-toast-error .rrm-toast-progress { background: #EF4444; }

@keyframes rrmToastProgress { from { width: 100%; } to { width: 0%; } }


/* =========================================================
   CLIENTS MODAL
========================================================= */
.rdp-client-modal { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 22px; }
.rdp-client-modal.is-open { display: flex; }

.rdp-client-modal-backdrop { position: absolute; inset: 0; background: rgba(2,18,12,.58); backdrop-filter: blur(8px); }

.rdp-client-modal-dialog {
  position: relative;
  width: min(860px, 96vw);
  max-height: 86vh;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(16,64,38,.12);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0,0,0,.24);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rdp-client-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.rdp-client-modal-kicker { margin: 0 0 4px; font: 700 11px/1.2 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #178344; }

.rdp-client-modal-head h3 { margin: 0; font: 700 24px/1.15 Poppins, sans-serif; color: #10261a; }

.rdp-client-modal-close { width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(0,0,0,.08); background: #f4faf6; color: #123322; font-size: 24px; line-height: 1; cursor: pointer; }

.rdp-client-modal-search {
  width: 100%;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(16,64,38,.14);
  background: #f8fbf9;
  padding: 0 16px;
  font: 500 14px Inter, sans-serif;
  color: #15261b;
  outline: none;
}

.rdp-client-modal-search:focus { border-color: #26a65b; box-shadow: 0 0 0 4px rgba(38,166,91,.12); background: #fff; }

.rdp-client-modal-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.rdp-client-modal-tabs button { border: 1px solid rgba(16,64,38,.12); background: #f6faf7; color: #1f3b2b; border-radius: 999px; padding: 9px 14px; font: 700 13px Inter, sans-serif; cursor: pointer; }

.rdp-client-modal-tabs button.active { background: #123d28; color: #fff; border-color: #123d28; box-shadow: 0 10px 22px rgba(18,61,40,.18); }

.rdp-client-modal-list { overflow: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 10px; }

.rdp-client-modal-item { border: 1px solid rgba(16,64,38,.1); background: linear-gradient(180deg, #fff, #f8fcf9); border-radius: 18px; padding: 14px 16px; display: grid; grid-template-columns: 1.2fr 1.5fr auto; gap: 14px; align-items: center; }

.rdp-client-modal-item-main strong { display: block; font: 700 14px/1.25 Poppins, sans-serif; color: #11281b; }

.rdp-client-modal-item-main span { display: inline-flex; margin-top: 5px; font: 700 11px Inter, sans-serif; color: #188247; background: #eaf8ef; border-radius: 999px; padding: 4px 8px; }

.rdp-client-modal-item-sub span { display: block; font: 700 13px/1.3 Inter, sans-serif; color: #1d3427; }
.rdp-client-modal-item-sub em { display: block; margin-top: 4px; font: 500 12px/1.35 Inter, sans-serif; color: #6a7a70; font-style: normal; }

.rdp-client-modal-item-meta { text-align: right; white-space: nowrap; }
.rdp-client-modal-item-meta b { display: block; font: 800 14px Inter, sans-serif; color: #123d28; }
.rdp-client-modal-item-meta span { display: block; margin-top: 4px; font: 600 12px Inter, sans-serif; color: #748077; }

.rdp-client-modal-empty { padding: 28px; text-align: center; border: 1px dashed rgba(16,64,38,.18); border-radius: 18px; color: #708078; font: 600 14px Inter, sans-serif; background: #f8fbf9; }


/* =========================================================
   INQUIRE EMAILS MODAL
========================================================= */
.rdp-inquire-modal { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; padding: 24px; }
.rdp-inquire-modal.is-open { display: flex; }

.rdp-inquire-modal-backdrop { position: absolute; inset: 0; background: rgba(5,18,12,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.rdp-inquire-modal-dialog {
  position: relative;
  width: min(920px, 96vw);
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,248,.98));
  border: 1px solid rgba(22,76,48,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
  padding: 28px;
}

.rdp-inquire-modal-dialog::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #38B66B, #84D8A1); }

.rdp-inquire-modal-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-right: 76px; }

.rdp-inquire-modal-kicker { margin: 0 0 8px; font: 800 12px/1 Inter, Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #2E8A57; }

.rdp-inquire-modal-head h3 { margin: 0; font: 800 32px/1.05 Poppins, Arial, sans-serif; color: #112418; letter-spacing: -.04em; }

.rdp-inquire-modal-head span { display: block; margin-top: 10px; font: 600 13px/1.55 Inter, Arial, sans-serif; color: #7B867F; }

.rdp-inquire-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 58px;
  border: none !important;
  outline: none !important;
  border-radius: 999px !important;
  background: #F6FAF7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  padding: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  transition: all .18s ease;
  box-shadow: inset 0 0 0 1px #DDE7DF, 0 8px 20px rgba(16,24,40,.06) !important;
}

.rdp-inquire-modal-close:hover,
.rdp-inquire-modal-close:focus,
.rdp-inquire-modal-close:active { background: #2F7C52 !important; transform: translateY(-1px); border: none !important; }

.rdp-inquire-modal-close svg { width: 22px; height: 22px; display: block; pointer-events: none; }
.rdp-inquire-modal-close svg path { stroke: #244735; stroke-width: 2.4; stroke-linecap: round; transition: .18s ease; }
.rdp-inquire-modal-close:hover svg path { stroke: #fff; }

.rdp-inquire-modal-toolbar { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.rdp-inquire-modal-search {
  flex: 1;
  min-width: 280px;
  height: 54px;
  border-radius: 18px !important;
  border: 1px solid #E1E8E3 !important;
  background: #fff !important;
  padding: 0 18px !important;
  font: 600 14px/1 Inter, Arial, sans-serif !important;
  color: #1B2B21 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: .18s ease;
}

.rdp-inquire-modal-search::placeholder { color: #A8B0AA; }
.rdp-inquire-modal-search:focus { border-color: #2F7C52 !important; box-shadow: 0 0 0 4px rgba(47,124,82,.10) !important; }

.rdp-inquire-modal-tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.rdp-inquire-modal-tabs button {
  height: 42px;
  border-radius: 999px !important;
  border: 1px solid #DCE5DF !important;
  background: #F5F8F6 !important;
  padding: 0 16px !important;
  font: 800 12px/1 Inter, Arial, sans-serif !important;
  color: #49584D !important;
  cursor: pointer;
  transition: .18s ease;
}

.rdp-inquire-modal-tabs button.active { background: #0F5B33 !important; color: #fff !important; border-color: #0F5B33 !important; }
.rdp-inquire-modal-tabs button b { font-weight: 900; margin-left: 4px; }

.rdp-inquire-modal-list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; overflow: auto; padding-right: 4px; }
.rdp-inquire-modal-list::-webkit-scrollbar { width: 8px; }
.rdp-inquire-modal-list::-webkit-scrollbar-thumb { background: #D6E5DA; border-radius: 999px; }

.rdp-inquire-modal-item { display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; background: #fff; border: 1px solid #E4ECE6; transition: .18s ease; }

.rdp-inquire-modal-item:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.05); }

.rdp-inquire-modal-email strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 15px/1.2 Poppins, Arial, sans-serif; color: #16271C; }
.rdp-inquire-modal-email span { display: block; margin-top: 6px; font: 700 12px/1 Inter, Arial, sans-serif; color: #7C8780; }

.rdp-inquire-modal-status { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: max-content; padding: 10px 14px; border-radius: 999px; font: 800 12px/1 Inter, Arial, sans-serif; white-space: nowrap; }
.rdp-inquire-modal-status.is-pending { background: #FFF5E8; color: #C17B0B; }
.rdp-inquire-modal-status.is-sent { background: #EAF8EF; color: #22834B; }

.rdp-inquire-status-dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; }

.rdp-inquire-modal-actions { display: flex; align-items: center; gap: 10px; }

.rdp-inquire-action-btn { height: 42px; border-radius: 999px !important; padding: 0 16px !important; font: 800 12px/1 Inter, Arial, sans-serif !important; cursor: pointer; white-space: nowrap; transition: .18s ease; }
.rdp-inquire-action-btn.is-pending { background: #FFF7EA !important; border: 1px solid #F2CC8D !important; color: #B87911 !important; }
.rdp-inquire-action-btn.is-pending:hover { background: #FDEBCC !important; }
.rdp-inquire-action-btn.is-sent { background: #1D8B4C !important; border: 1px solid #1D8B4C !important; color: #fff !important; }
.rdp-inquire-action-btn.is-sent:hover { background: #15693A !important; }

.rdp-inquire-modal-empty { padding: 28px; text-align: center; border: 1px dashed rgba(16,64,38,.18); border-radius: 18px; color: #708078; font: 600 14px/1 Inter, Arial, sans-serif; background: #F8FBF9; }


/* =========================================================
   REPORT EXPORT BAR
========================================================= */
.rdp-report-bottom-bar {
  margin: 18px 22px 0 !important;
  padding: 16px 18px;
  border: 1px solid #E4ECE6;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(47,124,82,.10), transparent 34%), linear-gradient(180deg, #fff 0%, #FBFDFB 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 8px 20px rgba(15,23,42,.035);
}

.rdp-report-bottom-copy span { display: block; margin-bottom: 4px; font: 900 10px Inter, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #2F7C52; }
.rdp-report-bottom-copy strong { display: block; font: 800 16px/1.25 Poppins, Inter, Arial, sans-serif; color: #10261A; }
.rdp-report-bottom-copy p { margin: 5px 0 0; max-width: 620px; font-size: 12px; line-height: 1.45; font-weight: 600; color: #8A92A3; }

.rdp-report-export-actions { display: flex !important; align-items: center !important; justify-content: flex-end !important; gap: 14px !important; flex-wrap: wrap !important; }

.rdp-report-excel-btn,
.rdp-report-download-btn,
.rdp-report-save-pdf-btn {
  min-width: 142px !important;
  height: 48px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 22px !important;
  font: 800 14px/1 Inter, Arial, sans-serif !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all .2s ease !important;
}

.rdp-report-excel-btn { background: #F3FBF5 !important; border: 1px solid #CFE7D7 !important; color: #2F7C52 !important; }
.rdp-report-excel-btn:hover { background: #E8F7ED !important; border-color: #BEE4CA !important; color: #245F3F !important; transform: translateY(-1px) !important; }

.rdp-report-download-btn,
.rdp-report-save-pdf-btn { background: #2F8F52 !important; border: 1px solid #2F8F52 !important; color: #fff !important; box-shadow: 0 10px 24px rgba(47,143,82,.18) !important; }

.rdp-report-download-btn:hover,
.rdp-report-save-pdf-btn:hover { background: #277847 !important; border-color: #277847 !important; transform: translateY(-1px) !important; }

.rdp-report-excel-btn svg,
.rdp-report-download-btn svg,
.rdp-report-save-pdf-btn svg { width: 18px !important; height: 18px !important; flex: 0 0 18px !important; }


/* =========================================================
   NOTICES
========================================================= */
.rdp-notice-success { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: #EAF8ED; color: #1F7A46; border: 1px solid #CBE9D4; font-size: 14px; font-weight: 600; }

.rdp-locked { max-width: 720px; margin: 30px auto; padding: 20px 24px; background: #FFF3CD; border: 1px solid #FFE69C; border-radius: 16px; }


/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1380px) {
  .rdp-main-grid { grid-template-columns: 1fr; }
  .rdp-stat-value { font-size: 21px; }
  .rdp-carbon-gauge { width: 112px; height: 112px; }
  .rdp-carbon-gauge-inner { width: 82px; height: 82px; }
  .rdp-carbon-gauge-inner strong { font-size: 22px; }
  .rdp-carbon-gauge-value { font-size: 25px; }
  .rdp-carbon-gauge-wrap { gap: 12px; }
  .rdp-carbon-filter { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 1100px) {
  .rdp-stats-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rdp-chart-head { flex-direction: column; align-items: stretch; }
  .rdp-analytics-filter { justify-content: flex-start; max-width: none; }
}

@media (max-width: 991px) {
  .rdp-table th { font-size: 11px !important; padding: 12px 7px !important; }
  .rdp-table td { font-size: 11px !important; padding: 14px 7px !important; }
  .rdp-contact-avatar { width: 34px !important; height: 34px !important; min-width: 34px !important; }
  .rdp-contact-avatar::before { width: 14px !important; height: 14px !important; top: 6px !important; left: 10px !important; }
  .rdp-contact-avatar::after { width: 25px !important; height: 15px !important; left: 5px !important; }
  .rdp-contact-name, .rdp-package-name { font-size: 11px !important; }
  .rdp-contact-sub, .rdp-package-sub, .rdp-address-cell { font-size: 10px !important; }
  .rdp-status { font-size: 10px !important; padding: 4px 6px !important; }
}

@media (max-width: 980px) {
  .rdp-chart-wrap { grid-template-columns: 1fr; }
  .rdp-chart-legend, .rdp-y-axis { display: none; }
  .rdp-analytics-filter { justify-content: flex-start; width: 100%; }
  .rdp-analytics-select, .rdp-analytics-date, .rdp-analytics-apply { flex: 1 1 150px; }
}

@media (max-width: 900px) {
  .rdp-stats-row-3 { grid-template-columns: 1fr !important; }
  .rdp-carbon-gauge-wrap { align-items: flex-start !important; }
}

@media (max-width: 820px) {
  .rdp-inquire-modal-toolbar { flex-direction: column; }
  .rdp-inquire-modal-tabs { justify-content: flex-start; }
  .rdp-inquire-modal-item { grid-template-columns: 1fr; }
  .rdp-inquire-modal-actions { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .rdp-topbar { flex-direction: column; align-items: flex-start; gap: 12px; height: auto; }
  .rdp-topbar-right { width: 100%; justify-content: flex-end; }

  .rdp-report-export-actions { width: 100% !important; justify-content: flex-start !important; }
  .rdp-report-excel-btn, .rdp-report-download-btn, .rdp-report-save-pdf-btn { flex: 1 1 150px !important; }

  .rdp-inquire-modal { padding: 16px; }
  .rdp-inquire-modal-dialog { padding: 22px; border-radius: 24px; }
  .rdp-inquire-modal-head { padding-right: 58px; }
  .rdp-inquire-modal-head h3 { font-size: 26px; }
  .rdp-inquire-modal-close { width: 46px; height: 46px; }
  .rdp-inquire-modal-toolbar { align-items: stretch; flex-direction: column; }
  .rdp-inquire-modal-search { width: 100%; min-width: 0; }
  .rdp-inquire-modal-tabs { width: 100%; }
  .rdp-inquire-modal-tabs button { flex: 1 1 auto; }
  .rdp-inquire-modal-item { grid-template-columns: 1fr; }
  .rdp-inquire-modal-actions { width: 100%; }
  .rdp-inquire-action-btn { flex: 1; }

  .rdp-client-modal-dialog { padding: 18px; border-radius: 22px; }
  .rdp-client-modal-item { grid-template-columns: 1fr; }
  .rdp-client-modal-item-meta { text-align: left; }
}

@media (max-width: 767px) {
  .rdp-section-head-bottom { align-items: flex-start !important; flex-direction: column !important; }

  .rdp-inquiry-tools {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    justify-content: stretch !important;
  }

  .rdp-inquiry-tools .rdp-search-pill.rdp-search-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px !important;
    background-position: 15px center !important;
    background-size: 16px 16px !important;
    padding-left: 40px !important;
  }

  .rdp-tab-row { gap: 10px !important; overflow-x: auto !important; flex-wrap: nowrap !important; padding-bottom: 6px !important; -webkit-overflow-scrolling: touch !important; }
  .rdp-tab { flex: 0 0 auto !important; }

  .rdp-table {
    display: table !important;
    width: 950px !important;
    min-width: 950px !important;
  }

  .rdp-table thead { display: table-header-group !important; }
  .rdp-table tbody { display: table-row-group !important; }
  .rdp-table tr { display: table-row !important; }
  .rdp-table th, .rdp-table td { display: table-cell !important; }

  .rdp-pagination { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
  .rdp-pagination-actions { width: 100% !important; justify-content: flex-start !important; flex-wrap: nowrap !important; overflow-x: auto !important; }
  .rdp-pagination-pages { flex: 0 0 auto !important; }
  .rdp-pagination-btn, .rdp-pagination-page { height: 32px; min-width: 32px; font-size: 10px; }
  .rdp-pagination-btn { padding: 0 10px; }
}

@media (max-width: 760px) {
  .rrm-amount-dialog, .rrm-remarks-dialog { margin: 18px auto; padding: 18px; border-radius: 20px; }
  .rrm-toast { left: 14px; right: 14px; top: 14px; min-width: 0; max-width: none; }
  .rdp-report-bottom-bar { align-items: flex-start; flex-direction: column; }
  .rdp-report-save-pdf-btn { width: 100%; }
}

@media (max-width: 640px) {
  .rdp-shell { padding: 14px; }
  .rdp-stats-row-4 { grid-template-columns: 1fr; }
  .rdp-admin-brand-pill { width: 138px; height: 50px; padding: 0 10px; }
  .rdp-admin-brand-pill img { max-height: 30px; }
  .rdp-admin-dropdown { width: 220px; }
}

@media (max-width: 640px) {
  .rrm-preview-dialog { padding: 20px 18px !important; margin: 10px auto !important; max-height: 92vh !important; }
  .rrm-preview-dual-grid { grid-template-columns: 1fr !important; }
}

@media (min-width: 768px) {
  .rdp-table { width: 100% !important; min-width: 0 !important; }
}

@media (max-width: 420px) {
  .rdp-inquiry-tools { grid-template-columns: 1fr !important; gap: 10px !important; }
  .rdp-sort-pill { width: max-content !important; }
}

@media (max-width: 767px){

  .rdp-inquiry-card{
    overflow:hidden!important;
  }

  .rdp-table{
    display:block!important;
  }

  .rdp-table thead{
    display:none!important;
  }

  .rdp-table tbody{
    display:flex!important;
    flex-direction:column!important;
    gap:14px!important;
    width:100%!important;
  }

  .rdp-table tr{
    flex-direction:column!important;
    width:100%!important;
    padding:16px!important;
    border:1px solid #ECECEC!important;
    border-radius:16px!important;
    background:#fff!important;
  }

  .rdp-table td{
    width:100%!important;
    display:flex!important;
    justify-content:space-between!important;
    align-items:flex-start!important;
    gap:12px!important;
    padding:10px 0!important;
    text-align:left!important;
    font-size:12px!important;
    border:0!important;
  }

  .rdp-more-cell,
  .rdp-remarks-cell{
    justify-content:flex-end!important;
  }

  .rdp-pagination{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:12px!important;
  }

  .rdp-pagination-actions{
    width:100%!important;
    justify-content:space-between!important;
  }

}

/* =========================================================
   REMARKS POPOVER (Tooltip Style)
========================================================= */
 
/* Container - fixed position popover */
.rrm-remarks-popover {
    position: fixed;
    z-index: 10000000 !important;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
 
/* Hidden state */
.rrm-remarks-popover[aria-hidden="true"] {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}
 
/* Visible state */
.rrm-remarks-popover[aria-hidden="false"] {
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}
 
/* Inner box styling */
.rrm-remarks-popover-inner {
    position: relative;
    background: #fff;
    border: 1px solid #DDE3E8;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16,24,40,.12);
    max-width: 340px;
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
}
 
/* Text content inside popover */
.rrm-remarks-popover-content {
    padding: 14px 16px;
    color: #59616C;
    font-size: 13px;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}
 
/* Arrow pointing RIGHT (default position) */
.rrm-remarks-popover-arrow {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border: 1px solid #DDE3E8;
    border-top: none;
    border-left: none;
    transform: rotate(-45deg);
    right: -5px;           /* Sticks out to the right */
    top: 50%;              /* Vertically centered */
    margin-top: -4px;      /* Fine-tune vertical centering */
    pointer-events: none;
}
 
/* Arrow pointing LEFT (when near right edge of screen) */
.rrm-remarks-popover-left .rrm-remarks-popover-arrow {
    right: auto;
    left: -5px;            /* Sticks out to the left */
    border: 1px solid #DDE3E8;
    border-right: none;    /* Remove right border */
    border-bottom: none;   /* Remove bottom border */
}
 
 
/* OPTIONAL ENHANCEMENTS */
 
/* Fade-in animation */
@keyframes popoverFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
.rrm-remarks-popover[aria-hidden="false"] {
    animation: popoverFadeIn 0.2s ease;
}
 
 
/* OPTIONAL: Light gray background variant (like in your reference image) */
/*
.rrm-remarks-popover-inner {
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
}
 
.rrm-remarks-popover-content {
    color: #666;
}
 
.rrm-remarks-popover-arrow {
    background: #F5F5F5;
    border-color: #E0E0E0;
}
 
.rrm-remarks-popover-left .rrm-remarks-popover-arrow {
    border-color: #E0E0E0;
}
*/
 
 
/* OPTIONAL: Scrollbar styling for long remarks */
.rrm-remarks-popover-inner::-webkit-scrollbar {
    width: 6px;
}
 
.rrm-remarks-popover-inner::-webkit-scrollbar-track {
    background: transparent;
}
 
.rrm-remarks-popover-inner::-webkit-scrollbar-thumb {
    background: #DDE3E8;
    border-radius: 3px;
}
 
.rrm-remarks-popover-inner::-webkit-scrollbar-thumb:hover {
    background: #C0C8CF;
}
 
 
/* Firefox scrollbar styling */
.rrm-remarks-popover-inner {
    scrollbar-width: thin;
    scrollbar-color: #DDE3E8 transparent;
}


/* =========================================================
   FINAL FIX: Compact More Dropdown Menu
   Matches the small Figma-style dropdown and prevents clipping
========================================================= */
.rdp-inquiry-card,
.rdp-table-wrap,
.rdp-table,
.rdp-table tbody,
.rdp-table tr,
.rdp-table td,
.rdp-more-cell,
.rdp-more-wrap {
  overflow: visible !important;
}

.rdp-more-cell {
  position: relative !important;
  text-align: center !important;
  z-index: 20 !important;
}

.rdp-table tr:has(.rdp-more-wrap.is-open) {
  position: relative !important;
  z-index: 999999 !important;
}

.rdp-more-wrap {
  position: relative !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: auto !important;
  z-index: 30 !important;
}

.rdp-more-wrap.is-open {
  z-index: 9999999 !important;
}

.rdp-more-btn {
  position: relative !important;
  z-index: 2 !important;
}

.rdp-more-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: -8px !important;
  bottom: auto !important;
  margin: 0 !important;

  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;

  padding: 9px 8px !important;
  background: #FFFFFF !important;
  border: 1px solid #EFEFEF !important;
  border-radius: 13px !important;

  box-shadow: 0 12px 30px rgba(15, 23, 42, .10),
              0 3px 10px rgba(15, 23, 42, .05) !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(6px) !important;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
  z-index: 99999999 !important;
  box-sizing: border-box !important;
}

.rdp-more-wrap.is-open .rdp-more-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.rdp-more-menu::before {
  content: "Options" !important;
  display: block !important;
  position: static !important;
  margin: 0 0 5px 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: #8D8D8D !important;
}

.rdp-more-item,
.rdp-trash-form .rdp-more-item {
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;

  display: flex !important;
  align-items: center !important;

  position: relative !important;
  box-sizing: border-box !important;

  padding: 0 10px 0 36px !important;
  margin: 0 !important;

  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;

  color: #666666 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: left !important;
  white-space: nowrap !important;

  cursor: pointer !important;
  box-shadow: none !important;
}

.rdp-more-item:hover,
.rdp-more-item:focus,
.rdp-more-item:active,
.rdp-more-menu .rdp-more-item:hover,
.rdp-more-menu .rdp-more-item:focus,
.rdp-more-menu .rdp-more-item:active {
  background: #F7F7F7 !important;
  color: #303030 !important;
  outline: none !important;
}

.rdp-more-item::before,
.rdp-trash-form .rdp-more-item::before {
  position: absolute !important;
  left: 11px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #777777 !important;
}

.rdp-more-item.rrm-preview-open-btn::before { content: "◉" !important; }
.rdp-more-item.rdp-status-toggle-btn::before { content: "↻" !important; color: #2F7C52 !important; font-size: 17px !important; }
.rdp-more-item.rrm-package-open-btn::before { content: "◇" !important; font-size: 16px !important; }
.rdp-more-item.rrm-amount-open-btn::before { content: "₱" !important; font-size: 14px !important; }
.rdp-more-item.rrm-remarks-open-btn::before { content: "≡" !important; font-size: 16px !important; }
.rdp-trash-form .rdp-more-item::before,
.rdp-more-item.is-red::before { content: "⌫" !important; color: #E00000 !important; font-size: 15px !important; }

.rdp-more-item.is-green,
.rdp-more-item.rdp-status-toggle-btn {
  color: #2F7C52 !important;
}

.rdp-more-item.is-red,
.rdp-trash-form .rdp-more-item {
  color: #E00000 !important;
}

.rdp-more-item.is-green:hover,
.rdp-more-item.rdp-status-toggle-btn:hover {
  color: #2F7C52 !important;
  background: rgba(47, 124, 82, .07) !important;
}

.rdp-more-item.is-red:hover,
.rdp-trash-form .rdp-more-item:hover {
  color: #E00000 !important;
  background: rgba(224, 0, 0, .06) !important;
}

.rdp-trash-form {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Status submenu should stay beside the compact menu */
.rdp-status-submenu {
  right: calc(100% + 8px) !important;
  top: 48px !important;
  z-index: 100000000 !important;
}

@media (max-width: 767px) {
  .rdp-more-menu {
    right: 0 !important;
    width: 205px !important;
    min-width: 205px !important;
    max-width: 205px !important;
  }
}

/* Remove Options text above dropdown */
.rdp-more-menu::before {
  content: none !important;
  display: none !important;
}

/* Use Font Awesome icons */
.rdp-more-item {
  position: relative !important;
  padding-left: 44px !important;
}

.rdp-more-item::before {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  color: #777 !important;
}

/* Preview icon */
.rdp-more-item.rrm-preview-open-btn::before {
  content: "\f06e" !important;
}

/* Update Status icon */
.rdp-more-item.rdp-status-toggle-btn::before {
  content: "\f2f1" !important;
  color: #2F7C52 !important;
}

/* Change Package icon */
.rdp-more-item.rrm-package-open-btn::before {
  content: "\f1b2" !important;
}

/* Change Amount icon */
.rdp-more-item.rrm-amount-open-btn::before {
  content: "\f155" !important;
}

/* Move to Trash icon */
.rdp-more-item.is-red::before {
  content: "\f2ed" !important;
  color: #DD1010 !important;
}

/* Add remarks icon */
.rdp-more-item.rrm-remarks-open-btn::before {
  content: "\f4ad" !important;
}

/* =========================================================
   FINAL RESPONSIVE FIX
   - Whole website must NOT move horizontally
   - Only the table area scrolls horizontally on mobile
   - Pagination hidden rows must stay hidden
   - Old mobile card/table stacking is disabled
========================================================= */

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/*.rdp-shell,*/
.rdp-dashboard,
.rdp-wrapper,
.rdp-main,
.rdp-content,
.rdp-main-grid,
.rdp-section,
.rdp-card,
.rdp-inquiry-card,
.rdp-records-section,
.rdp-report-card,
.rdp-co2-card,
.rdp-clients-card,
.rdp-emails-card {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Desktop table should still fit normally */
@media (min-width: 768px) {
  .rdp-table-scroll,
  .rdp-table-wrap,
  .rdp-records-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  .rdp-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }
}

/* Mobile / small screen */
@media (max-width: 767px) {

  /*.rdp-shell,*/
  .rdp-dashboard,
  .rdp-wrapper,
  .rdp-main,
  .rdp-content,
  .rdp-inquiry-card,
  .rdp-records-section {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .rdp-shell {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Other widgets: stack cleanly */
  .rdp-main-grid,
  .rdp-stats-row,
  .rdp-stats-row-3,
  .rdp-stats-row-4,
  .rdp-cards-grid,
  .rdp-dashboard-grid,
  .rdp-widget-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .rdp-card,
  .rdp-report-card,
  .rdp-co2-card,
  .rdp-clients-card,
  .rdp-emails-card,
  .rdp-chart-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .rdp-section-head-bottom,
  .rdp-inquiry-tools,
  .rdp-records-header,
  .rdp-records-toolbar {
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .rdp-search-pill,
  .rdp-search-input,
  .rdp-search-wrap,
  .rdp-sort-wrap,
  .rdp-filter-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .rdp-tabs {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    gap: 10px !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .rdp-tab {
    flex: 0 0 auto !important;
  }

  /* IMPORTANT:
     Table scroll is only inside this wrapper, not the whole website. */
  .rdp-table-scroll,
  .rdp-table-wrap,
  .rdp-records-table-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
  }

  /* Disable old stacked mobile card layout */
  .rdp-table {
    display: table !important;
    width: 1120px !important;
    min-width: 1120px !important;
    max-width: none !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  .rdp-table thead {
    display: table-header-group !important;
  }

  .rdp-table tbody {
    display: table-row-group !important;
    width: auto !important;
  }

  .rdp-table tr {
    display: table-row !important;
    width: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .rdp-table th,
  .rdp-table td {
    display: table-cell !important;
    width: auto !important;
    padding: 14px 10px !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    vertical-align: middle !important;
  }

  .rdp-table td::before,
  .rdp-table th::before {
    content: none !important;
    display: none !important;
  }

  /* Let long address/contact text wrap a little inside their own columns only */
  .rdp-contact-cell {
    min-width: 210px !important;
  }

  .rdp-package-cell {
    min-width: 130px !important;
  }

  .rdp-address-cell {
    min-width: 260px !important;
  }

  .rdp-ref-cell {
    min-width: 200px !important;
  }

  .rdp-date-cell {
    min-width: 130px !important;
  }

  .rdp-status-cell {
    min-width: 130px !important;
  }

  .rdp-more-cell {
    min-width: 80px !important;
    position: sticky !important;
    right: 0 !important;
    background: #fff !important;
    z-index: 10 !important;
  }

  .rdp-contact-name,
  .rdp-contact-sub,
  .rdp-address,
  .rdp-est-cons {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  /* Pagination fix: JS-hidden rows must remain hidden */
  .rdp-table tr[style*="display: none"],
  #rdpDashboardTable .rdp-row[style*="display: none"],
  #rdpDashboardTable .rdp-row[style*="display: none;"] {
    display: none !important;
  }

  .rdp-pagination {
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .rdp-pagination-actions {
    width: 100% !important;
    justify-content: space-between !important;
  }

  /* Dropdown should appear above the table but not stretch page */
  .rdp-more-wrap,
  .rdp-more-cell {
    overflow: visible !important;
  }

  .rdp-more-menu {
    right: 0 !important;
    max-width: 205px !important;
  }
}

/* =========================================================
   MOBILE UX OVERRIDES
   Keep the dashboard readable without a desktop-width table.
========================================================= */
@media (max-width: 767px) {
  .rdp-shell {
    padding: 12px 10px 24px !important;
  }

  .rdp-topbar {
    min-height: 52px;
    margin-bottom: 14px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .rdp-topbar-left,
  .rdp-topbar-right {
    width: auto;
    min-width: 0;
    gap: 8px;
  }

  .rdp-topbar-right {
    margin-left: auto;
    justify-content: flex-end;
  }

  .rdp-admin-menu-toggle,
  .rdp-admin-circle-btn,
  .rdp-admin-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .rdp-admin-logo {
    display: block;
    width: auto;
    max-width: min(116px, 30vw);
    max-height: 42px;
    object-fit: contain;
  }

  .rdp-admin-dropdown {
    top: 52px;
    width: min(250px, calc(100vw - 20px));
  }

  .rdp-account-dropdown {
    top: 52px;
    right: 0;
    width: min(280px, calc(100vw - 20px));
  }

  .rdp-left,
  .rdp-right,
  .rdp-main-grid {
    gap: 12px;
  }

  .rdp-stat-card {
    min-height: 96px;
    padding: 13px 14px;
  }

  .rdp-stat-head {
    margin-bottom: 12px;
  }

  .rdp-stat-body {
    margin-top: 18px;
  }

  .rdp-stat-value {
    font-size: clamp(21px, 7vw, 28px);
  }

  .rdp-chart-card {
    padding: 16px 14px 12px;
  }

  .rdp-chart-head {
    gap: 12px;
  }

  .rdp-analytics-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .rdp-analytics-select,
  .rdp-analytics-apply {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0;
  }

  .rdp-analytics-date {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
  }

  .rdp-chart-wrap,
  .rdp-chart-area {
    min-height: 210px;
  }

  .rdp-chart-svg {
    height: 190px;
  }

  .rdp-x-axis {
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .rdp-x-axis::-webkit-scrollbar,
  .rdp-tab-row::-webkit-scrollbar {
    display: none;
  }

  .rdp-carbon-filter {
    grid-template-columns: 1fr !important;
  }

  .rdp-carbon-gauge-wrap {
    flex-direction: column;
    align-items: center !important;
    text-align: center;
  }

  .rdp-carbon-gauge-copy {
    width: 100%;
  }

  .rdp-carbon-gauge-value {
    font-size: clamp(23px, 8vw, 30px);
    white-space: normal;
  }

  .rdp-inquiry-card {
    padding: 20px 0 !important;
    overflow: visible !important;
  }

  .rdp-section-head-bottom {
    margin: 0 0 14px !important;
    padding: 0 14px !important;
  }

  .rdp-section-head-bottom > div:first-child {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 3px !important;
  }

  .rdp-inquiry-tools {
    grid-template-columns: 1fr !important;
  }

  .rdp-sort-pill {
    width: max-content !important;
    min-height: 40px;
  }

  .rdp-tab-row {
    margin: 0 0 14px !important;
    padding: 0 14px 5px !important;
    gap: 8px !important;
    scroll-snap-type: x proximity;
  }

  .rdp-tab {
    min-height: 38px;
    scroll-snap-align: start;
  }

  /* Records become self-contained cards instead of a 1120px table. */
  .rdp-table-scroll {
    padding: 0 10px;
    overflow: visible !important;
  }

  .rdp-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .rdp-table colgroup,
  .rdp-table thead {
    display: none !important;
  }

  .rdp-table tbody {
    display: flex !important;
    width: 100% !important;
    flex-direction: column;
    gap: 12px;
  }

  .rdp-table tr.rdp-row {
    position: relative;
    display: grid !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid #E6EAE7 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .04) !important;
  }

  .rdp-table tr.rdp-row > td {
    display: grid !important;
    grid-template-columns: minmax(86px, .42fr) minmax(0, 1fr);
    align-items: start !important;
    justify-content: initial !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 9px 0 !important;
    gap: 10px !important;
    border-bottom: 1px solid #F0F2F1 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-align: left !important;
  }

  .rdp-table tr.rdp-row > td::before {
    display: block !important;
    color: #8A9290;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .rdp-table tr.rdp-row > td:nth-child(1)::before { content: "Contact" !important; }
  .rdp-table tr.rdp-row > td:nth-child(2)::before { content: "Package" !important; }
  .rdp-table tr.rdp-row > td:nth-child(3)::before { content: "Address" !important; }
  .rdp-table tr.rdp-row > td:nth-child(4)::before { content: "Remarks" !important; }
  .rdp-table tr.rdp-row > td:nth-child(5)::before { content: "Reference" !important; }
  .rdp-table tr.rdp-row > td:nth-child(6)::before { content: "Date" !important; }
  .rdp-table tr.rdp-row > td:nth-child(7)::before { content: "Status" !important; }
  .rdp-table tr.rdp-row > td:nth-child(8)::before { content: "Actions" !important; }

  .rdp-table tr.rdp-row > td:last-child {
    border-bottom: 0 !important;
  }

  .rdp-contact {
    align-items: center !important;
  }

  .rdp-remarks-cell,
  .rdp-more-cell {
    position: static !important;
    justify-content: initial !important;
    background: transparent !important;
    z-index: auto !important;
  }

  .rdp-more-wrap {
    width: max-content !important;
    justify-content: flex-start !important;
  }

  .rdp-more-btn {
    width: 40px !important;
    height: 34px !important;
    margin: 0 !important;
    border: 1px solid #E2E7E4 !important;
    border-radius: 10px !important;
  }

  .rdp-more-menu {
    right: auto !important;
    left: 0 !important;
    bottom: calc(100% + 6px) !important;
    width: min(220px, calc(100vw - 52px)) !important;
    min-width: 0;
  }

  .rdp-status-submenu {
    top: calc(100% + 6px);
    right: auto;
    left: 0;
    width: min(210px, calc(100vw - 52px));
  }

  .rdp-empty-cell {
    display: block !important;
    width: 100% !important;
    padding: 24px 12px !important;
  }

  .rdp-pagination {
    margin: 16px 10px 0 !important;
  }

  .rdp-pagination-info {
    white-space: normal;
  }

  .rdp-pagination-actions {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 4px;
  }

  .rdp-report-bottom-bar {
    margin: 16px 10px 0 !important;
    padding: 15px;
  }

  .rdp-report-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .rdp-report-excel-btn,
  .rdp-report-save-pdf-btn {
    width: 100%;
    min-width: 0 !important;
  }

  .rdp-side-item,
  .rdp-inquire-email-item {
    min-width: 0;
    gap: 8px;
  }

  .rdp-side-item-left,
  .rdp-inquire-email-left {
    min-width: 0;
  }

  .rdp-inquire-email-left strong,
  .rdp-inquire-email-left span {
    max-width: 100%;
  }

  .rrm-package-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .rdp-topbar-right .rdp-admin-circle-btn:first-child {
    display: none;
  }

  .rdp-admin-logo {
    max-width: 104px;
  }

  .rdp-chart-subtitle,
  .rdp-section-head-bottom p {
    font-size: 11px !important;
  }

  .rdp-inquire-modal,
  .rdp-client-modal {
    padding: 8px;
  }

  .rdp-inquire-modal-dialog,
  .rdp-client-modal-dialog {
    width: 100%;
    max-height: 94vh;
    padding: 16px;
    border-radius: 18px;
  }

  .rdp-inquire-modal-head {
    padding-right: 44px;
  }

  .rdp-inquire-modal-head h3,
  .rdp-client-modal-head h3 {
    font-size: 20px;
  }

  .rdp-inquire-modal-close {
    width: 40px;
    height: 40px;
  }

  .rdp-inquire-modal-tabs,
  .rdp-client-modal-tabs,
  .rdp-inquire-modal-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .rdp-inquire-modal-tabs button,
  .rdp-client-modal-tabs button,
  .rdp-inquire-action-btn {
    flex: 0 0 auto;
  }
}