/* =========================================================
   Ballour Executive Dashboard — matches reference HTML
   Loaded last to override color.css / MyCustom / blue theme
   ========================================================= */

:root {
  --exec-bg: #F1F4F9;
  --exec-surface: #FFFFFF;
  --exec-surface-2: #F8F9FC;
  --exec-border: #E5E8F1;
  --exec-text: #0E1526;
  --exec-text-2: #5C6478;
  --exec-text-3: #9AA1B4;
  --exec-primary: #2547D0;
  --exec-primary-dark: #132C7A;
  --exec-primary-tint: #EEF1FD;
  --exec-accent: #6D5EF0;
  --exec-accent-tint: #F2EFFE;
  --exec-success: #0F8A4C;
  --exec-success-tint: #E7F8EF;
  --exec-warning: #B5750A;
  --exec-warning-tint: #FFF6E2;
  --exec-danger: #C6293A;
  --exec-danger-tint: #FDEAED;
  --exec-radius: 14px;
  --exec-shadow: 0 1px 2px rgba(16, 24, 60, 0.04), 0 8px 24px -12px rgba(16, 24, 60, 0.10);
  --exec-shadow-sm: 0 1px 2px rgba(16, 24, 60, 0.06);
  --exec-sidebar-w: 232px;
}

/* ---------- Global shell ---------- */
body.fix-header.fix-sidebar,
body.card-no-border {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  background: var(--exec-bg) !important;
  color: var(--exec-text) !important;
  font-size: 14px;
  line-height: 1.6;
}

body.fix-header.fix-sidebar h1,
body.fix-header.fix-sidebar h2,
body.fix-header.fix-sidebar h3,
body.fix-header.fix-sidebar h4,
body.fix-header.fix-sidebar h5,
body.fix-header.fix-sidebar h6,
body.fix-header.fix-sidebar .exec-num,
body.fix-header.fix-sidebar .num {
  font-family: 'Almarai', 'Cairo', 'Tajawal', sans-serif !important;
  color: var(--exec-text) !important;
}

body.fix-header.fix-sidebar .Main_Color,
body.fix-header.fix-sidebar .head_text,
body.fix-header.fix-sidebar .text-themecolor {
  color: var(--exec-primary) !important;
}

#main-wrapper {
  background: var(--exec-bg) !important;
}

body.fix-header.fix-sidebar .page-wrapper {
  background: var(--exec-bg) !important;
  padding-bottom: 40px !important;
}

body.fix-header.fix-sidebar .container-fluid {
  padding: 18px 26px 40px !important;
}

/* ---------- TOPBAR: utility strip only (logo moves to sidebar) ---------- */
body.fix-header.fix-sidebar .topbar {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  position: relative;
  z-index: 50;
}

body.fix-header.fix-sidebar .topbar .top-navbar {
  min-height: 56px;
  padding: 8px 18px 8px 26px !important;
  background: transparent !important;
  margin-right: var(--exec-sidebar-w);
}

body.fix-header.fix-sidebar .topbar .navbar-header {
  display: none !important;
}

body.fix-header.fix-sidebar .topbar .navbar-collapse {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  background: var(--exec-surface);
  border: 1px solid var(--exec-border);
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: var(--exec-shadow-sm);
  margin-right: 0 !important;
}

body.fix-header.fix-sidebar .topbar .navbar-nav {
  align-items: center;
  flex-direction: row;
}

body.fix-header.fix-sidebar .topbar .navbar-light .navbar-nav .nav-item > a.nav-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--exec-border);
  background: var(--exec-surface);
  color: var(--exec-text-2) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  padding: 0 !important;
}

body.fix-header.fix-sidebar .topbar .navbar-light .navbar-nav .nav-item > a.nav-link:hover {
  border-color: var(--exec-primary);
  color: var(--exec-primary) !important;
  background: var(--exec-primary-tint);
}

body.fix-header.fix-sidebar .topbar .profile-pic {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
}

body.fix-header.fix-sidebar .topbar .notify .heartbit,
body.fix-header.fix-sidebar .topbar .notify .point {
  border-color: var(--exec-surface);
}

/* ---------- SIDEBAR: full-height navy like reference ---------- */
body.fix-header.fix-sidebar .left-sidebar,
body.card-no-border .left-sidebar {
  background: var(--exec-primary-dark) !important;
  background-image: linear-gradient(190deg, #132C7A 0%, #0B1B54 100%) !important;
  box-shadow: none !important;
  width: var(--exec-sidebar-w) !important;
  top: 0 !important;
  height: 100vh !important;
  padding-top: 0 !important;
  z-index: 60 !important;
}

body.fix-header.fix-sidebar .scroll-sidebar {
  height: 100vh !important;
  padding: 18px 12px 20px !important;
}

body.fix-header.fix-sidebar .sidebar-nav,
body.card-no-border .sidebar-nav {
  background: transparent !important;
  padding: 0 !important;
}

body.fix-header.fix-sidebar #sidebarnav {
  width: 100% !important;
  margin: 0 !important;
  padding-bottom: 40px !important;
}

/* Brand block */
.exec-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 20px;
  margin-bottom: 4px;
  text-decoration: none !important;
}

.exec-brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #12B8C4, #2547D0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 16px;
  flex: none;
  font-family: 'Almarai', 'Cairo', sans-serif;
}

.exec-brand .name {
  font-weight: 800;
  font-size: 17px;
  color: #fff !important;
  line-height: 1.2;
  font-family: 'Almarai', 'Cairo', sans-serif;
}

.exec-brand .sub {
  font-size: 11px;
  color: #93A2E8 !important;
  line-height: 1.3;
}

/* Nav items */
body.fix-header.fix-sidebar .sidebar-nav > ul > li > a,
body.card-no-border .sidebar-nav > ul > li > a {
  color: #C6CFF5 !important;
  background: transparent !important;
  border-radius: 9px !important;
  margin: 2px 0 !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  box-shadow: none !important;
}

body.fix-header.fix-sidebar .sidebar-nav > ul > li > a i,
body.card-no-border .sidebar-nav > ul > li > a i {
  color: #C6CFF5 !important;
  opacity: 0.9;
  width: 18px;
  text-align: center;
  font-size: 14px;
  margin: 0 !important;
}

body.fix-header.fix-sidebar .sidebar-nav > ul > li > a i.fa-whatsapp {
  color: #25d366 !important;
}

body.fix-header.fix-sidebar .sidebar-nav > ul > li > a:hover,
body.fix-header.fix-sidebar .sidebar-nav ul li a:hover,
body.card-no-border .sidebar-nav > ul > li > a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.fix-header.fix-sidebar .sidebar-nav > ul > li > a:hover i,
body.fix-header.fix-sidebar .sidebar-nav ul li a:hover i {
  color: #fff !important;
}

body.fix-header.fix-sidebar .sidebar-nav > ul > li.active > a,
body.fix-header.fix-sidebar .sidebar-nav > ul > li > a.active,
body.card-no-border .sidebar-nav > ul > li.active > a {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: inset -3px 0 0 #7C93FF !important;
  border-radius: 9px !important;
}

body.fix-header.fix-sidebar .sidebar-nav > ul > li.active > a i,
body.fix-header.fix-sidebar .sidebar-nav > ul > li > a.active i {
  color: #fff !important;
}

body.fix-header.fix-sidebar .sidebar-nav ul li ul {
  background: rgba(0, 0, 0, 0.15) !important;
  border-radius: 8px;
  margin: 2px 0 6px !important;
  padding: 4px 0 !important;
}

body.fix-header.fix-sidebar .sidebar-nav ul li ul li a {
  color: #B8C4F0 !important;
  font-size: 12.5px !important;
  padding: 7px 14px 7px 28px !important;
  background: transparent !important;
}

body.fix-header.fix-sidebar .sidebar-nav ul li ul li a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

body.fix-header.fix-sidebar .sidebar-nav ul li.nav-devider {
  background: rgba(255, 255, 255, 0.08) !important;
  margin: 10px 8px !important;
  height: 1px;
}

body.fix-header.fix-sidebar .sidebar-nav .has-arrow::after {
  border-color: #93A2E8 !important;
}

/* Content offset under full-height sidebar */
@media (min-width: 1024px) {
  body.fix-header.fix-sidebar .page-wrapper {
    margin-right: var(--exec-sidebar-w) !important;
    margin-left: 0 !important;
  }

  body.fix-header.fix-sidebar .footer {
    right: var(--exec-sidebar-w) !important;
    left: 0 !important;
  }

  body.fix-header.fix-sidebar .topbar .top-navbar {
    margin-right: var(--exec-sidebar-w);
  }
}

@media (max-width: 1023px) {
  body.fix-header.fix-sidebar .topbar .top-navbar {
    margin-right: 0;
  }

  body.fix-header.fix-sidebar .topbar .navbar-header {
    display: flex !important;
    background: transparent !important;
  }

  body.fix-header.fix-sidebar .topbar .navbar-header .head_logo_icon {
    width: 40px !important;
    margin: 0 !important;
  }
}

body.fix-header.fix-sidebar .footer {
  border-top: 1px solid var(--exec-border);
  background: transparent !important;
}

body.fix-header.fix-sidebar .footer p {
  color: var(--exec-text-3) !important;
  font-size: 11px !important;
}

body.fix-header.fix-sidebar .btn-themecolor,
body.fix-header.fix-sidebar .btn-themecolor.disabled {
  background: var(--exec-primary) !important;
  border-color: var(--exec-primary) !important;
}

/* =========================================================
   HOME PAGE — exact reference structure
   ========================================================= */
.exec-dashboard {
  min-width: 0;
  margin-top: -4px;
}

.exec-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.exec-topbar h1 {
  font-size: 21px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  color: var(--exec-text) !important;
  letter-spacing: -0.01em;
}

.exec-topbar .sub {
  color: var(--exec-text-2);
  font-size: 12.5px;
  margin-top: 3px;
}

.exec-section {
  margin-top: 26px;
}

.exec-section:first-of-type {
  margin-top: 0;
}

.exec-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 13px;
  gap: 10px;
  flex-wrap: wrap;
}

.exec-section-head h2 {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  color: var(--exec-text) !important;
}

.exec-eyebrow {
  font-size: 10.5px;
  color: var(--exec-primary) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 3px;
}

.exec-card {
  background: var(--exec-surface) !important;
  border: 1px solid var(--exec-border) !important;
  border-radius: var(--exec-radius) !important;
  box-shadow: var(--exec-shadow-sm) !important;
}

/* KPI grid */
.exec-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.exec-kpi-grid-7 {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.exec-link {
  font-size: 12px;
  color: var(--exec-primary) !important;
  font-weight: 600;
  text-decoration: none;
}

.exec-link:hover {
  text-decoration: underline;
}

.exec-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.exec-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

a.exec-ministat-link {
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

a.exec-ministat-link:hover {
  border-color: var(--exec-primary) !important;
  box-shadow: var(--exec-shadow) !important;
  transform: translateY(-2px);
}

.exec-comm {
  display: block !important;
  padding: 16px 18px !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.exec-comm:hover {
  border-color: var(--exec-primary) !important;
  box-shadow: var(--exec-shadow) !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.exec-comm .comm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.exec-comm .comm-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--exec-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.exec-comm .comm-count {
  font-size: 12px;
  font-weight: 800;
  background: var(--exec-surface-2);
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--exec-text-2);
}

.exec-comm .comm-count.warn {
  background: var(--exec-warning-tint);
  color: var(--exec-warning);
}

.exec-comm .comm-sub {
  font-size: 11.5px;
  color: var(--exec-text-2);
  line-height: 1.5;
}

a.exec-kpi.exec-card,
.exec-kpi {
  padding: 15px 16px !important;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  min-height: 118px;
}

a.exec-kpi.exec-card:hover {
  border-color: var(--exec-primary) !important;
  box-shadow: var(--exec-shadow) !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.exec-kpi .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.exec-kpi .label {
  font-size: 11.5px;
  color: var(--exec-text-2) !important;
  font-weight: 600;
  line-height: 1.35;
}

.exec-kpi .icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: none;
}

.exec-kpi .icon i {
  font-size: 13px;
  line-height: 1;
}

.exec-kpi .exec-num,
.exec-kpi .num {
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  color: var(--exec-text) !important;
  line-height: 1.15;
  margin: 0 !important;
}

.exec-kpi .delta {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 6px;
  margin-top: auto;
}

.exec-kpi .delta.flat {
  color: var(--exec-text-2);
  background: var(--exec-surface-2);
}

.exec-kpi .delta.info {
  color: var(--exec-primary);
  background: var(--exec-primary-tint);
}

.exec-kpi .delta.warn {
  color: var(--exec-warning);
  background: var(--exec-warning-tint);
}

.exec-kpi .delta.danger {
  color: var(--exec-danger);
  background: var(--exec-danger-tint);
}

.exec-kpi .delta.ok {
  color: var(--exec-success);
  background: var(--exec-success-tint);
}

/* Mini stats — subscription row */
.exec-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.exec-ministat {
  padding: 16px 18px !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
}

.exec-ministat .exec-num,
.exec-ministat .num {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--exec-text) !important;
  margin: 0 !important;
  line-height: 1.2;
}

.exec-ministat .label {
  font-size: 11.5px;
  color: var(--exec-text-2) !important;
  font-weight: 600;
  line-height: 1.4;
}

/* Live table */
.exec-live-summary .exec-card {
  overflow: hidden;
}

.exec-live-summary .card-title-link {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--exec-text) !important;
  text-decoration: none;
}

.exec-live-summary .card-title-link:hover {
  color: var(--exec-primary) !important;
}

.exec-live-summary .note_span {
  background: var(--exec-primary-tint) !important;
  color: var(--exec-primary) !important;
  font-size: 11px !important;
  font-weight: 600;
  padding: 3px 10px !important;
  border-radius: 20px;
}

.exec-live-summary .liveSummaryBox {
  margin-top: 4px;
}

.exec-live-summary .table {
  margin-bottom: 0;
  width: 100%;
}

.exec-live-summary .table thead th {
  text-align: right;
  font-size: 11px !important;
  color: var(--exec-text-3) !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--exec-border) !important;
  border-top: none !important;
  white-space: nowrap;
  background: transparent !important;
}

.exec-live-summary .table tbody td {
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--exec-surface-2) !important;
  border-top: none !important;
  font-size: 12.5px;
  vertical-align: middle;
  color: var(--exec-text);
}

.exec-live-summary .table tbody tr:last-child td {
  border-bottom: none !important;
}

.exec-live-summary .table tbody tr:hover td {
  background: var(--exec-surface-2) !important;
}

.exec-live-summary .card-body {
  height: auto !important;
  max-height: none !important;
  padding: 4px 6px 8px !important;
  background: transparent !important;
}

.exec-live-summary .btn-danger-custom {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--exec-border);
  background: var(--exec-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  color: var(--exec-danger);
  padding: 0;
}

.exec-live-summary .btn-danger-custom:hover {
  border-color: var(--exec-danger);
  background: var(--exec-danger-tint);
}

.exec-live-summary .New_Push td {
  background: var(--exec-success-tint) !important;
}

.exec-live-summary .status-ok {
  color: var(--exec-success) !important;
  font-weight: 600;
}

.exec-live-summary .status-pending {
  color: var(--exec-danger) !important;
  font-weight: 600;
}

/* Kill old home_Summary leftovers if any */
.exec-dashboard .card_effect {
  display: none !important;
}

@media (max-width: 1200px) {
  .exec-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .exec-grid-4,
  .exec-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .exec-grid-4,
  .exec-grid-3,
  .exec-grid-2 {
    grid-template-columns: 1fr;
  }

  body.fix-header.fix-sidebar .container-fluid {
    padding: 14px 12px 32px !important;
  }
}

@media (max-width: 480px) {
  .exec-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   LIST PAGES / TABLES — shared layout.table
   ========================================================= */
.exec-list-page {
  min-width: 0;
}

.exec-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.exec-list-title-block {
  min-width: 0;
}

.exec-list-title {
  font-size: 21px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  color: var(--exec-text) !important;
  line-height: 1.3;
}

.exec-list-count {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--exec-text-2);
  font-weight: 600;
}

.exec-list-count::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--exec-primary);
  margin-left: 6px;
  vertical-align: middle;
}

/* Pages often wrap the add button in Bootstrap cols — neutralize */
.exec-list-add,
.exec-list-add > [class*='col-'] {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  float: none !important;
}

.exec-list-card {
  padding: 0 !important;
  overflow: hidden;
}

.exec-list-card > .card-body {
  padding: 0 !important;
}

.exec-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--exec-border);
  background: var(--exec-surface);
}

.exec-list-toolbar-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-right: auto;
}

/* Primary / toolbar buttons */
body.fix-header.fix-sidebar .exec-list-page .custom_but1 {
  background: var(--exec-primary) !important;
  border: 1px solid var(--exec-primary) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.fix-header.fix-sidebar .exec-list-page .custom_but1:hover {
  background: var(--exec-primary-dark) !important;
  border-color: var(--exec-primary-dark) !important;
  color: #fff !important;
}

body.fix-header.fix-sidebar .exec-list-page .custom_but1.buton_padding_icon {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--exec-surface) !important;
  border: 1px solid var(--exec-border) !important;
  color: var(--exec-text-2) !important;
  border-radius: 10px !important;
}

body.fix-header.fix-sidebar .exec-list-page .custom_but1.buton_padding_icon:hover {
  border-color: var(--exec-primary) !important;
  color: var(--exec-primary) !important;
  background: var(--exec-primary-tint) !important;
}

body.fix-header.fix-sidebar .exec-list-page .custom_but2 {
  background: var(--exec-surface) !important;
  border: 1px solid var(--exec-border) !important;
  color: var(--exec-text-2) !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body.fix-header.fix-sidebar .exec-list-page .custom_but2:hover {
  border-color: var(--exec-primary) !important;
  color: var(--exec-primary) !important;
  background: var(--exec-primary-tint) !important;
}

.exec-list-panel {
  padding: 16px 16px 8px;
  background: var(--exec-surface-2);
  border-bottom: 1px solid var(--exec-border);
}

.exec-list-panel .form-control,
.exec-list-panel .custom-select,
.exec-list-panel .select2-container--default .select2-selection--single {
  border: 1px solid var(--exec-border) !important;
  border-radius: 10px !important;
  min-height: 38px;
  font-size: 13px;
  background: var(--exec-surface) !important;
  box-shadow: none !important;
}

.exec-list-panel .form-control:focus {
  border-color: var(--exec-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 71, 208, 0.12) !important;
}

/* Table */
.exec-table-wrap {
  padding: 0;
}

body.fix-header.fix-sidebar .exec-table.table,
body.fix-header.fix-sidebar .exec-list-page .table_text_canter {
  margin-bottom: 0;
  background: var(--exec-surface);
}

body.fix-header.fix-sidebar .exec-list-page .table_text_canter thead tr th {
  text-align: right !important;
  font-size: 11px !important;
  color: var(--exec-text-3) !important;
  font-weight: 700 !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--exec-border) !important;
  border-top: none !important;
  white-space: nowrap;
  background: var(--exec-surface-2) !important;
  vertical-align: middle;
}

body.fix-header.fix-sidebar .exec-list-page .table_text_canter tbody tr td {
  text-align: right !important;
  padding: 13px 14px !important;
  border-top: none !important;
  border-bottom: 1px solid var(--exec-surface-2) !important;
  font-size: 12.5px !important;
  color: var(--exec-text) !important;
  vertical-align: middle !important;
  background: transparent !important;
}

body.fix-header.fix-sidebar .exec-list-page .table_text_canter tbody tr:last-child td {
  border-bottom: none !important;
}

body.fix-header.fix-sidebar .exec-list-page .table_text_canter tbody tr:hover td {
  background: var(--exec-surface-2) !important;
}

body.fix-header.fix-sidebar .exec-list-page .table_text_canter tbody tr.gray_back td {
  background: var(--exec-warning-tint) !important;
}

/* Keep checkbox / index / action columns compact & centered */
body.fix-header.fix-sidebar .exec-list-page .table_text_canter thead tr th:first-child,
body.fix-header.fix-sidebar .exec-list-page .table_text_canter tbody tr td:first-child,
body.fix-header.fix-sidebar .exec-list-page .table_text_canter thead tr th:nth-child(2),
body.fix-header.fix-sidebar .exec-list-page .table_text_canter tbody tr td:nth-child(2) {
  text-align: center !important;
  width: 48px;
}

/* Store cell */
body.fix-header.fix-sidebar .exec-list-page .store-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}

body.fix-header.fix-sidebar .exec-list-page .store-cell .store-ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--exec-primary-tint);
  color: var(--exec-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex: none;
  font-family: 'Almarai', 'Cairo', sans-serif;
}

body.fix-header.fix-sidebar .exec-list-page .store-cell .store-meta {
  min-width: 0;
}

body.fix-header.fix-sidebar .exec-list-page .store-cell .store-name {
  font-weight: 700 !important;
  font-size: 12.5px !important;
  color: var(--exec-text) !important;
  line-height: 1.3;
}

body.fix-header.fix-sidebar .exec-list-page .store-cell .store-domain {
  font-size: 11px !important;
  color: var(--exec-text-3) !important;
  margin-top: 2px !important;
  line-height: 1.3;
  direction: ltr;
  text-align: right;
}

body.fix-header.fix-sidebar .exec-list-page .exec-phone {
  direction: ltr;
  display: inline-block;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--exec-text);
  white-space: nowrap;
}

body.fix-header.fix-sidebar .exec-list-page .exec-date {
  font-size: 12px;
  color: var(--exec-text-2);
  white-space: nowrap;
}

body.fix-header.fix-sidebar .exec-list-page .exec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--exec-surface-2);
  color: var(--exec-text-2);
  white-space: nowrap;
}

body.fix-header.fix-sidebar .exec-list-page .exec-badge.muted {
  color: var(--exec-text-3);
  border: 1px solid var(--exec-border);
  background: var(--exec-surface);
}

/* Row action buttons */
body.fix-header.fix-sidebar .exec-list-page .row-actions,
body.fix-header.fix-sidebar .exec-list-page .exec-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body.fix-header.fix-sidebar .exec-list-page .tabel_buton_icon,
body.fix-header.fix-sidebar .exec-list-page .custom_but2.tabel_buton_icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  border: 1px solid var(--exec-border) !important;
  background: var(--exec-surface) !important;
  color: var(--exec-text-2) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 13px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

body.fix-header.fix-sidebar .exec-list-page .tabel_buton_icon:hover,
body.fix-header.fix-sidebar .exec-list-page .custom_but2.tabel_buton_icon:hover {
  border-color: var(--exec-primary) !important;
  color: var(--exec-primary) !important;
  background: var(--exec-primary-tint) !important;
}

body.fix-header.fix-sidebar .exec-list-page .tab_but_procedures {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  border: 1px solid var(--exec-border) !important;
  background: var(--exec-surface) !important;
  color: var(--exec-text-2) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

body.fix-header.fix-sidebar .exec-list-page .tab_but_procedures:hover {
  border-color: var(--exec-primary) !important;
  color: var(--exec-primary) !important;
  background: var(--exec-primary-tint) !important;
}

body.fix-header.fix-sidebar .exec-list-page .Custom_dropdown2 .dropdown-menu {
  border: 1px solid var(--exec-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--exec-shadow) !important;
  padding: 6px !important;
  min-width: 180px;
}

body.fix-header.fix-sidebar .exec-list-page .Custom_dropdown2 .dropdown-item {
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 8px 10px !important;
  color: var(--exec-text) !important;
}

body.fix-header.fix-sidebar .exec-list-page .Custom_dropdown2 .dropdown-item:hover {
  background: var(--exec-primary-tint) !important;
  color: var(--exec-primary) !important;
}

body.fix-header.fix-sidebar .exec-list-page .Custom_dropdown2 .dropdown-item i {
  width: 16px;
  text-align: center;
  margin-left: 6px;
  opacity: 0.85;
}

/* Bulk / WhatsApp bars above table */
.exec-list-above {
  border-bottom: 1px solid var(--exec-border);
  background: var(--exec-surface);
}

body.fix-header.fix-sidebar .exec-list-page .customerFiltration,
body.fix-header.fix-sidebar .exec-list-page .send_div {
  padding: 12px 16px;
  background: var(--exec-surface);
}

body.fix-header.fix-sidebar .exec-list-page .customerFiltration {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.fix-header.fix-sidebar .exec-list-page .send_div {
  border-bottom: 1px solid var(--exec-border);
}

/* Pagination */
.exec-pagination {
  display: flex;
  justify-content: center;
  padding: 14px 10px 16px;
}

body.fix-header.fix-sidebar .exec-list-page .pagination {
  margin: 0;
}

body.fix-header.fix-sidebar .exec-list-page .pagination .page-link {
  border: 1px solid var(--exec-border);
  color: var(--exec-text-2);
  border-radius: 8px !important;
  margin: 0 3px;
  font-size: 12.5px;
  font-weight: 600;
  min-width: 34px;
  text-align: center;
}

body.fix-header.fix-sidebar .exec-list-page .pagination .page-item.active .page-link {
  background: var(--exec-primary);
  border-color: var(--exec-primary);
  color: #fff;
}

body.fix-header.fix-sidebar .exec-list-page .pagination .page-link:hover {
  background: var(--exec-primary-tint);
  color: var(--exec-primary);
  border-color: var(--exec-primary);
}

body.fix-header.fix-sidebar .exec-list-page .tfoot td {
  border: none !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  .exec-list-header {
    flex-direction: column;
    align-items: stretch;
  }

  .exec-list-add {
    width: 100% !important;
  }

  .exec-list-add .custom_but1 {
    width: 100%;
  }

  .exec-list-toolbar-end {
    width: 100%;
    justify-content: flex-start;
  }
}
