*{
	padding: 0px;
	margin:  0px;
}
html,body{
	height: 100%;
}
.main{
	margin-top: 10%;	
}
#admin, #user{
	border:2px solid;
	width: 180px;
	margin-right: 10px;
}
#admin:hover,#user:hover{
	background-color: green;
}
#container{
	display: grid;
	grid-template-columns: auto 38%;
	grid-template-rows: 20% auto 10%;
	grid-template-areas: 
	"header header"
	"content sidebar"
	"footer footer";
}
#header{
	grid-area: header;
	display: grid;
	grid-template-columns: 25% auto 40%;
}
#header_image{
	height: 80px;
}
ul{
	list-style-type: none;
}
ul li{
	margin-bottom: 10px;
}
.header_price{
	border:1px white;
	background-color: black;
	margin: 10px;
	color: #39FF14;
}
#content{
	grid-area: content;
	display: grid;
	grid-template-rows: auto 15%;
}
#price_column{
	border:2px solid black;
	background-color: white;
}
#table_buttons{
	display: grid;
	grid-template-columns: 60% auto ;
	grid-gap:10px;
}
#buttons{
	height:50px;
}
#sidebar{
	margin: 8px;
	grid-area: sidebar;
	display: grid;
	grid-template-rows: 10% 74% auto;
}
#search{
	float: right;
}
#product_area{
	background-color: white;
	border:2px solid black;
	margin-top: 0px;
}
#enter_area{
	display: grid;
	grid-template-columns: 1fr;
}
#footer{
	grid-area: footer;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}
#tableData tr:hover,#products tr:hover{
	background-color: #ffff99;
}
#table1 th{
	font-style: bold;
}


.my-custom-scrollbar-a{
	position: relative;
	height: 350px;
	overflow: auto;
}

.my-custom-scrollbar{
	position: relative;
	height: 300px;
	overflow: auto;
}

.table-wrapper-scroll-y{
	display: block;
}
.bg_main{
	background: #BFF098;
background: linear-gradient(90deg, rgba(191, 240, 152, 1) 0%, rgba(87, 199, 133, 1) 100%, rgba(111, 214, 255, 1) 100%);
}
.bg_sub{
	background: #11998E;
background: linear-gradient(90deg, rgba(17, 153, 142, 1) 0%, rgba(87, 199, 133, 1) 100%, rgba(56, 239, 125, 1) 100%);
}

/* Container */
.price-column {
    background: #1f2937; /* Dark card-like background */
    border-radius: 12px;
    padding: 0.5rem;
    overflow-x: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Table styling */
.price-column table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    /* color: #e5e7eb; */
}

.price-column thead {
    background: #374151;
    color: #fff;
    font-weight: 700;
}

.price-column th,
.price-column td {
    padding: 0.75rem 1rem;
    text-align: center;
}

.price-column tbody tr {
    background: #111827;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.price-column tbody tr:hover {
    background: #1e293b;
    transform: scale(1.01);
}

/* Mobile responsive card view */
@media (max-width: 768px) {
    .price-column table thead {
        display: none;
    }

    .price-column table, 
    .price-column tbody, 
    .price-column tr, 
    .price-column td {
        display: block;
        width: 100%;
    }

    .price-column tbody tr {
        margin-bottom: 1rem;
        padding: 0.75rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.25);
        border-radius: 12px;
        background: #1f2937;
    }

    .price-column td {
        text-align: right;
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid #374151;
    }

    .price-column td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        padding-right: 1rem;
        font-weight: bold;
        text-align: left;
        color: #9ca3af;
    }

    .price-column td:last-child {
        border-bottom: 0;
    }
}

/* Footer styling */
#footer.footer {
    /* background: #1f2937; */
    /* border-top: 1px solid #374151; */
    border-radius: 12px 12px 0 0;
}

/* Custom button styling */
.btn-custom {
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    color: #e5e7eb;
    cursor: pointer;
}

.btn-custom.btn-secondary {
    background: #374151;
	margin: 0 0.2rem;
}

.btn-custom.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-custom.btn-danger {
    background: #dc2626;
    color: #fff;
	border: 1px solid #fff;
}

.btn-custom i {
    margin-right: 0.3rem;
}

/* Responsive wrapping for mobile */
@media (max-width: 768px) {
    #footer.footer {
        padding: 1rem;
    }

    .btn-custom {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }
}
.bg-dark{
	background: #C02425;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #F0CB35, #C02425);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #F0CB35, #C02425); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

/* Grand Total Card */
.header_price_card {
    /* background: linear-gradient(135deg, #16a34a, #22c55e); */
	background: #52c234;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #061700, #52c234);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #061700, #52c234); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    color: #fff;
    border-radius: 14px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 180px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.header_price_card .total-title {
    font-weight: 700;
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.header_price_card .total-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

/* Optional button inside Grand Total */
.header_price_card .btn-custom {
    margin-top: 0.5rem;
}

/* Responsive font scaling */
@media (max-width: 768px) {
    .header_price_card .total-amount {
        font-size: 2rem;
    }

    .header_price_card .total-title {
        font-size: 0.9rem;
    }
}

/* ===============================
   USER INFO CARD
================================ */
.user-info-card {
    background: #1f2937;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    max-width: 520px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Each row */
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

/* Labels */
.info-label {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}

/* Values */
.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Input row */
.info-row-input {
    align-items: flex-start;
}

/* Customer input + button */
.customer-input-wrap {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

/* Input */
.customer-input-wrap input {
    flex: 1;
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #374151;
    border-radius: 8px;
}

.customer-input-wrap input:focus {
    border-color: #22c55e;
    box-shadow: none;
}

/* Add customer button */
.btn-add-customer {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
}

/* ===============================
   MOBILE OPTIMIZATION
================================ */
@media (max-width: 576px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .customer-input-wrap {
        flex-direction: column;
    }

    .btn-add-customer {
        width: 100%;
    }
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f8f9fa !important;    
}
