/* Service Page Specific Styles */

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 18px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.filter-tab.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.service-actions-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.module-action-buttons {
    display: flex;
    gap: 10px;
}

.service-report-card-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.report-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.report-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.report-card-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 4px;
}

.report-card-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.report-value-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    text-align: center;
}

.report-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
}

.report-value-label {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.85rem;
}

.report-button {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.report-button:hover {
    background: #0b1120;
}

#serviceTable .empty-state {
    padding: 40px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

.customer-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-name {
    font-weight: 700;
    color: #0f172a;
}

.customer-phone {
    font-size: 0.9rem;
    color: #475569;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #334155;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #0f766e;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.item-type-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: capitalize;
}

.schedule-sub {
    margin-top: 6px;
    display: block;
    color: #475569;
    font-size: 0.85rem;
}

#serviceTable th {
    text-align: left;
    color: #475569;
    padding: 16px 14px;
    font-weight: 700;
    font-size: 0.9rem;
}

#serviceTable td {
    padding: 14px 14px;
    border-top: 1px solid #e2e8f0;
    vertical-align: middle;
}

#serviceTable tbody tr:nth-child(odd) {
    background: #fbfcfd;
}

#serviceTable tbody tr:hover {
    background: #f1f5f9;
}

/* Simplified Premium Filter Section */
.service-filter-section {
  background: #f8fafc;
  border-radius: 28px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  margin-bottom: 28px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.range-selector {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: white;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.range-pill {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.range-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.range-pill.active {
  background: #0f172a;
  color: white;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
}

.download-excel-btn {
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
  transition: all 0.3s ease;
}

.download-excel-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}


.service-filter-section.show-panel .filter-panels-container {
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}

.filter-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.filter-panel.active {
  display: block;
}

.panel-hint {
  font-size: 14px;
  color: #64748b;
  font-style: italic;
}

.selector-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
}

.input-group input {
  padding: 12px 18px;
  border-radius: 16px;
  border: 1.5px solid #cbd5e1;
  background: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #0f172a;
  width: 100%;
}

.input-group input:focus {
  outline: none;
  border-color: #3b5b9b;
  box-shadow: 0 0 0 4px rgba(59, 91, 155, 0.1);
}

.status-summary {
  font-size: 14px;
  font-weight: 600;
  color: #3b5b9b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-range-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.apply-filter-btn {
  background: #0f172a;
  color: white;
  padding: 12px 24px;
  border-radius: 16px;
  border: none;
  font-weight: 800;
  height: 48px;
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}
