/* NetSuite Transactions Styles */

.ns-transactions-wrapper {
    margin-top: 20px;
}

.ns-transactions-table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.ns-transactions-table td {
    vertical-align: middle;
}

.ns-transaction-group {
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
}

.ns-transaction-group-open {
    border-color: rgba(220,53,69,0.35);
    box-shadow: 0 10px 24px rgba(220,53,69,0.08);
}

.ns-transaction-group .card-header {
    background: linear-gradient(180deg, #f8f9fa 0%, #f1f4f7 100%);
}

.ns-open-invoice-row {
    background: #fff8e1 !important;
}

.ns-open-invoice-row td:first-child {
    border-left: 4px solid #dc3545;
}

.ns-open-invoice-note {
    color: #b02a37;
    font-weight: 600;
    margin-top: 4px;
}

.ns-transaction-details-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.ns-transaction-details-wrapper .card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
}

.ns-transaction-details-wrapper .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-weight: 600;
}

/* Badge Tweaks for WP Themes that might lack Bootstrap */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.bg-success { background-color: #198754 !important; }
.bg-secondary { background-color: #6c757d !important; }
.bg-info { background-color: #0dcaf0 !important; }
.bg-warning { background-color: #ffc107 !important; }
.bg-danger { background-color: #dc3545 !important; }
.text-dark { color: #212529 !important; }

/* Utilities if missing */
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.text-end { text-align: right !important; }
.text-center { text-align: center !important; }
.w-100 { width: 100% !important; }
