/*--------------------------------------------------\
| KNB Group theme                                    |
| Modern flat / Bootstrap-inspired re-skin on top of |
| FrontAccounting's native (unclassed) HTML output.  |
| Every original selector is kept so no page breaks; |
| values are modernized for a 2026 look.             |
\--------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');

:root {
	/* Matches the field app's real brand palette (src/theme/colors.ts),
	   sampled from the actual Godavari Ghee packaging - not the placeholder
	   green this theme originally shipped with. */
	--knb-green: #C8102E;
	--knb-green-dark: #6E0000;
	--knb-green-mid: #A30D24;
	--knb-gold: #D4AF37;
	--knb-gold-dark: #B8860B;
	--knb-cream: #F5E9C8;
	--knb-cream-soft: #FBF6E8;
	--knb-tan: #E0C889;
	--knb-text: #2B1B12;
	--knb-link: #8A0F0F;
	--knb-radius: 8px;
	--knb-shadow: 0 1px 3px rgba(43,27,18,0.08), 0 1px 2px rgba(43,27,18,0.06);
}

* { box-sizing: border-box; }

body {
	font-family: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	background: var(--knb-green-dark);
	font-size: 13px;
	color: var(--knb-text);
	margin: 0;
	padding: 0;
}

tr, td, th {
	font-size: 13px;
	line-height: 1.5;
}

textarea {
	font-size: 13px;
	font-family: inherit;
	border-radius: 6px;
	border: 1px solid var(--knb-tan);
	padding: 6px 8px;
}

input, select {
	font-size: 13px;
	font-family: inherit;
	padding: 6px 8px;
	border: 1px solid var(--knb-tan);
	border-radius: 6px;
	background-color: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--knb-green);
	box-shadow: 0 0 0 3px rgba(200,16,46,0.18);
}

select {
    max-width: 260px;
}

option.inactive {
	text-decoration: line-through;
	color: gray;
}

input.big {
	width: 100px;
}

input.small {
	width: 50px;
}

a {
	color: var(--knb-link);
	font-size: 13px;
	text-decoration: none;
	transition: color .15s ease;
}

a:link {
	color: var(--knb-link);
	text-decoration: none;
}

a:active {
	color: #000000;
	text-decoration: none;
}

a:hover, a:focus {
	color: var(--knb-green-mid);
	text-decoration: underline;
}

.inactive {
	color: gray;
}

button {
	font-family: inherit;
	font-size: 13px;
	border: 1px solid var(--knb-tan);
	border-radius: 6px;
	padding: 6px 12px;
	background: #fff;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

button img, span {
	padding: 0px 2px ;
	vertical-align: middle;
}

.callout_main {
	font-family: inherit;
	border: none;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0;
}

.main_page {
	background-color: var(--knb-cream-soft);
	border: none;
	width: 100%;
	margin: 0;
	padding: 0;
	border-radius: var(--knb-radius);
	overflow: hidden;
	box-shadow: var(--knb-shadow);
}

.quick_menu {
	background-color: var(--knb-green-dark);
	border: 0;
	margin: 0;
	padding: 0;
}

.quick_menu_selected {
	font-family: inherit;
	font-size: 14px;
	border: none;
	white-space: nowrap;
	margin: 2px;
	padding: 2px;
	color: #F4D35E;
	font-weight: 600;
}

.logoutBar {
	padding: 10px 16px;
	background: var(--knb-cream);
	color: var(--knb-text);
	border-bottom: 1px solid var(--knb-tan);
	width: 100%;
}

.bottomBar {
	padding: 8px 16px;
	background: var(--knb-cream);
	color: var(--knb-text);
	border-bottom: 1px solid var(--knb-tan);
	width: 100%;
}

.bottomBarCell {
	font-size: 11px;
	line-height: 14px;
}

.bottomBar2 {
	padding: 8px 16px;
	background: var(--knb-cream);
	color: var(--knb-text);
	border-top: 1px solid var(--knb-tan);
	border-bottom: 1px solid var(--knb-tan);
	width: 100%;
}

.logoutBarRight {
	text-align: right;
}

div.logoutBar {
	padding: 10px 16px;
	background: var(--knb-cream);
	color: var(--knb-text);
	border-bottom: 1px solid var(--knb-tan);
	text-align: right;
}
div.logoutBar a {
	font-weight: 500;
	margin-left: 1em;
	color: var(--knb-text);
	background-color: transparent;
}
div.logoutBar img {
	vertical-align: top;
}

div.tabs {
	padding: 8px 12px 0 12px;
	background: none transparent scroll repeat 0% 0%;
	white-space: nowrap;
	border-collapse: collapse;
	border-bottom: none;
}
div.tabs a {
	display: inline-block;
	border: none;
	padding: 8px 16px;
	font-weight: 500;
	background: rgba(255,255,255,0.08);
	color: #F2E1CE;
	margin-right: 4px;
	border-radius: 8px 8px 0 0;
	height: auto;
	transition: background-color .15s ease, color .15s ease;
}
div.tabs a:hover {
	background: rgba(255,255,255,0.16);
	color: #fff;
	text-decoration: none;
}
div.tabs a.selected {
	border: none;
	font-weight: 600;
	background: var(--knb-cream-soft);
	color: var(--knb-green-dark);
}
div.tabs a.selected:hover {
	background: var(--knb-cream-soft);
	color: var(--knb-green-dark);
}

.menu_group {
	font-size: 14px;
	padding: 10px 12px;
	color: var(--knb-text);
	background-color: var(--knb-cream);
	font-weight: 600;
	border-radius: 6px 6px 0 0;
}

.menu_group_items {
	background-color: var(--knb-cream-soft);
	font-weight: normal;
	padding: 12px;
	border: 1px solid var(--knb-tan);
	border-top: none;
	border-radius: 0 0 6px 6px;
	margin-bottom: 16px;
}

#hotkeyshelp {
	text-align: right;
	font-weight: bolder;
}

#footer {
	position: relative;
	bottom: -3px;
}

.footer td a {
	color: #E9CD8D;
	font-size: 10px;
}

.footer {
	font-family: inherit;
	color: #E9CD8D;
	font-weight: normal;
	font-size: 10px;
	text-align: center;
	width: 100%;
	padding: 10px 0;
}

/* Marketing-site-style footer (knbgroup.in/products.php) reused here for
   the app shell, in place of the old plain FA version/theme line. */
.knb-site-footer {
	background: var(--knb-cream-soft);
	color: var(--knb-text);
	padding: 32px 40px 8px;
	font-size: 12px;
}
.knb-site-footer-cols {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	max-width: 1100px;
	margin: 0 auto;
}
.knb-site-footer-col { flex: 1 1 220px; min-width: 200px; }
.knb-site-footer-logos { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.knb-site-footer-logos img { height: 34px; width: auto; }
.knb-site-footer-about { color: var(--knb-text); line-height: 1.6; margin: 0 0 12px; }
.knb-site-footer-social { display: flex; gap: 10px; }
.knb-site-footer-social a {
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--knb-green-dark);
	display: inline-flex; align-items: center; justify-content: center;
	color: #fff !important; text-decoration: none;
}
.knb-site-footer-social a:hover { background: var(--knb-green); }
.knb-site-footer-title { font-weight: 700; font-size: 15px; margin: 0 0 12px; color: var(--knb-green-dark); }
.knb-site-footer-links { display: flex; gap: 24px; }
.knb-site-footer-links ul { list-style: none; margin: 0; padding: 0; }
.knb-site-footer-links li { margin-bottom: 8px; }
.knb-site-footer-links a { color: var(--knb-text); font-size: 12px; }
.knb-site-footer-links a:hover { color: var(--knb-green); text-decoration: underline; }
.knb-site-footer-address { list-style: none; margin: 0; padding: 0; }
.knb-site-footer-address li { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.knb-site-footer-address .knb-icon { color: var(--knb-green); flex-shrink: 0; margin-top: 2px; }
.knb-site-footer-address a { color: var(--knb-text); }
.knb-site-footer-bottom {
	background: var(--knb-text);
	color: #fff;
	text-align: center;
	padding: 12px 16px;
	font-size: 12px;
	margin-top: 24px;
}
.knb-site-footer-bottom a { color: var(--knb-gold); }

.tableheader {
	font-weight: 600;
	background-color: var(--knb-green-dark);
	color: #fff;
	text-align: center;
	padding: 8px 10px;
}

.tableheader2 {
	font-weight: 600;
	background-color: var(--knb-green-dark);
	color: #fff;
	text-align: left;
	padding: 8px 10px;
}

.titletext {
	font-weight: 700;
	font-size: 16px;
	border-bottom: 2px solid var(--knb-green);
	padding: 10px 5px;
	width: 100%;
	color: var(--knb-green-dark);
}

.headingtext {
	font-weight: 600;
	font-size: 14px;
	color: var(--knb-text);
}

.headingtext2 {
	font-size: 14px;
	color: var(--knb-text);
}

.headingtext3 {
	font-weight: 600;
	font-size: 11px;
	color: var(--knb-text);
}

.errortext {
	font-size: 14px;
	color: #c0392b;
	font-weight: 600;
}

.inputsubmit {
	font-size: 13px;
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	background-color: var(--knb-green);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease, transform .05s ease;
}
.inputsubmit:hover {
	background-color: var(--knb-green-mid);
}
.inputsubmit:active {
	transform: translateY(1px);
}

.ajaxsubmit {
	font-size: 13px;
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	background-color: var(--knb-green);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.ajaxsubmit:hover {
	background-color: var(--knb-green-mid);
}

.oddrow {
	background-color: #ffffff;
}

.evenrow {
	background-color: #F6F0E2;
}

table.tablestyle tr:hover td, table.tablestyle2 tr:hover td {
	background-color: #F2E6C8;
}

.overduebg {
	background-color: #f2a0a0;
}

.overduefg {
	color: #c0392b;
}

.currentfg {
	color: #e74c3c;
}

.redfg, a.redfg {
	color: #c0392b;
	font-weight: bold;
}

.settledbg {
	background-color: var(--knb-green);
}

.settledfg {
	color: var(--knb-green-mid);
}

.inquirybg {
	background-color: #fdfeef;
}

.currencybg {
	background-color: #f2a0a0;
}

.stockmankobg {
	background-color: pink;
}

.stockmankofg {
	color: red;
}

table.tablestyle {
	border-collapse: collapse;
	border: 1px solid var(--knb-tan);
	border-radius: var(--knb-radius);
	overflow: hidden;
}
table.tablestyle td {
	border-collapse: collapse;
	border: 1px solid #e6e0cf;
	padding: 6px 10px;
}
table.tablestyle2 {
	border-collapse: collapse;
	border: 1px solid #ddd;
}
table.tablestyle2 td {
	border-collapse: collapse;
	border: 1px solid #eee;
	padding: 6px 10px;
}
table.tablestyle_inner {
	border-collapse: collapse;
	border: 1px solid var(--knb-cream-soft);
}
table.tablestyle_inner td {
	border-collapse: collapse;
	border: 1px solid var(--knb-cream-soft);
}
.tablestyle_noborder {
	padding: 6px;
}

.label {
	background-color: #f3f1e8;
	color: var(--knb-text);
	font-weight: 500;
}

#loginscreen {
	background: var(--knb-green-dark);
	min-height: 100vh;
	padding-top: 60px;
}

.login {
	width: 380px;
	border: 1px solid var(--knb-tan);
	border-left: 6px solid var(--knb-green);
	background-color: #fff;
	border-radius: var(--knb-radius);
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	overflow: hidden;
}

.login td.tableheader {
	line-height: 44px;
	border: none;
}

.login select, .login input[type=text], input[type=password] {
	height: 38px;
	width: 240px;
	padding-left: 10px;
	box-sizing: border-box;
	border: 1px solid #d8d3c4;
	border-radius: 6px;
	background-color: #fff;
	outline: none;
}

.login input[type=button], input[type=submit] {
  background-color: var(--knb-green);
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  padding: 10px 20px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.login input[type=button]:hover, input[type=submit]:hover {
  background-color: var(--knb-green-mid);
}

.amount {
	font-family: inherit;
	font-size: 13px;
	text-align: right;
}

input.amount {
	padding-right: 8px;
}

.editbutton {
   color: var(--knb-link);
   background-color:transparent;
   border-style:none;
   text-decoration:underline;
   cursor: pointer;
}

.navibutton[disabled], .navibutton[disabled] span {
  color:#808080;
  text-decoration: none;
  cursor: auto;
}

button.navibutton {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
   color: var(--knb-link);
   padding: 2px 6px;
   background-color:transparent;
   border-style:none;
   cursor: pointer;
}

.navibutton span {
	text-decoration: underline;
}

.navibar {
    padding: 6px 8px;
	color: var(--knb-text);
    border-collapse: collapse;
    background-color: var(--knb-cream);
    border-radius: 6px;
}

.navibar tr td {
    border: none;
}

.listsubmit {
    display: none;
}

ul.ajaxtabs{
	padding: 3px 0 0 0;
	margin: 3px 3px 0 3px;
	font: 12px Inter, Verdana;
	font-weight: 600;
}

ul.ajaxtabs li{
	list-style: none;
	margin: 0;
	display: inline;
}

ul.ajaxtabs li button{
    background-color: var(--knb-cream);
	padding: 6px 12px;
	margin: 0px;
	border: 1px solid var(--knb-tan);
	border-bottom: none;
	border-radius: 6px 6px 0 0;
	font-weight: 600;
}

ul.ajaxtabs li button:hover{
	border-top: 1px solid var(--knb-tan);
	background-color: var(--knb-green);
	color:#FFFFFF;
}
div.spaceBox{
	background-color: var(--knb-tan);
	height:8px;
	border-bottom: 1px solid var(--knb-tan);
	border-left: 1px solid var(--knb-tan);
	border-right:1px solid var(--knb-tan);
	margin: 0 3px 0px 3px
}

div.contentBox{
	border: 1px solid var(--knb-tan);
	border-radius: 0 0 6px 6px;
	margin: 0 3px 3px 3px
}

ul.ajaxtabs li button.current, ul.ajaxtabs li button.current:hover{
	border-left: 1px solid var(--knb-tan);
	background-color: var(--knb-green-dark);
	color:#FFFFFF;
}
#hints {
	font-size: 13px;
	padding: 8px 10px;
	border-bottom: 1px solid #f0e6a8;
	margin: 8px 0;
	border: 1px solid #f0e6a8;
	border-radius: 6px;
	background-color: #fffbe0;
	white-space: normal;
}
/*
	Calendar style
*/
#CCIframe {
	display: none;
	left: 0px;
	position: absolute;
	top: 0px;
	height: 250px;
	width: 270px;
	z-index: 99;
}
#CC {
	position:absolute;
	background-color:#FFF;
	margin:0; padding:0;
	display:none;
	z-index: 100;
	border-radius: 8px;
	box-shadow: var(--knb-shadow);
	overflow: hidden;
}
#CC table {
	font-family: 'Inter', arial, verdana, helvetica, sans-serif;
	font-size: 8pt;
	border-left: none;
	border-right: none;
}
#CC th {
	font-weight: normal;
	text-align: center;
}
#CC th a {
	font-weight: normal;
	text-decoration: none;
	color: #FFF;
	padding: 1px;
}
#CC td {
	text-align: center;
}
#CC .header {
	background-color: var(--knb-green-dark);
}
#CC .weekday {
	background-color: #eee;
	color: #000;
}
#CC .weekend {
	background-color: #FFC;
	color: #000;
}
#CC .weekno {
	background-color: #c0daf8;
	color: #555;
}
#CC .current {
	border: 1px solid #339;
	background-color: var(--knb-green);
	color: #FFF;
}
#CC .weekday, #CC .weekend, #CC .current {
	display: block;
	text-decoration: none;
	border: 1px solid #FFF;
	width: 2em;
	border-radius: 4px;
}
#CC .weekday:hover, #CC .weekend:hover, #CC .current:hover {
	color: #FFF;
	background-color: var(--knb-green);
	border: 1px solid #999;
}
#CC .previous {
	text-align: left;
}
#CC .next {
	text-align: right;
}
#CC .previous, #CC .next {
	padding: 1px 3px 1px 3px;
	font-size: 1.4em;
}
#CC .previous a, #CC .next a {
	color: #FFF;
	text-decoration: none;
	font-weight: bold;
}
#CC .title {
	text-align: center;
	font-weight: bold;
	color: #FFF;
}
#CC .empty {
	background-color: #ddd;
	border: 1px solid #FFF;
}

div.err_msg {
	margin: 10px;
	padding: 10px 14px;
	border: 1px solid #f1b0a8;
	border-radius: 6px;
	background-color: #fdecea;
	color: #c0392b;
	text-align: center;
}

div.warn_msg {
	margin: 10px;
	padding: 10px 14px;
	border: 1px solid #f5d998;
	border-radius: 6px;
	background-color: #fff8e6;
	color: #a3670a;
	text-align: center;
}

div.note_msg {
	margin: 10px;
	padding: 10px 14px;
	border: 1px solid #b7dfa8;
	border-radius: 6px;
	background-color: #eefbe8;
	color: #2e7d32;
	text-align: center;
}

#title {
	margin-bottom: 10px;
	width: 100%;
}

@media screen and (min-width: 1024px) {
	body, .headingtext3 { font-size: 13px; }
	textarea { font-size: 13px; }
	tr, td, th, input, select, a, button, .inputsubmit, .ajaxsubmit, .amount, button.navibutton { font-size: 13px; }
	.quick_menu_selected, .menu_group, .titletext, .headingtext, .headingtext2, .errortext, #hints { font-size: 14px; }
	.bottomBarCell { font-size: 11px; line-height: 14px; }
	.footer, .footer td a { font-size: 10px; }
	#CC table { font-size: 9pt; }
	#CC .previous, #CC .next { font-size: 1.4em; }
}
@media screen and (min-width: 1200px) {
	body, .headingtext3 { font-size: 13px; }
	textarea { font-size: 14px; }
	tr, td, th, input, select, a, button, .inputsubmit, .ajaxsubmit, .amount, button.navibutton { font-size: 13px; }
	.quick_menu_selected, .menu_group, .titletext, .headingtext, .headingtext2, .errortext, #hints { font-size: 15px; }
	.bottomBarCell { font-size: 12px; line-height: 14px; }
	.footer, .footer td a { font-size: 11px; }
	#CC table { font-size: 10pt; }
	#CC .previous, #CC .next { font-size: 1.4em; }
}
@media screen and (max-width: 700px) {
	.callout_main { padding: 0 4px; }
	div.tabs a { padding: 8px 10px; font-size: 12px; }
	.login { width: 92vw; }
}

/* Persistent left sidebar (matches TechCloud's layout: a fixed navigation
   column that stays visible while working inside a screen, instead of
   FrontAccounting's default behaviour of only showing the menu on the
   index page). See themes/knbgroup/renderer.php render_sidebar(). */
.knb-sidebar {
	width: 220px;
	min-width: 220px;
	vertical-align: top;
	background: var(--knb-cream-soft);
	border-right: 1px solid var(--knb-tan);
	padding: 0;
}
.knb-content {
	vertical-align: top;
	padding: 0 0 0 14px;
}
.knb-sidebar-inner {
	padding-bottom: 12px;
}
.knb-sidebar-heading {
	background: var(--knb-green-dark);
	color: #fff;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 8px 12px;
	margin-top: 6px;
}
.knb-sidebar-items {
	padding: 6px 4px;
}
.knb-sidebar-link {
	padding: 4px 12px;
	font-size: 13px;
	line-height: 1.5;
}
.knb-sidebar-link a {
	color: var(--knb-link);
	text-decoration: none;
}
.knb-sidebar-link a:hover {
	color: var(--knb-green-dark);
	text-decoration: underline;
}
.knb-sidebar-link.inactive {
	color: var(--knb-tan);
}
@media screen and (max-width: 900px) {
	.knb-sidebar { display: none; }
	.knb-content { padding-left: 0; }
}

/* KPI card grid - matches the "Today's Insights" / "Billing & Financial"
   card layout on TechCloud's live Sales dashboards, restyled to this
   theme's white-card-on-brand-color treatment (same as BrandMark on the
   field app) instead of their per-card rainbow border colors. */
.knb-kpi-section-title {
	font-weight: 700;
	font-size: 15px;
	color: var(--knb-green-dark);
	margin: 20px 0 10px;
}
.knb-kpi-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 8px;
}
.knb-kpi-card {
	flex: 1 1 200px;
	min-width: 180px;
	background: #fff;
	border: 1px solid var(--knb-tan);
	border-top: 3px solid var(--knb-gold);
	border-radius: var(--knb-radius);
	padding: 14px 16px;
	box-shadow: var(--knb-shadow);
}
.knb-kpi-card-value {
	font-size: 26px;
	font-weight: 800;
	color: var(--knb-green-dark);
	line-height: 1.2;
}
.knb-kpi-card-label {
	font-size: 12px;
	color: var(--knb-text);
	margin-top: 4px;
}
