/* style.css */
body {
    background-color: #f4f6f9;
    font-family: Arial, sans-serif;
}

/* Sidebar */
.sidebar-wrapper {
    min-height: 100vh;
    background-color: #343a40;
    color: #fff;
    padding-top: 20px;
}
.sidebar-wrapper a {
    color: #c2c7d0;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}
.sidebar-wrapper a:hover, .sidebar-wrapper a.active {
    background-color: #494e53;
    color: #fff;
    border-left: 3px solid #007bff;
}

/* Navbar */
.top-navbar {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 20px;
}

/* Content */
.main-content {
    padding: 20px;
}

/* Card Stats */
.stat-card {
    border-radius: 5px;
    box-shadow: 0 0 1px rgba(0,0,0,.125),0 1px 3px rgba(0,0,0,.2);
    margin-bottom: 20px;
    color: #fff;
}
.stat-card .inner {
    padding: 20px;
}
.stat-card h3 {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    white-space: nowrap;
}
.stat-card p {
    font-size: 1rem;
    margin: 0;
}
.bg-info { background-color: #17a2b8 !important; }
.bg-success { background-color: #28a745 !important; }
.bg-warning { background-color: #ffc107 !important; color: #333 !important; }
.bg-danger { background-color: #dc3545 !important; }

/* Table styles */
.table-custom th {
    background-color: #f8f9fa;
}

/* Signature section */
.signature-box {
    margin-top: 50px;
    text-align: center;
}
.signature-box .title {
    font-weight: bold;
    margin-bottom: 80px;
}

/* Watermark */
.watermark {
    display: none;
}

/* Print Styles */
@media print {
    @page { size: A4; margin: 20mm; }
    body {
        font-family: "Times New Roman", Times, serif;
        background-color: #fff;
    }
    .sidebar-wrapper, .top-navbar, .btn, .no-print {
        display: none !important;
    }
    .main-wrapper {
        display: block !important;
    }
    .main-content {
        padding: 0;
        margin: 0;
        width: 100%;
        flex: none;
        max-width: 100%;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    .card-header {
        background-color: transparent !important;
        border-bottom: none !important;
    }
    
    /* Table print */
    .table {
        border-collapse: collapse !important;
    }
    .table td, .table th {
        background-color: #fff !important;
        border: 1px solid #000 !important;
    }

    .watermark.draft {
        display: block;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
        font-size: 100px;
        color: rgba(200, 200, 200, 0.4);
        z-index: 1000;
        pointer-events: none;
        white-space: nowrap;
    }
}

/* New Business styles */
.company-selector {
    min-width: 150px;
}

.shipment-section {
    margin-top: 30px;
    border-top: 2px solid #dee2e6;
    padding-top: 20px;
}

.badge-match {
    background-color: #28a745;
    color: white;
}

.badge-partial {
    background-color: #ffc107;
    color: #333;
}

.badge-mismatch {
    background-color: #dc3545;
    color: white;
}

.recon-card {
    border-left: 4px solid #007bff;
}

/* Transaction Grouping */
.row-group-start {
    border-top: 2px solid #007bff !important;
}
.group-bg {
    background-color: rgba(0, 123, 255, 0.02);
}
.text-muted-cell {
    color: #adb5bd;
    opacity: 0.6;
}

/* Modal Business Styling */
.modal-section-title {
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-left: 4px solid #007bff;
    margin: 20px 0 15px 0;
    font-weight: bold;
    font-size: 0.9rem;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.modal-section-title:first-child {
    margin-top: 0;
}
.summary-box {
    background-color: #f1f3f5;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

