/* Works on Chrome, Edge, and Safari */
/* Taken from https://github.com/tahir-zaqout/sundae_theme/tree/master/sundae_theme/public/css */
:root{
    --main-color: #D8292E;
    --second-color: #d8292fef;
    --third-color: #a5488a;
    --widget-bg: #e8eafcad ;
}
[data-theme=grixti_theme]{
    --primary: var(--main-color);
    --dt-primary-color: var(--main-color);
    --blue-avatar-bg: var(--main-color);
    --blue-avatar-color: var(--main-color);
    --blue: var(--main-color)
}

[data-theme=grixti_theme] .navbar {
    background: linear-gradient(to right, var(--main-color), var(--second-color)) !important;
    border: none !important;
}
[data-theme=grixti_theme] .navbar-nav>li>a{
	color:#fff !important;
}
[data-theme=grixti_theme] .navbar-nav>li>a:hover{
	color:#ddd !important;
}
[data-theme=grixti_theme] .navbar-brand:hover {
	color:#ddd !important;
}

.point-of-sale-app > .items-selector > .items-container > .item-wrapper > .item-detail > .item-name {
	display: flex;
	align-items: center;
	font-size: 10px;
	white-space: normal;
    max-height: calc(10px * 3);
}

.grixti-item-preview-popup {
	position: absolute;
	z-index: 1100;
	width: 320px;
	padding: 10px;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.2);
	display: none;
}

.grixti-item-preview-popup.visible {
	display: block;
}

.grixti-item-preview-title {
	font-weight: 600;
	margin-bottom: 8px;
	word-break: break-word;
}

.grixti-item-preview-image {
	width: 100%;
	max-height: 220px;
	object-fit: contain;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #f9fafb;
}

.grixti-item-preview-actions {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.grixti-description-cell {
	position: relative;
	padding-right: 64px;
}

.grixti-description-edit-btn {
	position: absolute;
	top: 6px;
	right: 6px;
	display: none;
	font-size: 11px;
	line-height: 1;
}

.grixti-description-cell:hover .grixti-description-edit-btn {
	display: inline-flex;
	align-items: center;
}

.grixti-desc-dialog .modal-dialog {
	width: 94vw;
	max-width: 1240px;
}

.grixti-description-editor-layout {
	display: grid;
	grid-template-columns: minmax(280px, 30%) minmax(0, 70%);
	gap: 14px;
	align-items: stretch;
}

.grixti-description-gallery {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 10px;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.grixti-description-gallery-frame {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
}

.grixti-description-gallery-image {
	width: 100%;
	max-height: 340px;
	min-height: 220px;
	object-fit: contain;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	cursor: zoom-in;
}

.grixti-description-gallery-image.is-empty {
	cursor: default;
}

.grixti-description-gallery-caption {
	font-size: 12px;
	color: #4b5563;
	text-align: center;
}

.grixti-description-gallery-meta {
	border-top: 1px solid #e5e7eb;
	padding-top: 8px;
	margin-top: 2px;
}

.grixti-description-gallery-meta-label {
	font-size: 12px;
	font-weight: 600;
	color: #4b5563;
	margin-bottom: 4px;
}

.grixti-description-gallery-meta-value {
	min-height: 34px;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
	line-height: 1.35;
	color: #111827;
	word-break: break-word;
}

.grixti-description-text-wrap {
	display: flex;
	flex-direction: column;
}

.grixti-description-textarea {
	min-height: 340px;
	resize: vertical;
}

.grixti-instalment-progress-wrap {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.grixti-instalment-progress-track {
	width: 100%;
	height: 14px;
	border-radius: 999px;
	background: #e5e7eb;
	overflow: hidden;
}

.grixti-instalment-progress-fill {
	height: 100%;
	width: 0;
	border-radius: 999px;
	transition: width 0.35s ease, background-color 0.35s ease;
}

.grixti-instalment-progress-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 12px;
	color: #4b5563;
}

.grixti-instalment-progress-meta span {
	white-space: nowrap;
}

@media (max-width: 900px) {
	.grixti-description-editor-layout {
		grid-template-columns: 1fr;
	}

	.grixti-description-gallery-image {
		max-height: 260px;
		min-height: 180px;
	}
}
