/* ============================================================
   Funeral Contract App — Custom Styles
   ============================================================ */

body {
    background-color: #f4f6f9;
    font-size: 0.92rem;
}

/* ---- Navbar ---- */
.navbar-brand img { height: 36px; }

/* ---- Wizard Steps ---- */
.wizard-steps {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
}

.wizard-step {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.4rem;
    background: #e9ecef;
    border-right: 2px solid #fff;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6c757d;
    transition: background 0.2s;
}

.wizard-step:first-child { border-radius: 8px 0 0 8px; }
.wizard-step:last-child  { border-radius: 0 8px 8px 0; border-right: none; }

.wizard-step.active {
    background: #0d6efd;
    color: #fff;
}

.wizard-step.done {
    background: #198754;
    color: #fff;
}

.wizard-step .step-num {
    display: block;
    font-size: 1.1rem;
}

/* ---- Form Steps ---- */
.form-step { display: none; }
.form-step.active { display: block; }

/* ---- Section cards ---- */
.section-card .card-header {
    background: #343a40;
    color: #fff;
    font-size: 0.88rem;
    padding: 0.5rem 0.8rem;
}

/* ---- Charge table ---- */
.charge-table th {
    background: #f8f9fa;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.charge-table td { vertical-align: middle; }

.charge-table .desc-col { min-width: 220px; }

.charge-table .amount-col { width: 130px; }

.charge-table .na-col { width: 70px; text-align: center; }

.amount-input:disabled { background: #f8f9fa; color: #999; }

/* ---- Summary panel ---- */
.summary-box {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
}

.summary-box .total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.93rem;
}

.summary-box .total-row:last-child { border-bottom: none; }

.summary-box .grand-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0d6efd;
    border-top: 2px solid #dee2e6;
    margin-top: 0.3rem;
    padding-top: 0.5rem;
}

/* ---- Purchaser cards ---- */
.purchaser-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
}

.purchaser-card .card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

/* ---- Dashboard contract list ---- */
.contract-row:hover { background: #f0f4ff; cursor: pointer; }

/* ---- Print / PDF ---- */
@media print {
    .no-print { display: none !important; }
    body { background: #fff; font-size: 11pt; }
    .print-page { box-shadow: none; border: none; }
}
