	html {
		direction: rtl;
	}
	body {
		direction: rtl;
		font-family: "Vazir", Tahoma, sans-serif;
		background-color: #f5f7fa;
		margin: 0;
		padding: 0;
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	main {
		flex: 1;
		padding: 20px;
	}
	/* header */
	header {
		margin-bottom: 20px;
		min-height: 50px;
        background: #007bff;
        color: white;
		padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
   }
	.logo {
        font-size: 1.4rem;
        font-weight: bold;
        white-space: nowrap;
    }

    .datetime-header {
        font-size: 0.95rem;
        opacity: 0.9;
    }
	/* end header */
	footer {
		min-height: 20px;
		text-align: center;
		padding: 20px;
		background: #e9ecef;
		color: #555;
		font-size: 0.95rem;
		box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.05);"
	}
	/* عنوان و لینک */
	h1,h2 {
		margin: 30px 0 10px;
		color: #2c3e50;
		font-weight: 700;
		font-size: 2rem;
		text-align: center;
	}

	/* فرم */
	form {
		background-color: #fff;
		padding: 25px 30px 30px;
		border-radius: 12px;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
		width: 90%;
		max-width: 750px;
		box-sizing: border-box;
		margin-bottom: 40px;
	}
	.form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        color: #333;
    }
	/*---------------------------------------------------------
	@media only screen and (min-width: 768px) {
		header {
            flex-direction: column;
            text-align: center;
            gap: 10px;
			width: 100%;
        }
		
		
		
		
		
		
		
	}
	
	*/
	
	
	
	/* فرم در حالت دسکتاپ عرض کامل */
	@media (min-width: 1024px) {
		form {
			width: 100%;
			max-width: 100%;
			border-radius: 12px;
			box-shadow: none;
			padding: 40px 60px;
		}

		body {
			align-items: stretch;
			padding: 0px 0px;
		}
	}

	label {
		display: block;
		font-weight: 600;
		margin-top: 18px;
		color: #34495e;
		font-size: 0.95rem;
		text-align: center;
	}

	input[type="text"],
	input[type="number"],
	input[type="tel"],
	input[type="file"],
	input[type="password"],
	select,
	textarea {
		width: 100%;
		padding: 10px 14px;
		margin-top: 6px;
		font-size: 1rem;
		border: 1.8px solid #d1dce5;
		border-radius: 8px;
		outline-offset: 2px;
		transition: border-color 0.3s ease;
		box-sizing: border-box;
		font-family: inherit;
		color: #2c3e50;
		background-color: #fafbfc;
		resize: vertical;
		min-height: 38px;
		text-align: center;
	}

	input[type="text"]:focus,
	input[type="number"]:focus,
	input[type="tel"]:focus,
	input[type="file"]:focus,
	input[type="password"]:focus,
	select:focus,
	textarea:focus {
		border-color: #2980b9;
		background-color: #fff;
	}

	textarea {
		min-height: 70px;
	}

	.checkbox-container,
	.radio-container {
		margin-top: 12px;
		font-weight: 600;
		font-size: 0.95rem;
		color: #34495e;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.checkbox-container input[type="checkbox"],
	.radio-container input[type="radio"] {
		width: 20px;
		height: 20px;
		cursor: pointer;
	}
	button {
		font-family:"Vazir";
		padding: 10px 20px; 
		background: #28a745; 
		color: white; 
		border: none; 
		border-radius: 5px; 
		cursor: pointer; 
	}
    button:hover { 
		background: #218838; 
	}
	button[type="submit"] {
		margin-top: 30px;
		background-color: #27ae60;
		color: white;
		border: none;
		padding: 14px 0;
		font-family:"Vazir";
		font-size: 1.15rem;
		font-weight: 700;
		border-radius: 10px;
		width: 100%;
		cursor: pointer;
		box-shadow: 0 5px 10px rgba(39, 174, 96, 0.5);
		transition: background-color 0.3s ease;
	}

	button[type="submit"]:hover {
		background-color: #1e874b;
	}
	
	button[type="cancel"] {
		margin-top: 30px;
		background-color: #dc3545;
		color: white;
		border: none;
		padding: 14px 0;
		font-family:"Vazir";
		font-size: 1.15rem;
		font-weight: 700;
		border-radius: 10px;
		width: 100%;
		cursor: pointer;
		box-shadow: 0 5px 10px rgba(220, 59, 69, 0.5);
		transition: background-color 0.3s ease;
	}

	button[type="cancel"]:hover {
		background-color: #a71d2a;
	}
	
	button[type="edit"] {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background-color: #f39c12;
		color: white;
		font-weight: bold;
		font-size: 1rem;
		padding: 10px 20px;
		border-radius: 8px;
		text-decoration: none;
		box-shadow: 0 4px 10px rgba(243, 156, 18, 0.4);
		transition: background-color 0.3s ease, box-shadow 0.3s ease;
		float: left; /* نمایش در سمت چپ */
		margin-bottom: 20px;
	}

	button[type="edit"]:hover {
		background-color: #e67e22;
		box-shadow: 0 6px 14px rgba(230, 126, 34, 0.6);	
	}
	button[type="edit"]:active {
		background-color: #d35400;
		box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3);
	}
	
	.invoice_summary {
		display:inline-block; 
		margin: 20px 0; 
		padding: 10px 20px; 
		background:#2980b9; 
		color:white; 
		border-radius:5px;
		display:inline-block;
		margin: 20px 0;
		padding: 10px 20px;
		background:#2980b9;
		color:white;
		border-radius:5px;
		transition: background-color 0.3s ease, box-shadow 0.3s ease;
	}
	
	.invoice_summary:hover {
		background-color: #1c5980;
		box-shadow: 0 6px 14px rgba(28, 89, 128, 0.7);
	}

	.invoice_summary:active {
		background-color: #145072;
		box-shadow: inset 0 3px 6px rgba(0,0,0,0.3);
	}
	
	.error {
		margin: 18px 0;
		padding: 12px;
		background-color: #fce4e4;
		color: #e74c3c;
		font-weight: 600;
		border-radius: 8px;
		border: 1px solid #e74c3c;
	}

	.success {
		margin: 18px 0;
		padding: 12px;
		background-color: #dff0d8;
		color: #27ae60;
		font-weight: 600;
		border-radius: 8px;
		border: 1px solid #27ae60;
	}

	#cashFields {
		margin-top: 15px;
		padding: 15px 18px;
		background-color: #f9fbfc;
		border: 1.5px solid #d1dce5;
		border-radius: 8px;
		box-sizing: border-box;
	}

	.back-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background-color: #2980b9;
		color: white;
		font-weight: 700;
		font-size: 1.5rem;
		width: 48px;
		height: 48px;
		border-radius: 10px;
		text-decoration: none;
		box-shadow: 0 4px 8px rgba(41, 128, 185, 0.4);
		transition: background-color 0.3s ease, box-shadow 0.3s ease;
		user-select: none;
		margin-bottom: 20px;
	}

	.back-button:hover {
		background-color: #1c5980;
		box-shadow: 0 6px 14px rgba(28, 89, 128, 0.7);
	}

	.back-button:active {
		background-color: #145072;
		box-shadow: inset 0 3px 6px rgba(0,0,0,0.3);
	}
	.actions a {
        margin: 0 5px;
        color: #007bff;
        font-weight: bold;
    }

    .actions a.delete {
        color: red;
    }
	
	table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        margin-top: 20px;
    }

    table thead {
        background: #2980b9;
        color: white;
    }

    table th, table td {
        padding: 14px;
        text-align: center;
        border-bottom: 1px solid #eee;
        font-size: 0.95rem;
    }

    table tbody tr:hover {
        background-color: #f0f0f0;
    }
	
	.info-box { 
		background: #fff; 
		padding: 20px; 
		border-radius: 10px; 
		box-shadow: 0 0 8px rgba(0,0,0,0.05);
		margin-bottom: 20px; 
	}
    .info-box p { 
		margin: 8px 0; 
	}
	status-complete { 
		color: green; 
		font-weight: bold; 
	}
    status-pending { 
		color: orange;
		font-weight: bold;
	}
	
	form label {
		display: block; 
		margin: 10px 0 5px; 
	}
    form input, form select { 
		width: 100%;
		padding: 8px; 
		margin-bottom: 10px; 
	}
		
	.accordion {
		margin-top: 30px;
	}

	.accordion-header {
		width: 100%;
		padding: 15px;
		font-family:"Vazir";
		background: #2980b9;
		color: white;
		border: none;
		text-align: center;
		font-size: 1.1rem;
		cursor: pointer;
		margin-bottom: 5px;
		border-radius: 8px;
		transition: background 0.3s ease;
	}

	.accordion-header:hover {
		background: #1b557a;
	}

	.accordion-content {
		display: block;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.7s ease;
		padding: 0 10px;
		background: #fff;
		border-radius: 8px;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
		margin-bottom: 20px;
	}
	.accordion-content.open {
		max-height: 100%; /* عدد بزرگ تا محتوا جا بگیره */
		padding: 10px;
	}
	.login-box {
            background: #fff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 400px;
        }
        .login-box h2 {
            margin-bottom: 20px;
            text-align: center;
            color: #007bff;
        }
        .login-box input {
            width: 100%;
            padding: 12px;
            margin: 10px 0;
            border: 1px solid #ccc;
            border-radius: 6px;
        }
        .login-box button {
            width: 100%;
            padding: 12px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 6px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 10px;
        }
        .login-box button:hover {
            background-color: #0056b3;
        }
		/*--------------------------------------------------------------------------------------*/
	#body-css,#html-css {
		display: grid;
		direction: rtl;
		font-family: "Vazir", Tahoma, sans-serif;
		background-color: #f5f7fa;
		margin: 0;
		padding: 0;
		min-height: 100vh;
		align-items: center;
	}
    .ind-css {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }
    h1 {
        margin-bottom: 30px;
        font-weight: 600;
        font-size: 2rem;
        color: #007bff;
        text-align: center;
    }
    .cards {
		display: grid;
        grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
        gap: 1%;
        margin-bottom: 40px;
	}
    .card {
        background: white;
        padding: 25px 20px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
        text-align: center;
        transition: box-shadow 0.1s ease;
        cursor: default;
    }
    .card:hover {
        box-shadow: 0 4px 15px rgb(0 0 0 / 0.15);
		transform: translateY(-5px);
    }
    .card h2 {
        margin: 0;
        font-size: 3rem;
        color: #007bff;
        user-select: text;
    }
    .card p {
        margin-top: 8px;
        font-size: 1.1rem;
        color: #555;
        user-select: none;
    }
    .card a {
        color: #007bff;
        text-decoration: none;
        font-weight: 600;
    }
    .card a:hover {
        text-decoration: underline;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-bottom: 30px;
    }
    nav a {
        padding: 12px 25px;
        background: #007bff;
        color: white;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 600;
        box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
        transition: background-color 0.3s ease;
        min-width: 120px;
        text-align: center;
    }
    nav a:hover {
        background: #0056b3;
    }
    /* دکمه خروج پایین صفحه کنار چپ (غیر ثابت) */
    .logout {
        margin-top: 40px;
        text-align: left;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    .logout a {
        background: #dc3545;
        color: white;
        padding: 12px 30px;
        border-radius: 6px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
        transition: background-color 0.3s ease;
        display: inline-block;
    }
    .logout a:hover {
        background: #a71d2a;
    }
	.box { 
		background: #fff; 
		padding: 20px; 
		border-radius: 10px; 
		box-shadow: 0 0 10px rgba(0,0,0,0.05); 
		margin-bottom: 30px; 
	}
        
    .total-box { 
		margin-top: 20px;
		font-weight: bold; 
	}
    @media (max-width: 600px) {
        h1 {
            font-size: 1.5rem;
            margin-bottom: 20px;
        }
        .card h2 {
            font-size: 2.5rem;
        }
        nav a {
            min-width: unset;
            flex: 1 1 100%;
        }
    }		
		/*----------------------------------------------------------------------------*/