﻿
/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    min-height: 100vh;
    padding: 0;
    margin: 0; 
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header and Navigation */
.d-flex.justify-content-between {
    background: white;
    padding: 5px 11px;
    border-radius: 12px;
    align-items: center;
}

.print-btn {
    display: flex;
    align-items: center;
}

/* Buttons */
#BackButton {
    background: linear-gradient(135deg, #005aad 0%, #0e4476 100%) !important;
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 90, 173, 0.2);
}

    #BackButton:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 90, 173, 0.3);
    }

.prints {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.2);
}

    .prints:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    }

/* Main Content */
#mainDive {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

/* Headings */
.subheading {
    background: linear-gradient(135deg, #0e4476 0%, #1a5b9a 100%);
    padding: 12px 0 !important;
    border-radius: 10px;
    color: white;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(14, 68, 118, 0.2);
    position: relative;
    overflow: hidden;
}

    .subheading::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }

    .subheading:hover::before {
        left: 100%;
    }

h3.subheading {
    font-size: 1.4rem;
    padding: 10px 0 !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

.card-body {
    padding: 25px;
}

.card-title.cat {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin: -25px -25px 20px -25px;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Stats Boxes */
.border.rounded.p-3.bg-white {
    background: #dbfbf300 !important;
    border: 1px solid #c6c6c6 !important;
    border-radius: 4px !important;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: rgb(14 68 118 / 67%) 2px 2px;
}

    .border.rounded.p-3.bg-white:hover {
        border-color: #0e4476 !important;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

.small-note {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0e4476;
    margin-top: 5px;
}

    .value d.vleft {
        color: #005aad;
        padding-right: 3px;
        font-size: 14px;
    }

    .value d.vright {
        color: #28a745;
        padding-left: 3px;
        font-size: 14px;
    }

/* Category Cards */
.borders {
    border: 1px solid #dee2e6 !important;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .borders:hover {
        border-color: #0e4476 !important;
        box-shadow: 0 8px 20px rgba(14, 68, 118, 0.1);
    }


.DRRHeaderValue {
    font-weight: 600;
    text-align: center;
}

.DRRTotalValue {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 15px 12px !important;
}

.Rangee {
    background-color: #d6ebff !important;
}

/* =========================
           GLOBAL
        ========================= */
body {
    background: #f4f6f9;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #333;
}

.container {
    max-width: 1400px;
}

/* =========================
           HEADINGS
        ========================= */
.subheading {
    margin: 25px 0 15px;
    background: linear-gradient(90deg, #0e4476, #1464a5);
    padding: 8px 10px;
    border-radius: 6px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    letter-spacing: .5px;
}

/* =========================
           BUTTONS
        ========================= */
.print-btn button,
.print-btn .prints {
    border: none;
    padding: 7px 15px;
    font-size: 14px;
    border-radius: 5px;
    background: #005aad;
    color: #fff;
    transition: all .2s ease;
}

    .print-btn button:hover,
    .print-btn .prints:hover {
        background: #003f7d;
        transform: translateY(-1px);
    }

/* =========================
           CARDS
        ========================= */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.card-body {
    padding: 18px;
}

.borders {
    border-radius: 10px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e2e6ea;
}

/* =========================
           CATEGORY TITLES
        ========================= */
.cat {
    text-align: center;
    font-weight: 600;
    padding: 6px;
    background: #e9f1fb;
    border-radius: 5px;
    color: #0e4476;
    margin-bottom: 12px;
}

/* =========================
           SMALL NOTES & VALUES
        ========================= */
.small-note {
    font-size: 13px;
    color: #002e47;
    margin-bottom: 4px;
    margin: 0;
}

.value {
    font-size: 13px;
    font-weight: 600;
    color: #f17909;
}

.vleft {
    color: #198754;
}

.vright {
    color: #dc3545;
}

/* =========================
           SUMMARY BOXES
        ========================= */
.border.rounded.p-3.bg-white {
    transition: all .2s ease;
}

    .border.rounded.p-3.bg-white:hover {
        box-shadow: 0 4px 10px rgba(0,0,0,.12);
        transform: translateY(-2px);
    }

/* =========================
           TABLE DESIGN
        ========================= */
.table {
    margin-bottom: 0;
}

    .table thead th {
        background: #0e4476;
        color: #fff;
        text-align: center;
        vertical-align: middle;
        font-size: 13px;
        padding: 8px;
    }

    .table tbody td {
        font-size: 13px;
        text-align: center;
        vertical-align: middle;
        padding: 7px;
    }

    .table tbody tr:nth-child(even) {
        background: #f8f9fa;
    }

    .table tbody tr:hover {
        background: #eef5ff;
    }



/* =========================
           RANGE COLUMN
        ========================= */
.Rangee {
    font-weight: 600;
    color: #495057;
}

/* =========================
           TABLE HEADER TEXT
        ========================= */
.DRRHeaderValue {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* =========================
           LINKS IN TABLE
        ========================= */
td[onclick] {
    font-weight: 600;
    text-decoration: underline;
}

/* =========================
           PRINT STYLES
        ========================= */
@media print {
    body {
        background: #fff;
    }

    .print-btn,
    #BackButton {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }

    .table thead th {
        background: #eee !important;
        color: #000 !important;
    }

    .subheading {
        background: #eee !important;
        color: #000 !important;
    }
}

/* =========================
           RESPONSIVE
        ========================= */
@media(max-width: 768px) {
    .value {
        font-size: 17px;
    }

    .subheading {
        font-size: 16px;
    }
}



