
body {
    margin: 0;
    font-family: 'Segoe UI';
   background: #f4f6f9;
}



h1 {
    text-align: center;
    color: #0b3d5c;
}


.logo img {
    width: 100px;
    height: 80px;
    border-radius: 45%;
    object-fit: cover;
}

.title {
    text-align: center;
    flex: 1;
    position: static;
    transform: none;
}

.title h1,
.title p {
    padding-right: 0;
}

.nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:28px;

    flex-shrink:0;
}

.nav a{
    display:flex;
    align-items:center;
    gap:6px;

    text-decoration:none;
    color:#000;
    font-weight:600;
    white-space:nowrap;
}

marquee {
    font-family: 'Poppins', 'Segoe UI', sans-serif;   /* 🔥 modern premium font */
    font-size: 16px;                                  /* clean readable */
    font-weight: 600;                                 /* bold but classy */
    color: #ffffff;                                   /* white text */
    
    background: linear-gradient(90deg, #1e3c72, #2a5298); /* 🔥 premium blue gradient */
    
    padding: 12px 0;                                  /* height */
    border-radius: 8px;                               /* smooth corners */
    
    letter-spacing: 0.8px;                            /* stylish spacing */
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);         /* soft shadow */
    
    margin-top: 10px;
    width: 100%;
    
    border-top: 2px solid rgba(255,255,255,0.2);
    border-bottom: 2px solid rgba(255,255,255,0.2);
}
/* ===========================
        HEADER
=========================== */

.header{
    position:fixed;
    top:0;
    left:0;
    right:0;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:15px 30px;

    background:#fff;
    z-index:1000;

    box-sizing:border-box;
    width:100%;
}

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    width:95px;
    height:80px;
    border-radius:50%;
    object-fit:cover;
}

.title{
    flex:1;
    text-align:center;
}

.title h1{
    margin:0;
    color:#0b3d5c;
    font-size:30px;
}

.title p{
    margin-top:5px;
    color:#666;
}

.nav{
    display:flex;
    align-items:center;
    gap:25px;
}

.nav a:hover{
    color:#1e3c72;
}

/* ===========================
            HR
=========================== */

hr{
    border:none;
    height:2px;
    background:linear-gradient(to right,transparent,#ccc,transparent);
    margin:0 40px;
}


/* ===========================
        MAIN CONTAINER
=========================== */

.container{
    width:95%;
    max-width:1400px;
    margin:145px auto 25px;
    padding:0; 
}


/* ===========================
            CARD
=========================== */

.card{
    background:#fff;
    border-radius:15px;
    padding:25px;
    margin-bottom:25px;
    box-shadow:0 2px 10px rgba(0,0,0,.06);
}


/* ===========================
        CARD HEADER
=========================== */

.card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.header-actions{
    display:flex;
    gap:12px;
}


/* ===========================
        SEARCH GRID
=========================== */

.search-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    align-items:end;
}

.field{
    display:flex;
    flex-direction:column;
}

.field label{
    margin-bottom:8px;
    font-size:13px;
    font-weight:600;
}


/* ===========================
        INPUTS
=========================== */

.input-box{
    display:flex;
    align-items:center;
    border:1px solid #ddd;
    border-radius:10px;
    padding:10px;
    background:#fff;
}

.input-box input{
    width:100%;
    border:none;
    outline:none;
    font-size:14px;
}


/* ===========================
        DATE RANGE
=========================== */

.date-range{
    display:flex;
    align-items:center;
    gap:8px;
}

.date-range input{
    flex:1;
}

#upStart,
#upEnd{
    width:100%;
}


/* ===========================
      TOTAL BUSINESS
=========================== */

.total-section{
    grid-column:span 2;
}

.total-section .date-range{
    border:1px solid #ddd;
    border-radius:10px;
    padding:8px;
}


/* ===========================
        SEARCH BUTTON
=========================== */

.search-btn-box{
    grid-column:1 / -1;
    display:flex;
    justify-content:center;
}

.search-btn{
    width:260px;
    padding:12px;
    border:none;
    border-radius:10px;
    background:#1e3c72;
    color:#fff;
    font-size:15px;
}

.search-btn:hover{
    background:#16325c;
}


/* ===========================
        TABLE HEADER
=========================== */

.table-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.table-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

#searchInput{
    width:230px;
    padding:9px;
}


/* ===========================
            TABLE
=========================== */

table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
}

th{
    background:#1e3c72;
    color:#fff;
    text-align:left;
}

th,
td{
    padding:12px;
    border-bottom:1px solid #e5e5e5;
}

tbody tr:hover{
    background:#f7f9fc;
}


/* ===========================
        PAGINATION
=========================== */

.pagination{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:25px;
}

.page-btns{
    display:flex;
    gap:8px;
}

.page-btns button{
    width:38px;
    height:38px;
}


/* ===========================
      SUGGESTIONS
=========================== */

.suggestions-box{
    position:absolute;
    width:100%;
    max-height:180px;
    overflow-y:auto;
    background:#fff;
    border:1px solid #ddd;
    z-index:999;
}

/* ========================================================= */
/* ================= MOBILE PORTRAIT VIEW ================== */
/* ========================================================= */
@media screen and (max-width:768px){

    body{
        overflow-x:hidden;
        background:#f4f6f9;
    }

    /* ================= HEADER ================= */

    .header{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        padding:10px;
        position:fixed;
        top:0;
        left:0;
        width:100%;
        z-index:1000;
        background:#fff;
        box-sizing:border-box;
    }

    .logo img{
        width:65px;
        height:65px;
    }

    .title{
        width:100%;
        text-align:center;
        margin-top:5px;
    }

    .title h1{
        font-size:18px;
        margin:5px 0;
        line-height:1.3;
    }

    .title p{
        font-size:12px;
        margin:0;
    }


    

    hr{
        display:none;
    }

    /* ================= CONTAINER ================= */

    .container{
        width:95%;
        margin:205px auto 20px;
        padding:0;
    }

    .card{
        padding:15px;
        border-radius:12px;
    }

    /* ================= CARD HEADER ================= */

    .card-header{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

    .card-header h2{
        margin:0;
        font-size:20px;
    }

    .header-actions{
        width:100%;
        display:flex;
        flex-direction:column;
        gap:10px;
    }

    .header-actions button{
        width:100%;
    }

    /* ================= SEARCH GRID ================= */

    .search-grid{
        display:grid;
        grid-template-columns:1fr;
        gap:16px;
    }

    .field{
        width:100%;
    }

    .field label{
        display:block;
        margin-bottom:6px;
        font-size:13px;
        font-weight:600;
    }

    .input-box{
        width:100%;
        box-sizing:border-box;
    }

    .input-box input{
        width:100%;
        font-size:14px;
    }

    /* ================= DATE RANGE ================= */

    .date-range{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:8px;
    }

    .date-range span{
        text-align:center;
        font-weight:600;
    }

    .date-range input,
    #upStart,
    #upEnd{
        width:100%;
        box-sizing:border-box;
    }

    .total-section{
        grid-column:auto;
    }

    .total-section .date-range{
        padding:10px;
    }

    .total-section .date-range input{
        width:100%;
    }

    /* ================= SEARCH BUTTON ================= */

    .search-btn-box{
        grid-column:auto;
        width:100%;
    }

    .search-btn{
        width:100%;
        padding:13px;
        font-size:15px;
    }

    /* ================= TABLE HEADER ================= */

    .table-header{
        display:flex;
        flex-direction:column;
        gap:15px;
    }

    .table-actions{
        display:flex;
        flex-direction:column;
        width:100%;
        gap:10px;
    }

    .extract-btn1{
        width:100%;
        justify-content:center;
    }

    #searchInput{
        width:100%;
        box-sizing:border-box;
    }

    /* ================= TABLE ================= */

    table{
        display:block;
        width:100%;
        overflow-x:auto;
        white-space:nowrap;
        margin-top:15px;
    }

    thead{
        display:table-header-group;
    }

    tbody{
        display:table-row-group;
    }

    th,
    td{
        padding:10px;
        font-size:13px;
    }

    /* ================= ACTION BUTTONS ================= */

    .view-btn,
    .delete-btn{
        padding:6px 10px;
        font-size:12px;
    }

    /* ================= PAGINATION ================= */

    .pagination{
        display:flex;
        flex-direction:column;
        gap:12px;
        align-items:center;
        text-align:center;
    }

    .page-btns{
        display:flex;
        gap:10px;
    }

    .page-btns button{
        width:40px;
        height:40px;
    }

    /* ================= SUGGESTION BOX ================= */

    .suggestions-box{
        max-height:180px;
        overflow-y:auto;
    }

}
