
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px; 
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    color: #374151;
    background-color: #F3F4F6;
}
.status-badge.status-pending {
    color: #D97706;
    background-color: #FEF3C7;
}
.status-badge.status-approved {
    color: #2563EB; 
    background-color: #DBEAFE;
}
.status-badge.status-rejected {
    color: #DC2626;
    background-color: #FEE2E2; 
}
.status-badge.status-completed {
    color: #059669; 
    background-color: #D1FAE5; 
}
.status-badge.status-in-progress {
    color: #6366F1;
    background-color: #E0E7FF; 
}
.dashboard-card.project-list-container .status-badge {
  display: inline-block;   /* make width work */
  width: 4.8ch;              /* limit to 3 characters */
  overflow: hidden;        /* hide the rest */
  white-space: nowrap;     /* prevent wrapping */
  text-overflow: clip;     /* cut off without ellipsis */
}

.project-list-header,
.cost-list-header {
    display: grid;
    gap: 16px;
    align-items: center;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280; /* Muted gray text */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #E5E7EB;
}

/* == 2. Shared List Item (Card) Styles (for both lists) == */
.project-list-item,
.cost-list-item {
    display: grid;
    gap: 16px;
    align-items: center;
    padding: 16px 24px;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #E5E7EB; /* Subtle border */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Hover effect for ALL cards */
.project-list-item:hover,
.cost-list-item:hover {
    transform: translateY(-3px); /* Lifts the card slightly */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Base text style inside cards */
.project-list-item span,
.cost-list-item span {
    font-size: 14px;
    color: #374151;
}

/* Make the first span (ID) in each card slightly bolder */
.project-list-item span:first-child,
.cost-list-item span:first-child {
    font-weight: 500;
    color: #111827;
}


/* == 3. Specific Column Layouts == */
/* "All Submissions" list (4 columns) */
.project-list-header,
.project-list-item {
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
}

/* "Billing Overview" list (5 columns) */
.cost-list-header,
.cost-list-item {
    grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1fr;
}


/* == 4. THE FIX: Polished Billing Summary Row == */
.cost-list-summary {
    display: grid;
    /* Must match the 5-column layout of the items above it */
    grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 24px;
    margin-top: 8px; /* A little space from the last item */
    background-color: #F9FAFB; /* A slightly different background color */
    border-top: 2px solid #E5E7EB; /* A stronger top border to separate it */
    border-radius: 0 0 8px 8px; /* Rounds the bottom corners of the container */
}

/* Style for the "Totals:" label */
.cost-list-summary .summary-label {
    /* Place it in the 3rd column, aligned to the right */
    grid-column: 3 / 4;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}

/* Style for the actual total values */
.cost-list-summary .summary-value {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}