/* ---------- Base & Layout ---------- */
body {
	font-family: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, Arial, Helvetica, sans-serif;
	font-size: 16px;
	margin: 0;
	color: #0f172a;
	background: linear-gradient(180deg, #f7f9fc, #ffffff);
}

#wrapper {
	width: 95%;
	/*max-width: 860px;*/
	margin: 24px auto;
	background: #ffffff;
	border: 1px solid #e8ecf3;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(16,24,40,.08), 0 2px 8px rgba(16,24,40,.06);
	overflow: hidden;
}

#header {
	text-align: center;
	min-height: 60px;
	background: linear-gradient(180deg, #0f4a8a, #0b3b76);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	/* keep legacy logo if present */
	background-image: url(images/BinnerLogo.gif), linear-gradient(180deg, #0f4a8a, #0b3b76);
	background-repeat: no-repeat, no-repeat;
	background-position: center, center;
	background-size: auto, cover;
}

#subheader {
	text-align: center;
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	background: linear-gradient(180deg, #f9fbff, #ffffff);
}

#footer {
	text-align: center;
	font-size: 12px;
	color: #64748b;
	padding: 12px;
	background: #ffffff;
	border-top: 1px solid #eef2f7;
}

/* legacy heading */
.trHead {
	font-size: 16px;
	font-weight: 800;
	color: #143b6d;
}


/* ---------- Tables ---------- */
table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #ffffff;
}

td {
	padding: 10px 12px;
}

tr {
	vertical-align: top;
}

.alignrightHead {
	text-align: right;
	padding-right: 10px;
	font-weight: 700;
	color: #0f172a;
}

.alignleft {
	text-align: left;
	padding-left: 5px;
}

.alignmiddle {
	text-align: center;
}

/* Pretty table (opt-in via .ItemsTable) */
.ItemsTable td {
	border: 1px solid #e5edf8;
	padding: 10px 12px;
}

thead th {
	text-align: left;
	color: #143b6d;
	padding: 12px 14px;
	font-weight: 800;
	letter-spacing: .2px;
	background: linear-gradient(180deg,#f1f6ff,#e8f0ff);
	border-bottom: 1px solid #e5edf8;
}

tbody tr:nth-child(even) {
	background: #fafcff;
}

tbody tr:hover {
	background: #f1f7ff;
}


/* ---------- Columns (kept, with responsive tweaks) ---------- */
.col3-1, .col3-2, .col3-3, .col2-1, .col2-2 {
	padding: 5px;
}

.col3-1 {
	width: 243px;
	float: left;
}

.col3-3 {
	width: 243px;
	float: right;
}

.col3-2 {
	margin-left: 253px;
	width: 243px;
}

.col2-1 {
	width: 370px;
	float: left;
}

.col2-2 {
	margin-left: 380px;
}

.cleaner {
	clear: both;
	height: 1px;
	font-size: 1px;
	border: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

@media (max-width: 880px) {
	.col3-1, .col3-2, .col3-3, .col2-1, .col2-2 {
		float: none;
		width: 100%;
		margin-left: 0;
	}
}


/* ---------- Menus ---------- */
#topmenu {
	padding: 8px 12px;
	font-size: 16px;
	font-weight: 800;
	border-top: 1px solid #afcdfb;
	border-bottom: 1px solid #afcdfb;
	background: linear-gradient(180deg,#f9fbff,#ffffff);
}

#subMenu {
	font-size: 14px;
	background-color: #0b3b76;
	table-layout: fixed;
}

	#subMenu td {
		color: #FFFFFF;
	}

		#subMenu td a {
			display: block;
			text-decoration: none;
			cursor: pointer;
			text-align: center;
			border-left: 1px solid #ffffff;
			padding: 10px 12px;
			transition: background .12s ease, color .12s ease;
		}

			#subMenu td a:hover {
				color: #afcdfb;
				background-color: #123a6d;
			}

.BigHead {
	font-size: 16px;
	font-weight: bold;
}

.hiddenDiv {
	display: none;
}


/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding: 0;
}

h2 {
	font-size: 18px;
	font-weight: 800;
	padding: 8px 10px;
	text-align: center;
	color: #143b6d;
	background: linear-gradient(180deg,#f1f6ff,#ffffff);
	border: 1px solid #e5edf8;
	border-radius: 10px;
}

h3 {
	font-size: 16px;
	font-weight: 800;
	padding: 8px 10px;
	text-align: center;
	color: #14532d;
	background: #e8f7ee;
	border: 1px solid #cfead8;
	border-radius: 10px;
	margin: 8px 0;
}

h5, #DistributorHeader {
	font-size: 14px;
	font-weight: 800;
	padding: 6px 10px;
	text-align: center;
	color: #143b6d;
	background: linear-gradient(180deg,#f1f6ff,#ffffff);
	border: 1px solid #e5edf8;
	border-radius: 10px;
}


/* ---------- Page Content ---------- */
#pagecontent {
	padding: 18px;
	background-color: #ffffff;
}

/* Soft info box */
.Message {
	font-size: 14px;
	font-weight: 400;
	padding: 10px 12px;
	text-align: left;
	color: #0f2f5c;
	background: #eaf2ff;
	border: 1px solid #cfe0ff;
	border-radius: 10px;
}

/* Error/alert box */
.Alert {
	font-size: 14px;
	font-weight: 700;
	padding: 10px 12px;
	text-align: left;
	color: #7f1d1d;
	background: #ffd9d9;
	border: 1px solid #f2b6b6;
	border-radius: 10px;
}

.distlist {
	font-size: 14px;
	font-weight: bold;
}

#disttable {
	table-layout: fixed;
}

.distlist a {
	color: #0b3b76;
}

	.distlist a:hover {
		color: #2b6fb7;
	}

.EditDiv {
	background: #FFFFFF;
	border: 1px solid #cbd5e1;
	overflow: auto;
	height: 120px;
	font-size: 14px;
	padding: 10px 12px;
	border-radius: 10px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.EditNotes {
	background: #FFFFFF;
	border: 1px solid #cbd5e1;
	width: 50px;
	font-size: 14px;
	padding: 8px 10px;
	border-radius: 10px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

/* ---------- Forms (optional global polish) ---------- */
input[type="text"],
input[type="password"],
select,
textarea {
	height: 40px;
	min-width: 260px;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid #cbd5e1;
	background: #fff;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
	color: #0f172a;
}

textarea {
	height: auto;
	min-height: 120px;
}

input[type="submit"],
button {
	appearance: none;
	border: 1px solid #1f5090;
	background: linear-gradient(180deg,#5c9be0,#2b6fb7);
	color: #fff;
	padding: 10px 16px;
	border-radius: 12px;
	font-weight: 800;
	box-shadow: 0 10px 18px rgba(33,85,150,.22), inset 0 1px 0 rgba(255,255,255,.55);
	cursor: pointer;
}

	input[type="submit"]:hover,
	button:hover {
		filter: brightness(1.04);
	}

/* ---------- Utility ---------- */
.card {
	background: #ffffff;
	border: 1px solid #e8ecf3;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(16,24,40,.08), 0 2px 8px rgba(16,24,40,.06);
}

.notice {
	border: 1px solid #cfe0ff;
	background: #eaf2ff;
	color: #0f2f5c;
	border-radius: 10px;
	padding: 12px 14px;
}