/* Tooltip helper for cashier page */
.help-tooltip {
	position: relative;
}
.help-tooltip::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 0;
	bottom: 100%;
	transform: translateY(-6px);
	background: rgba(17,24,39,0.95); /* gray-900 */
	color: #fff;
	font-size: 11px;
	white-space: nowrap;
	padding: 4px 8px;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease;
	z-index: 9999;
}
.help-tooltip:hover::after {
	opacity: 1;
	transform: translateY(-10px);
}
body {
    font-family: 'Vazirmatn', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f3f4f6;
}
html, body {
    overflow-x: hidden;
}
.sidebar {
    width: 280px;
    transition: all 0.3s ease;
    z-index: 10;
}
.main-content {
    margin-right: 280px;
    transition: all 0.3s ease;
    flex-grow: 1;
    margin-bottom: 5rem;
}
@media (min-width: 1025px) {
    .main-content {
        width: calc(100% - 280px);
        box-sizing: border-box;
    }
}
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
}
.nav-link:hover {
    background-color: rgba(59, 130, 246, 0.1);
}
.nav-link.active {
    background-color: #3B82F6;
    color: white;
}
.nav-link.active i {
    color: white;
}
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(100%);
        position: fixed;
        right: 0;
        top: 0;
        bottom: 4rem;
        z-index: 10;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-right: 0;
    }
}
.upgrade-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.active-sub-item {
    background-color: rgba(59, 130, 246, 0.2); /* bg-blue-100 */
    color: #1e40af; /* text-blue-800 */
    font-weight: 600;
}

.search-result-item.active {
    background-color: #f3f4f6 !important;
}

.search-results {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Docs layout */
.docs-container {
    max-width: 1200px;
}
.docs-card, .docs-toc {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.docs-card {
    padding: 24px;
}
.docs-toc {
    padding: 16px 18px;
    position: sticky;
    top: 90px;
}
.docs-toc .title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}
.docs-link {
    display: block;
    padding: 6px 0;
    color: #111827;
    text-decoration: none;
    border-radius: 8px;
}
.docs-link:hover { color: #0d6efd; }
.docs-link.active { color: #0d6efd; font-weight: 800; }
.docs-sub a { color: #6b7280; text-decoration: none; display: block; padding: 4px 0; }
.docs-sub a:hover { color: #0d6efd; }

html { scroll-behavior: smooth; }