/* Base */
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: #f9fafb;
  color: #111827; /* gray-900 */
}

/* Container helper (matches ~max-w-7xl) */
.container {
  max-width: 80rem; /* 1280px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Brand header */
.brand-header {
  background: #282828;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
}
.brand-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.brand-title {
  font-weight: 600;
  font-size: 1rem;
  color: #0394cb;
}
.brand-subtitle {
  font-size: 0.875rem;
  color: #fff; /* gray-500 */
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 0.375rem; /* rounded-md */
  padding: 0.375rem 0.75rem; /* px-3 py-1.5 */
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  border: 1px solid transparent;
  transition: background-color 150ms, color 150ms, border-color 150ms, box-shadow 150ms;
  cursor: pointer;
}
.btn-primary {
  background-color: #2563eb; /* blue-600 */
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #1d4ed8; /* blue-700 */
}
.btn-secondary {
  background-color: #ffffff;
  color: #374151; /* gray-700 */
  border-color: #d1d5db; /* gray-300 */
}
.btn-secondary:hover {
  background-color: #f9fafb;
}

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 0.5rem; /* rounded-lg */
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  overflow: hidden; /* prevent inner content from spilling out */
}
.card-header {
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}
.card-body {
  padding: 1rem;
}

/* Compact styling for Report Delivery card */
#report-delivery-card .card-body {
  padding: 0.75rem; /* reduce padding specifically for this card */
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.7rem; 
}

.table thead th {
  text-align: left;
  font-weight: 600;
  color: #374151; /* gray-700 */
  background: #f9fafb;
}
.table th.sortable {
  cursor: pointer;
  user-select: none;
}
.table th.sortable:hover {
  background: #f3f4f6; /* gray-100 */
}

/* Charts grid */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .charts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Filters bar spacing tweaks */
#filters-bar label { color: #4b5563; /* gray-600 */ }
#filters-bar select,
#filters-bar input[type="search"] {
  width: 100%;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.1rem;
}

/* Minor utilities */
.text-right { text-align: right; }
input::placeholder { color: #9ca3af; /* gray-400 */ }

#sticky-header {
    background-color:#ffffff
}

#nav-controls, #signed-in-as {
 color:#ffffff
}

/* Make charts responsive to their containers without overflowing */
.card canvas {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  margin: 0 auto; /* keep centered when smaller */
}

/* Ensure paired pie/bar canvases match heights while staying responsive */
.dual-charts canvas {
  height: 220px !important;
}
@media (max-width: 768px) {
  .dual-charts canvas { height: 180px !important; }
}


#cumulative-table td, #cumulative-table th {
    font-size:0.9rem
}

#filters-bar {
    background-color: #ffffff !important;
}

/* Modal-specific header style: lighter header background in Appointment Detail modal */
#appt-detail-modal .card-header {
  background: #f3f4f6; /* gray-100 */
  color: #111827;
}

#val-table td   {
    padding:0.5rem;
    border-bottom:1px solid #e5e7eb;
    font-size:0.875rem
}

/* Highlight rows created within the last 7 days in the appointments table */
.row-recent-created {
  background-color: #F2D1D1;
}