/**
 * Dog Walking Business — Invoice Detail View Styles
 *
 * Shared between admin and frontend invoice detail modals.
 */

/* ----------------------------------------
   Invoice Detail Container
   ---------------------------------------- */
.dwb-invoice-detail {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* ----------------------------------------
   Header: Logo (centered) + Business Info
   ---------------------------------------- */
.dwb-inv-logo-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.dwb-inv-logo {
    max-height: 80px;
    max-width: 280px;
    object-fit: contain;
}

.dwb-inv-header {
    padding-bottom: 16px;
    border-bottom: 3px solid #0073aa;
    margin-bottom: 20px;
}

.dwb-inv-biz-info {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.dwb-inv-biz-name {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 4px;
}

/* ----------------------------------------
   Meta Row: Invoice Info + Bill-To
   ---------------------------------------- */
.dwb-inv-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
}

.dwb-inv-meta-left {
    flex: 1;
}

.dwb-inv-number {
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 6px;
}

.dwb-inv-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.dwb-inv-status-paid    { background: #d4edda; color: #155724; }
.dwb-inv-status-sent    { background: #cce5ff; color: #004085; }
.dwb-inv-status-draft   { background: #e2e3e5; color: #383d41; }
.dwb-inv-status-pending { background: #fff8e1; color: #f57f17; }
.dwb-inv-status-overdue { background: #f8d7da; color: #721c24; }
.dwb-inv-status-void    { background: #e2e3e5; color: #6c757d; }

.dwb-inv-dates {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.dwb-inv-meta-right {
    text-align: right;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.dwb-inv-billto-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 4px;
}

.dwb-inv-billto-name {
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 2px;
}

/* ----------------------------------------
   Line Items Table
   ---------------------------------------- */
table.dwb-inv-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.dwb-inv-items th {
    background: #f5f5f5;
    text-align: left;
    padding: 8px 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    border-bottom: 2px solid #ddd;
}

.dwb-inv-items td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.dwb-inv-num {
    text-align: right;
}

.dwb-inv-col-qty,
.dwb-inv-col-price,
.dwb-inv-col-total {
    text-align: right;
}

/* ----------------------------------------
   Totals Block
   ---------------------------------------- */
.dwb-inv-totals {
    margin-left: auto;
    width: 250px;
    margin-bottom: 20px;
}

.dwb-inv-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

.dwb-inv-totals-total {
    border-top: 2px solid #333;
    padding-top: 8px;
    margin-top: 4px;
    font-weight: 700;
    font-size: 16px;
}

/* ----------------------------------------
   Notes
   ---------------------------------------- */
.dwb-inv-notes {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
}

.dwb-inv-notes strong {
    display: block;
    margin-bottom: 4px;
}

.dwb-inv-notes p {
    margin: 0;
}

/* ----------------------------------------
   Payment History Table
   ---------------------------------------- */
.dwb-inv-payments-section h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

table.dwb-inv-payments-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.dwb-inv-payments-table th {
    text-align: left;
    padding: 6px 8px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.dwb-inv-payments-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

.dwb-inv-tx-status {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.dwb-inv-tx-succeeded          { background: #d4edda; color: #155724; }
.dwb-inv-tx-pending            { background: #fff3cd; color: #856404; }
.dwb-inv-tx-refunded           { background: #e2e3e5; color: #383d41; }
.dwb-inv-tx-partially_refunded { background: #f8d7da; color: #721c24; }
.dwb-inv-tx-failed             { background: #f8d7da; color: #721c24; }

/* ----------------------------------------
   Included Appointments Section
   ---------------------------------------- */
.dwb-inv-appointments-section {
    margin-bottom: 20px;
}

.dwb-inv-appointments-section h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

table.dwb-inv-appointments-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 16px;
}

.dwb-inv-appointments-table th {
    text-align: left;
    padding: 6px 8px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.dwb-inv-appointments-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}
