/* hire-profitability.css */

.hprof-container { padding: 1rem 0; }
.hprof-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.hprof-header h2 { margin: 0; color: var(--text-primary, #e2e8f0); font-size: 1.4rem; }
.hprof-btn-dashboard { background: var(--bg-secondary, #334155); color: var(--text-primary, #e2e8f0); border: 1px solid var(--border, #475569); border-radius: 6px; padding: 0.5rem 1rem; font-weight: bold; cursor: pointer; font-size: 0.9rem; }

.hprof-date-selector { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.hprof-date-btn { background: #334155; color: #e2e8f0; border: 1px solid #475569; border-radius: 6px; padding: 0.5rem 1rem; cursor: pointer; font-weight: bold; font-size: 0.85rem; }
.hprof-date-btn.active { background: #f39c12; color: #0f172a; border-color: #f39c12; }

/* Summary cards */
.hprof-summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.hprof-card { background: #1e293b; border-radius: 12px; padding: 1rem; text-align: center; border-left: 4px solid #f39c12; }
.hprof-profit { border-left-color: #22c55e; }
.hprof-card-value { display: block; font-size: 1.4rem; font-weight: 700; color: #f39c12; }
.hprof-positive { color: #22c55e; }
.hprof-negative { color: #ef4444; }
.hprof-card-label { font-size: 0.8rem; color: #94a3b8; text-transform: uppercase; margin-top: 0.3rem; }

/* Charts */
.hprof-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 700px) { .hprof-charts-row { grid-template-columns: 1fr; } }
.hprof-chart-container { background: #1e293b; border-radius: 12px; padding: 1rem; min-height: 280px; }

/* Table */
.hprof-table-wrap { overflow-x: auto; }
.hprof-table { width: 100%; border-collapse: collapse; background: #1e293b; border-radius: 12px; overflow: hidden; }
.hprof-table th { text-align: left; padding: 0.8rem; background: #0f172a; color: #94a3b8; font-weight: 600; font-size: 0.85rem; border-bottom: 1px solid #334155; }
.hprof-table td { padding: 0.8rem; color: #e2e8f0; font-size: 0.9rem; border-bottom: 1px solid #1e293b; }
.hprof-row-green { border-left: 4px solid #22c55e; }
.hprof-row-red { border-left: 4px solid #ef4444; }
.hprof-empty, .hprof-loading { text-align: center; color: #64748b; padding: 2rem; }

/* Toasts */
.hprof-toast { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.9rem; font-weight: 500; animation: hprof-slide-in 0.2s ease; }
.hprof-toast-error { background: var(--danger, #7f1d1d); color: var(--danger-text, #fca5a5); border: 1px solid #ef4444; }
@keyframes hprof-slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Ensure every row has a dark background */
.hprof-table tr {
  background: #1e293b;
}

/* Slightly lighter alternate row – still dark, just distinguishable */
.hprof-table tr:nth-child(even) {
  background: #253349;
}

/* Keep text colour consistent */
.hprof-table td {
  color: #e2e8f0;
}

.hprof-search-row { margin-bottom: 1rem; }
.hprof-search-input {
  width: 100%;
  max-width: 320px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border, #334155);
  background: var(--bg-primary, #0f172a);
  color: var(--text-primary, #e2e8f0);
  font-size: 0.9rem;
}
.hprof-search-input:focus { outline: none; border-color: var(--accent, #f39c12); }