@charset "utf-8";

*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: #f0fdf4 !important;
    font-family: 'Inter', sans-serif;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.sidebar-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #E2E8F0;
}

.toggle-switch:checked + .toggle-bg {
    background-color: #006e2f;
}

.toggle-switch:checked + .toggle-bg .toggle-dot {
    transform: translateX(1.5rem);
}

.top, .logOut, .topText, .topBar { display: none !important; }

.tableCard, .legacy-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #bccbb9;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.tableTitle {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0b1c30;
    margin: 0;
}

.tableRest, .tableOrders, .table, .tableMenu {
    width: 100%;
    border-collapse: collapse;
}

.tableRest td, .tableOrders td, .tableOrders th, .table td, .table th, .tableMenu td, .tableMenu th {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #bccbb9;
    font-size: 0.875rem;
}

.tableOrders thead, .tableRest thead, .tableMenu thead {
    background: #eff4ff;
}

.tableOrders tbody tr:hover td, .table tbody tr:hover td, .tableMenu tbody tr:hover td {
    background: #eff4ff;
}

.flexGroup {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.SaveBtn, .MainBtn, .addNew, .PrimaryBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    background: #006e2f;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.SaveBtn:hover, .MainBtn:hover, .addNew:hover, .PrimaryBtn:hover {
    background: #005321;
}

.CancelBtn, .SecondaryBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #006e2f;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid #bccbb9;
    cursor: pointer;
}

.switch { position: relative; display: inline-block; width: 2.75rem; height: 1.5rem; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #6d7b6c; transition: 0.25s; }
.slider:before {
    position: absolute; content: ""; height: 1.125rem; width: 1.125rem;
    left: 0.1875rem; bottom: 0.1875rem; background: white; transition: 0.25s;
}
input:checked + .slider { background: #006e2f; }
input:checked + .slider:before { transform: translateX(1.25rem); }
.slider.round { border-radius: 999px; }
.slider.round:before { border-radius: 50%; }

.popupBg {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(11, 28, 48, 0.45); backdrop-filter: blur(4px);
}

.popupWindow, .popupWindow50, .popupWindowMenu, .popupWindowTime {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
    background: #ffffff; border: 1px solid #bccbb9;
    border-radius: 0.75rem; box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    padding: 1.5rem; max-width: calc(100vw - 2rem);
}

.popupTitle { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.popupInputTitle { font-size: 0.8125rem; font-weight: 600; color: #3d4a3d; margin: 0.75rem 0 0.375rem; }

input[type="text"], input[type="password"], input[type="date"], input[type="number"],
select, textarea, .inputText, .select25, .searchText, .textareaPop, .tarihler {
    padding: 0.625rem 0.875rem;
    border: 1px solid #bccbb9; border-radius: 0.5rem;
    background: #eff4ff; color: #0b1c30;
    font-family: inherit; font-size: 0.875rem;
}

input:focus, select:focus, textarea:focus {
    outline: none; border-color: #006e2f;
    box-shadow: 0 0 0 3px rgba(0, 110, 47, 0.15);
}

.tabTableActive, .tabTableInactive {
    padding: 0.5rem 1rem; border-radius: 0.5rem;
    font-size: 0.875rem; font-weight: 700; cursor: pointer;
}

.tabTableActive {
    background: #ffffff; color: #006e2f;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    border: 1px solid #bccbb9;
}

.tabTableInactive { color: #3d4a3d; }

.search80, .searchGroup {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; background: #eff4ff;
    border: 1px solid #bccbb9; border-radius: 999px;
}

.logoCompany { max-height: 2rem; object-fit: contain; }
canvas { max-width: 100%; }

.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #bccbb9; border-radius: 10px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #bccbb9; border-radius: 999px; }

.ui-widget { font-family: 'Inter', sans-serif !important; }

.panel-kanban-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.order-card-shadow {
    box-shadow: 0px 4px 12px rgba(15, 23, 42, 0.05);
}

.order-kanban-card {
    padding: 1.125rem 1.25rem;
}

.order-kanban-card .order-card-id {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
}

.order-kanban-card .order-card-platform {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.3rem 0.55rem;
    border-radius: 0.375rem;
}

.order-kanban-card .order-card-customer {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0b1c30;
    margin-bottom: 0.375rem;
}

.order-kanban-card .order-card-meta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.625rem;
}

.order-kanban-card .order-card-meta {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.order-kanban-card .order-card-meta-time {
    color: #475569;
}

.order-kanban-card .order-card-meta-courier {
    color: #006e2f;
}

.order-kanban-card .order-card-meta-courier-pending {
    color: #64748b;
}

.order-kanban-card .order-card-items {
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #475569;
    margin-bottom: 1rem;
}

.order-kanban-card .order-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #006e2f;
}

.order-kanban-card .order-card-payment {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.order-kanban-card .order-card-elapsed {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
}

.order-kanban-card .order-card-elapsed .material-symbols-outlined {
    font-size: 1rem !important;
}

.order-kanban-card .order-card-elapsed-warn {
    color: #d97706;
}

.order-kanban-card .order-card-status {
    font-size: 0.75rem;
    padding: 0.3rem 0.625rem;
}

.order-kanban-card .order-card-status .material-symbols-outlined {
    font-size: 1rem !important;
}

.order-kanban-card .order-card-approve-zone {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 2rem;
}

.order-kanban-card .order-card-approve-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.order-kanban-card .order-card-approve-trigger .material-symbols-outlined {
    font-size: 1.25rem !important;
}

.order-kanban-card .order-card-approve-trigger:hover,
.order-kanban-card .order-card-approve-zone:has(.order-card-approve-popover.is-open) .order-card-approve-trigger {
    background: rgba(0, 110, 47, 0.08);
    color: #006e2f;
}

.order-kanban-card .order-card-approve-popover {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    min-width: 8.5rem;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.order-kanban-card .order-card-approve-popover.is-open {
    display: block;
}

.order-kanban-card .order-card-approve-popover .order-btn-approve {
    width: 100%;
    border: none;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #006e2f;
    background: rgba(0, 110, 47, 0.1);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.order-kanban-card .order-card-approve-popover .order-btn-approve:hover {
    background: #006e2f;
    color: #fff;
}

.order-platform-badge {
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.kanban-cards .order-card {
    flex-shrink: 0;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#orderTablesSource {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.legacy-panel .tableCard,
.legacy-panel > .table,
.legacy-panel .table {
    background: #ffffff;
    border: 1px solid #bccbb9;
    border-radius: 1rem;
    padding: 0.5rem;
}

.chart-wrap select.dSecim {
    position: static;
    margin-left: auto;
}

@media (min-width: 1024px) {
    .panel-kanban-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.panel-kanban-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-kanban-col .tableCard {
    flex: 1;
    overflow: auto;
    max-height: calc(100vh - 280px);
}

.chart-wrap {
    position: relative;
    height: 360px;
    width: 100%;
}

.chart-wrap select.dSecim {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    min-width: 140px;
}

.orders-page main {
    background: #f8f9ff;
}

.orders-footer {
    margin-bottom: 0;
}

/* Sipariş Detay Modal */
.order-details-backdrop {
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.order-details-modal {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(720px, calc(100vw - 2rem));
    max-height: min(90vh, 900px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #bccbb9;
    border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    padding: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.order-details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5eeff;
    margin-bottom: 1rem;
}

.order-details-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.order-details-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid #f28d07;
    border-radius: 0.625rem;
    background: #ffffff;
    color: #b45309;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.order-details-edit-btn:hover {
    background: #fff7ed;
    border-color: #ea580c;
    color: #9a3412;
}

.order-details-edit-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

.order-details-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid #006e2f;
    border-radius: 0.625rem;
    background: #006e2f;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.order-details-print-btn:hover {
    background: #005321;
    border-color: #005321;
}

.order-details-print-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

.order-details-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #006e2f;
    line-height: 1.3;
}

.order-details-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #3d4a3d;
}

.order-details-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 9999px;
    background: #eff4ff;
    color: #3d4a3d;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.order-details-close:hover {
    background: #006e2f;
    color: #ffffff;
}

.order-details-platform {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.order-details-platform-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: #eff4ff;
    border: 1px solid #bccbb9;
    border-radius: 0.75rem;
}

.order-details-platform-logo {
    max-height: 1.75rem;
    width: auto;
    object-fit: contain;
}

.order-details-section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5eeff;
    border-radius: 0.875rem;
    padding: 1rem 1.125rem;
    margin-bottom: 1rem;
}

.order-details-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.875rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0b1c30;
}

.order-details-section-title .material-symbols-outlined {
    font-size: 1.125rem;
    color: #006e2f;
}

.order-details-grid {
    display: grid;
    gap: 0.875rem 1rem;
}

.order-details-grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .order-details-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.order-detail-field-full {
    grid-column: 1 / -1;
}

.order-detail-field-clickable {
    cursor: pointer;
    border-radius: 0.625rem;
    padding: 0.375rem;
    margin: -0.375rem;
    transition: background 0.2s ease;
}

.order-detail-field-clickable:hover {
    background: #eff4ff;
}

.order-detail-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6d7b6c;
    margin-bottom: 0.25rem;
}

.order-detail-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0b1c30;
    line-height: 1.45;
    word-break: break-word;
}

.order-detail-note {
    font-style: italic;
    color: #3d4a3d;
}

.order-detail-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #006e2f;
}

.order-detail-products {
    max-height: 8.5rem;
    overflow-y: auto;
    padding: 0.75rem;
    background: #eff4ff;
    border: 1px solid #bccbb9;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #0b1c30;
}

.order-detail-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #fef3c7;
    color: #b45309;
}

.order-detail-status[data-status*="Teslim"],
.order-detail-status[data-status*="teslim"] {
    background: #dcfce7;
    color: #166534;
}

.order-detail-status[data-status*="İptal"],
.order-detail-status[data-status*="iptal"] {
    background: #fee2e2;
    color: #991b1b;
}

.order-detail-status[data-status*="Yola"],
.order-detail-status[data-status*="yola"],
.order-detail-status[data-status*="Hazır"] {
    background: #dbeafe;
    color: #1d4ed8;
}

.order-detail-status[data-status*="Kurye"],
.order-detail-status[data-status*="kurye"] {
    background: #fce7f3;
    color: #be185d;
}

.order-detail-status[data-status*="Adreste"],
.order-detail-status[data-status*="adreste"] {
    background: #ffedd5;
    color: #c2410c;
}

.order-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.order-card-status .material-symbols-outlined {
    font-size: 0.875rem !important;
}

.order-card-status-preparing {
    background: #fef3c7;
    color: #b45309;
}

.order-card-status-courier {
    background: #fce7f3;
    color: #be185d;
}

.order-card-status-onway {
    background: #dbeafe;
    color: #1d4ed8;
}

.order-card-status-adreste {
    background: #ffedd5;
    color: #c2410c;
}

.order-card-status-ready,
.order-card-status-delivered {
    background: #dcfce7;
    color: #166534;
}

.order-card-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 767px) {
    .order-details-modal {
        padding: 1rem;
        border-radius: 0.875rem;
    }

    .order-details-header {
        flex-direction: column;
        align-items: stretch;
    }

    .order-details-header-actions {
        justify-content: flex-end;
    }

    .order-details-print-btn span:last-child {
        display: none;
    }

    .order-details-print-btn {
        padding: 0.5rem;
    }
}

@media (max-width: 767px) {
    .app-content { padding-bottom: 5rem !important; }
    body[style*="margin-left"] { margin-left: 0 !important; margin-right: 0 !important; }
    .orders-footer {
        margin-bottom: 4rem;
    }
}

/* Sipariş Ekle Modal */
#newOrderBlack.order-form-backdrop,
#orderPopupBg.order-form-backdrop {
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#orderPopupBg.order-form-backdrop {
    z-index: 1070;
}

.order-form-backdrop {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#newOrderPop.order-form-modal,
#orderPopup.order-form-menu-modal {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(720px, calc(100vw - 2rem));
    max-height: min(92vh, 920px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #bccbb9;
    border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    padding: 1.5rem;
    font-family: 'Inter', sans-serif;
    height: auto;
    min-height: 0;
}

#orderPopup.order-form-menu-modal {
    display: flex;
    width: min(1280px, calc(100vw - 1.5rem));
    height: min(96vh, 980px);
    max-height: min(96vh, 980px);
    overflow: hidden;
    padding: 0;
}

.order-form-menu-left {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 1.25rem;
}

.order-form-menu-right {
    width: min(540px, 50%);
    flex-shrink: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #eff4ff;
    border-left: 1px solid #e5eeff;
    padding: 1.25rem 1.125rem;
    overflow: hidden;
    border-radius: 0 1rem 1rem 0;
}

.order-menu-chip-list {
    margin-top: 0.25rem;
    max-height: 6.5rem;
    overflow-y: auto;
    flex-shrink: 0;
}

.order-menu-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-menu-category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.order-menu-category-chip-main {
    background: #dcfce7;
    color: #166534;
}

.order-menu-category-chip-dessert {
    background: #fce7f3;
    color: #9d174d;
}

.order-menu-category-chip-beverage {
    background: #dbeafe;
    color: #1d4ed8;
}

.order-menu-category-chip-salad {
    background: #ecfccb;
    color: #3f6212;
}

.order-menu-category-count {
    font-size: 0.6875rem;
    font-weight: 600;
    opacity: 0.85;
}

.order-menu-category-chip:hover {
    transform: translateY(-1px);
}

.order-menu-category-chip.order-menu-chip-active {
    box-shadow: 0 0 0 2px #006e2f;
    border-color: #006e2f;
}

.order-menu-chip-dimmed {
    opacity: 0.45;
}

.order-menu-products-field {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.order-menu-pick-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.375rem;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-right: 0.125rem;
}

.order-menu-pick-row {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5eeff;
    border-radius: 0.875rem;
    background: #ffffff;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.order-menu-add-box {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.125rem;
    border: 2px solid #006e2f;
    border-radius: 0.625rem;
    background: #ffffff;
    color: #006e2f;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.order-menu-add-box .material-symbols-outlined {
    font-size: 1.25rem !important;
}

.order-menu-add-box:hover:not(:disabled) {
    background: #006e2f;
    color: #ffffff;
}

.order-menu-add-box:active:not(:disabled) {
    transform: scale(0.94);
}

.order-menu-add-box:disabled {
    border-color: #bccbb9;
    color: #bccbb9;
    cursor: not-allowed;
    opacity: 0.55;
}

.order-menu-pick-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.order-menu-pick-row.is-selected {
    border-color: #006e2f;
    box-shadow: 0 0 0 2px rgba(0, 110, 47, 0.12);
}

.order-menu-pick-row-soldout {
    opacity: 0.72;
}

.order-menu-pick-product {
    width: 100%;
}

.order-menu-pick-copy {
    min-width: 0;
}

.order-menu-pick-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.order-menu-pick-extra-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: #eff4ff;
    color: #006e2f;
}

.order-menu-pick-extra-badge .material-symbols-outlined {
    font-size: 1rem !important;
}

.order-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5eeff;
    margin-bottom: 1rem;
}

.order-form-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.order-form-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #006e2f;
    line-height: 1.3;
}

.order-form-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #3d4a3d;
}

.order-form-customer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid #006e2f;
    border-radius: 0.625rem;
    background: #006e2f;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.order-form-customer-btn .material-symbols-outlined {
    font-size: 1.125rem !important;
}

.order-form-customer-btn:hover {
    background: #005321;
    border-color: #005321;
}

.order-form-customer-btn-outline {
    background: #ffffff;
    color: #006e2f;
}

.order-form-customer-btn-outline:hover {
    background: #eff4ff;
}

.order-form-field {
    min-width: 0;
}

.order-form-input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #bccbb9;
    border-radius: 0.5rem;
    background: #eff4ff;
    color: #0b1c30;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-form-input:focus {
    outline: none;
    border-color: #006e2f;
    box-shadow: 0 0 0 3px rgba(0, 110, 47, 0.15);
}

.order-form-input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.order-form-textarea {
    min-height: 4.5rem;
    resize: vertical;
}

.order-form-address-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.order-form-input-grow {
    flex: 1;
    min-width: 0;
}

.order-form-input-number {
    width: 3.25rem;
    flex-shrink: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-align: center;
}

.order-form-address-hint {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 10;
    width: auto !important;
    margin-top: 0 !important;
    border: 1px solid #bccbb9;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.order-form-field:has(.order-form-address-hint) {
    position: relative;
}

.order-form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    padding-top: 0.25rem;
}

.order-form-btn-primary,
.order-form-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.order-form-btn-primary {
    background: #006e2f;
    color: #ffffff;
    border-color: #006e2f;
}

.order-form-btn-primary:hover {
    background: #005321;
    border-color: #005321;
}

.order-form-btn-secondary {
    background: #ffffff;
    color: #006e2f;
    border-color: #bccbb9;
}

.order-form-btn-secondary:hover {
    background: #eff4ff;
}

.order-form-forward-date-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-form-hint {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #3d4a3d;
}

.order-form-btn-sm {
    margin-top: 0.625rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.order-form-items-list {
    max-height: 6.5rem;
    overflow-y: auto;
    padding: 0.75rem;
    background: #eff4ff;
    border: 1px solid #bccbb9;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #0b1c30;
}

#orderPopup .order-form-items-list {
    min-height: 10rem;
    max-height: 14rem;
}

.order-form-category-list,
.order-form-product-list {
    margin-top: 0.375rem;
}

#orderPopup .order-form-header {
    flex-direction: column;
    align-items: stretch;
}

#orderPopup .order-form-header-actions {
    justify-content: flex-end;
}

.order-form-menu-right .order-detail-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3d4a3d;
}

.order-menu-search-field {
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.order-form-menu-right > .order-form-field:not(.order-menu-products-field) {
    flex-shrink: 0;
}

.order-menu-search-wrap {
    position: relative;
}

.order-menu-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem !important;
    color: #64748b;
    pointer-events: none;
}

.order-menu-search-input {
    padding-left: 2.5rem;
}

.order-menu-category-btn.is-dimmed {
    opacity: 0.45;
}

.order-menu-product-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.order-menu-product-category {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: #e5eeff;
    color: #3d4a3d;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.order-menu-loading {
    color: #64748b;
    font-style: italic;
}

.order-menu-category-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.375rem;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    background: #ffffff;
    color: #0b1c30;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.order-menu-category-btn.is-active {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.order-menu-product-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e5eeff;
    border-radius: 0.625rem;
    background: #ffffff;
}

.order-menu-product-row.is-active {
    border-color: #86efac;
    background: #f0fdf4;
}

.order-menu-product-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.order-menu-product-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0b1c30;
}

.order-menu-product-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: #006e2f;
    white-space: nowrap;
}

.order-menu-product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.order-menu-action-btn {
    flex: 1;
    min-width: 5.5rem;
    padding: 0.4375rem 0.625rem;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #bccbb9;
    background: #ffffff;
    color: #006e2f;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.order-menu-action-btn:hover {
    background: #eff4ff;
}

.order-menu-action-btn-primary {
    background: #006e2f;
    border-color: #006e2f;
    color: #ffffff;
}

.order-menu-action-btn-primary:hover {
    background: #005321;
    border-color: #005321;
}

.order-menu-qty-label {
    min-width: 3.5rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3d4a3d;
}

.order-menu-empty {
    padding: 1rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #64748b;
    background: #ffffff;
    border: 1px dashed #bccbb9;
    border-radius: 0.625rem;
}

.order-form-items-empty {
    margin: 0;
    color: #64748b;
    font-size: 0.8125rem;
    text-align: center;
    padding: 0.25rem 0;
}

.order-form-order-line {
    padding: 0.625rem 0;
    border-bottom: 1px solid #e5eeff;
}

.order-form-order-line:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-form-order-extras {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.375rem;
    padding-left: 0.25rem;
}

.order-form-order-extra {
    font-size: 0.75rem;
    color: #64748b;
}

.order-form-extras {
    margin-top: 1rem;
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: min(360px, 40%);
    overflow: hidden;
}

.order-form-extras #orderExtraList {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 0.375rem;
    padding-right: 0.25rem;
}

.order-form-extras #addProductWithExtrasBtn {
    flex-shrink: 0;
    margin-top: 0.75rem;
    width: 100%;
}

.order-form-menu-right .titleCategory,
.order-form-menu-right .titleCategorySmall {
    border-radius: 0.625rem;
}

@media (max-width: 900px) {
    #orderPopup.order-form-menu-modal {
        flex-direction: column;
        overflow-y: auto;
        max-height: min(94vh, 900px);
    }

    .order-form-menu-left,
    .order-form-menu-right {
        width: 100%;
        border-radius: 0;
    }

    .order-form-menu-right {
        border-left: none;
        border-top: 1px solid #e5eeff;
    }
}

@media (max-width: 767px) {
    #newOrderPop.order-form-modal {
        padding: 1rem;
        border-radius: 0.875rem;
    }

    #orderPopup.order-form-menu-modal {
        border-radius: 0.875rem;
    }

    .order-form-menu-left {
        padding: 1rem;
    }

    .order-form-header {
        flex-direction: column;
        align-items: stretch;
    }

    .order-form-header-actions {
        justify-content: flex-start;
    }
}

/* Menü Katalog */
.menu-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.menu-chip-main { background: #dcfce7; color: #166534; }
.menu-chip-dessert { background: #fce7f3; color: #9d174d; }
.menu-chip-beverage { background: #dbeafe; color: #1d4ed8; }
.menu-chip-more { background: #eff4ff; color: #3d4a3d; }

.menu-shop-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.menu-shop-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-shop-toggle-track {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease;
}

.menu-shop-toggle-thumb {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 9999px;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.menu-shop-toggle input:checked + .menu-shop-toggle-track {
    background: rgba(255, 255, 255, 0.85);
}

.menu-shop-toggle input:checked + .menu-shop-toggle-track .menu-shop-toggle-thumb {
    transform: translateX(1.25rem);
}

.menu-filter-tab {
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3d4a3d;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-filter-tab-active {
    background: #ffffff;
    color: #006e2f;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.menu-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e5eeff;
    border-radius: 0.625rem;
    background: #ffffff;
    color: #3d4a3d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-toolbar-btn:hover,
.menu-toolbar-btn-active {
    background: #eff4ff;
    color: #006e2f;
    border-color: #bccbb9;
}

.menu-toolbar-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

.menu-catalog-table {
    width: 100%;
    border-collapse: collapse;
}

.menu-catalog-table thead {
    background: #eff4ff;
}

.menu-catalog-table th {
    padding: 0.875rem 1.5rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6d7b6c;
    border-bottom: 1px solid #e5eeff;
}

.menu-catalog-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5eeff;
    vertical-align: middle;
}

.menu-catalog-table tbody tr:hover td {
    background: rgba(239, 244, 255, 0.65);
}

.menu-product-cell {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.menu-product-thumb {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 1px solid #e5eeff;
    flex-shrink: 0;
}

.menu-product-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0b1c30;
    line-height: 1.35;
}

.menu-product-desc {
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    color: #3d4a3d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.menu-category-badge-main { background: #dcfce7; color: #166534; }
.menu-category-badge-dessert { background: #fce7f3; color: #9d174d; }
.menu-category-badge-beverage { background: #dbeafe; color: #1d4ed8; }
.menu-category-badge-salad { background: #ecfccb; color: #3f6212; }

.menu-price-cell {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0b1c30;
    white-space: nowrap;
}

.menu-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.menu-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.menu-status-available { color: #166534; }
.menu-status-available .menu-status-dot { background: #22c55e; }
.menu-status-soldout { color: #991b1b; }
.menu-status-soldout .menu-status-dot { background: #ef4444; }

.menu-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    width: 100%;
}

.menu-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #e5eeff;
    border-radius: 0.625rem;
    background: #ffffff;
    color: #3d4a3d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-action-btn:hover {
    background: #eff4ff;
    color: #006e2f;
    border-color: #bccbb9;
}

.menu-action-btn .material-symbols-outlined {
    font-size: 1rem;
}

.menu-row-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.menu-row-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-row-toggle-slider {
    position: relative;
    width: 2.5rem;
    height: 1.375rem;
    border-radius: 9999px;
    background: #cbd5e1;
    transition: background 0.2s ease;
}

.menu-row-toggle-slider::after {
    content: "";
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.menu-row-toggle input:checked + .menu-row-toggle-slider {
    background: #006e2f;
}

.menu-row-toggle input:checked + .menu-row-toggle-slider::after {
    transform: translateX(1.125rem);
}

.menu-catalog-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5eeff;
    background: #ffffff;
}

.menu-pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.menu-page-btn {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid #e5eeff;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #3d4a3d;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.menu-page-btn:hover:not(:disabled) {
    background: #eff4ff;
    color: #006e2f;
}

.menu-page-btn-active {
    background: #006e2f;
    border-color: #006e2f;
    color: #ffffff;
}

.menu-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .menu-catalog-table th:nth-child(2),
    .menu-catalog-table td:nth-child(2) {
        display: none;
    }

    .menu-catalog-table th,
    .menu-catalog-table td {
        padding: 0.875rem 1rem;
    }
}

/* Menü Form Modalları */
.menu-modal-backdrop {
    z-index: 1060;
}

.menu-modal-backdrop-top {
    z-index: 1070;
}

#kategoriPopupBack.order-form-backdrop,
#editCategoryBack.order-form-backdrop,
#newMenuPopupBack.order-form-backdrop,
#editMenuPopupBack.order-form-backdrop,
#extraPopupBack.order-form-backdrop,
#editExtraPopupBack.order-form-backdrop,
#menuBringBack.order-form-backdrop {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#kategoriPopup.order-form-modal,
#editCategoryBackPopup.order-form-modal,
#extraPopup.order-form-modal,
#editExtraPopup.order-form-modal,
#menuBringPopup.order-form-modal,
#newMenuPopup.order-form-modal,
#editMenuPopup.order-form-modal {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    background: #ffffff;
    border: 1px solid #bccbb9;
    border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    padding: 1.5rem;
    font-family: 'Inter', sans-serif;
    height: auto;
    min-height: 0;
}

#kategoriPopup.order-form-modal,
#editCategoryBackPopup.order-form-modal,
#extraPopup.order-form-modal,
#editExtraPopup.order-form-modal,
#menuBringPopup.order-form-modal {
    width: min(440px, calc(100vw - 2rem));
    max-height: min(90vh, 560px);
    overflow-y: auto;
}

#newMenuPopup.order-form-modal,
#editMenuPopup.order-form-modal {
    width: min(760px, calc(100vw - 2rem));
    max-height: min(92vh, 920px);
    overflow-y: auto;
    background: #eff4ff;
    padding: 1.25rem 1.5rem 1.5rem;
}

#newMenuPopup .order-details-section,
#editMenuPopup .order-details-section {
    background: #ffffff;
    border: 1px solid #e5eeff;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    margin-bottom: 1rem;
}

#newMenuPopup .order-form-header,
#editMenuPopup .order-form-header {
    background: transparent;
    border-bottom: 1px solid #e5eeff;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

#newMenuPopup .order-form-footer,
#editMenuPopup .order-form-footer {
    margin-top: 0.25rem;
    padding-top: 0;
}

.order-form-input-group {
    display: flex;
    align-items: stretch;
}

.order-form-input-group .order-form-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.order-form-input-suffix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.875rem;
    border: 1px solid #bccbb9;
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
    background: #eff4ff;
    color: #3d4a3d;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.menu-form-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.875rem;
    border: 1px dashed #006e2f;
    border-radius: 0.625rem;
    background: rgba(0, 110, 47, 0.06);
    color: #006e2f;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-form-add-btn:hover {
    background: rgba(0, 110, 47, 0.12);
}

.menu-form-add-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

.menu-extra-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 10rem;
    overflow-y: auto;
}

.menu-extra-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e5eeff;
    border-radius: 0.625rem;
    background: #eff4ff;
}

.menu-extra-item-text {
    font-size: 0.875rem;
    color: #0b1c30;
    min-width: 0;
}

.menu-extra-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.menu-extra-edit,
.menu-extra-remove {
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    border: 1px solid #bccbb9;
    background: #ffffff;
    color: #3d4a3d;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-extra-edit:hover,
.menu-extra-remove:hover {
    background: #eff4ff;
    color: #006e2f;
    border-color: #006e2f;
}

@media (max-width: 767px) {
    #newMenuPopup.order-form-modal,
    #editMenuPopup.order-form-modal,
    #kategoriPopup.order-form-modal,
    #editCategoryBackPopup.order-form-modal {
        padding: 1rem;
        border-radius: 0.875rem;
    }
}

/* Müşteriler Sayfası */
.customer-table thead {
    background: #f8fafc;
}

.customer-table th {
    padding: 1rem 1.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
}

.customer-table td {
    padding: 1.125rem 1.5rem;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #0b1c30;
    border-top: 1px solid rgba(229, 238, 255, 0.8);
}

.customer-table tbody tr:hover td {
    background: rgba(239, 244, 255, 0.45);
}

.customer-id {
    font-weight: 700;
    color: #006e2f;
    font-variant-numeric: tabular-nums;
}

.customer-name-cell {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 12rem;
}

.customer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(0, 110, 47, 0.12);
    color: #006e2f;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.customer-name {
    font-weight: 700;
    color: #0b1c30;
    line-height: 1.3;
}

.customer-reg-date {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: #64748b;
}

.customer-phone {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.customer-address {
    max-width: 16rem;
    color: #334155;
}

.customer-direction {
    max-width: 14rem;
    font-style: italic;
    color: #64748b;
}

.customer-direction-empty,
.customer-floor-empty {
    color: #94a3b8;
}

.customer-floor-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.customer-floor-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.customer-floor-badge-alt {
    background: #f1f5f9;
    color: #475569;
}

.customer-row-actions {
    display: flex;
    justify-content: center;
}

.customer-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(0, 110, 47, 0.18);
    border-radius: 0.625rem;
    background: rgba(0, 110, 47, 0.08);
    color: #006e2f;
    cursor: pointer;
    transition: all 0.2s ease;
}

.customer-edit-btn:hover {
    background: #006e2f;
    color: #ffffff;
    border-color: #006e2f;
}

.customer-edit-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

.customer-empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9375rem;
}

#newOrderBlack.order-form-backdrop,
#editOrderBlack.order-form-backdrop {
    z-index: 1060;
}

#newOrderPop.customer-form-modal,
#editOrderPop.customer-form-modal {
    width: min(760px, calc(100vw - 2rem));
    max-height: min(92vh, 920px);
    overflow-y: auto;
    background: #eff4ff;
    padding: 1.25rem 1.5rem 1.5rem;
}

#newOrderPop.customer-form-modal .order-details-section,
#editOrderPop.customer-form-modal .order-details-section {
    background: #ffffff;
    border: 1px solid #e5eeff;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    margin-bottom: 1rem;
}

#newOrderPop.customer-form-modal .order-form-header,
#editOrderPop.customer-form-modal .order-form-header {
    background: transparent;
    border-bottom: 1px solid #e5eeff;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

@media (max-width: 767px) {
    .customer-table th:nth-child(4),
    .customer-table td:nth-child(4),
    .customer-table th:nth-child(6),
    .customer-table td:nth-child(6) {
        display: none;
    }

    .customer-table th,
    .customer-table td {
        padding: 0.875rem 1rem;
    }
}

/* Geçmiş Siparişler */
.history-table thead {
    background: #f8fafc;
}

.history-table th {
    padding: 1rem 1.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
}

.history-table td {
    padding: 1.125rem 1.5rem;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #0b1c30;
    border-top: 1px solid rgba(229, 238, 255, 0.8);
}

.history-table tbody tr:hover td {
    background: rgba(239, 244, 255, 0.45);
}

.history-platform-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 7rem;
}

.history-platform-badge {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #006e2f;
}

.history-platform-badge.history-platform-muted,
.history-platform-muted {
    color: #475569;
}

.history-order-no {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
}

.history-customer-name {
    font-weight: 700;
    color: #0b1c30;
    line-height: 1.3;
}

.history-customer-address {
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    color: #64748b;
    max-width: 18rem;
}

.history-table-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.history-table-badge-muted {
    background: #f1f5f9;
    color: #475569;
}

.history-payment-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #334155;
    white-space: nowrap;
}

.history-payment-cell .material-symbols-outlined {
    font-size: 1.125rem;
    color: #64748b;
}

.history-amount {
    font-weight: 800;
    color: #0b1c30;
    white-space: nowrap;
}

.history-delivery-time {
    font-weight: 700;
    color: #0b1c30;
}

.history-delivery-courier {
    color: #64748b;
}

.history-delivery-cancel {
    font-weight: 700;
    color: #dc2626;
}

.history-delivery-muted,
.history-date-muted {
    color: #94a3b8;
}

.history-date {
    white-space: nowrap;
    color: #475569;
}

.history-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(0, 110, 47, 0.18);
    border-radius: 0.625rem;
    background: rgba(0, 110, 47, 0.08);
    color: #006e2f;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-detail-btn:hover {
    background: #006e2f;
    color: #ffffff;
}

.history-empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #64748b;
}

.history-pagination-ellipsis {
    padding: 0 0.375rem;
    color: #94a3b8;
}

/* Geçmiş Siparişler — filtre paneli */
.history-filter-panel {
    background: #ffffff;
}

.history-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(9.5rem, 1fr)) auto;
    gap: 1rem 0.875rem;
    align-items: end;
}

.history-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.history-filter-group-dates {
    grid-column: 1 / -1;
    gap: 0.625rem;
}

.history-filter-group-title,
.history-filter-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.history-filter-date-range {
    display: grid;
    grid-template-columns: minmax(11rem, 1fr) auto minmax(11rem, 1fr);
    gap: 0.875rem 1rem;
    align-items: end;
}

.history-filter-date-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
}

.history-filter-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.history-filter-input-icon {
    position: absolute;
    right: 0.75rem;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem !important;
    color: #006e2f;
    pointer-events: none;
    z-index: 1;
}

.history-filter-panel .history-filter-date-input,
.history-filter-panel .history-filter-select {
    width: 100%;
    min-height: 2.75rem;
    box-sizing: border-box;
    border: 1px solid #bccbb9;
    border-radius: 0.75rem;
    background: #eff4ff;
    color: #0b1c30;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.history-filter-panel .history-filter-select {
    padding: 0.625rem 0.875rem;
}

.history-filter-panel .history-filter-date-input {
    padding: 0.625rem 2.75rem 0.625rem 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-filter-panel .history-filter-date-input:focus,
.history-filter-panel .history-filter-select:focus {
    outline: none;
    border-color: #006e2f;
    box-shadow: 0 0 0 3px rgba(0, 110, 47, 0.15);
}

.history-filter-date-sep {
    align-self: center;
    padding-bottom: 0.625rem;
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 700;
}

.history-filter-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.history-filter-preset-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid #e5eeff;
    border-radius: 9999px;
    background: #ffffff;
    color: #3d4a3d;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.history-filter-preset-btn:hover {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.history-filter-actions {
    display: flex;
    align-items: flex-end;
}

.history-filter-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    padding: 0 1.125rem;
    border: none;
    border-radius: 0.75rem;
    background: #006e2f;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.1s ease;
}

.history-filter-submit-btn:hover {
    background: #005321;
}

.history-filter-submit-btn:active {
    transform: scale(0.98);
}

.history-filter-submit-btn .material-symbols-outlined {
    font-size: 1.125rem !important;
}

.ui-datepicker,
.ui-timepicker-div,
.ui-datepicker-div {
    z-index: 1300 !important;
    font-family: 'Inter', sans-serif !important;
}

.ui-datepicker {
    border: 1px solid #bccbb9 !important;
    border-radius: 0.875rem !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16) !important;
    padding: 0.5rem !important;
}

.ui-datepicker-header {
    background: #eff4ff !important;
    border: none !important;
    border-radius: 0.625rem !important;
}

.ui-datepicker-title {
    color: #0b1c30 !important;
    font-weight: 700 !important;
}

.ui-state-default {
    border: none !important;
    background: transparent !important;
    color: #0b1c30 !important;
    border-radius: 0.5rem !important;
    text-align: center !important;
}

.ui-state-active,
.ui-state-hover {
    background: #006e2f !important;
    color: #ffffff !important;
}

.ui-timepicker-div dl {
    margin: 0.5rem 0 0 !important;
}

@media (max-width: 1100px) {
    .history-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-filter-actions {
        grid-column: 1 / -1;
    }

    .history-filter-submit-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .history-filter-date-range {
        grid-template-columns: 1fr;
    }

    .history-filter-date-sep {
        display: none;
    }

    .history-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* Raporlar */
.reports-stat-sparkline {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    height: 2rem;
    margin-top: 1rem;
}

.reports-stat-sparkline span {
    flex: 1;
    border-radius: 0.25rem 0.25rem 0 0;
    background: rgba(0, 110, 47, 0.18);
    min-height: 0.375rem;
}

.reports-stat-sparkline span:nth-child(odd) {
    background: rgba(0, 110, 47, 0.32);
}

.reports-stat-sparkline-muted span {
    background: rgba(100, 116, 139, 0.16);
}

.reports-stat-sparkline-muted span:nth-child(odd) {
    background: rgba(100, 116, 139, 0.28);
}

.reports-popular-ring {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 9999px;
    border: 6px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
}

.reports-platform-legend {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 1rem;
}

.reports-platform-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.reports-platform-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.reports-platform-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.reports-platform-dot-primary {
    background: #006e2f;
}

.reports-platform-dot-muted {
    background: #94a3b8;
}

.reports-platform-name {
    font-weight: 700;
    color: #0b1c30;
    font-size: 0.875rem;
}

.reports-platform-desc {
    font-size: 0.75rem;
    color: #64748b;
}

.reports-platform-value {
    text-align: right;
    font-weight: 700;
    color: #0b1c30;
    white-space: nowrap;
}

.reports-platform-percent {
    font-size: 0.75rem;
    color: #64748b;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
}

.reports-table th {
    padding: 1rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    text-align: left;
    border-bottom: 1px solid #e5eeff;
}

.reports-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #0b1c30;
    vertical-align: middle;
}

.reports-doc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.reports-doc-icon-red {
    background: #fee2e2;
    color: #dc2626;
}

.reports-doc-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.reports-row-actions {
    display: inline-flex;
    gap: 0.5rem;
}

.reports-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e5eeff;
    background: #ffffff;
    color: #006e2f;
    cursor: pointer;
}

.reports-action-btn-danger {
    color: #dc2626;
}

.chart-wrap {
    position: relative;
    min-height: 280px;
}

@media (max-width: 767px) {
    .history-table th:nth-child(3),
    .history-table td:nth-child(3),
    .history-table th:nth-child(6),
    .history-table td:nth-child(6) {
        display: none;
    }
}

/* Ortak uygulama header */
.app-header-search {
    min-width: 0;
}

header .flex.items-center.gap-3.flex-1 {
    max-width: none;
}

.app-header-restoran-id {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: rgba(0, 110, 47, 0.08);
    border: 1px solid rgba(0, 110, 47, 0.15);
    color: #006e2f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.app-header-restoran-id-icon {
    font-size: 1rem !important;
}

@media (max-width: 639px) {
    .app-header-restoran-id span:last-child {
        max-width: 4.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.integration-platform-logo-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    background: transparent;
}

.integration-platform-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.75rem;
}

.order-form-field-hint {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.pac-container {
    z-index: 1085 !important;
    border-radius: 0.75rem;
    border: 1px solid #bccbb9;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    font-family: 'Inter', sans-serif;
}

.order-customer-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1095;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.order-customer-picker-modal {
    width: min(520px, calc(100vw - 2rem));
    max-height: min(80vh, 640px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #bccbb9;
    border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    padding: 1.25rem;
}

.order-customer-picker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-customer-picker-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
}

.order-customer-picker-close:hover {
    background: #e2e8f0;
}

.order-customer-picker-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid #bccbb9;
    border-radius: 0.75rem;
    background: #f8fafc;
    margin-bottom: 0.75rem;
}

.order-customer-picker-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
}

.order-customer-picker-list {
    flex: 1;
    min-height: 240px;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-customer-pick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.order-customer-pick-row:hover {
    border-color: #006e2f;
    background: #f0fdf4;
}

.order-customer-pick-main {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.order-customer-pick-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0b1c30;
}

.order-customer-pick-phone {
    font-size: 0.8125rem;
    color: #64748b;
}

.order-customer-pick-icon {
    color: #006e2f;
    flex-shrink: 0;
}

.order-customer-picker-empty {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}
