/* ==========================================================================
   AGENT REPORT TABLES (GENERIC FRAMEWORK)
   CruiseClub / WinCruise Agent Reports
   ========================================================================== */

.cc-agent-report-wrap {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  color: #1f2937;
}

.cc-agent-report-header {
  margin-bottom: 14px;
}

.cc-agent-report-title {
  margin: 0 0 4px 0;
  font-size: 28px;
  line-height: 1.2;
  color: #05599C;
  font-weight: 700;
}

.cc-agent-report-subtitle {
  font-size: 15px;
  line-height: 1.4;
  color: #4b5563;
}

.cc-agent-report-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border-radius: 0 !important;
}

.cc-agent-report-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 0 !important;
}

/* Header */
.cc-agent-report-table thead th {
  background: #05599C;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
  border-radius: 0 !important;
}

/* Body */
.cc-agent-report-table tbody td {
  padding: 12px 14px;
  vertical-align: middle;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 !important;
}

.cc-agent-report-table tbody tr:nth-child(odd) {
  background: #f0f0f0;
}

.cc-agent-report-table tbody tr:nth-child(even) {
  background: #ffffff;
}

.cc-agent-report-table tbody tr:hover {
  background: #e6f7e6;
}

/* Links */
.cc-agent-report-table a {
  color: #05599C;
  text-decoration: none;
  font-weight: 500;
}

.cc-agent-report-table a:hover {
  text-decoration: underline;
}

/* Numeric columns */
.cc-agent-report-table .cc-num {
  text-align: right;
  white-space: nowrap;
}

/* Center specific columns */
.cc-agent-report-table .cc-col-client,
.cc-agent-report-table .cc-col-birthday,
.cc-agent-report-table .cc-col-sail-date,
.cc-agent-report-table .cc-col-invoice,
.cc-agent-report-table .cc-col-bookings {
  text-align: center;
}

/* Override for bookings to center instead of right */
.cc-agent-report-table .cc-col-bookings {
  text-align: center !important;
}

/* Column behavior */
.cc-agent-report-table .cc-col-client,
.cc-agent-report-table .cc-col-birthday,
.cc-agent-report-table .cc-col-sail-date,
.cc-agent-report-table .cc-col-invoice {
  white-space: nowrap;
}

.cc-agent-report-table .cc-col-agent {
  white-space: nowrap;
}

.cc-agent-report-table .cc-col-last-cruise {
  min-width: 180px;
}

.cc-agent-report-table .cc-col-name-age {
  min-width: 180px;
}

.cc-agent-report-table thead .cc-col-client,
.cc-agent-report-table thead .cc-col-birthday,
.cc-agent-report-table thead .cc-col-sail-date,
.cc-agent-report-table thead .cc-col-invoice,
.cc-agent-report-table thead .cc-col-bookings {
  text-align: center;
}

/* ==========================================================================
   TOP CLIENTS REPORT - FILTERS
   Specific to: [cc_top_clients_report]
   Notes:
   - Forces single-row filter layout on desktop
   - Adds visible border around filter panel
   - Right-aligns Apply / Reset actions
   ========================================================================== */

.cc-agent-report-wrap .cc-agent-report-filters {
  margin-bottom: 16px;
  padding: 14px 16px 16px;
  background: #f7f7f7;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.cc-agent-report-wrap .cc-agent-report-filters-title {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 700;
  color: #374151;
}

.cc-agent-report-wrap .cc-agent-report-filter-form {
  margin: 0;
  width: 100%;
}

.cc-agent-report-wrap .cc-agent-report-filter-grid {
  display: grid !important;
  grid-template-columns: 1.2fr 1.2fr 0.8fr 0.9fr auto !important;
  gap: 12px;
  align-items: end;
  width: 100%;
}

.cc-agent-report-wrap .cc-agent-report-filter-field {
  min-width: 0;
}

.cc-agent-report-wrap .cc-agent-report-filter-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.cc-agent-report-wrap .cc-agent-report-filter-field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #1f2937;
  font-size: 14px;
  box-sizing: border-box;
}

.cc-agent-report-wrap .cc-agent-report-filter-actions {
  display: flex !important;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.cc-agent-report-wrap .cc-agent-report-filter-actions button,
.cc-agent-report-wrap .cc-agent-report-reset {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #05599C;
  background: #05599C;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.cc-agent-report-wrap .cc-agent-report-reset {
  background: #ffffff;
  color: #05599C;
}



/* ==========================================================================
   TOP CLIENTS REPORT - COLUMN TUNING
   Specific to: [cc_top_clients_report]
   Notes:
   - Full Name now shows email beneath the client name
   - Separate email column removed from report
   - VIP remains a narrow scan-friendly indicator column
   ========================================================================== */

.cc-top-clients-report-table .cc-col-vip {
  width: 56px;
  text-align: center;
  white-space: nowrap;
}

.cc-top-clients-report-table .cc-col-name {
  min-width: 220px;
}

.cc-top-clients-report-table .cc-col-phone,
.cc-top-clients-report-table .cc-col-state,
.cc-top-clients-report-table .cc-col-country,
.cc-top-clients-report-table .cc-col-brand,
.cc-top-clients-report-table .cc-col-source,
.cc-top-clients-report-table .cc-col-agent {
  white-space: nowrap;
}

.cc-top-clients-report-table thead .cc-col-vip {
  text-align: center;
}

.cc-subtext {
  display: inline-block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
  color: #6b7280;
}

/* ==========================================================================
   TOP CLIENTS REPORT - LIFETIME VALUE TIER STYLING
   Specific to: [cc_top_clients_report]
   Notes:
   - These classes are intentionally subtle.
   - They are row-level accents for quick scanning.
   - Hover state remains readable and should still feel interactive.
   ========================================================================== */
   
   
.cc-top-clients-report-table tbody tr.cc-tier-0 {
  background: #ffffff;
}

.cc-top-clients-report-table tbody tr.cc-tier-1 {
  background: #fbfdff;
}

.cc-top-clients-report-table tbody tr.cc-tier-2 {
  background: #f7fbff;
}

.cc-top-clients-report-table tbody tr.cc-tier-3 {
  background: #f8fcf8;
}

.cc-top-clients-report-table tbody tr.cc-tier-4 {
  background: #fffbea;
}

.cc-top-clients-report-table tbody tr.cc-tier-0:hover,
.cc-top-clients-report-table tbody tr.cc-tier-1:hover,
.cc-top-clients-report-table tbody tr.cc-tier-2:hover,
.cc-top-clients-report-table tbody tr.cc-tier-3:hover,
.cc-top-clients-report-table tbody tr.cc-tier-4:hover {
  background: #e6f7e6;
}

/* ==========================================================================
   MOBILE OVERRIDES
   Generic report support + top-clients responsive layout
   ========================================================================== */

@media (max-width: 767px) {
  .cc-agent-report-wrap .cc-agent-report-filter-grid {
    grid-template-columns: 1fr !important;
  }

  .cc-agent-report-wrap .cc-agent-report-filter-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .cc-agent-report-wrap {
    font-size: 15px;
  }

  .cc-agent-report-title {
    font-size: 24px;
  }

  .cc-agent-report-subtitle {
    font-size: 14px;
  }

  .cc-agent-report-table thead th,
  .cc-agent-report-table tbody td {
    padding: 10px 10px;
  }
}

/* =========================
   END AGENT REPORTS CSS
   ========================= */