* { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, sans-serif; }
body { background: #f4f7fb; }
.auth-body { display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(135deg,#1f7a3f,#74c69d); }
.auth-card { background: #fff; padding: 30px; width: 360px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.auth-card h2 { margin-bottom: 20px; text-align: center; color: #1f7a3f; }
.auth-card input, .auth-card button { width: 100%; padding: 12px; margin-bottom: 12px; border-radius: 10px; border: 1px solid #ccc; }
.auth-card button { background: #1f7a3f; color: #fff; border: none; cursor: pointer; }
.alert { background: #ffd6d6; color: #a10000; padding: 10px; margin-bottom: 12px; border-radius: 8px; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #1f7a3f; padding: 20px; color: white; }
.sidebar h2 { margin-bottom: 20px; }
.sidebar a { display: block; color: white; text-decoration: none; padding: 12px; border-radius: 8px; margin-bottom: 10px; background: rgba(255,255,255,0.08); }
.sidebar a:hover { background: rgba(255,255,255,0.18); }
.main-content { flex: 1; padding: 20px; }
.topbar { background: #fff; padding: 15px 20px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 20px; text-align: right; font-weight: bold; }
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.card, .form-card, .table-card { background: white; border-radius: 16px; padding: 20px; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.card h3 { color: #444; margin-bottom: 10px; }
.card p { font-size: 24px; color: #1f7a3f; font-weight: bold; }
.form-card form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; margin-top: 15px; }
.form-card input, .form-card button { padding: 12px; border: 1px solid #ccc; border-radius: 10px; }
.form-card button { background: #1f7a3f; color: white; border: none; }
.table-card { margin-top: 20px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { padding: 12px; border-bottom: 1px solid #ddd; text-align: left; }
th { background: #eff7f1; }
tr:hover { background: #f8fbf8; }
.low-stock { background: #ffe1e1 !important; color: #a10000; font-weight: bold; }
.search-bar { display: flex; gap: 10px; margin-bottom: 15px; }
.search-bar input, .search-bar button, .export-btn { padding: 10px 14px; border-radius: 8px; border: 1px solid #ccc; text-decoration: none; }
.search-bar button, .export-btn { background: #1f7a3f; color: white; border: none; }
.suggestions { background: white; border: 1px solid #ddd; border-radius: 8px; margin-top: 8px; overflow: hidden; }
.suggestion-item { padding: 10px; cursor: pointer; border-bottom: 1px solid #eee; }
.suggestion-item:hover { background: #f1f8f3; }
.bill-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 10px; margin-top: 15px; }
#billTable button {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    background: #d9534f;
    color: #fff;
    cursor: pointer;
}

#billTable button:hover {
    background: #c9302c;
}

.table-scroll {
    max-height: 270px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    margin-top: 10px;
}

.table-scroll table {
    margin-top: 0;
}

.table-scroll thead th,
.table-scroll tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #eff7f1;
}






