/* ===========================
   GLOBAL
=========================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Segoe UI',Arial,sans-serif;
display:flex;
background:#f4f6fb;
color:#333;
}

/* ===========================
   SIDEBAR
=========================== */

.sidebar{
width:240px;
height:100vh;
background:#c3d2f1;
color:#000000;
padding:20px;
position:fixed;
left:0;
top:0;
overflow-y:auto;
}

.sidebar h2{
text-align:center;
margin-bottom:30px;
font-size:24px;
}

.sidebar ul{
list-style:none;
padding:0;
}

.sidebar li{
padding:14px;
margin-bottom:8px;
border-radius:8px;
cursor:pointer;
transition:.3s;
}

.sidebar li:hover{
background:#ffffff;
}

/* ===========================
   MAIN
=========================== */

.main{
margin-left:260px;
padding:25px;
width:100%;
}

.main h1{
margin-bottom:20px;
color:#111827;
}

/* ===========================
   SECTIONS
=========================== */

.section{
display:none;
}

.section.active{
display:block;
}

/* ===========================
   FORMS
=========================== */

.form{
background:#fff;
padding:15px;
border-radius:10px;
box-shadow:0 2px 8px rgba(0,0,0,.08);
margin-bottom:15px;
}

input,
select{
padding:10px;
margin:5px;
border:1px solid #d1d5db;
border-radius:6px;
min-width:180px;
}

input:focus,
select:focus{
outline:none;
border-color:#2563eb;
}

/* ===========================
   BUTTONS
=========================== */

button{
padding:10px 16px;
border:none;
border-radius:6px;
background:#2563eb;
color:white;
cursor:pointer;
transition:.3s;
font-weight:600;
}

button:hover{
background:#1d4ed8;
}

/* ===========================
   FILTERS
=========================== */

.filter-box{
display:flex;
flex-wrap:wrap;
gap:10px;
background:#fff;
padding:15px;
border-radius:10px;
margin-bottom:15px;
box-shadow:0 2px 8px rgba(0,0,0,.08);
}

/* ===========================
   TABLES
=========================== */

table{
width:100%;
border-collapse:collapse;
background:#fff;
margin-top:10px;
box-shadow:0 2px 8px rgba(0,0,0,.08);
}

th{
background:#2563eb;
color:white;
padding:12px;
}

td{
padding:10px;
border:1px solid #e5e7eb;
}

tr:nth-child(even){
background:#f9fafb;
}

/* ===========================
   ACTION ICONS
=========================== */

.fa-pen{
color:#2563eb;
cursor:pointer;
font-size:16px;
}

.fa-trash{
color:#dc2626;
cursor:pointer;
font-size:16px;
}

.fa-pen:hover,
.fa-trash:hover{
transform:scale(1.1);
}

/* ===========================
   FOOTER SUMMARY
=========================== */

.summary-footer{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:15px;
margin-top:20px;
}

.summary-footer .box{
background:white;
padding:15px;
border-radius:10px;
box-shadow:0 2px 8px rgba(0,0,0,.08);
text-align:center;
font-weight:bold;
}

/* ===========================
   REPORTS
=========================== */

.report-filter{
background:#fff;
padding:15px;
border-radius:10px;
border:1px solid #e5e7eb;
min-width:250px;
max-height:250px;
overflow:auto;
}

.report-buttons{
margin:15px 0;
display:flex;
gap:10px;
}

#customerBox label,
#projectBox label{
display:block;
padding:5px;
cursor:pointer;
}

#reportResult{
background:#fff;
padding:20px;
border-radius:10px;
box-shadow:0 2px 8px rgba(0,0,0,.08);
margin-top:20px;
}

#reportResult h2{
margin-top:20px;
margin-bottom:10px;
color:#2563eb;
}

#reportResult h3{
margin-top:15px;
margin-bottom:10px;
}

#reportResult table{
width:100%;
border-collapse:collapse;
margin-top:10px;
margin-bottom:20px;
}

#reportResult th{
background:#2563eb;
color:#fff;
}

#reportResult th,
#reportResult td{
padding:10px;
border:1px solid #e5e7eb;
}

/* ===========================
   SCROLLBAR
=========================== */

::-webkit-scrollbar{
width:8px;
height:8px;
}

::-webkit-scrollbar-thumb{
background:#9ca3af;
border-radius:5px;
}

::-webkit-scrollbar-track{
background:#f3f4f6;
}

/* ===========================
   MOBILE
=========================== */

@media(max-width:900px){

.sidebar{
width:100%;
height:auto;
position:relative;
}

.main{
margin-left:0;
}

.filter-box,
.form{
display:flex;
flex-direction:column;
}

.summary-footer{
grid-template-columns:1fr;
}

table{
font-size:12px;
}

}

.sidebar h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.sidebar h2 img{
    height: 70px;
    width: auto;
    object-fit: contain;
}


/* ===========================
   LOGO
=========================== */

.logo{
text-align:center;
margin-bottom:20px;
}

.logo img{
max-width:180px;
width:100%;
height:auto;
}

/* ===========================
   TABLE RESPONSIVE
=========================== */

.table-responsive{
width:100%;
overflow-x:auto;
}

.table-responsive table{
min-width:1000px;
}

/* ===========================
   MOBILE
=========================== */

@media screen and (max-width:768px){

body{
display:block;
}

.sidebar{
position:relative;
width:100%;
height:auto;
padding:15px;
}

.sidebar ul{
display:flex;
justify-content:center;
flex-wrap:wrap;
gap:10px;
}

.sidebar li{
margin:0;
}

.main{
margin-left:0;
width:100%;
padding:10px;
}

.form,
.filter-box{
display:flex;
flex-direction:column;
}

input,
select,
button{
width:100%;
margin:5px 0;
}

.summary-footer{
grid-template-columns:1fr;
}

.report-buttons{
flex-direction:column;
}

.report-filter{
width:100%;
}

.logo img{
max-width:140px;
}

}

/* ===========================
   SMALL MOBILE
=========================== */

@media screen and (max-width:480px){

h1{
font-size:18px;
}

h2{
font-size:16px;
}

table{
font-size:12px;
}

button{
font-size:13px;
}

}