:root {
    --bg-dark: #121212;
    --bg-panel: #303030;
    --text-main: #e0e0e0;
    --accent-gold: #d4af37;
    --border-radius: 6px;
    --input-bg: #2a2a2a;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: Tahoma;
    margin: 0;
}

/* Universal Rounded Corners */
input, select, button, .card, .banner {
    border-radius: var(--border-radius) !important;
    border: 1px solid #333;
}

/* Inputs & Buttons */
input[type="text"], input[type="password"], input[type="number"], input[type="date"], select {
    background: var(--input-bg);
    color: white;
    padding: 11px;
    width: 100%;
    margin: 10px 0;
    box-sizing: border-box;
}

button {
    background: var(--accent-gold);
    color: black;
    font-weight: bold;
    padding: 15px;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

button:hover {
    background: #f1c40f;
}

/* Banner Layout */
.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-panel);
    padding: 10px 10px;
    margin: 0px;
    border-bottom: 2px solid var(--accent-gold);
}

.banner-left { display: flex; align-items: center; }
.banner-logo { width: 50px; height: 50px; border-radius: 50%; margin-right: 15px; }
.banner-title { font-size: 1.2rem; font-weight: bold; }
.banner-clock { font-family: 'tahoma', monospace; font-size: 1.1rem; }

/* Container for the clock on the right */
.banner-right {
    text-align: right;
    line-height: 1.2; /* Keeps the two lines close together */
    padding-right: 0px;
}

/* Big Green Time */
#clock-time {
    color: #2ecc71; /* Vibrant Green from your image */
    font-size: 2rem;
    font-weight: bold;
    font-family: tahoma;
    display: block;
}

/* Smaller Gold Date */
#clock-date {
    color: #f1c40f; /* Gold/Yellow from your image */
    font-size: 1rem;
    font-family: tahoma;
    display: block;
    margin-top: -5px; /* Slight adjustment to match the tight spacing */
}

/*----------------------------------------------------------------------------*/
/* Layout Containers */
.main-wrapper {
    display: flex;
    height: calc(100vh - 80px); /* Banner height subtraction */
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden; /* Prevents whole page scroll */
}

/* Form Section (Left) */
.form-panel {
    flex: 0 0 350px;
    background: var(--bg-panel);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Table Section (Right) */
.table-panel {
    flex: 1;
    background: var(--bg-panel);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.table-container {
    flex: 1;
    overflow-y: auto; /* Internal scroll only */
    margin-top: 15px;
}

/* Custom Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    position: sticky;
    top: 0;
    background: var(--accent-gold);
    color: black;
    padding: 12px;
    text-align: left;
    z-index: 10;
}

td {
    padding: 10px;
    border-bottom: 1px solid #444;
    cursor: pointer;
    font-size: 0.9rem;
}

tr:hover { background: #3d3d3d; }

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

/* Small labels */
label { font-size: 0.8rem; color: var(--accent-gold); margin: 10px; }


/* Container Alignment */
.grn-header-grid { 
    display: grid; 
    /* Col 1: GRN ID, Col 2: Code, Col 3: Info Area (Flexible), Col 4: Qty, Col 5: Button */
    grid-template-columns: 180px 180px 1fr 120px 120px; 
    gap: 15px; 
    align-items: flex-end; /* Keeps all bottom edges perfectly aligned */
    background: #222; 
    padding: 20px; 
    border-radius: 6px; 
    margin-bottom: 20px;
    border: 1px solid #333;
}

/* Force Uniform Height on all interactive elements */
.grn-header-grid input, 
.grn-header-grid button,
.grn-header-grid .info-display {
    height: 40px; 
    box-sizing: border-box;
    margin: 0 !important;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #444;
}

/* Styled Read-Only Box for Drug Info */
.info-display {
    background: #111;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
}

.info-display span {
    color: var(--accent-gold);
    font-weight: bold;
    margin-left: 5px;
    margin-right: 10px;
}

/* Ensure labels don't vary in height */
.grn-header-grid label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: bold;
}

.divScroll::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	border-radius: 10px;
	background-color: #99A3A4;
}

.divScroll::-webkit-scrollbar {
	width: 12px;
	border-radius: 10px;
	background-color: #F5F5F5;
}

.divScroll::-webkit-scrollbar-thumb {
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	background-color: #555;
}

.not-selectable {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.btnLogout{
	cursor:pointer; 
	text-decoration:none; 
	width:24px; 
	color:#F54927;
	border-radius:500px;
}

.btnLogout:hover {
    background: #transparent; /* Slightly lighter red on hover */
    color: #ffffff;
    
    /* Optional: Slight lift effect */
    transform: translateY(-1px);
}

.btnHome{
	cursor:pointer; 
	text-decoration:none; 
	width:24px; 
	color:#21BCFF;
	border-radius:0px;
}

.btnHome:hover {
    background: #transparent; /* Slightly lighter red on hover */
    color:#ffffff;
    /* Optional: Slight lift effect */
    transform: translateY(-1px);
}

.system-nav-group {
    display: flex;
    flex-direction: column; /* Stacks them Top & Bottom */
    gap: 8px;
    padding-left: 15px;
    border-left: 1px solid #333; /* Separator line from the clock */
    align-items: center;
}