/* Panel Common Styles - GurmeQR */

:root {
    /* Primary Color Palette - Orange Accent */
    --primary-red: #ea580c;
    --primary-red-dark: #c2410c;
    --primary-red-light: #fb923c;

    /* Neutral Colors */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;

    /* Status Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    --working-hours-clock-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231f2937' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 1.5a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13zm.75 3v3.19l2.72 1.59-.75 1.28L7.25 8.87V4.5h1.5z'/%3E%3C/svg%3E");
    --panel-datetime-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='1.75' y='2.75' width='12.5' height='11.5' rx='1.25' stroke='%231f2937' stroke-width='1.25'/%3E%3Cpath stroke='%231f2937' stroke-width='1.25' d='M1.75 6h12.5'/%3E%3Cpath stroke='%231f2937' stroke-width='1.25' stroke-linecap='round' d='M5.25 1.5v2.25M10.75 1.5v2.25'/%3E%3C/svg%3E");
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 0;
    z-index: 1000;
    overflow-x: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Sidebar Header */
.sidebar-header {
    position: relative;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.panel-logo-wrap {
    --panel-logo-size: 48px;
    width: var(--panel-logo-size);
    height: var(--panel-logo-size);
    min-width: var(--panel-logo-size);
    min-height: var(--panel-logo-size);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.panel-logo-wrap--lg {
    --panel-logo-size: 56px;
}

.panel-logo-wrap .panel-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.sidebar-brand-text {
    font-weight: 600;
    font-size: clamp(0.8125rem, 2.8vw, 1.0625rem);
    line-height: 1.25;
    color: #1f2937;
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    transition: opacity 0.3s ease;
}

.sidebar--business {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar--business .sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* Bootstrap .nav uses flex-wrap: wrap — causes a second column when height is constrained */
    flex-wrap: nowrap !important;
}

.sidebar--business .sidebar-nav > li {
    width: 100%;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 0.5rem 1rem 0.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
}

.sidebar-footer-logo {
    display: block;
    width: auto;
    max-width: min(11rem, 88%);
    height: auto;
    max-height: 3.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-footer-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.feedback-filter-checkbox {
    min-height: 35px;
}

.panel-select-inline {
    width: auto;
    min-width: 10rem;
    padding-right: 2.5rem;
}

.waiter-call-card--pending {
    border-color: #ef4444 !important;
    background: #fef2f2;
}

.waiter-call-card--pending .waiter-call-table-title {
    color: #1f2937;
}

.waiter-call-card--pending .text-muted {
    color: #4b5563 !important;
}

.waiter-call-card--bill {
    border-color: #f59e0b !important;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
}

.waiter-call-card--bill.waiter-call-card--pending {
    background: #fff7ed;
}

.waiter-call-bill-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 700;
}

.waiter-call-table-title .waiter-call-bill-alert {
    font-size: 0.8125rem;
    padding: 0.3rem 0.55rem;
}

.feedback-item.bg-warning-subtle,
.feedback-item.border-warning {
    color: #1f2937;
}

.feedback-item.bg-warning-subtle p,
.feedback-item.border-warning p {
    color: #1f2937;
}

.feedback-item.bg-warning-subtle .text-muted,
.feedback-item.border-warning .text-muted {
    color: #4b5563 !important;
}


/* Sidebar Navigation */
.sidebar-nav {
    padding: 12px 0;
    list-style: none;
    margin: 0;
    flex-wrap: nowrap !important;
}

.sidebar-nav .nav-item {
    margin: 0;
}

.sidebar .nav-link {
    color: #4b5563;
    padding: 8px 20px;
    margin: 3px 10px;
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9375rem;
}

.sidebar .nav-link i {
    font-size: 1.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.sidebar .nav-text {
    white-space: nowrap;
}

.sidebar .nav-link:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.sidebar .nav-link.active {
    background-color: #ffedd5;
    color: var(--primary-red);
    border-left: 3px solid var(--primary-red);
}

.sidebar .nav-link.active i {
    color: var(--primary-red);
}

/* Sidebar Collapsed Hover Tooltip */
.sidebar.collapsed:not(.pinned) .nav-link {
    position: relative;
}

.sidebar.collapsed:not(.pinned) .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    margin-left: 12px;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.sidebar.collapsed:not(.pinned) .nav-link:hover::after {
    opacity: 1;
}

/* Main Content Adjustment */
.main-content-wrapper {
    margin-left: 260px;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
    min-height: 100vh;
    box-sizing: border-box;
}

/* Main Content Styles */
.main-content {
    padding: 20px;
    background-color: var(--bg-light);
    min-height: calc(100vh - 60px);
}

/* Table Responsive Styles */
.table-responsive {
    overflow-x: auto;
}

.table thead {
    background-color: #ffffff;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    color: var(--text-primary) !important;
    background-color: #ffffff !important;
}

.table thead th a {
    color: var(--text-primary) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.table thead th a:hover {
    color: var(--primary-red) !important;
}

.table thead th a i {
    font-size: 0.875rem;
    color: var(--text-secondary) !important;
    opacity: 1;
}

.table thead th a i.opacity-70 {
    opacity: 0.5 !important;
    color: var(--text-secondary) !important;
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(234, 88, 12, 0.03);
}

.table-hover > tbody > tr:hover > td {
    background-color: rgba(234, 88, 12, 0.05);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-red);
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-red-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary.active,
.btn-primary.show {
    background-color: var(--primary-red-dark) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(234, 88, 12, 0.25) !important;
    outline: none !important;
}

.btn-primary:focus:not(:focus-visible) {
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.btn-success {
    background-color: var(--success);
    border: none;
    color: white;
    font-weight: 500;
}

.btn-success:hover {
    background-color: #059669;
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    border: none;
    color: white;
    font-weight: 500;
}

.btn-danger:hover {
    background-color: #dc2626;
    color: white;
}

.btn-warning {
    background-color: var(--warning);
    border: none;
    color: white;
    font-weight: 500;
}

.btn-warning:hover {
    background-color: #d97706;
    color: white;
}

.btn-info {
    background-color: var(--info);
    border: none;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
    transition: all 0.3s ease;
}

.btn-info:hover {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.btn-info:focus,
.btn-info:focus-visible,
.btn-info:active,
.btn-info:not(:disabled):not(.disabled):active,
.btn-info.active,
.btn-info.show {
    background-color: #2563eb !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
    outline: none !important;
}

.btn-info:focus:not(:focus-visible) {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

/* Edit Button - Blue for edit actions */
.btn-edit,
.btn-sm.btn-edit {
    background-color: #3b82f6;
    border: none;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
    transition: all 0.3s ease;
}

.btn-edit:hover,
.btn-sm.btn-edit:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.btn-edit:focus,
.btn-edit:active,
.btn-sm.btn-edit:focus,
.btn-sm.btn-edit:active {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.btn-secondary {
    background-color: var(--text-muted);
    border: none;
    color: white;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #4b5563;
    color: white;
}

.btn-soft-add {
    background-color: #fff7ed;
    border: 1px solid #fdba74;
    color: #c2410c;
    font-weight: 500;
}

.btn-soft-add:hover {
    background-color: #ffedd5;
    border-color: #fb923c;
    color: #9a3412;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background-color: var(--bg-white);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--primary-red);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    border: none;
    font-weight: 600;
    padding: 16px 20px;
}

.card-header .card-title {
    color: white;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.8125rem;
}

.badge.bg-primary {
    background-color: var(--primary-red) !important;
    color: white;
}

.badge.bg-success {
    background-color: var(--success) !important;
    color: white;
}

.badge.bg-danger {
    background-color: var(--danger) !important;
    color: white;
}

.badge.bg-warning {
    background-color: var(--warning) !important;
    color: white;
}

.badge.bg-info {
    background-color: var(--info) !important;
    color: white;
}

.badge.bg-secondary {
    background-color: var(--text-muted) !important;
    color: white;
}

/* Topbar Styles - Modern Design */
.topbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    min-height: 64px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.topbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    gap: 24px;
}

.topbar-left {
    flex: 0 0 auto;
}

.topbar-center {
    flex: 1;
    max-width: 420px;
    min-width: 0;
}

.panel-global-search {
    position: relative;
    width: 100%;
}

.panel-global-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 0.95rem;
}

.panel-global-search-input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #f9fafb;
    color: #1f2937;
}

.panel-global-search-input:focus {
    outline: none;
    border-color: #ea580c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.panel-global-search-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1100;
}

.panel-global-search-suggest a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #1f2937;
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
}

.panel-global-search-suggest a:hover {
    background: #fff7ed;
}

.panel-global-search-suggest .suggest-type {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.panel-global-search-suggest .suggest-empty {
    padding: 12px;
    color: #6b7280;
    font-size: 0.875rem;
}

.search-results-list .list-group-item {
    border-color: #e5e7eb;
    background: #fff;
    color: #1f2937;
}

.search-results-list .list-group-item:hover {
    background: #fff7ed;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Topbar Icon Buttons */
.topbar-icon-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.topbar-icon-btn:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.topbar-icon-btn:active {
    background-color: #e5e7eb;
}

.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 0;
}

.topbar-user-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.user-avatar {
    position: relative;
    display: flex;
    align-items: center;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.topbar-user-btn:hover .avatar-circle {
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.avatar-initials {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.user-status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Topbar User Menu Dropdown */
.topbar-user-menu {
    min-width: 280px;
    padding: 0;
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.user-menu-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.user-menu-avatar {
    position: relative;
    flex-shrink: 0;
}

.user-menu-avatar .avatar-circle {
    width: 48px;
    height: 48px;
}

.user-menu-avatar .avatar-initials {
    font-size: 1rem;
}

.user-menu-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1f2937;
    margin-bottom: 2px;
}

.user-role {
    font-size: 0.8125rem;
    color: #6b7280;
}

.topbar-user-menu .dropdown-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
    color: #4b5563;
    text-decoration: none;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.topbar-user-menu .dropdown-item i {
    width: 24px;
    height: 24px;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.topbar-user-menu .dropdown-item:hover {
    background-color: #f3f4f6;
    color: #1f2937;
    transform: none;
}

.topbar-user-menu .logout-btn {
    padding: 10px 16px;
    background-color: #ffffff;
    color: #ef4444 !important;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
}

.topbar-user-menu .logout-btn:hover {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

.topbar-user-menu .logout-btn i {
    margin-left: auto;
    margin-right: 0;
}

/* Form Controls */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.25rem rgba(234, 88, 12, 0.15);
    outline: none;
}

.form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 2.5rem 10px 12px;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #059669;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 8px;
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: #1f2937;
    transform: translateX(5px);
}

.dropdown-item.text-danger:hover {
    background-color: var(--danger);
    color: white;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--primary-red);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.page-item.active .page-link {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    background-color: var(--bg-light);
    border-color: var(--border-color);
    cursor: not-allowed;
}

/* Modal */
.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
}

/* Alert Improvements */
.alert {
    border-radius: 8px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border-left: 4px solid var(--info);
}

/* Page Headers */
h1.h2, h2 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.75rem;
}

.border-bottom {
    border-color: var(--border-color) !important;
}

/* Page Header Section */
.d-flex.justify-content-between.flex-wrap.flex-md-nowrap.align-items-center {
    padding-bottom: 16px;
    margin-bottom: 24px;
}

/* Dark Mode Styles */
html[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] {
    /* Dark Mode Color Variables */
    --bg-light: #1a1a1a;
    --bg-white: #2d2d2d;
    --border-color: #404040;
    --text-primary: #e5e5e5;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --working-hours-clock-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23e5e5e5' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 1.5a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13zm.75 3v3.19l2.72 1.59-.75 1.28L7.25 8.87V4.5h1.5z'/%3E%3C/svg%3E");
    --panel-datetime-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='1.75' y='2.75' width='12.5' height='11.5' rx='1.25' stroke='%23e5e5e5' stroke-width='1.25'/%3E%3Cpath stroke='%23e5e5e5' stroke-width='1.25' d='M1.75 6h12.5'/%3E%3Cpath stroke='%23e5e5e5' stroke-width='1.25' stroke-linecap='round' d='M5.25 1.5v2.25M10.75 1.5v2.25'/%3E%3C/svg%3E");
}

[data-theme="dark"] body {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

[data-theme="dark"] .sidebar {
    background-color: #242424;
    border-right-color: #404040;
}

[data-theme="dark"] .sidebar-header {
    border-bottom-color: #404040;
}

[data-theme="dark"] .sidebar-brand-text {
    color: var(--text-primary);
}

[data-theme="dark"] .sidebar-footer {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .sidebar-footer-text {
    color: var(--text-muted);
}

[data-theme="dark"] .panel-logo-wrap {
    background-color: var(--bg-white);
    border-color: var(--border-color);
}

[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"] {
    color-scheme: dark;
}

[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.2);
    cursor: pointer;
}

[data-theme="dark"] .sidebar .nav-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .sidebar .nav-link:hover {
    background-color: #333333;
    color: var(--text-primary);
}

[data-theme="dark"] .sidebar .nav-link.active {
    background-color: rgba(234, 88, 12, 0.2);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
}

[data-theme="dark"] .topbar {
    background-color: #2d2d2d;
    border-bottom-color: #404040;
}

[data-theme="dark"] .panel-global-search-input {
    background: #1f1f1f;
    border-color: #404040;
    color: var(--text-primary);
}

[data-theme="dark"] .panel-global-search-suggest {
    background: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] .panel-global-search-suggest a {
    color: var(--text-primary);
    border-bottom-color: #404040;
}

[data-theme="dark"] .panel-global-search-suggest a:hover {
    background: #3d2a1f;
}

[data-theme="dark"] .search-results-list .list-group-item {
    border-color: #404040;
    background: #2d2d2d;
    color: var(--text-primary);
}

[data-theme="dark"] .search-results-list .list-group-item:hover {
    background: #3d2a1f;
}

[data-theme="dark"] .main-content {
    background-color: var(--bg-light);
}

[data-theme="dark"] .card {
    background-color: var(--bg-white);
    border-color: var(--border-color);
}

[data-theme="dark"] .card-body {
    color: var(--text-primary);
}

[data-theme="dark"] .waiter-call-card--pending {
    background: #3f1414;
    border-color: #f87171 !important;
}

[data-theme="dark"] .waiter-call-card--pending .waiter-call-table-title {
    color: #fecaca;
}

[data-theme="dark"] .waiter-call-card--pending .text-muted {
    color: #fca5a5 !important;
}

[data-theme="dark"] .waiter-call-card--bill.waiter-call-card--pending {
    background: #3f2a14;
    border-color: #fbbf24 !important;
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.45);
}

[data-theme="dark"] .waiter-call-bill-alert {
    background: #422006;
    border-color: #f59e0b;
    color: #fde68a;
}

[data-theme="dark"] .table {
    color: var(--text-primary);
}

[data-theme="dark"] .table thead {
    background-color: #242424 !important;
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .table thead th {
    color: var(--text-primary);
    background-color: #242424 !important;
}

[data-theme="dark"] .table thead th a {
    color: var(--text-primary);
}

[data-theme="dark"] .table tbody td {
    color: var(--text-primary);
    background-color: transparent !important;
}

[data-theme="dark"] .table > tbody > tr {
    background-color: transparent !important;
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #242424 !important;
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(even) > td {
    background-color: var(--bg-white) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--bg-white);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d1d5db' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}


[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.6;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--bg-white);
    border-color: var(--primary-red);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.5;
}

/* Date input picker icon in dark mode */
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.5);
    cursor: pointer;
    opacity: 0.9;
}

[data-theme="dark"] input[type="date"]::-webkit-inner-spin-button,
[data-theme="dark"] input[type="datetime-local"]::-webkit-inner-spin-button {
    filter: invert(1);
}

[data-theme="dark"] .working-hours-time-field .working-hours-time {
    color-scheme: dark;
}

[data-theme="dark"] .working-hours-time-field .working-hours-time::-webkit-inner-spin-button {
    filter: invert(1);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-white);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: #404040;
    color: var(--text-primary);
}

[data-theme="dark"] .user-menu-header {
    background-color: #242424;
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .user-name {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .user-role {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .topbar-user-menu .logout-btn {
    background-color: var(--bg-white) !important;
    color: #ef4444 !important;
}

[data-theme="dark"] .topbar-user-menu .logout-btn:hover {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .modal-content {
    background-color: var(--bg-white);
    border-color: var(--border-color);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .page-link {
    background-color: var(--bg-white);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Offcanvas Filter Sidebar */
.offcanvas {
    background-color: var(--bg-white);
}

[data-theme="dark"] .offcanvas,
[data-theme="dark"] .offcanvas.show {
    background-color: var(--bg-white) !important;
    border-left: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .offcanvas-header {
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .offcanvas-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .offcanvas-body {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .offcanvas .form-label {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .offcanvas .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

[data-theme="dark"] .offcanvas .btn-close:hover {
    opacity: 1;
}

[data-theme="dark"] .alert .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

[data-theme="dark"] .alert .btn-close:hover {
    opacity: 1;
}

[data-theme="dark"] .page-link:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

[data-theme="dark"] .page-item.active .page-link {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

[data-theme="dark"] .page-item.disabled .page-link {
    background-color: #1a1a1a;
    border-color: var(--border-color);
    color: var(--text-muted);
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary);
}

[data-theme="dark"] .border-bottom {
    border-color: var(--border-color) !important;
}

/* Dashboard stat numbers */
.stat-value {
    color: var(--primary-red);
    font-weight: 600;
}

.usage-stat-card {
    min-height: 118px;
}

.panel-locale-tabs .nav-link {
    color: #2563eb;
    font-weight: 500;
}

.panel-locale-tabs .nav-link.active {
    color: var(--text-primary);
}

/* --- Dark mode: additional Bootstrap / panel surfaces --- */
[data-theme="dark"] .topbar-icon-btn {
    color: var(--text-secondary);
}

[data-theme="dark"] .topbar-icon-btn:hover {
    background-color: #404040;
    color: var(--text-primary);
}

[data-theme="dark"] .card-header {
    background-color: #242424;
    border-bottom-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] code {
    background-color: #1a1a1a;
    color: var(--primary-red-light);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

[data-theme="dark"] .input-group-text {
    background-color: #242424;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-red-light);
    border-color: var(--primary-red);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
}

[data-theme="dark"] .btn-check:checked + .btn-outline-primary,
[data-theme="dark"] .btn-check:active + .btn-outline-primary,
[data-theme="dark"] .btn-check:focus-visible + .btn-outline-primary {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.35) !important;
}

[data-theme="dark"] .campaign-type-group .btn-outline-primary {
    color: var(--primary-red-light);
    border-color: var(--primary-red);
    background-color: transparent;
}

[data-theme="dark"] .campaign-type-group .btn-check:not(:checked) + .btn-outline-primary:hover {
    background-color: rgba(234, 88, 12, 0.15);
    color: #fdba74;
}

[data-theme="dark"] .btn-soft-add {
    background-color: rgba(251, 146, 60, 0.15);
    border-color: rgba(251, 146, 60, 0.6);
    color: #fdba74;
}

[data-theme="dark"] .btn-soft-add:hover {
    background-color: rgba(251, 146, 60, 0.28);
    border-color: #fb923c;
    color: #ffedd5;
}

[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #404040;
    border-color: #505050;
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary {
    background-color: #404040;
    border-color: #505050;
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: #505050;
    border-color: #606060;
    color: #fff;
}

[data-theme="dark"] .btn-info {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

[data-theme="dark"] .btn-info:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-left-color: var(--success);
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-left-color: var(--danger);
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-left-color: var(--warning);
}

[data-theme="dark"] .alert-info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-left-color: var(--info);
}

.alert-panel-info {
    background-color: #fff8f3;
    border: 1px solid rgba(234, 88, 12, 0.2);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-panel-info .bi {
    color: var(--primary-red);
}

[data-theme="dark"] .alert-panel-info,
[data-theme="dark"] .alert-light.border {
    background-color: rgba(234, 88, 12, 0.1);
    border-color: var(--border-color) !important;
    color: var(--text-secondary);
}

[data-theme="dark"] .alert-panel-info .bi {
    color: var(--primary-red-light);
}

[data-theme="dark"] .form-check-input {
    background-color: #d1d5db;
    border-color: #d1d5db;
}

[data-theme="dark"] .form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

[data-theme="dark"] .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(251, 146, 60, 0.25);
}

[data-theme="dark"] .form-check-label,
[data-theme="dark"] .form-label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-text {
    color: var(--text-muted);
}

[data-theme="dark"] a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item) {
    color: var(--primary-red-light);
}

[data-theme="dark"] .modal-title {
    color: var(--text-primary);
}

[data-theme="dark"] .modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(210%);
    opacity: 0.9;
}

[data-theme="dark"] .modal .btn-close:hover {
    opacity: 1;
}

[data-theme="dark"] .panel-locale-tabs .nav-link {
    color: #f59e0b;
}

[data-theme="dark"] .panel-locale-tabs .nav-link.active {
    color: #fed7aa;
    background-color: #2d2d2d;
    border-color: var(--border-color) var(--border-color) #2d2d2d;
}

[data-theme="dark"] .subcategory-row > td {
    background-color: #2a2a2a !important;
    color: var(--text-primary) !important;
}

.translation-nav-card,
.translation-content-card {
    border-color: var(--border-color, #dee2e6);
}

.translation-section-nav .nav-link {
    font-size: 0.875rem;
    padding: 0.4rem 0.85rem;
    color: var(--primary-red);
    border-radius: 0.5rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.translation-section-nav .nav-link:hover {
    color: var(--primary-red);
    background-color: rgba(234, 88, 12, 0.08);
}

.translation-section-nav .nav-link.active {
    color: #fff;
    background-color: var(--primary-red);
    font-weight: 600;
}

.translation-section-nav .nav-link.active:hover {
    color: #fff;
    background-color: var(--primary-red-dark);
}

.translation-entry-badge {
    background-color: var(--surface-muted, #e9ecef) !important;
    color: var(--text-secondary, #6c757d) !important;
    font-weight: 500;
}

.translation-table .translation-default-text {
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
    white-space: pre-wrap;
}

.translation-table .translation-context {
    color: var(--text-secondary, #6c757d);
}

.translation-table thead th {
    background-color: var(--surface-muted, #f8f9fa);
    color: var(--text-secondary, #6c757d);
    font-weight: 600;
    font-size: 0.8125rem;
    border-bottom-color: var(--border-color, #dee2e6);
}

.translation-table td {
    vertical-align: middle;
    border-color: var(--border-color, #dee2e6);
}

.translation-empty-state {
    color: var(--text-secondary, #6c757d);
    font-size: 0.875rem;
}

[data-theme="dark"] .translation-section-nav .nav-link {
    color: var(--primary-red-light);
}

[data-theme="dark"] .translation-section-nav .nav-link:hover {
    color: var(--primary-red-light);
    background-color: rgba(234, 88, 12, 0.12);
}

[data-theme="dark"] .translation-section-nav .nav-link.active {
    color: #fff;
    background-color: var(--primary-red);
}

[data-theme="dark"] .translation-section-nav .nav-link.active:hover {
    color: #fff;
    background-color: var(--primary-red-dark);
}

[data-theme="dark"] .translation-entry-badge {
    background-color: #3a3a3a !important;
    color: #b0b8c4 !important;
}

[data-theme="dark"] .translation-table thead th {
    background-color: #2a2a2a;
    color: #9aa3b2;
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .translation-table .translation-default-text,
[data-theme="dark"] .translation-table .translation-context,
[data-theme="dark"] .translation-empty-state {
    color: #9aa3b2;
}

[data-theme="dark"] .translation-input {
    background-color: #1f1f1f;
    border-color: #404040;
    color: #e8eaed;
}

[data-theme="dark"] .translation-input::placeholder {
    color: #6b7280;
}

[data-theme="dark"] .translation-input:focus {
    background-color: #1f1f1f;
    border-color: var(--primary-red);
    color: #e8eaed;
    box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.25);
}

.panel-sort-col {
    width: 2rem;
    padding-left: 0.5rem !important;
    padding-right: 0 !important;
}

.panel-sort-handle {
    width: 2rem;
    color: var(--text-secondary, #9ca3af);
    cursor: grab;
    text-align: center;
    user-select: none;
    vertical-align: middle;
}

.panel-sort-handle:active {
    cursor: grabbing;
}

.panel-sortable-ghost {
    opacity: 0.45;
    background-color: rgba(234, 88, 12, 0.08) !important;
}

.panel-sortable-chosen {
    background-color: rgba(234, 88, 12, 0.06) !important;
}

[data-theme="dark"] .panel-sort-handle {
    color: #9aa3b2;
}

[data-theme="dark"] .panel-sortable-ghost {
    background-color: rgba(234, 88, 12, 0.15) !important;
}

/* --- Panel mobile sidebar --- */
.panel-sidebar-toggle {
    display: none;
}

.panel-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
}

.panel-sidebar-backdrop[hidden] {
    display: none !important;
}

body.panel-sidebar-open {
    overflow: hidden;
}

.publish-checklist .list-group-item {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .publish-checklist .list-group-item {
    color: var(--text-primary);
    background-color: transparent;
    border-color: var(--border-color);
}

.working-hours-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.working-hours-row {
    display: grid;
    grid-template-columns: minmax(7rem, 1fr) 1fr 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.working-hours-time-field {
    position: relative;
    min-width: 0;
}

.working-hours-time-field .working-hours-time {
    padding-right: 2.25rem;
    width: 100%;
}

.working-hours-time-field::after {
    content: "";
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    background-image: var(--working-hours-clock-icon);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.95;
}

.working-hours-time-field:has(.working-hours-time:disabled)::after {
    opacity: 0.4;
}

.working-hours-time-field .working-hours-time::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    top: 0;
    width: 2.25rem;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

.panel-datetime-field {
    position: relative;
    min-width: 0;
}

.panel-datetime-field .panel-datetime-input {
    position: relative;
    padding-right: 2.25rem;
    width: 100%;
}

.panel-datetime-field::after {
    content: "";
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    background-image: var(--panel-datetime-icon);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.95;
}

@supports selector(::-webkit-calendar-picker-indicator) {
    .panel-datetime-field::after {
        display: none;
    }

    .panel-datetime-field .panel-datetime-input::-webkit-calendar-picker-indicator {
        position: absolute;
        right: 0;
        top: 0;
        width: 2.25rem;
        height: 100%;
        margin: 0;
        padding: 0;
        cursor: pointer;
        opacity: 1;
        background-color: transparent;
        background-image: var(--panel-datetime-icon);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 1rem 1rem;
        filter: none !important;
        color: transparent;
    }
}

[data-theme="dark"] .panel-datetime-field .panel-datetime-input::-webkit-calendar-picker-indicator {
    filter: none !important;
    opacity: 1;
    background-image: var(--panel-datetime-icon);
}

.panel-icon-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-icon-picker-btn {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.panel-icon-picker-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.panel-icon-picker-btn.active {
    border-color: var(--primary-red);
    background: rgba(234, 88, 12, 0.12);
    color: var(--primary-red);
}

.working-hours-day-label {
    font-weight: 500;
    color: var(--text-primary);
}

.working-hours-toggle {
    min-width: 6.5rem;
    white-space: nowrap;
}

.campaign-image-preview-img {
    max-width: 220px;
    max-height: 160px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    object-fit: contain;
    background: var(--bg-light);
}

@media (max-width: 575.98px) {
    .working-hours-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "day day"
            "open close"
            "toggle toggle";
    }

    .working-hours-day-label {
        grid-area: day;
    }

    .working-hours-row .working-hours-time-field:nth-of-type(1) {
        grid-area: open;
    }

    .working-hours-row .working-hours-time-field:nth-of-type(2) {
        grid-area: close;
    }

    .working-hours-toggle {
        grid-area: toggle;
        width: 100%;
    }
}

.sidebar-nav-group-label {
    padding: 14px 20px 6px;
    margin: 0 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    list-style: none;
    width: calc(100% - 20px);
    box-sizing: border-box;
}

.sidebar .nav-link .nav-text {
    flex: 1;
    min-width: 0;
}

.sidebar-nav-badge {
    margin-left: auto;
    min-width: 1.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #fff;
    background-color: var(--primary-red);
}

.sidebar .nav-link.active .sidebar-nav-badge {
    background-color: var(--primary-red-dark);
}

[data-theme="dark"] .sidebar-nav-group-label {
    color: #6b7280;
}

[data-theme="dark"] .sidebar-footer {
    border-top-color: #374151;
}

.dashboard-status-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid #fde68a;
    background: #fffbeb;
}

.dashboard-status-strip__main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 12rem;
}

.dashboard-status-strip__icon {
    color: #d97706;
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.dashboard-status-strip__title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.dashboard-status-strip__text {
    font-size: 0.875rem;
    color: var(--text-muted, #6c757d);
}

.dashboard-status-strip__progress {
    min-width: 10rem;
    max-width: 14rem;
    flex: 1;
}

.dashboard-status-strip__progress-label {
    font-size: 0.8125rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0.35rem;
}

.dashboard-status-strip__bar {
    height: 6px;
    background-color: #fde68a;
}

.dashboard-status-strip__bar .progress-bar {
    background-color: var(--primary-red);
}

[data-theme="dark"] .dashboard-status-strip {
    border-color: #78350f;
    background: rgba(234, 88, 12, 0.12);
}

[data-theme="dark"] .dashboard-status-strip__bar {
    background-color: #374151;
}

.dashboard-kpi-card .card-body {
    position: relative;
    padding: 1rem 1.1rem;
}

.dashboard-kpi-card__icon {
    font-size: 1.35rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.dashboard-kpi-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.dashboard-kpi-card__label {
    font-size: 0.8125rem;
    color: var(--text-muted, #6c757d);
    margin-top: 0.25rem;
}

.dashboard-kpi-card__hint {
    font-size: 0.6875rem;
    margin-top: 0.15rem;
    line-height: 1.2;
}

.dashboard-product-rank-card .card-title {
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-product-rank-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6c757d);
    border-bottom-width: 1px;
}

.dashboard-product-rank-table tbody td {
    vertical-align: middle;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.dashboard-empty-cta {
    margin-top: 0.5rem;
}

.dashboard-kpi-card-link .dashboard-kpi-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-kpi-card-link:hover .dashboard-kpi-card {
    border-color: var(--primary-red-light);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.12);
}

.dashboard-kpi-card-link:hover .dashboard-kpi-card__value,
.dashboard-kpi-card-link:hover .dashboard-kpi-card__label {
    color: inherit;
}

.dashboard-chart-wrap {
    position: relative;
    height: 280px;
}

.dashboard-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted, #6c757d);
}

.dashboard-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dashboard-chart-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dashboard-chart-dot--welcome {
    background-color: #f5b942;
}

.dashboard-chart-dot--menu {
    background-color: #22a06b;
}

.dashboard-product-stat-card .card-title,
.dashboard-product-stat-card h5 {
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-product-metric {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.dashboard-product-metric-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.dashboard-product-metric-unit {
    font-size: 1rem;
    color: var(--text-muted, #6c757d);
}

.dashboard-product-metric-icon {
    margin-left: auto;
    font-size: 1.75rem;
    color: var(--primary-red);
}

[data-theme="dark"] .dashboard-analytics-chart-card canvas {
    filter: none;
}

.panel-image-preview {
    display: block;
    max-width: 100%;
    max-height: 140px;
    width: auto;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    object-fit: contain;
    background: var(--bg-light);
}

.panel-image-preview[hidden] {
    display: none !important;
}

.panel-custom-price-badge {
    color: #fff !important;
}

.panel-image-url-field--upload-disabled .panel-image-file-input {
    opacity: 0.65;
}

@media (max-width: 991.98px) {
    .panel-sidebar-toggle {
        display: inline-flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1050;
    }

    body.panel-sidebar-open .sidebar {
        transform: translateX(0);
    }

    .main-content-wrapper {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* Destek sayfası */
.support-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.5rem 1rem;
}

.support-tabs .nav-link.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
    background: transparent;
    font-weight: 600;
}

.support-legal-pills .nav-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    background: transparent;
}

.support-legal-pills .nav-link:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.support-legal-pills .nav-link.active {
    background-color: var(--primary-red);
    color: #fff;
}

.support-legal-prose h2 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.support-legal-prose h3 {
    font-size: 1.05rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.support-legal-prose p,
.support-legal-prose li {
    color: var(--text-muted);
    line-height: 1.6;
}

.support-legal-prose ul {
    padding-left: 1.25rem;
}

.support-contact-list dt {
    font-weight: 600;
}

.support-package-card {
    border: 1px solid var(--border-color);
}

.support-package-price .h4 {
    font-weight: 700;
    color: var(--primary-red);
}

[data-theme="dark"] .support-legal-prose p,
[data-theme="dark"] .support-legal-prose li {
    color: #b0b8c4;
}

[data-theme="dark"] .support-legal-pills .nav-link:not(.active) {
    color: #9ca3af;
}

[data-theme="dark"] .support-legal-pills .nav-link:not(.active):hover {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .support-legal-prose a,
[data-theme="dark"] .support-contact-link {
    color: #b0b8c4;
}

[data-theme="dark"] .support-legal-prose a:hover,
[data-theme="dark"] .support-contact-link:hover {
    color: #e5e7eb;
}

[data-theme="dark"] .support-tabs .nav-link:not(.active) {
    color: #9ca3af;
}
