:root {
    --qr-brand: #10b981;
    --qr-brand-dark: #087f5b;
    --qr-brand-soft: #e8faf3;
    --qr-navy: #313a46;
    --qr-text: #4b5563;
    --qr-muted: #8a969c;
    --qr-border: #e8ebed;
    --qr-surface: #ffffff;
    --qr-page: #f5f6f8;
    --qr-danger: #f1556c;
    --qr-warning: #f7b84b;
    --qr-info: #4fc6e1;
    --qr-radius-sm: 4px;
    --qr-radius: 6px;
    --qr-radius-lg: 8px;
    --qr-shadow-sm: 0 0 35px 0 rgba(154, 161, 171, 0.12);
    --qr-shadow: 0 0 35px 0 rgba(154, 161, 171, 0.18);
    --ct-primary: #10b981;
    --ct-primary-rgb: 16, 185, 129;
}

html[data-topbar-color="dark"] {
    --ct-topbar-bg: #38414a;
}

body {
    background-color: var(--ct-body-bg);
}

/* Real QRMenu Go Panel shell: logo-box, fixed menu and native topbar are retained. */
.app-menu .logo-box,
.navbar-custom .logo-box {
    display: flex;
    align-items: center;
}
.qr-logo-lg {
    width: 158px !important;
    height: 34px !important;
    object-fit: contain;
}
.qr-logo-sm {
    width: 34px !important;
    height: 34px !important;
}
.app-menu .scrollbar {
    height: calc(100vh - var(--ct-topbar-height));
    overflow-y: auto;
    scrollbar-width: none;
}
.app-menu .scrollbar::-webkit-scrollbar {
    display: none;
}
.qr-user-avatar {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #10b981, #087f5b);
    border: 3px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}
.qr-topbar-avatar {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: #10b981;
    color: #fff;
    font-weight: 700;
}
.qr-topbar-locale {
    min-width: 112px;
    border: 0;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}
.qr-topbar-locale option {
    color: #313a46;
}
.app-menu .menu-link.active {
    background-color: rgba(17, 185, 129, 0.18);
    color: var(--ct-menu-item-active-color);
}
.page-title-box {
    padding: 24px 0;
}
.page-title-box .page-title {
    margin-bottom: 4px;
}
.content {
    min-height: calc(100vh - 130px);
}

/* QRMenu Go Panel auth-login-2 / register-2 / recoverpw-2 compatibility. */
.qr-auth-toolbar {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1100;
    width: 132px;
}
[dir="rtl"] .qr-auth-toolbar {
    right: auto;
    left: 18px;
}
.qr-auth-toolbar .form-select {
    background-color: rgba(255, 255, 255, 0.95);
}
.auth-fluid-form-box .p-3 {
    width: min(100%, 540px);
    margin-inline: auto;
}
.auth-fluid-form-box {
    overflow-y: auto;
}
.qr-auth-visual {
    background-image: linear-gradient(rgba(34, 42, 51, 0.22), rgba(34, 42, 51, 0.48)),
    url("../vendor/panel/images/bg-auth.jpg");
    background-position: center;
    background-size: cover;
}
.auth-brand .logo {
    display: inline-block;
}
.auth-brand .logo-light {
    display: none;
}
html[data-bs-theme="dark"] .auth-brand .logo-light {
    display: inline-block;
}
html[data-bs-theme="dark"] .auth-brand .logo-dark {
    display: none;
}
.auth-footer {
    position: static;
    margin-top: 28px;
}
.qr-legal-checks {
    max-height: 180px;
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--ct-border-color);
    border-radius: 4px;
    background: var(--ct-secondary-bg);
}
.qr-auth-icon {
    display: inline-grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 36px;
}
.qr-code-input {
    letter-spacing: 0.45em;
    font-weight: 700;
}

/* QRMenuGo uses QRMenu Go Panel's native Bootstrap cards/tables/forms. */
.card {
    box-shadow: var(--ct-box-shadow);
}
.card-header {
    background-color: transparent;
}
.card-title,
.header-title {
    font-size: 1rem;
    font-weight: 600;
}
.primary {
    color: var(--ct-emphasis-color);
    font-weight: 600;
}
.secondary {
    color: var(--ct-secondary-color);
    font-size: 13px;
}
.empty {
    padding: 28px;
    color: var(--ct-secondary-color);
    text-align: center;
}
.rating {
    color: #f7b84b;
    letter-spacing: 1px;
    white-space: nowrap;
}
.flash {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}
.flash.success {
    background: rgba(26, 188, 156, 0.12);
    color: #128c75;
}
.flash.error {
    background: rgba(241, 85, 108, 0.12);
    color: #c93d54;
}
.qr-metric-value {
    color: var(--ct-emphasis-color);
    font-size: 24px;
    font-weight: 600;
}
.qr-metric-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(17, 185, 129, 0.12);
    color: #11b981;
}
.qr-metric-icon svg {
    width: 20px;
    height: 20px;
}
.qr-metric-icon.green {
    background: rgba(26, 188, 156, 0.12);
    color: #1abc9c;
}
.qr-metric-icon.blue {
    background: rgba(79, 198, 225, 0.12);
    color: #4fc6e1;
}
.qr-metric-icon.yellow {
    background: rgba(247, 184, 75, 0.14);
    color: #e2a631;
}
.qr-metric-icon.gray {
    background: rgba(152, 166, 173, 0.12);
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .qr-auth-toolbar {
        top: 10px;
        right: 10px;
        width: 112px;
    }
    [dir="rtl"] .qr-auth-toolbar {
        left: 10px;
    }
    .auth-fluid-form-box .p-3 {
        padding-top: 58px !important;
    }
    .page-title-box .page-title-right {
        display: none;
    }
}

/* Shared QRMenuGo components, based on QRMenu Go Panel cards */
.qr-filter-card,
.toolbar {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: #fff;
    box-shadow: var(--qr-shadow-sm);
}

.qr-filter-card .form-control,
.qr-filter-card .form-select,
.toolbar .form-control,
.toolbar .form-select {
    width: auto;
    min-width: 190px;
}

.qr-filter-card .qr-search,
.toolbar .form-control[type="search"] {
    min-width: 260px;
    flex: 1 1 260px;
}

.card-head {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--qr-border);
}

.card-head h2 {
    margin: 0;
    color: var(--qr-navy);
    font-size: 16px;
    font-weight: 800;
}

.panel,
.form-card {
    padding: 20px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: #fff;
    box-shadow: var(--qr-shadow-sm);
}

.panel > h2,
.form-card > h2 {
    margin: 0 0 16px;
    color: var(--qr-navy);
    font-size: 16px;
    font-weight: 800;
}

.grid {
    display: grid;
    gap: 18px;
}

.stats,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat,
.metric {
    position: relative;
    min-height: 128px;
    padding: 19px;
    overflow: hidden;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: #fff;
    box-shadow: var(--qr-shadow-sm);
}

.stat::after,
.metric::after {
    content: "";
    position: absolute;
    top: -28px;
    right: -28px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(var(--qr-brand-rgb), 0.07);
}

.stat-label,
.metric span {
    color: var(--qr-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.stat-value,
.metric strong {
    display: block;
    margin-top: 9px;
    color: var(--qr-navy);
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.stat-note,
.metric small {
    display: block;
    margin-top: 8px;
    color: var(--qr-muted);
    font-size: 11px;
}

.two-col,
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 18px;
    margin-top: 18px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    margin-bottom: 0;
}

.actions,
.actions-row,
.compact-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.actions form,
.actions-row form,
.compact-actions form {
    margin: 0;
}

.inline {
    display: inline;
}

.empty {
    padding: 42px 24px !important;
    color: var(--qr-muted);
    text-align: center;
}

.flash {
    position: relative;
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: var(--qr-radius-sm);
    font-weight: 650;
}

.flash.success {
    border: 1px solid #b9ead7;
    background: #eaf8f2;
    color: #087a53;
}

.flash.error {
    border: 1px solid #f5c6c2;
    background: #fff0ef;
    color: #b42318;
}

.qr-impersonation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid #f0d17a;
    border-radius: var(--qr-radius);
    background: #fff9e7;
    color: #755400;
}

.qr-impersonation strong,
.qr-impersonation small {
    display: block;
}

.qr-impersonation small {
    color: #8c6b1d;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 14px 20px;
    border-top: 1px solid var(--qr-border);
}

.pagination-meta {
    color: var(--qr-muted);
    font-size: 11px;
}

.page-links {
    display: flex;
    gap: 6px;
}

.page-link {
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border: 1px solid #d9e0e8;
    border-radius: 7px;
    background: #fff;
    color: #475467;
    font-size: 11px;
    text-decoration: none;
}

.page-link:hover {
    border-color: var(--qr-brand);
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
}

.page-link.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.section-title {
    margin: 25px 0 13px;
    color: var(--qr-navy);
    font-size: 15px;
    font-weight: 800;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f4;
}

.switch-row:last-child {
    border-bottom: 0;
}

.notice {
    padding: 13px 15px;
    border: 1px solid #b8ddfa;
    border-radius: var(--qr-radius-sm);
    background: #eef8ff;
    color: #175b8f;
}

.danger-zone {
    border-color: #f1c4c0;
    background: #fffafa;
}

.modal-details,
.manage-block {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm);
    background: #fff;
}

.modal-details summary,
.manage-block summary {
    padding: 14px 16px;
    color: var(--qr-navy);
    cursor: pointer;
    font-weight: 750;
}

.modal-details > div,
.manage-block form {
    padding: 0 16px 16px;
}

.price {
    margin-top: 16px;
    color: var(--qr-navy);
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.limit-list {
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.limit-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed #e2e7ed;
    font-size: 12px;
}

.rating-wrap,
.web-rating {
    position: relative;
    display: inline-block;
    line-height: 1;
    letter-spacing: 1px;
}

.rating-base,
.web-rating-base {
    color: #dce2e8;
}

.rating-fill,
.web-rating-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #f5a623;
    white-space: nowrap;
}

.rating-number,
.web-rating-number {
    margin-left: 6px;
    color: var(--qr-navy);
    font-size: 12px;
    font-weight: 800;
}

.stars,
.rating {
    color: #f59e0b;
    letter-spacing: 1px;
}

.chart-box {
    height: 240px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
}

.chart-bar {
    min-width: 4px;
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #59d8ac, var(--qr-brand));
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: var(--qr-muted);
    font-size: 10px;
}

.usage-row {
    margin-bottom: 14px;
}

.usage-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
}

.progress {
    height: 8px;
    border-radius: 999px;
    background: #e9edf2;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--qr-brand);
}

.subscription-card {
    height: 100%;
}

.subscription-date {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 14px 0;
}

.subscription-date div {
    padding: 10px;
    border: 1px solid #edf0f4;
    border-radius: var(--qr-radius-sm);
    background: #f8fafc;
}

.subscription-date small {
    display: block;
    color: var(--qr-muted);
    font-size: 9px;
    text-transform: uppercase;
}

.subscription-date strong {
    display: block;
    margin-top: 3px;
    color: var(--qr-navy);
    font-size: 11px;
}

.qr-check-line {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--qr-muted);
    font-size: 12px;
    font-weight: 700;
}

/* Template-faithful operational components */
.modal-content {
    overflow: hidden;
    border: 0;
    border-radius: var(--qr-radius-lg);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.18);
}

.modal-header,
.modal-footer {
    padding: 17px 20px;
    border-color: var(--qr-border);
}

.modal-body {
    padding: 20px;
}

.modal-title {
    color: var(--qr-navy);
    font-size: 17px;
    font-weight: 800;
}

.accordion-button::after {
    opacity: 0.7;
}

.qr-code-card {
    overflow: hidden;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: #fff;
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
}

.qr-code-card:hover {
    border-color: rgba(var(--qr-brand-rgb), 0.42);
    box-shadow: var(--qr-shadow);
    transform: translateY(-2px);
}

.qr-code-preview {
    min-height: 190px;
    display: grid;
    place-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(var(--qr-brand-rgb), 0.08), rgba(59, 130, 246, 0.06)), #f9fbfc;
}

.qr-code-preview img {
    width: 154px;
    height: 154px;
    padding: 8px;
    border: 1px solid #e1e7ed;
    border-radius: 13px;
    background: #fff;
}

.qr-code-content {
    padding: 18px;
}

.qr-code-content h5,
.qr-card-title {
    margin: 0;
    color: var(--qr-navy) !important;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.qr-code-content p,
.qr-customer-restaurant-content p,
.card-body > p {
    color: var(--qr-muted);
}

.qr-code-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 16px 0;
}

.qr-code-stats div {
    padding: 10px 12px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm);
    background: #f8fafc;
}

.qr-code-stats small,
.qr-code-stats strong {
    display: block;
}

.qr-code-stats small {
    color: var(--qr-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.qr-code-stats strong {
    margin-top: 3px;
    color: var(--qr-navy);
    font-size: 14px;
}

.qr-limit-card {
    height: 100%;
    padding: 16px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm);
    background: #fbfcfd;
}

.progress span.is-danger {
    background: var(--qr-danger);
}

.qr-metric-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
}

.qr-metric-icon svg {
    width: 20px;
    height: 20px;
}

.qr-metric-icon.green {
    background: #e8f8f1;
    color: #087a53;
}
.qr-metric-icon.blue {
    background: #eaf3ff;
    color: #175cd3;
}
.qr-metric-icon.yellow {
    background: #fff6df;
    color: #946200;
}
.qr-metric-icon.gray {
    background: #eef1f4;
    color: #59636e;
}

.qr-metric-value {
    margin-top: 3px;
    color: var(--qr-navy);
    font-size: 23px;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.qr-customer-restaurant {
    height: 100%;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: #fff;
    color: inherit !important;
    text-decoration: none !important;
    transition:
            border-color 0.18s ease,
            transform 0.18s ease,
            box-shadow 0.18s ease;
}

.qr-customer-restaurant:hover {
    border-color: rgba(var(--qr-brand-rgb), 0.45);
    color: inherit !important;
    box-shadow: var(--qr-shadow-sm);
    transform: translateY(-2px);
}

.qr-customer-restaurant-cover {
    width: 104px;
    min-height: 112px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
}

.qr-customer-restaurant-cover img,
.qr-favorite-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-customer-restaurant-cover svg {
    width: 28px;
    height: 28px;
}

.qr-customer-restaurant-content {
    min-width: 0;
    flex: 1;
    padding: 15px;
}

.qr-customer-restaurant-content h5 {
    margin: 0;
    color: var(--qr-navy);
    font-size: 14px;
    font-weight: 800;
}

.qr-customer-restaurant-content p {
    margin: 7px 0 3px;
    font-size: 11px;
}

.qr-customer-restaurant-content small {
    color: var(--qr-muted);
}

.qr-favorite-cover {
    height: 180px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--qr-brand-soft), #edf5ff);
    color: var(--qr-brand-dark);
}

.qr-favorite-cover svg {
    width: 42px;
    height: 42px;
}

.min-w-0 {
    min-width: 0;
}

.card-footer {
    border-color: var(--qr-border);
}

@media (max-width: 575.98px) {
    .qr-customer-restaurant {
        flex-direction: column;
    }

    .qr-customer-restaurant-cover {
        width: 100%;
        height: 150px;
    }

    .modal-dialog {
        margin: 0.75rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Template-faithful administration details */
.qr-stat-card {
    transition:
            transform 0.18s ease,
            border-color 0.18s ease,
            box-shadow 0.18s ease;
}

.qr-stat-card:hover {
    border-color: rgba(var(--qr-brand-rgb), 0.28);
    box-shadow: var(--qr-shadow-sm);
    transform: translateY(-2px);
}

.qr-stat-card h3 {
    color: var(--qr-navy);
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.qr-chart-panel {
    height: 260px;
    display: grid;
    grid-template-columns: repeat(14, minmax(22px, 1fr));
    align-items: end;
    gap: 8px;
    padding-top: 18px;
}

.qr-chart-column {
    min-width: 0;
    text-align: center;
}

.qr-chart-track {
    height: 218px;
    display: flex;
    align-items: end;
    justify-content: center;
    overflow: hidden;
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(15, 159, 110, 0.025), rgba(15, 159, 110, 0.07));
}

.qr-chart-bar {
    width: min(72%, 22px);
    height: var(--qr-chart-height, 4%);
    min-height: 4px;
    display: block;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #39d5a0, var(--qr-brand));
    box-shadow: 0 5px 14px rgba(var(--qr-brand-rgb), 0.18);
    transition:
            filter 0.18s ease,
            transform 0.18s ease;
}

.qr-chart-column:hover .qr-chart-bar {
    filter: brightness(0.92);
    transform: scaleX(1.08);
}

.qr-chart-column small {
    display: block;
    margin-top: 8px;
    color: var(--qr-muted);
    font-size: 9px;
    font-weight: 700;
}

.qr-profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: linear-gradient(135deg, #f8fbfa, #f3f7ff);
}

.qr-profile-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background: linear-gradient(135deg, #2bd39a, var(--qr-brand-dark));
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.qr-profile-summary h3 {
    color: var(--qr-navy);
    font-size: 15px;
    font-weight: 800;
}

.qr-info-list {
    display: block;
}

.qr-info-list .list-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-color: var(--qr-border);
    background: transparent;
    color: var(--qr-muted);
    font-size: 12px;
}

.qr-info-list .list-group-item strong {
    max-width: 62%;
    color: var(--qr-navy);
    font-size: 12px;
    text-align: right;
    overflow-wrap: anywhere;
}

.qr-admin-accordion {
    display: grid;
    gap: 12px;
}

.qr-admin-accordion .accordion-item {
    overflow: hidden;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius) !important;
    background: #fff;
}

.qr-admin-accordion .accordion-button {
    min-height: 82px;
    gap: 18px;
    padding: 16px 18px;
    background: #fff;
    color: var(--qr-navy);
    box-shadow: none;
}

.qr-admin-accordion .accordion-button:hover {
    background: #f8fbfa;
    color: var(--qr-navy);
}

.qr-admin-accordion .accordion-button:not(.collapsed) {
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
    box-shadow: inset 0 -1px 0 var(--qr-border);
}

.qr-admin-accordion .accordion-button::after {
    flex: 0 0 auto;
}

.qr-admin-accordion .accordion-body {
    padding: 22px;
}

.qr-branch-accordion-title {
    min-width: 230px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-branch-accordion-title strong,
.qr-branch-accordion-title small {
    display: block;
}

.qr-branch-accordion-title strong {
    color: inherit;
    font-size: 14px;
    font-weight: 800;
}

.qr-branch-accordion-title small {
    margin-top: 3px;
    color: var(--qr-muted);
    font-size: 11px;
    font-weight: 500;
}

.qr-branch-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
}

.qr-branch-icon svg {
    width: 17px;
    height: 17px;
}

.qr-branch-accordion-meta {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-left: auto;
    color: var(--qr-muted);
    font-size: 11px;
    font-weight: 650;
}

.qr-mini-stat {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm);
    background: #f8fafc;
}

.qr-mini-stat > svg {
    width: 17px;
    height: 17px;
    color: var(--qr-brand-dark);
}

.qr-mini-stat strong,
.qr-mini-stat small {
    display: block;
}

.qr-mini-stat strong {
    color: var(--qr-navy);
    font-size: 14px;
    font-weight: 800;
}

.qr-mini-stat small {
    color: var(--qr-muted);
    font-size: 10px;
}

.qr-switch-card {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm);
    background: #f8fafc;
}

.qr-switch-card .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

.qr-switch-card .form-check-label {
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.qr-switch-card strong,
.qr-switch-card small {
    display: block;
}

.qr-switch-card strong {
    color: var(--qr-navy);
    font-size: 12px;
}

.qr-switch-card small {
    margin-top: 2px;
    color: var(--qr-muted);
    font-size: 10px;
}

.qr-ip-code {
    display: inline-flex;
    padding: 5px 8px;
    border: 1px solid var(--qr-border);
    border-radius: 7px;
    background: #f8fafc;
    color: #475467;
    font-size: 11px;
}

.qr-empty-state {
    max-width: 470px;
    margin: 0 auto;
    color: var(--qr-muted);
    text-align: center;
}

.qr-empty-state .qr-empty-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 13px;
    border-radius: 15px;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
}

.qr-empty-state .qr-empty-icon svg {
    width: 22px;
    height: 22px;
}

.qr-empty-state h3 {
    margin: 0 0 6px;
    color: var(--qr-navy);
    font-size: 16px;
    font-weight: 800;
}

.qr-empty-state p {
    margin: 0 0 15px;
    font-size: 12px;
}

@media (max-width: 991.98px) {
    .qr-chart-panel {
        overflow-x: auto;
        grid-template-columns: repeat(14, minmax(34px, 1fr));
        padding-bottom: 5px;
    }

    .qr-branch-accordion-meta {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .qr-admin-accordion .accordion-button,
    .qr-admin-accordion .accordion-body {
        padding: 14px;
    }

    .qr-branch-accordion-title {
        min-width: 0;
    }

    .qr-info-list .list-group-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .qr-info-list .list-group-item strong {
        max-width: 100%;
        text-align: left;
    }
}

.qr-contact-table {
    min-width: 960px;
}

.qr-contact-message-cell {
    min-width: 340px;
    max-width: 520px;
}

.qr-contact-message-cell p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.qr-topbar-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(var(--qr-brand-rgb), 0.12);
    border-radius: 50%;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
    font-size: 12px;
    font-weight: 850;
}

.button-toggle-menu > svg {
    width: 21px;
    height: 21px;
}

.alert {
    border-radius: var(--qr-radius-sm);
    border-width: 1px;
}

.alert > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.qr-chart-panel-30 {
    grid-template-columns: repeat(30, minmax(14px, 1fr));
    gap: 5px;
}

.qr-chart-panel-30 .qr-chart-column small {
    min-height: 13px;
}

.qr-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.qr-progress .progress-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, var(--qr-brand), #2bd39a);
}

.qr-quick-actions {
    gap: 8px;
}

.qr-quick-actions .list-group-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm) !important;
    color: var(--qr-text);
}

.qr-quick-actions .list-group-item:hover {
    border-color: rgba(var(--qr-brand-rgb), 0.32);
    background: var(--qr-brand-soft);
    color: var(--qr-navy);
}

.qr-quick-actions .list-group-item > svg {
    width: 15px;
    height: 15px;
    color: var(--qr-muted);
}

.qr-quick-action-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
}

.qr-quick-action-icon svg {
    width: 16px;
    height: 16px;
}

.qr-quick-actions strong,
.qr-quick-actions small {
    display: block;
}

.qr-quick-actions strong {
    color: inherit;
    font-size: 12px;
}

.qr-quick-actions small {
    margin-top: 2px;
    color: var(--qr-muted);
    font-size: 10px;
}

.qr-ranked-list .list-group-item {
    display: flex;
    align-items: center;
    gap: 11px;
    border-color: var(--qr-border);
    background: transparent;
}

.qr-rank-number {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
    font-size: 11px;
    font-weight: 850;
}

@media (max-width: 1199.98px) {
    .qr-chart-panel-30 {
        overflow-x: auto;
        grid-template-columns: repeat(30, 24px);
    }
}

/* Multilingual controls and RTL support */
.qr-topbar-locale {
    width: auto;
    min-width: 112px;
    max-width: 145px;
    height: 34px;
    padding-block: 5px;
}

.qr-auth-locale {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1050;
    width: 132px;
}

[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .app-menu {
    left: auto;
    right: 0;
}

[dir="rtl"] .content-page {
    margin-left: 0;
    margin-right: var(--ct-leftbar-width, 260px);
}

[dir="rtl"] .navbar-custom {
    left: 0;
    right: var(--ct-leftbar-width, 260px);
}

[dir="rtl"] .menu-link,
[dir="rtl"] .qr-brand,
[dir="rtl"] .qr-impersonation,
[dir="rtl"] .card-header,
[dir="rtl"] .page-title-box {
    text-align: right;
}

[dir="rtl"] .dropdown-menu-end {
    --bs-position: start;
    left: 0;
    right: auto;
}

[dir="rtl"] .text-md-end {
    text-align: left !important;
}

[dir="rtl"] .form-check {
    padding-left: 0;
    padding-right: 1.5em;
}

[dir="rtl"] .form-check .form-check-input {
    float: right;
    margin-left: 0;
    margin-right: -1.5em;
}

[dir="rtl"] .qr-auth-locale {
    left: 18px;
    right: auto;
}

@media (max-width: 991.98px) {
    [dir="rtl"] .content-page {
        margin-right: 0;
    }

    [dir="rtl"] .navbar-custom {
        right: 0;
    }
}

@media (max-width: 575.98px) {
    .qr-topbar-locale {
        min-width: 92px;
        max-width: 105px;
        font-size: 11px;
    }

    .qr-auth-locale {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 112px;
    }

    [dir="rtl"] .qr-auth-locale {
        left: 10px;
        right: auto;
    }
}

/* Paket fiyatları: KDV bilgilendirmesi */
.qr-vat-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: -4px auto 20px;
    padding: 8px 14px;
    border: 1px solid rgba(13, 159, 101, 0.18);
    border-radius: 999px;
    background: rgba(13, 159, 101, 0.07);
    color: #08784c;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.qr-vat-note > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bs-primary, #0d9f65);
    color: #fff;
    font-size: 12px;
}

/* Paket dönemi seçici */
.qr-billing-toggle {
    display: flex;
    width: max-content;
    max-width: 100%;
    padding: 5px;
    border: 1px solid rgba(16, 42, 67, 0.12);
    background: #f3f7f5;
    border-radius: 999px;
}
.qr-billing-toggle button {
    min-width: 120px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 800;
    color: #52656f;
    transition: 0.2s;
}
.qr-billing-toggle button.is-active {
    background: var(--bs-primary, #0d9f65);
    color: #fff;
    box-shadow: 0 8px 24px rgba(13, 159, 101, 0.22);
}

/* Persistent, scrollbar-free panel navigation */
.app-menu {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.app-menu > .scrollbar {
    height: calc(100vh - 70px);
    max-height: calc(100vh - 70px);
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.app-menu > .scrollbar::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.app-menu .menu {
    padding-bottom: 28px;
}

/* Language selectors */
.qr-locale-picker {
    display: inline-flex;
}

.qr-locale-trigger {
    min-width: 138px;
    justify-content: flex-start;
    gap: 8px;
    border: 1px solid var(--qr-border);
    background: #fff;
    color: var(--qr-navy);
}

.qr-locale-trigger::after {
    margin-left: auto;
}

.qr-locale-flag,
.qr-locale-option-flag,
.qr-language-select-flag {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
}

.qr-locale-flag {
    font-size: 18px;
}

.qr-locale-current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-locale-iso {
    color: var(--qr-muted);
    font-size: 10px;
    font-weight: 800;
}

.qr-locale-menu {
    min-width: 210px;
    padding: 7px;
    border-color: var(--qr-border);
    border-radius: 12px;
    box-shadow: var(--qr-shadow);
}

.qr-locale-option {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 8px;
}

.qr-locale-option.active,
.qr-locale-option:active {
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
}

.qr-locale-option-flag {
    font-size: 19px;
}

.qr-locale-option-name {
    font-weight: 700;
}

.qr-locale-option small {
    color: var(--qr-muted);
    font-size: 10px;
    font-weight: 800;
}

.qr-language-select-shell {
    position: relative;
}

.qr-language-select-shell .form-select {
    padding-left: 48px;
}

.qr-language-select-flag {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    pointer-events: none;
    transform: translateY(-50%);
    font-size: 20px;
}

[dir="rtl"] .qr-language-select-shell .form-select {
    padding-right: 48px;
    padding-left: 36px;
}

[dir="rtl"] .qr-language-select-flag {
    right: 14px;
    left: auto;
}

/* Explicit review visibility switch */
.qr-review-status-control {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 15px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm);
    background: #f8fafc;
}

.qr-review-status-control .form-check {
    flex: 0 0 auto;
    margin: 0;
    padding-left: 3.2rem;
}

.qr-review-status-control .form-check-input {
    width: 2.8rem;
    height: 1.45rem;
    margin-left: -3.2rem;
    cursor: pointer;
}

.qr-review-status-copy strong,
.qr-review-status-copy small {
    display: block;
}

.qr-review-status-copy small {
    margin-top: 3px;
    color: var(--qr-muted);
}

/* Business dashboard rating */
.qr-rating-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
}

.qr-rating-stars {
    position: relative;
    display: inline-block;
    color: #dce2e8;
    font-size: 19px;
    letter-spacing: 1px;
    line-height: 1;
}

.qr-rating-stars-fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    color: #f5a623;
    white-space: nowrap;
}

.qr-rating-score {
    color: var(--qr-navy);
    font-size: 13px;
    font-weight: 850;
}

/* Payment status styling */
.qr-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
}

.qr-payment-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.qr-payment-detail-item {
    padding: 13px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm);
    background: #f8fafc;
}

.qr-payment-detail-item span,
.qr-payment-detail-item strong {
    display: block;
}

.qr-payment-detail-item span {
    margin-bottom: 4px;
    color: var(--qr-muted);
    font-size: 11px;
    font-weight: 700;
}

.qr-payment-detail-item strong {
    color: var(--qr-navy);
}

@media (max-width: 575px) {
    .qr-locale-trigger {
        min-width: 48px;
    }

    .qr-locale-current,
    .qr-locale-iso {
        display: none;
    }

    .qr-payment-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* QRMenuGo 2026 final panel polish */
.content-page .content {
    padding-bottom: 48px;
}
.content-page .container-fluid {
    padding-bottom: 24px;
}
.qr-actions-column {
    width: 156px;
}
.qr-icon-actions {
    gap: 6px;
}
.qr-icon-button {
    width: 34px;
    height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    flex: 0 0 34px;
}
.qr-icon-button svg {
    width: 15px;
    height: 15px;
}
.qr-review-card-separated {
    padding: 18px 0;
    border: 0 !important;
    border-bottom: 1px solid var(--qr-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
}
.qr-review-card-separated:first-child {
    padding-top: 0;
}
.qr-review-card-separated:last-child {
    padding-bottom: 0;
    border-bottom: 0 !important;
}
.qr-review-row-separated {
    padding: 14px 0;
    border-bottom: 1px solid var(--qr-border);
}
.qr-review-row-separated:first-child {
    padding-top: 0;
}
.qr-review-row-separated:last-child {
    border-bottom: 0;
}
.qr-switch-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid var(--qr-border);
    border-radius: 12px;
    background: #f8fafc;
}
.qr-switch-card .form-check-input {
    float: none;
    margin: 0;
    width: 2.8rem;
    height: 1.45rem;
    flex: 0 0 auto;
}
.qr-switch-card .form-check-label strong,
.qr-switch-card .form-check-label small {
    display: block;
}
.qr-switch-card .form-check-label small {
    margin-top: 3px;
    color: var(--qr-muted);
    font-weight: 500;
}
.qr-plan-hero {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #092f27, #0d9f65);
    color: #fff;
}
.qr-plan-hero:after {
    content: "";
    position: absolute;
    right: -55px;
    top: -75px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.qr-plan-hero .text-muted,
.qr-plan-hero .secondary {
    color: rgba(255, 255, 255, 0.74) !important;
}
.qr-plan-hero .badge {
    position: relative;
    z-index: 1;
}
.qr-review-card .actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-soft-primary {
    background: rgba(13, 159, 101, 0.1);
    color: #087549;
    border-color: transparent;
}
.btn-soft-primary:hover {
    background: #0d9f65;
    color: #fff;
}
.btn-soft-danger {
    background: rgba(220, 53, 69, 0.09);
    color: #b42318;
    border-color: transparent;
}
.btn-soft-danger:hover {
    background: #dc3545;
    color: #fff;
}
.qr-locale-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 150px;
}
.qr-locale-select .form-select {
    cursor: pointer;
    padding-inline-start: 38px;
}
.qr-locale-select-flag {
    position: absolute;
    inset-inline-start: 12px;
    z-index: 2;
    pointer-events: none;
    font-size: 18px;
}
.app-menu .sub-menu .menu-link {
    padding-inline-start: 54px;
}
.app-menu .sub-menu .menu-link.active {
    color: var(--qr-brand);
    font-weight: 750;
}
.table td:last-child .actions {
    min-width: max-content;
}
.footer {
    position: relative;
}
.card-footer:last-child {
    border-radius: 0 0 var(--qr-radius) var(--qr-radius);
}

/* Platform settings */
.qr-setting-switch {
    padding: 20px;
    border: 1px solid var(--qr-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #f7fbf9);
}
.qr-setting-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    background: rgba(13, 159, 101, 0.12);
    color: var(--qr-brand);
    font-size: 22px;
}
.form-switch-lg .form-check-input {
    width: 3.2rem;
    height: 1.65rem;
    cursor: pointer;
}
.qr-current-plan-card {
    overflow: hidden;
    border: 1px solid rgba(13, 159, 101, 0.22);
    box-shadow: 0 18px 45px rgba(20, 49, 44, 0.08);
}
.qr-current-plan-card .card-body {
    padding: 24px;
}
.qr-current-plan-card .qr-plan-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.qr-current-plan-card .qr-plan-meta > div {
    padding: 14px;
    border-radius: 12px;
    background: #f7faf9;
    border: 1px solid var(--qr-border);
}

/* QRMenuGo unified controls and professional payment layout */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}
.btn svg,
.btn [data-feather] {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}
.qr-icon-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 9px;
}
.qr-icon-button svg {
    width: 16px;
    height: 16px;
}
.qr-icon-button-active svg,
.qr-icon-button-active [data-feather="award"] {
    fill: currentColor;
    stroke: currentColor;
}
.qr-actions-column,
.table th.qr-actions-column,
.table td.qr-actions-column {
    text-align: center !important;
    vertical-align: middle !important;
}
.qr-payment-info,
.qr-payment-report-panel {
    height: 100%;
    padding: 15px;
    border: 1px solid var(--qr-border);
    border-radius: 13px;
    background: #f8fafc;
}
.qr-payment-info span {
    display: block;
    margin-bottom: 5px;
    color: var(--qr-muted);
    font-size: 11px;
    font-weight: 700;
}
.qr-payment-info strong {
    display: block;
    color: var(--qr-navy);
    font-size: 14px;
}
.qr-order-card {
    border: 1px solid var(--qr-border);
    box-shadow: 0 8px 26px rgba(20, 49, 44, 0.05);
}
.qr-payment-report-panel {
    background: #fbfdfc;
}
.qr-purchase-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--qr-border);
    transition:
            transform 0.2s,
            box-shadow 0.2s;
}
.qr-purchase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(20, 49, 44, 0.09);
}
.qr-purchase-card-preferred {
    box-shadow: 0 14px 34px rgba(13, 159, 101, 0.12);
}
.qr-preferred-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    background: var(--qr-brand);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.qr-preferred-badge svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}
.qr-review-card-separated .actions-row {
    padding-top: 0 !important;
    border-top: 0 !important;
}
@media (max-width: 767px) {
    .qr-order-card .text-lg-end {
        text-align: start !important;
    }
    .qr-payment-report-panel {
        padding: 13px;
    }
}

/* QRMenuGo v5 shared panel refinements */
.qr-featured-badge {
    background: #11b981 !important;
    color: #fff !important;
    border: 1px solid #11b981 !important;
}
.qr-icon-actions .qr-icon-button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}
.qr-icon-actions .qr-icon-button svg,
.qr-icon-actions .qr-icon-button i {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
}
.qr-submenu-icon {
    width: 24px !important;
    min-width: 24px !important;
    margin-right: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.qr-submenu-icon i {
    font-size: 15px !important;
}
.qr-locale-select.qr-topbar-locale {
    display: inline-flex;
    align-items: center;
    min-width: 128px;
    margin: 0;
}
.qr-locale-select.qr-topbar-locale .form-select {
    height: 36px;
    min-height: 36px;
    border-radius: 9px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 2.15rem;
    font-size: 0.82rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.qr-locale-select.qr-topbar-locale .qr-locale-select-flag {
    left: 0.65rem;
    font-size: 1rem;
}
.qr-campaign-list {
    max-height: 690px;
    overflow: auto;
    padding-right: 4px;
}
.qr-campaign-list-item {
    padding: 18px 0;
    border-bottom: 1px solid #edf1f5;
}
.qr-campaign-list-item:first-child {
    padding-top: 0;
}
.qr-campaign-list-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.qr-campaign-status {
    min-width: 92px;
    text-align: center;
}
.qr-business-reply {
    border-left: 3px solid #11b981;
    background: #f7f6ff;
    border-radius: 0 10px 10px 0;
    padding: 12px 14px;
}
.qr-review-card-separated {
    padding: 18px 0;
    border-bottom: 1px solid #e8edf3;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.qr-review-card-separated:first-child {
    padding-top: 0;
}
.qr-review-card-separated:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.rating-wrap {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}
.rating-number,
.qr-rating-score {
    display: none !important;
}
.qr-campaign-thumb {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--qr-border);
    background: #f2f5f4;
}
@media (max-width: 575.98px) {
    .qr-campaign-thumb {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }
}

/* QRMenuGo v6 — panel tutarlılığı ve mobil taşma koruması */
.app-menu .sub-menu .menu-link {
    padding-inline-start: 20px !important;
}
.qr-menu-thumb.small,
.qr-menu-thumb.small img {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px;
    object-fit: cover !important;
}
.modal .modal-dialog {
    max-height: calc(100vh - 1.5rem);
}
.modal .modal-content {
    max-height: calc(100vh - 1.5rem);
    overflow: hidden;
}
.modal .modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
}
.qr-admin-review-reply {
    padding: 10px 12px;
    border-inline-start: 3px solid var(--qr-brand);
    border-radius: 8px;
    background: #f6faf8;
    max-width: 620px;
}
.qr-translation-key {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid #e4e9e6;
    border-radius: 7px;
    background: #f7f9f8;
    color: #315248;
    font-size: 12px;
    line-height: 1.3;
    word-break: break-all;
    white-space: normal;
}
.qr-translation-source {
    max-width: 520px;
    line-height: 1.35;
}
.qr-preferred-slot {
    min-height: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.qr-preferred-slot.is-placeholder {
    visibility: hidden;
}
@media (max-width: 767.98px) {
    .content-page .container-fluid {
        padding-inline: 12px !important;
    }
    .card-header,
    .card-body,
    .card-footer {
        padding-inline: 14px;
    }
    .qr-filter-card {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    .table-responsive {
        max-width: 100vw;
    }
    .modal .modal-dialog {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
    .modal .modal-content {
        max-height: calc(100vh - 1rem);
    }
}

/* v8 · Şube çalışma saatleri ve konum alanları */
.qr-opening-hours-box {
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    padding: 18px;
    background: #fbfcfe;
}
.qr-opening-hours-grid {
    display: grid;
    gap: 8px;
}
.qr-opening-hours-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(250px, 1.3fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid #edf0f4;
    border-radius: 10px;
    background: #fff;
}
.qr-opening-hours-row.is-closed {
    background: #f8f9fb;
    color: #8b93a1;
}
.qr-opening-time {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qr-opening-time .form-control {
    min-width: 105px;
}
@media (max-width: 767.98px) {
    .qr-opening-hours-row {
        grid-template-columns: 1fr;
    }
    .qr-opening-time {
        width: 100%;
    }
    .qr-opening-time .form-control {
        min-width: 0;
        flex: 1;
    }
}

/* v8 · Payment request cards always follow the full dashboard content width. */
.qr-payment-request-card {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.qr-renewal-box {
    padding: 16px;
    border: 1px solid rgba(13, 159, 101, 0.18);
    background: linear-gradient(135deg, #f6fbf8, #fff);
    border-radius: 14px;
}
.qr-renewal-box .btn {
    white-space: nowrap;
}

/* QRMenu Go v11 — account portals, company verification and package polish */
.qr-auth-portal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    background: #f1f4f8;
    border-radius: 14px;
}
.qr-auth-portal-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #6c7584;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}
.qr-auth-portal-tab:hover {
    color: #08785d;
}
.qr-auth-portal-tab.is-active {
    background: #fff;
    color: #08785d;
    box-shadow: 0 5px 18px rgba(28, 39, 60, 0.08);
}
.qr-business-registration-box {
    padding: 20px;
    border: 1px solid #e5e9ef;
    border-radius: 16px;
    background: #f9fbfc;
}
.qr-business-registration-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(8, 120, 93, 0.1);
    color: #08785d;
    font-size: 20px;
    flex: 0 0 auto;
}
.qr-company-verification-state {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 14px;
    background: #f6f7f9;
}
.qr-company-verification-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e7eaee;
    color: #68717e;
    font-size: 20px;
    flex: 0 0 auto;
}
.qr-company-verification-state.is-verified {
    background: #eaf8f2;
}
.qr-company-verification-state.is-verified .qr-company-verification-icon {
    background: #08785d;
    color: #fff;
}
.qr-company-verification-state.is-pending {
    background: #fff8e6;
}
.qr-company-verification-state.is-pending .qr-company-verification-icon {
    background: #ffb020;
    color: #fff;
}
.qr-company-verification-state.is-rejected {
    background: #fff0f0;
}
.qr-company-verification-state.is-rejected .qr-company-verification-icon {
    background: #d9534f;
    color: #fff;
}
.qr-plan-title {
    display: inline-flex;
    align-items: center;
    background: #11b981;
    color: #fff !important;
    border-radius: 10px;
    padding: 7px 11px;
    line-height: 1.2;
}
.qr-plan-hero .qr-plan-title {
    font-size: 12px;
}
.qr-plan-title a {
    color: #fff !important;
}
@media (max-width: 575.98px) {
    .qr-auth-portal-tabs {
        grid-template-columns: 1fr;
    }
    .qr-business-registration-box {
        padding: 15px;
    }
}

/* QRMenu Go v11.4 · Global modal scroll standard
   Tüm Bootstrap modallarında başlık/alt aksiyonlar sabit kalır,
   içerik alanı masaüstü ve mobilde güvenli şekilde kaydırılır. */
.modal {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal .modal-dialog {
    width: auto;
    max-height: calc(100vh - 1.5rem) !important;
    max-height: calc(100dvh - 1.5rem) !important;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.modal .modal-content,
.modal form.modal-content {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    max-height: calc(100vh - 1.5rem) !important;
    max-height: calc(100dvh - 1.5rem) !important;
    overflow: hidden !important;
}

/* Bazı eski modallarda form .modal-content'in içinde ayrı wrapper olarak bulunuyor. */
.modal .modal-content > form:not(.modal-content) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.modal .modal-header,
.modal .modal-footer {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    background: inherit;
}

.modal .modal-body,
.modal .modal-content > form:not(.modal-content) > .modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Form elemanları ve dropdownlar modal genişliğini taşırmasın. */
.modal .modal-body img,
.modal .modal-body svg,
.modal .modal-body video,
.modal .modal-body canvas,
.modal .modal-body iframe,
.modal .modal-body .table-responsive {
    max-width: 100%;
}

.modal .modal-body textarea {
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .modal {
        padding-right: 0 !important;
    }

    .modal .modal-dialog,
    .modal .modal-dialog.modal-dialog-centered,
    .modal .modal-dialog.modal-dialog-scrollable {
        width: calc(100% - 1rem) !important;
        max-width: none !important;
        min-height: 0 !important;
        max-height: calc(100vh - 1rem) !important;
        max-height: calc(100dvh - 1rem) !important;
        margin: 0.5rem auto !important;
        align-items: flex-start !important;
        top: 15%;
    }

    .modal .modal-content,
    .modal form.modal-content {
        width: 100%;
        max-height: calc(100vh - 1rem) !important;
        max-height: calc(100dvh - 1rem) !important;
        border-radius: 14px;
    }

    .modal .modal-header {
        padding: 14px 15px;
    }

    .modal .modal-body {
        padding: 15px;
    }

    .modal .modal-footer {
        gap: 8px;
        padding: 12px 15px;
        flex-wrap: wrap;
    }

    .modal .modal-footer .btn {
        max-width: 100%;
    }
}

@media (max-width: 430px) {
    .modal .modal-dialog,
    .modal .modal-dialog.modal-dialog-centered,
    .modal .modal-dialog.modal-dialog-scrollable {
        width: calc(100% - 0.75rem) !important;
        max-height: calc(100vh - 0.75rem) !important;
        max-height: calc(100dvh - 0.75rem) !important;
        margin: 0.375rem auto !important;
    }

    .modal .modal-content,
    .modal form.modal-content {
        max-height: calc(100vh - 0.75rem) !important;
        max-height: calc(100dvh - 0.75rem) !important;
        border-radius: 12px;
    }

    .modal .modal-footer {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .modal .modal-footer .btn {
        width: 100%;
        margin: 0 !important;
    }
}

textarea.form-control {
    resize: none;
}

@media (max-width: 799px) {
    .auth-fluid .auth-fluid-form-box {
        padding: 0px;
    }
    .auth-fluid-pages .qr-auth-toolbar {
        position: relative;
        top: 0px;
        margin: auto;
    }
    html[data-layout-mode=detached]:not([data-layout=horizontal]) body:not(.auth-fluid-pages){
        margin: 0px;
    }
}


.footer .container-fluid {
    padding-bottom: 0px;
}
/* Plan pricing: real reference price + current price */
.qr-purchase-price-box .qr-old-price del {
    margin-left: 0.35rem;
    text-decoration-thickness: 2px;
}

.qr-purchase-price-box .qr-dynamic-price {
    color: var(--qr-primary, #10261d);
}

.qr-purchase-price-box .qr-dynamic-price .qr-old-price-inline {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    margin-left: 0.35rem;
    color: #8a9690;
    font-size: 0.56em;
    font-weight: 700;
    line-height: 1;
    text-decoration-color: #d85858;
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
    white-space: nowrap;
}

.qr-purchase-price-box .qr-dynamic-price .qr-old-price-inline[hidden] {
    display: none !important;
}
