@font-face {
	font-family: 'yekanbakh';
	src: url('../fonts/yekanbakhfanum-vf.woff') format('woff'),
		url('../fonts/yekanbakhfanum-vf.woff2') format('woff2') url('fonts/yekanbakhfanum-vf.ttf') format('truetype');
}

@font-face {
	font-family: 'vazirmatn';
	src: url("file://{{ font_path }}") format('truetype');
	font-weight: normal;
    font-style: normal;
}

body {
	width: 29.7cm;
	height: 21cm;
	padding: 0;
	overflow: auto;
	direction: rtl;
	font-family: "vazirmatn" !important;
	margin: 0 auto;
	box-sizing: border-box;
}

* {
	box-sizing: border-box;
}

/* صفحه A4 افقی */
@page {
    size: A4 landscape;
    margin: 2cm 1.5cm 2cm 1.5cm; /* بالا راست پایین چپ */
}

/* هدر ثابت */
header {
    /* position: fixed; */
	float: left;
    top: 0;
    left: 0;
    /* right: 0; */
    height: 100px;
}

/* فوتر ثابت */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
}

/* محتوای اصلی زیر هدر و بالای فوتر */
.main-content {
    margin-top: 110px; /* کمی بیشتر از height هدر */
    margin-bottom: 110px; /* کمی بیشتر از height فوتر */
}

/* جدول و استایل‌ها */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}
table, th, td {
    border: 1px solid #202020;
    text-align: center;
}
th { background-color: #FFF2CC; }
td { padding: 5px; }



.logo {
	width: 100px;
	float: right;
	height: auto;
}


.page .date>input[type='text'] {
	border: 1px solid #ddd;
	width: 100px;
	font-size: 11px;

}

.page .date>label {
	width: 42px;
	display: inline-block;
	font-size: 11px;

}

.page-number:after {
	counter-increment: page;
	content: "صفحه "counter(page);
}


button {
	font-family: "vazirmatn";
	display: block;
	margin: 30px auto 10px;
	background-color: #00526e;
	color: white;
	font-size: 14px;
	padding: 8px 14px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: 0.3s ease;
}

button.btn-delete, a.btn-edit {
	background-color: transparent;
	color: #e74c3c;
	border: none;
	padding: 1px 1px;
	margin: 0px auto;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	border-radius: 2px;
}

button.delete-button:hover {
	background-color: #1793ac;
}

button:hover {
	background-color: #6992a9;
	color: #000;
	font-weight: 800;
}

.btn-list {
	display: flex;
}

a.backtohome {
	text-decoration: none;
	color: #000;
	font-size: 13px;
	margin: 0px auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

p {
	font-family: "vazirmatn";
	font-size: 14px;
}

table {
	border-collapse: collapse;
}

th, td {
	border: 1px solid #202020;
	padding: 8px 4px;
	text-align: center;
	font-family: "vazirmatn";
	font-size: 12px;
}

tr {
	font-size: 13px;
}

table th {
	background-color: #8fbad2;
	font-size: 12px;
}

table tr.last-child {
	font-weight: bold;
	/*background-color: #a3cdce;*/
}

h2 {
	font-size: 18px;
	font-weight: 600;
	text-align: center;
	margin: 0px auto;
	font-family: "vazirmatn";
}

.page {
	width: 100%;
	height: 100%;
	page-break-after: always;
	margin: 0px auto;
	padding: 0px;
	direction: rtl;
}

h3.reports {
	font-size: 14px;
}

.page2 {
	width: 100%;
	height: 100%;
	page-break-after: always;
	margin: 0px auto;
	padding: 0px;
	direction: rtl;
}

/*/* menu */
button.backpage {
	background: transparent;
	font-size: 10px;
	color: #fff;
	margin: 0px auto;
	padding: 0px;
}

button.back {
	background: transparent;
	font-size: 10px;
	display: inline-flex;
	color: #000;
}

nav {
	display: flex;
	background-color: #0f1014;
	text-align: center;
	border-radius: 5px;
	align-items: center;
	height: 50px;
	color: #fff;
}

/* استایل برای لیست منو */
nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	width: 85%;
}

nav ul li {
	display: inline-block;
	margin: 0 5px;
	font-weight: 800;
}

nav ul li a {
	text-decoration: none;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	font-family: "vazirmatn";
	padding: 10px 25px;
	border-radius: 5px;
	transition: all 0.3s ease;
}

nav ul li a:hover {
	background-color: #266b91;
	color: #fff !important;
	transform: translateY(-2px);
}

/* form page */
.form-container {
	max-width: 500px;
	margin: 10px auto;
	padding: 30px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.div-container{
	display: flex;
}
.div-container h3{
font-size: 16px;
text-align: center;
}
label {
	font-weight: bold;
	display: block;
	margin-top: 15px;
	margin-bottom: 5px;
	color: #444;
}

input[type="text"],
input[type="number"],
input[type="password"],
textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.3s;
	font-family: 'vazirmatn';
	margin: 5px;
}

table td>input[type="text"], table td>input[type="number"] {
	padding: 8px 1px;
	margin: 0px;
	box-sizing: border-box;
	text-align: center;
	font-size: 13px;
	transition: border-color 0.3s;
	font-family: 'vazirmatn';
}

input:focus,
textarea:focus {
	border-color: #007bff;
	outline: none;
}

textarea {
	resize: vertical;
}

input[type="submit"] {
	font-family: "vazirmatn";
	background-color: #00526e;
	color: white;
	border: none;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	margin-top: 20px;
	width: 100%;
	transition: background-color 0.3s;
}
input[type="submit"].tariff-btn{
	font-family: "vazirmatn";
	background-color: #00526e;
	color: white;
	border: none;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	margin: 10px auto;
	width: 45%;
	transition: background-color 0.3s;
	display: flex;
}
input[type="submit"]:hover {
	background-color: #3f7b9c;
	color: #000;
	font-weight: 800;
}

table.execution_form input[type="text"],.execution_form input[type="number"]{
	padding: 4px 1px;
	border-radius: 1px;
}
/* table.execution_form ::-webkit-inner-spin-button {
    height: auto;
    display: none;
} */

/* for Insurance in contract form */
.inline-box{
	display: inline-flex;
	justify-content: center;
	align-items: center;
}
.inline-box label{
	display: flex;
	font-size: 14px;
	    height: 40px;
    align-items: center;
}
.inline-box label.or{
	color: red;
	margin-left: 10px;
}
.inline-box input{
	width: 150px;
}
.inline-box input[type="checkbox"]{
	width: 25px;
	margin: 0px 0px 0px 20px;
}
.inline-box input#installments{
	width: 80px;
}
.inline-box select#checkType {
    font-size: 14px;
    width: 120px;
    border-radius: 10px;
	padding: 10px 0px;
}

span.desc {
    font-size: 13px;
    color: red;
    display: flex;
    justify-content: center;
}
#selected-box,select#cityFilter
{
	margin:10px 0;
	padding:8px;
	border:1px solid #ccc;
	border-radius: 5px;
}
#selected-box>strong {
    color: gray;
}
input#quickSearch{
	width: 500px;
    margin-bottom: 10px;
	border-radius:5px ;
}

/* select billboards page */
.select-form form {
	/* background-color: white; */
	/* padding: 20px; */
	border-radius: 12px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
	overflow-x: auto;
	display: block;
	width: 96%;
	margin: 0px auto;
}

.select-form form table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
	min-width: 1000px;
}

.select-form form table th, td {
	border: 1px solid #000000;
	padding: 8px 5px;
	text-align: center;
}

.select-form form table th {
	background-color: #f1f1f1;
	color: #333;
}

.select-form form table tr:nth-child(even) {
	background-color: #fafafa;
}

.select-form form table input[type="checkbox"] {
	transform: scale(1.2);
	cursor: pointer;
}

table td select {
	font-size: 10px;
	font-family: 'vazirmatn';
}

/* submit sale page style */
.submit-sale-title {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	justify-items: center;
	text-align: right;
	font-family: "vazirmatn";
}

.submit-sale-title h2, .submit-sale-title h3 {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 5px;
}

.headerform>select#customerSelect {
	width: 180px;
	height: 25px;
	font-family: "vazirmatn";
}

/* contract form */
.contract-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.contract-footer>span {
	text-align: center;
	border: 1px solid #333;
	padding: 20px;
}

.contract-footer .custom {
	width: 410px;
	height: 100px;
	text-align: center;
	border: 1px solid #333;
	padding: 20px;
}

.page2 p {
	font-size: 14px;
	text-align: justify;
	direction: rtl;
}

/* header {
	position: running(pageHeader);
}

footer {
	position: running(pageFooter);
} */

footer p {
	font-size: 12px;
	text-align: left;
	border-left: 2px solid #f1a56d;
	padding-left: 5px;
	font-family: "vazirmatn";
}

.button-box {
	display: flex;
}

.button-raafbox button {
	display: inline-flex;
	/* background-color: #ffe7a0; */
	  background: linear-gradient(45deg, #ffd700 0%, #ffb347 100%);
	color: #443636;
	margin: 10px auto;
	border: 1px solid;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
}
.button-raafbox button:hover{
	font-weight: 800;
	font-size: 16px;

}
.button-candobox button {
	display: inline-flex;
	margin: 10px auto;
	/* background-color: #bceeaa; */
	background: linear-gradient(to right, #44A08D 0%, #093637  51%, #44A08D  100%);
    background-size: 200% auto;
	color: white;            
	box-shadow: 0 0 20px #eee;
	border-radius: 10px;
	border: 1px solid #000;
	font-size: 14px;
	font-weight: 600;
          
}
.button-candobox button:hover{
	font-weight: 800;
	font-size: 16px;

}
.button-didibox button {
	display: inline-flex;
	/* color: #443636; */
	margin: 10px auto;
	/* background-color: #e3dcdc; */
	background: linear-gradient(to right, #757F9A 0%, #D7DDE8  51%, #757F9A  100%);
  background-size: 200% auto;
	color: rgb(0, 0, 0);            
	box-shadow: 0 0 20px #eee;
	border-radius: 10px;
	border: 1px solid #000;
	font-size: 14px;
	font-weight: 600;
}
.button-didibox button:hover{
	font-weight: 800;
	font-size: 16px;

}

/* welcome page or login page */
body.welcomepage {
	font-family: 'Vazirmatn', sans-serif;
	background: linear-gradient(180deg, #3b82f6, #000000);
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	direction: rtl;
}

.login-box {
	background: white;
	padding: 2rem;
	border-radius: 16px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	width: 350px;
}

.login-box input {
	width: 100%;
	padding: 10px;
	margin: 10px 0;
	border-radius: 8px;
	border: 1px solid #ccc;
	font-size: 1rem;
}

.login-box button {
	width: 100%;
	padding: 10px;
	/* background: #4e54c8; */
	background: #007bff;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	cursor: pointer;
	margin: 15px auto;
}

.login-box .error {
	color: red;
	text-align: center;
	margin-top: 10px;
}

body.reportlist{
	width:100%;
    height: auto;
	overflow-x: auto;
    padding: 0;
    overflow: visible;
    direction: rtl;
    font-family: "vazirmatn" !important;
    margin: 0 auto 30px;
    box-sizing: border-box;
}
body.reportlist input[type="text"],body.reportlist input[type="number"],body.reportlist input[type="password"],body.reportlist textarea {
    width: 100%;
    padding: 0;
    border: 1px solid #ccc;
    font-size: 12px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-family: 'vazirmatn';
    margin: 0;
	border-radius: 0;
}