﻿/* Uğra Kafe theme, built on the shared Uğra look (ugra/ugra.css). Change colours there to restyle every Uğra screen. */
@import url("ugra/ugra.css");

:root {
    /* The cafe screens' own names, pointing at the Uğra colours */
    --gp-gold: var(--u-cini);
    --gp-gold-dark: #1b3585;
    --gp-ink: var(--u-ink);
    --gp-ink-soft: var(--u-soluk);
    --gp-bg: var(--u-kagit);
    --gp-border: var(--u-cizgi);
    --gp-radius: var(--u-r-kart);

    --bs-primary: #2445a8;
    --bs-primary-rgb: 36, 69, 168;
    --bs-link-color: #2445a8;
    --bs-link-color-rgb: 36, 69, 168;
    --bs-link-hover-color: #1b3585;
    --bs-body-font-family: var(--u-metin);
    --bs-success: #0e9f9a;
    --bs-success-rgb: 14, 159, 154;
    --bs-warning: #e69a28;
    --bs-warning-rgb: 230, 154, 40;
    --bs-danger: #c4372b;
    --bs-danger-rgb: 196, 55, 43;
}

body {
    background: var(--gp-bg);
    color: var(--gp-ink);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h4, h5 {
    font-weight: 600;
}

/* Sidebar */
.sidebar {
    background: var(--gp-ink) !important;
    background-image: none !important;
}

    .sidebar .top-row {
        background: rgba(0, 0, 0, 0.25) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .sidebar .navbar-brand {
        color: var(--gp-gold) !important;
        font-weight: 800;
        letter-spacing: 0.03em;
    }

.nav-section {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 1.75rem 0.3rem;
}

.sidebar .nav-item {
    padding: 0 0.75rem 0.15rem;
    font-size: 0.92rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 2.5rem;
    padding: 0 0.9rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78) !important;
}

    .sidebar .nav-link i {
        font-size: 1.1rem;
        width: 1.25rem;
        text-align: center;
    }

    .sidebar .nav-link:hover {
        background: rgba(255, 255, 255, 0.07) !important;
        color: #fff !important;
    }

    .sidebar .nav-link.active {
        background: rgba(36, 69, 168, 0.18) !important;
        color: var(--gp-gold) !important;
    }

/* Top bar */
main .top-row {
    background: #fff !important;
    border-bottom: 1px solid var(--gp-border) !important;
    gap: 0.75rem;
}

/* Cards and tables */
.card {
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    box-shadow: 0 1px 2px rgba(19, 32, 63, 0.04), 0 4px 12px rgba(19, 32, 63, 0.04);
}

    .card[style*="cursor: pointer"] {
        transition: transform 0.12s, box-shadow 0.12s;
    }

        .card[style*="cursor: pointer"]:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(19, 32, 63, 0.1);
        }

.table {
    --bs-table-bg: transparent;
}

    .table > thead th {
        color: var(--gp-ink-soft);
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

/* Buttons and inputs */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary {
    --bs-btn-color: var(--gp-ink);
    --bs-btn-bg: var(--gp-gold);
    --bs-btn-border-color: var(--gp-gold);
    --bs-btn-hover-color: var(--gp-ink);
    --bs-btn-hover-bg: var(--gp-gold-dark);
    --bs-btn-hover-border-color: var(--gp-gold-dark);
    --bs-btn-active-color: var(--gp-ink);
    --bs-btn-active-bg: var(--gp-gold-dark);
    --bs-btn-active-border-color: var(--gp-gold-dark);
    --bs-btn-disabled-color: var(--gp-ink);
    --bs-btn-disabled-bg: var(--gp-gold);
    --bs-btn-disabled-border-color: var(--gp-gold);
}

.btn-outline-primary {
    --bs-btn-color: var(--gp-gold-dark);
    --bs-btn-border-color: var(--gp-gold);
    --bs-btn-hover-color: var(--gp-ink);
    --bs-btn-hover-bg: var(--gp-gold);
    --bs-btn-hover-border-color: var(--gp-gold);
    --bs-btn-active-color: var(--gp-ink);
    --bs-btn-active-bg: var(--gp-gold-dark);
    --bs-btn-active-border-color: var(--gp-gold-dark);
}

.form-control,
.form-select {
    border-radius: 8px;
    border-color: #d9e0ec;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--gp-gold);
        box-shadow: 0 0 0 0.2rem rgba(36, 69, 168, 0.2);
    }

.progress-bar {
    background-color: var(--gp-gold);
}

/* Login screen */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: radial-gradient(circle at top, #233a78, #0f1a33);
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.login-logo {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    color: var(--gp-ink);
}

    .login-logo span {
        color: var(--gp-gold);
    }
/* Tables page */
.gp-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gp-chip {
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
}

    .gp-chip strong {
        margin-left: 0.35rem;
    }

.gp-area-title {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin: 1.5rem 0 0.75rem;
}

    .gp-area-title h4 {
        margin: 0;
    }

    .gp-area-title span {
        color: var(--gp-ink-soft);
        font-size: 0.85rem;
    }

.gp-table-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 135px;
    height: 100%;
    padding: 1rem 1rem 1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.12s, box-shadow 0.12s;
}

    .gp-table-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(19, 32, 63, 0.1);
    }

    .gp-table-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background: #d9e0ec;
    }

    .gp-table-card.is-busy::before {
        background: #0e9f9a;
    }

    .gp-table-card.is-warn::before {
        background: #e69a28;
    }

    .gp-table-card.is-alert::before {
        background: #c4372b;
    }

.gp-table-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.gp-table-amount {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0.3rem 0 0.2rem;
}

.gp-table-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--gp-ink-soft);
}

.gp-table-note {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    font-style: italic;
}

.gp-ready {
    margin-top: 0.6rem;
    padding: 0.5rem 0.6rem;
    background: #e4eafb;
    border-radius: 8px;
    font-size: 0.8rem;
}

/* Order page */
.gp-order-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gp-category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

    .gp-category-tabs .btn {
        white-space: nowrap;
        border-radius: 999px;
    }

.gp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
}

.gp-product-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 88px;
    padding: 0.7rem 0.75rem;
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: 10px;
    text-align: left;
    color: var(--gp-ink);
    transition: border-color 0.1s, transform 0.1s;
}

    .gp-product-tile:hover:not(:disabled) {
        border-color: var(--gp-gold);
    }

    .gp-product-tile:active:not(:disabled) {
        transform: scale(0.97);
    }

    .gp-product-tile:disabled {
        opacity: 0.45;
    }

.gp-product-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.gp-product-price {
    font-weight: 700;
}

.gp-product-sub {
    font-size: 0.72rem;
    color: var(--gp-ink-soft);
}

.gp-receipt {
    position: sticky;
    top: 1rem;
}

.gp-receipt-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--gp-border);
}

.gp-qty {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

    .gp-qty .btn {
        width: 32px;
        height: 32px;
        padding: 0;
    }

.gp-total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .gp-receipt {
        position: static;
    }

    .gp-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
/* Number cards (dashboard, cash, reports) */
.card.text-center .card-body > p.text-muted:first-child {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card.text-center h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    font-variant-numeric: tabular-nums;
}

.card.border-success {
    border-color: #b9e6e2 !important;
    background: linear-gradient(180deg, #dcf4f2, #fff);
}

.card.border-danger {
    border-color: #f1c4bf !important;
    background: linear-gradient(180deg, #f9e1de, #fff);
}

.card.border-primary {
    border-color: #f2c98a !important;
    background: linear-gradient(180deg, #fcefd9, #fff);
}

.card.border-warning {
    border-color: #f2c98a !important;
}

/* Tables sitting directly on a page get a white panel */
article.content > table.table,
article.content > .table-responsive > table.table,
article.content .row > [class*="col"] > table.table {
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.table > :not(caption) > * > * {
    padding: 0.65rem 0.85rem;
}

.table > tbody > tr:last-child > * {
    border-bottom: 0;
}

.table td,
.table th {
    font-variant-numeric: tabular-nums;
}

/* Smaller details */
.alert {
    border-radius: 10px;
}

.badge {
    border-radius: 6px;
    font-weight: 600;
}

article.content h5 {
    margin-top: 0.5rem;
}

article.content {
    padding-bottom: 2rem;
}

/* Keep the top bar, including the sign-out button, on narrow screens */
main .top-row {
    display: flex !important;
}

@media (max-width: 640.98px) {
    article.content {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    h1 {
        font-size: 1.45rem;
    }

    .card.text-center h3 {
        font-size: 1.3rem;
    }

    main .top-row {
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 0.85rem;
    }
}
/* Phone layout */
@media (max-width: 640.98px) {
    .sidebar .top-row {
        height: 3.5rem;
        background: var(--gp-ink) !important;
    }

    .sidebar .navbar-brand {
        font-size: 1.35rem;
    }

    /* Menu button: white lines on a light square, tea colour while open */
    .navbar-toggler {
        background-color: rgba(255, 255, 255, 0.12) !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-width='2.5' d='M5 8h20M5 15h20M5 22h20'/%3e%3c/svg%3e") !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        border-radius: var(--u-r-oge, 10px) !important;
        width: 3rem !important;
        opacity: 1 !important;
    }

        .navbar-toggler:checked {
            background-color: var(--u-cay) !important;
            border-color: var(--u-cay) !important;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2313203f' stroke-linecap='round' stroke-width='2.5' d='M8 8l14 14M22 8L8 22'/%3e%3c/svg%3e") !important;
        }

    main .top-row {
        height: auto !important;
        min-height: 3rem;
        flex-wrap: wrap;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}
/* Never scroll sideways; wide content wraps instead */
main,
article.content {
    min-width: 0;
    overflow-x: clip;
}

.gp-category-tabs {
    flex-wrap: wrap;
    overflow: visible;
}

/* Bill bar on the order page, stays visible while scrolling */
.gp-bill-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--gp-border);
    border-left: 5px solid var(--gp-gold);
    border-radius: var(--gp-radius);
    box-shadow: 0 4px 14px rgba(19, 32, 63, 0.08);
}

@media (min-width: 641px) {
    .gp-bill-bar {
        top: 3.75rem;
    }
}

.gp-bill-bar-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

    .gp-bill-bar-info .bi-receipt {
        font-size: 1.3rem;
        color: var(--gp-gold-dark);
    }

.gp-bill-total {
    font-size: 1.35rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.gp-added {
    animation: gp-pop 0.25s ease-out;
}

/* Bill popup */
.gp-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 23, 31, 0.55);
    animation: gp-fade 0.15s ease-out;
}

.gp-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    animation: gp-zoom 0.18s ease-out;
}

.gp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gp-border);
}

.gp-modal-body {
    padding: 0.5rem 1.25rem 1.25rem;
    overflow-y: auto;
}

@keyframes gp-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes gp-zoom {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gp-pop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
/* Order notifications, bottom right; each one drifts up and fades away */
.gp-toasts {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
    pointer-events: none;
}

.gp-toast {
    padding: 0.75rem 1rem;
    background: var(--gp-ink);
    color: #fff;
    border-left: 4px solid var(--gp-gold);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    animation: gp-toast-float 4.5s ease-in forwards;
}

.gp-toast-title {
    font-weight: 700;
    color: var(--gp-gold);
    margin-bottom: 2px;
}

.gp-toast-by {
    margin-top: 4px;
    font-size: 0.75rem;
    opacity: 0.6;
}

@keyframes gp-toast-float {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }

    8% {
        opacity: 1;
        transform: translateY(0);
    }

    60% {
        opacity: 1;
        transform: translateY(-12px);
    }

    100% {
        opacity: 0;
        transform: translateY(-90px);
    }
}

/* Phones have no room for them */
@media (max-width: 640.98px) {
    .gp-toasts {
        display: none;
    }
}
/* Long words and notes wrap instead of spilling out of their box */
.card-body,
.gp-receipt-line,
.gp-toast {
    overflow-wrap: anywhere;
}

.gp-prep-note {
    margin-bottom: 0.75rem;
    padding: 0.45rem 0.65rem;
    background: #fcefd9;
    border-left: 4px solid #e69a28;
    border-radius: 6px;
    font-weight: 600;
    white-space: pre-wrap;
}

/* Yes / No dialog that sits above the bill popup */
.gp-modal-backdrop.gp-confirm {
    z-index: 1060;
}

    .gp-modal-backdrop.gp-confirm .gp-modal {
        max-width: 400px;
    }
/* Tables screen: clickable summary chips and area reordering */
.gp-chip-button {
    cursor: pointer;
    color: var(--gp-ink);
    transition: background 0.15s, border-color 0.15s;
}

    .gp-chip-button:hover {
        border-color: var(--gp-gold);
    }

    .gp-chip-button.is-active {
        background: var(--gp-ink);
        border-color: var(--gp-ink);
        color: #fff;
    }

.gp-chip-ready {
    background: #e4eafb;
}

.gp-area-title {
    align-items: center;
    flex-wrap: wrap;
}

    .gp-area-title.is-moving {
        background: #fff;
        border: 1px dashed var(--gp-gold);
        border-radius: var(--gp-radius);
        padding: 0.4rem 0.6rem;
    }

.gp-area-move {
    display: inline-flex;
    gap: 0.35rem;
}

.gp-area-move-toggle {
    color: var(--gp-ink-soft);
    padding: 0 0.25rem;
}

    .gp-area-move-toggle:hover {
        color: var(--gp-gold-dark);
    }

/* Table screen: product search under the bill bar */
.gp-search {
    margin-bottom: 1rem;
}

.gp-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.gp-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    color: var(--gp-ink);
}

    .gp-search-item:hover:not(:disabled) {
        border-color: var(--gp-gold);
    }

    .gp-search-item:disabled {
        opacity: 0.5;
    }

/* Settings page */
.gp-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gp-border);
    cursor: pointer;
}

    .gp-setting:last-child {
        border-bottom: 0;
    }

    .gp-setting .form-switch .form-check-input {
        width: 2.6em;
        height: 1.4em;
        cursor: pointer;
    }

    .gp-setting .form-check-input:checked {
        background-color: var(--gp-gold);
        border-color: var(--gp-gold);
    }

.gp-settings-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 0;
    margin-top: 1rem;
    background: var(--gp-bg);
    border-top: 1px solid var(--gp-border);
}

/* Heatmap */
.gp-heat-cell {
    cursor: pointer;
}

    .gp-heat-cell:hover {
        outline: 2px solid var(--gp-gold);
        outline-offset: -2px;
    }

.gp-heat-now {
    outline: 2px solid var(--gp-ink);
    outline-offset: -2px;
}

.gp-heat-selected {
    outline: 3px solid var(--gp-gold);
    outline-offset: -3px;
}

.gp-heat-now-col {
    color: var(--gp-gold-dark);
}

.gp-heat-total {
    background: #f2f5fa !important;
    color: var(--gp-ink-soft);
}

/* Voice order */
.gp-voice-heard {
    background: #f2f5fa;
    border: 1px solid var(--gp-border);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

/* Customer app orders */
.gp-app-orders-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gp-ink);
    color: #fff;
    border-radius: var(--gp-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    text-decoration: none;
    animation: gp-pop 0.25s ease-out;
}

    .gp-app-orders-banner:hover {
        color: #fff;
        background: #1c2b52;
    }

    .gp-app-orders-banner > i:first-child {
        font-size: 1.4rem;
        color: var(--gp-gold);
    }

.gp-app-order {
    border-left: 4px solid var(--gp-gold);
}

/* A guest is calling the waiter or asking for the bill */
.gp-call-banner {
    background: #c4372b;
    margin-bottom: 0.5rem;
}

    .gp-call-banner:hover {
        background: #9e2b21;
    }

    .gp-call-banner > i:first-child {
        color: #fff;
        animation: gp-ring 1.2s ease-in-out infinite;
    }

@keyframes gp-ring {
    0%, 60%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-14deg); }
    20%, 40% { transform: rotate(14deg); }
}

@media (prefers-reduced-motion: reduce) {
    .gp-call-banner > i:first-child { animation: none; }
}

/* Table QR codes, printable */
.gp-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.gp-qr-card {
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    padding: 1rem;
    text-align: center;
    break-inside: avoid;
}

    .gp-qr-card img {
        width: 100%;
        max-width: 200px;
        aspect-ratio: 1;
        image-rendering: pixelated;
    }

.gp-qr-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gp-gold-dark);
}

    .gp-qr-brand span {
        color: var(--gp-ink);
    }

.gp-qr-table {
    font-size: 1.4rem;
    font-weight: 700;
}

.gp-qr-hint {
    font-size: 0.8rem;
    color: var(--gp-ink-soft);
}

/* Small menu and app QRs under a table's own code */
.gp-qr-extras {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--gp-border);
}

    .gp-qr-extras > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--gp-ink-soft);
    }

    .gp-qr-card .gp-qr-extras img {
        width: 72px;
        max-width: 72px;
    }

.gp-qr-code {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.15rem 0.75rem;
    border: 2px dashed var(--gp-gold);
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0.25em;
}

@media print {
    .sidebar, .top-row, .gp-no-print, .gp-toasts, .alert {
        display: none !important;
    }

    .page, main, article.content {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    @page {
        size: A4;
        margin: 10mm;
    }

    .gp-qr-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4mm;
    }

    .gp-qr-card {
        border: 1px dashed #999 !important;
        border-radius: 0 !important;
    }

    .gp-qr-card img {
        max-width: 50mm;
    }

    .gp-qr-card .gp-qr-extras img {
        width: 20mm;
        max-width: 20mm;
    }

    .gp-qr-grid.is-small .gp-qr-extras img {
        width: 14mm;
        max-width: 14mm;
    }

    /* Small: five across, about 38 x 52 mm each, cut along the dashed lines */
    .gp-qr-grid.is-small {
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
    }

        .gp-qr-grid.is-small .gp-qr-card {
            padding: 2mm;
        }

        .gp-qr-grid.is-small .gp-qr-card img {
            max-width: 30mm;
        }

    /* Colours on paper too */
    .gp-qr-card {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Small QR cards, also on screen so the preview matches the print */
@media screen {
    .gp-qr-grid.is-small {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }
}

    .gp-qr-grid.is-small .gp-qr-card {
        padding: 0.5rem;
    }

    .gp-qr-grid.is-small .gp-qr-card img {
        max-width: 120px;
    }

    .gp-qr-grid.is-small .gp-qr-brand {
        font-size: 0.8rem;
    }

    .gp-qr-grid.is-small .gp-qr-table {
        font-size: 0.95rem;
    }

    .gp-qr-grid.is-small .gp-qr-hint {
        font-size: 0.6rem;
    }

    .gp-qr-grid.is-small .gp-qr-code {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
        padding: 0 0.4rem;
        margin-top: 0.15rem;
    }

.gp-qr-card.is-wifi .gp-qr-brand {
    color: var(--gp-ink);
}

/* Wi-Fi share window: a QR big enough to scan from across the table */
.gp-wifi-qr {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    image-rendering: pixelated;
    border: 1px solid var(--gp-border);
    border-radius: 12px;
    background: #fff;
    padding: 8px;
}

.gp-wifi-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

/* New version of the staff app */
.gp-update-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    background: #fcefd9;
    border: 1px solid var(--gp-gold, #e69a28);
    border-radius: 12px;
}

    .gp-update-banner > i {
        font-size: 1.6rem;
        color: #8a5a10;
    }

.gp-update-progress {
    height: 6px;
    margin: 0.35rem 0 0.2rem;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
}

    .gp-update-progress > div {
        height: 100%;
        background: #e69a28;
        transition: width 0.2s;
    }

/* Bill: what the customer would get by spending a little more */
.gp-campaign-hint {
    margin-top: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    background: #fcefd9;
    color: #8a5a10;
    font-size: 0.85rem;
}

/* Settings: automatic backup */
.gp-backup-state {
    background: var(--bs-tertiary-bg, #f2f5fa);
    border-radius: var(--gp-radius);
    padding: 0.75rem 1rem;
}

/* Stok */
.gp-tabs .nav-link {
    color: var(--gp-ink);
}

    .gp-tabs .nav-link.active {
        background: var(--gp-ink);
        color: #fff;
    }

.gp-stock-table tr.is-low td {
    background: #f9e1de;
}

.gp-stock-action,
.gp-stock-table tr.gp-stock-action td {
    background: #f2f5fa;
}

/* Cihaz kontrolü */
.gp-device {
    border-left: 4px solid var(--gp-border);
}

    .gp-device.is-ok {
        border-left-color: #0e9f9a;
    }

    .gp-device.is-error {
        border-left-color: #c4372b;
    }

/* Reklam ve Pano */
.gp-howto {
    background: #fbf6e6;
    border-color: var(--gp-gold);
}

.gp-screen-url code {
    font-size: 0.85rem;
    word-break: break-all;
}

.gp-swatch {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
}

    .gp-swatch.is-on {
        border-color: var(--gp-ink);
        box-shadow: 0 0 0 2px #fff inset;
    }

.gp-slide-preview {
    aspect-ratio: 16 / 9;
    border-radius: var(--gp-radius);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

    .gp-slide-preview.is-off {
        opacity: 0.45;
    }

.gp-slide-title {
    font-size: 1.3rem;
    font-weight: 800;
}

.gp-slide-text {
    font-size: 0.9rem;
}


/* ---- Uğra ---- */

body { font-family: var(--u-metin); }

h1, h2, h3, .h1, .h2, .h3, .login-logo, .gp-money, .display-6 {
    font-family: var(--u-baslik);
    letter-spacing: -0.02em;
}

/* White text on the blue buttons */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #fff;
}

.btn-outline-primary {
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}

.btn { border-radius: var(--u-r-oge); }
.form-control, .form-select { border-radius: var(--u-r-oge); }

/* The menu: the chosen page is white with a tea-coloured edge */
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.09) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--u-cay);
    font-weight: 600;
}

.sidebar .navbar-brand { color: #fff !important; letter-spacing: normal; }
.sidebar .navbar-brand .u-wordmark { font-size: 1.6rem; }
.sidebar .navbar-brand small { font-family: var(--u-metin); font-weight: 500; font-size: 0.85rem; color: #8f9bb8; margin-left: 0.35rem; }

/* Section names and table headings in normal letters */
.nav-section { text-transform: none; letter-spacing: 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }
.table > thead th { text-transform: none; letter-spacing: 0; font-size: 0.8rem; }

/* Sign-in */
.login-logo { color: var(--u-ink); }
.login-logo .u-wordmark { font-size: 2.6rem; }
.login-logo small { display: block; font-family: var(--u-metin); font-size: 0.95rem; font-weight: 500; color: var(--u-soluk); margin-top: 0.35rem; }

/* ---- Uğra Firma: new account and the booking panel ---- */
.login-create { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--u-cizgi); text-align: center; color: var(--u-soluk); font-size: .9rem; }
.activate-code { font-family: var(--u-baslik); letter-spacing: .06em; text-transform: uppercase; }
.activate-firm { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; margin-bottom: .9rem; border-radius: 14px; background: #e3e9f7; }
.activate-kind { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--u-cini); color: #fff; font-size: 1.2rem; }
.booking-panel { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: var(--u-kagit); }
