/* ==========================================================================
   Matrix Manager
   ========================================================================== */
.regmatrix-container {
	width: 100%;
	box-sizing: border-box;
	padding: 20px;
	background: white;
	border-radius: 10px;
	/* margin: 10px; */
}

.regmatrix-header {
	display: flex;
	flex-direction: column;
	margin-bottom: 20px;
}

.regmatrix-title {
	font-size: 22px;
	font-weight: 600;
	color: #333333;
	margin-bottom: 5px;
	padding: 20px 0px;
}

.regmatrix-subtitle {
	font-size: 13px;
	color: #777777;
}

.regmatrix-toolbar {
	margin-bottom: 20px;
}

.regmatrix-body {
	margin-bottom: 20px;
}

.regmatrix-footer {
	margin-top: 20px;
}

/* ==========================================================================
   Matrix List
   ========================================================================== */
.regmatrix-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.regmatrix-summary {
	display: flex;
	flex-direction: column;
	border: 1px solid #dcdcdc;
	border-radius: 6px;
	background: #ffffff;
	padding: 15px;
}

.regmatrix-summary-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.regmatrix-summary-title {
	font-size: 17px;
	font-weight: 600;
	color: #333333;
}

.regmatrix-summary-type {
	font-size: 12px;
	color: #777777;
}

.regmatrix-summary-details {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 12px;
	font-size: 13px;
}

.regmatrix-summary-detail {
	color: #444444;
}

.regmatrix-summary-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 20px;
	justify-content: center;
}

.regmatrix-config-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.regmatrix-empty {
	display: flex;
	flex-direction: column;
	gap: 10px; padding : 25px;
	border: 1px dashed #cccccc;
	text-align: center;
	color: #777777;
	background: #fafafa;
	padding: 25px;
}

/* ==========================================================================
   Configuration Form
   ========================================================================== */
.regmatrix-form {
	width: 100%;
}

.regmatrix-form-body {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.regmatrix-form-buttons {
	display: flex;
	margin-top: 20px;
	justify-content: center;
	gap: 10px;
}

.regmatrix-section {
	display: flex;
	flex-direction: column;
	border: 1px solid #dddddd;
	border-radius: 6px;
	background: #ffffff;
}

.regmatrix-section-title {
	font-size: 18px;
	font-weight: 600;
	color: #333333;
	margin: 10px 0px 0px 10px;
}

.regmatrix-section-body {
	display: flex;
	flex-direction: column;
	padding: 15px;
}

.regmatrix-field {
	margin-bottom: 15px;
	display: flex;
	flex-direction: column;
}

.regmatrix-field:last-child {
	margin-bottom: 0;
}

.regmatrix-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.regmatrix-field input, .regmatrix-field select, .regmatrix-field textarea
	{
	width: 100%;
	box-sizing: border-box;
	font-size: 11px;
}

/* ==========================================================================
   Matrix Grid
   ========================================================================== */
.regmatrix-grid {
	overflow-x: auto;
}

.regmatrix-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
}

.regmatrix-table th, .regmatrix-table td {
	border: 1px solid #d9d9d9;
	padding: 8px;
	text-align: center;
	vertical-align: middle;
}

.regmatrix-table th {
	background: #f5f5f5;
	font-weight: 600;
}

.regmatrix-table td {
	background: #ffffff;
}

.regmatrix-table input, .regmatrix-table select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #cccccc;
	border-radius: 3px;
	padding: 5px;
	text-align: center;
}

.regmatrix-table input[type="checkbox"] {
	width: auto;
	transform: scale(1.1);
}

/* ==========================================================================
   Totals
   ========================================================================== */
.regmatrix-totals {
	margin-top: 15px;
	padding: 12px;
	border: 1px solid #dddddd;
	background: #fafafa;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.regmatrix-buttons {
	margin-top: 20px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Readonly
   ========================================================================== */
.regmatrix-table input:disabled, .regmatrix-table select:disabled {
	background: #f3f3f3;
	color: #666666;
	cursor: default;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media ( max-width : 768px) {
	.regmatrix-summary-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.regmatrix-summary-details {
		flex-direction: column;
		gap: 8px;
	}
	.regmatrix-buttons {
		flex-direction: column;
	}
	.regmatrix-buttons button {
		width: 100%;
	}
}

/* ==========================================================================
   Matrix Messages
   ========================================================================== */
.regmatrix-hidden {
	display: none;
}

.regmatrix-message {
	margin: 0 0 15px 0;
	padding: 10px 15px;
	border-radius: 4px;
	border: 1px solid transparent;
	font-size: 13px;
	line-height: 1.5;
}

.regmatrix-success {
	color: #155724;
	background: #d4edda;
	border-color: #c3e6cb;
}

.regmatrix-error {
	color: #721c24;
	background: #f8d7da;
	border-color: #f5c6cb;
}

.regmatrix-warning {
	color: #856404;
	background: #fff3cd;
	border-color: #ffeeba;
}

.regmatrix-info {
	color: #0c5460;
	background: #d1ecf1;
	border-color: #bee5eb;
}
