/* Main menu icon 
div.mainmenu.carimutabakat::before {
	content: "\f249";
}
div.mainmenu.carimutabakat {
	background-image: none;
}
*/
/* Reconciliation card styles */
.reconciliation-card {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reconciliation-header {
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
	margin-bottom: 15px;
}

.reconciliation-status {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
}

.reconciliation-status.draft {
	background-color: #6c757d;
	color: white;
}

.reconciliation-status.pending {
	background-color: #ffc107;
	color: #212529;
}

.reconciliation-status.sent {
	background-color: #17a2b8;
	color: white;
}

.reconciliation-status.approved {
	background-color: #28a745;
	color: white;
}

.reconciliation-status.rejected {
	background-color: #dc3545;
	color: white;
}

/* Invoice table styles */
.reconciliation-invoices {
	margin-top: 20px;
}

.reconciliation-invoices table {
	width: 100%;
	border-collapse: collapse;
}

.reconciliation-invoices th,
.reconciliation-invoices td {
	padding: 8px 12px;
	border: 1px solid #ddd;
	text-align: left;
}

.reconciliation-invoices th {
	background-color: #f8f9fa;
	font-weight: bold;
}

.reconciliation-invoices tr:nth-child(even) {
	background-color: #f8f9fa;
}

/* Response form styles */
.reconciliation-response {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 20px;
	margin-top: 20px;
}

.response-buttons {
	margin: 15px 0;
}

.response-buttons .btn {
	margin-right: 10px;
	padding: 8px 16px;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	font-weight: bold;
}

.btn-agree {
	background-color: #28a745;
	color: white;
}

.btn-disagree {
	background-color: #dc3545;
	color: white;
}

.btn-agree:hover {
	background-color: #218838;
}

.btn-disagree:hover {
	background-color: #c82333;
}

/* Dashboard widgets */
.reconciliation-widget {
	background: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.widget-header {
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
	margin-bottom: 15px;
	font-size: 18px;
	font-weight: bold;
	color: #333;
}

.widget-stat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.widget-stat:last-child {
	border-bottom: none;
}

.stat-label {
	font-weight: 500;
	color: #666;
}

.stat-value {
	font-weight: bold;
	font-size: 16px;
	color: #333;
}

/* Statistics page */
.stats-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.stats-card {
	background: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-number {
	font-size: 36px;
	font-weight: bold;
	color: #007bff;
	margin-bottom: 10px;
}

.stats-label {
	font-size: 14px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Hide selected_invoices field only in card pages (when there's a form with commonfields) */
form[name="reconciliation"] tr.field_selected_invoices,
form[name="reconciliation"] .field_selected_invoices {
    display: none!important;
}

/* Style the dropdown in list view */
.field_selected_invoices select {
    max-width: 200px;
    font-size: 11px;
}

/* Email template styles */
.email-template {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px;
}

.template-header {
	font-weight: bold;
	margin-bottom: 10px;
	color: #495057;
}

/* File upload styles */
.file-upload-area {
	border: 2px dashed #dee2e6;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	background: #f8f9fa;
	margin: 15px 0;
}

.file-upload-area:hover {
	border-color: #007bff;
	background: #e3f2fd;
}

/* Responsive design */
@media (max-width: 768px) {
	.stats-container {
		grid-template-columns: 1fr;
	}
	
	.reconciliation-card {
		padding: 10px;
	}
	
	.response-buttons .btn {
		display: block;
		width: 100%;
		margin-bottom: 10px;
		margin-right: 0;
	}
}

/* Attachment info styles */
.attachment-info {
	margin-top: 5px;
	font-size: 12px;
	color: #666;
}

/* Invoice selection styles */
.add-invoice-btn {
	margin-left: 10px;
}

.selected-invoices-list {
	margin-top: 10px;
	border: 1px solid #ccc;
	padding: 10px;
	min-height: 40px;
	border-radius: 4px;
	background: #f9f9f9;
}

.selected-invoices-list .no-selection {
	color: #666;
	font-style: italic;
}

.selected-invoice-item {
	margin: 5px 0;
	padding: 5px;
	background: #e8f4fd;
	border-radius: 3px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.remove-invoice-btn {
	background: #dc3545;
	color: white;
	border: none;
	padding: 2px 8px;
	border-radius: 3px;
	cursor: pointer;
}

/* Dropdown menu in list cells must not affect row height */
table.liste dl.dropdown {
	position: relative;
}
table.liste dl.dropdown dd {
	position: absolute;
	top: 100%;
	right: 0;
	margin: 0;
}
table.liste dl.dropdown dd .multichoicedoc {
	white-space: nowrap;
}
table.liste tr.oddeven td {
	vertical-align: middle;
}

/* Fix for Durum column visuals (width, nowrap, consistent borders) */
table.liste th.status-col,
table.liste td.status-col {
	text-align: center;
	white-space: nowrap;
	width: 110px;
}

/* Financial summary styles */
.financial-summary {
	margin: 20px 0;
}

.financial-summary h3 {
	margin: 10px 0;
	color: #333;
}

.financial-label {
	width: 30%;
	font-weight: bold;
}

.financial-summary .amount-display {
	font-size: 16px;
	font-weight: bold;
}

.financial-summary .receivable-amount {
	color: #28a745;
}

.financial-summary .payable-amount {
	color: #dc3545;
}

.financial-summary .total-amount {
	font-size: 18px;
	color: #007bff;
}

/* Multi-currency details */
.multicurrency-details {
	margin-top: 10px;
	padding: 10px;
	background: #f8f9fa;
	border-radius: 4px;
}

/* Invoice table styles for view mode */
.invoice-table {
	width: 100%;
	border-collapse: collapse;
}

.invoice-table thead tr {
	background: #f0f0f0;
}

.invoice-table th,
.invoice-table td {
	padding: 5px;
	border: 1px solid #ddd;
}

.invoice-table th {
	text-align: left;
}

.invoice-table .type-badge {
	padding: 2px 6px;
	border-radius: 10px;
	font-size: 10px;
	color: white;
}

.invoice-table .customer-badge {
	background: #28a745;
}

.invoice-table .supplier-badge {
	background: #dc3545;
}

/* Print styles */
@media print {
	.reconciliation-response,
	.response-buttons {
		display: none;
	}
	
	.reconciliation-card {
		box-shadow: none;
		border: 1px solid #000;
	}
}
