body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

h1 {
    text-align: center;
}

.categories {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.categories a {
    padding: 10px 15px;
    background-color: white;
    text-decoration: none;
    color: black;
    border-radius: 5px;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
}

.product-card h3 {
    margin-top: 0;
}

.price {
    font-size: 20px;
    font-weight: bold;
}

.add-cart {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

/* Admin panel */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px clamp(20px, 5vw, 72px);
    background: #173f35;
    color: #fff;
}

.topbar h1,
.page-intro h2,
.panel h2 {
    margin: 0;
    text-align: left;
}

.eyebrow {
    margin: 0 0 7px;
    color: #91c9a8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.topbar .eyebrow {
    color: #b8e3c3;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a {
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 7px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, .12);
}

.admin-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px clamp(16px, 4vw, 48px) 72px;
}

.page-intro,
.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.page-intro {
    margin-bottom: 24px;
}

.page-intro h2,
.panel h2 {
    color: #173f35;
    font-size: 25px;
}

.muted {
    max-width: 650px;
    margin: 9px 0 0;
    color: #63716c;
    line-height: 1.5;
}

.stat-pill,
.status-dot,
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.stat-pill {
    padding: 10px 14px;
    background: #dcefe1;
    color: #236446;
    white-space: nowrap;
}

.panel {
    margin-bottom: 24px;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid #e1e9e4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(23, 63, 53, .06);
}

.panel-heading {
    align-items: center;
    margin-bottom: 24px;
}

.status-dot {
    gap: 7px;
    color: #28704a;
}

.status-dot::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #36a269;
    content: "";
}

.product-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.product-form label {
    display: grid;
    gap: 7px;
    color: #364842;
    font-size: 13px;
    font-weight: 700;
}

.product-form input,
.product-form select,
.product-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cddbd2;
    border-radius: 6px;
    background: #fbfdfb;
    color: #173f35;
    font: inherit;
    font-weight: 400;
}

.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus {
    outline: 2px solid rgba(54, 162, 105, .25);
    border-color: #36a269;
}

.full-width {
    grid-column: 1 / -1;
}

.upload-field small {
    color: #718079;
    font-weight: 400;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.button {
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.button-primary {
    background: #28704a;
    color: #fff;
}

.button-primary:hover {
    background: #1d5939;
}

.button-secondary {
    background: #edf3ef;
    color: #315646;
    text-decoration: none;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.metric-card {
    display: grid;
    gap: 8px;
    padding: 20px;
    border: 1px solid #dce9df;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 63, 53, .05);
}

.metric-card span,
.metric-card small {
    color: #718079;
    font-size: 13px;
}

.metric-card strong {
    color: #173f35;
    font-size: 27px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 24px;
}

.quick-link,
.stock-row,
.category-row,
.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2ee;
    color: #364842;
    text-decoration: none;
}

.quick-link:last-child,
.stock-row:last-child,
.category-row:last-child,
.order-item:last-child {
    border-bottom: 0;
}

.quick-link b {
    color: #28704a;
    font-size: 20px;
}

.stock-row strong {
    color: #28704a;
    font-size: 13px;
}

.stock-row .stock-zero {
    color: #b4342d;
}

.actions-cell {
    display: flex;
    align-items: center;
    gap: 7px;
}

.actions-cell form {
    margin: 0;
}

.table-action {
    display: inline-block;
    padding: 6px 8px;
    border: 0;
    border-radius: 5px;
    background: #e3f1e7;
    color: #236446;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    text-decoration: none;
}

.table-action-muted {
    background: #f1e9dc;
    color: #865c22;
}

.edit-preview {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.inline-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.inline-form label {
    flex: 1;
    display: grid;
    gap: 7px;
    color: #364842;
    font-size: 13px;
    font-weight: 700;
}

.inline-form input {
    padding: 12px 13px;
    border: 1px solid #cddbd2;
    border-radius: 6px;
    font: inherit;
}

.category-list {
    display: grid;
    gap: 0;
}

.category-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #e3f1e7;
    color: #28704a;
    font-weight: 700;
}

.category-row strong {
    flex: 1;
}

.category-count {
    color: #718079;
    font-size: 13px;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.order-card {
    padding: 22px;
    border: 1px solid #dce9df;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 63, 53, .05);
}

.order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2ee;
}

.order-card-header h2 {
    margin: 0;
    color: #173f35;
    font-size: 17px;
}

.order-card-header > strong {
    color: #28704a;
    white-space: nowrap;
}

.order-item small {
    color: #718079;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
}

.empty-icon {
    display: block;
    color: #91a79a;
    font-size: 44px;
}

@media (max-width: 850px) {
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .orders-grid {
        grid-template-columns: 1fr;
    }
}

.flash {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.flash-success {
    background: #e2f3e7;
    color: #1d633e;
}

.flash-error {
    background: #fbe6e4;
    color: #9b3029;
}

.product-table-wrap {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    color: #364842;
    font-size: 14px;
}

.product-table th {
    padding: 12px 10px;
    border-bottom: 1px solid #dce7df;
    color: #718079;
    font-size: 11px;
    letter-spacing: .8px;
    text-align: left;
    text-transform: uppercase;
}

.product-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #edf2ee;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-cell img,
.image-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 6px;
    object-fit: cover;
}

.image-placeholder {
    display: grid;
    place-items: center;
    background: #eaf2ec;
    color: #648273;
    font-size: 10px;
    font-weight: 700;
}

.product-cell small {
    display: block;
    margin-top: 4px;
    color: #819089;
}

.badge {
    padding: 6px 9px;
}

.badge-success {
    background: #e2f3e7;
    color: #1d633e;
}

.badge-muted {
    background: #edf0ee;
    color: #65716b;
}

.empty-cell {
    padding: 32px !important;
    color: #718079;
    text-align: center;
}

.login-page {
    display: grid;
    min-height: 100vh;
    padding: 0;
    place-items: center;
    background: #edf4ef;
}

.login-shell {
    width: min(100% - 32px, 430px);
}

.login-card {
    padding: 38px;
    border: 1px solid #dce9df;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(23, 63, 53, .1);
}

.login-mark {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 10px;
    background: #173f35;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.login-card h1 {
    margin: 0;
    color: #173f35;
    font-size: 30px;
    text-align: left;
}

.login-form {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.login-form label {
    display: grid;
    gap: 7px;
    color: #364842;
    font-size: 13px;
    font-weight: 700;
}

.login-form input {
    box-sizing: border-box;
    width: 100%;
    padding: 13px;
    border: 1px solid #cddbd2;
    border-radius: 6px;
    font: inherit;
}

.back-link {
    display: block;
    margin-top: 20px;
    color: #28704a;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

@media (max-width: 700px) {
    .topbar,
    .page-intro,
    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        padding: 22px 18px;
    }

    .admin-shell {
        padding: 24px 14px 48px;
    }

    .login-card {
        padding: 28px 22px;
    }

    .product-form {
        grid-template-columns: 1fr;
    }

    .inline-form {
        align-items: stretch;
        flex-direction: column;
    }

    .inline-form .button {
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .form-actions,
    .button {
        width: 100%;
    }
}

/* Sipariş Müşteri ve Adres Detayı */
.order-customer-info {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #e3ebe5;
    border-radius: 6px;
    background: #f8faf8;
}

.order-customer-info p {
    margin: 0;
    color: #364842;
    font-size: 13px;
    line-height: 1.4;
}

.order-customer-info p + p {
    margin-top: 6px;
}

.order-customer-info strong {
    color: #173f35;
}

/* Mavi Bilgi Rozeti (Sipariş Durumu) */
.badge-info {
    background: #e3f2fd;
    color: #1565c0;
}

.order-customer-info {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #e3ebe5;
    border-radius: 6px;
    background: #f8faf8;
}
.order-customer-info p {
    margin: 0;
    color: #364842;
    font-size: 13px;
    line-height: 1.4;
}
.order-customer-info p + p {
    margin-top: 6px;
}
.order-customer-info strong {
    color: #173f35;
}
.badge-info {
    background: #e3f2fd;
    color: #1565c0;
}


/* =========================================================
   YENİLENMİŞ SİPARİŞ TAKİP MERKEZİ (KULLANICI DOSTU UI)
   ========================================================= */
.orders-intro-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-status-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.status-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border: 1.5px solid #dce9df;
    border-radius: 10px;
    background: #fff;
    color: #364842;
    cursor: pointer;
    font: inherit;
    transition: all 0.18s ease;
    box-shadow: 0 4px 14px rgba(23, 63, 53, 0.04);
}

.status-tab:hover {
    border-color: #9bc5ae;
    transform: translateY(-1px);
}

.status-tab.active {
    border-color: #173f35;
    background: #173f35;
    color: #fff;
}

.status-tab .tab-label {
    font-size: 13px;
    font-weight: 700;
}

.status-tab .tab-count {
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf4ef;
    color: #173f35;
    font-size: 13px;
}

.status-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.orders-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 14px 18px;
}

.toolbar-search {
    flex: 1;
}

.toolbar-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #cddbd2;
    border-radius: 8px;
    background: #fbfdfb;
    color: #173f35;
    font: inherit;
    font-size: 14px;
}

.toolbar-search input:focus {
    outline: 2px solid rgba(54, 162, 105, 0.25);
    border-color: #36a269;
}

.toolbar-filters {
    display: flex;
    align-items: center;
    gap: 14px;
}

.toolbar-filters select {
    padding: 10px 13px;
    border: 1px solid #cddbd2;
    border-radius: 8px;
    background: #fff;
    color: #173f35;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* Sipariş Kartı Sol Renk Çizgisi */
.order-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 5px solid #28704a;
    transition: box-shadow 0.2s ease;
}

.order-card:hover {
    box-shadow: 0 12px 32px rgba(23, 63, 53, 0.09);
}

.order-card.status-preparing {
    border-left-color: #e67e22;
}

.order-card.status-onway {
    border-left-color: #2980b9;
}

.order-card.status-delivered {
    border-left-color: #27ae60;
}

.order-card.status-cancelled {
    border-left-color: #c0392b;
    opacity: 0.85;
}

.order-id-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.order-number-badge {
    padding: 5px 10px;
    border-radius: 7px;
    background: #173f35;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.order-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.order-status-pill.status-preparing {
    background: #fff3e0;
    color: #d35400;
}

.order-status-pill.status-onway {
    background: #e3f2fd;
    color: #1565c0;
}

.order-status-pill.status-delivered {
    background: #e2f3e7;
    color: #1d633e;
}

.order-status-pill.status-cancelled {
    background: #fbe6e4;
    color: #9b3029;
}

.order-timestamp {
    margin: 0;
    color: #6c7c75;
    font-size: 13px;
}

.order-total-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.order-total-label {
    color: #718079;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-total-amount {
    color: #173f35;
    font-size: 21px;
    font-weight: 800;
}

.payment-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.payment-cash {
    background: #eef7f1;
    color: #236446;
}

.payment-card {
    background: #eef2fa;
    color: #2a4b8d;
}

/* Görsel Sipariş Aşama Çubuğu (Stepper) */
.order-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 6px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fbf9;
}

.order-stepper .step {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #95a59e;
    font-size: 12px;
    font-weight: 700;
}

.order-stepper .step.active {
    color: #173f35;
}

.order-stepper .step-dot {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: #dce7e0;
    color: #5b6d64;
    font-size: 11px;
    font-weight: 800;
}

.order-stepper .step.active .step-dot {
    background: #28704a;
    color: #fff;
}

.order-stepper .step-line {
    flex: 1;
    height: 2px;
    margin: 0 8px;
    background: #dce7e0;
}

.order-stepper .step-line.active {
    background: #28704a;
}

/* Müşteri ve Adres Kutusu */
.order-customer-box {
    display: grid;
    gap: 10px;
    margin: 12px 0;
    padding: 13px 14px;
    border: 1px solid #e3ebe5;
    border-radius: 8px;
    background: #f8faf8;
}

.customer-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #364842;
}

.customer-row strong {
    display: block;
    color: #173f35;
}

.customer-email {
    color: #718079;
    font-size: 12px;
}

.address-row {
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed #dce7df;
}

.address-text-wrap {
    flex: 1;
    line-height: 1.4;
}

.copy-address-btn {
    padding: 5px 9px;
    border: 1px solid #cddbd2;
    border-radius: 6px;
    background: #fff;
    color: #28704a;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.copy-address-btn:hover,
.copy-address-btn.copied {
    background: #e2f3e7;
    border-color: #28704a;
}

/* Sipariş Kalemleri */
.order-items-section {
    margin: 6px 0 14px;
    border: 1px solid #edf2ee;
    border-radius: 8px;
    overflow: hidden;
}

.order-items-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f1f6f3;
    color: #52635c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.order-items-list {
    max-height: 230px;
    overflow-y: auto;
    padding: 4px 12px;
}

.order-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f2;
}

.order-item-row:last-child {
    border-bottom: 0;
}

.order-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-item-thumb {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e3ebe5;
}

.order-item-thumb.placeholder {
    display: grid;
    place-items: center;
    background: #eaf2ec;
    color: #648273;
    font-size: 9px;
    font-weight: 800;
}

.order-item-name {
    display: block;
    color: #173f35;
    font-size: 13px;
}

.order-item-unit {
    color: #7a8a82;
    font-size: 11px;
}

.order-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.qty-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: #e3f1e7;
    color: #1d633e;
    font-size: 12px;
    font-weight: 800;
}

.line-total {
    color: #173f35;
    font-size: 13px;
}

/* Alt Aksiyon Çubuğu */
.order-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #edf2ee;
}

.quick-status-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-status-buttons form,
.manual-status-form {
    margin: 0;
}

.btn-quick {
    padding: 8px 13px;
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn-quick:hover {
    opacity: 0.9;
}

.btn-quick-onway {
    background: #1976d2;
    color: #fff;
}

.btn-quick-delivered {
    background: #28704a;
    color: #fff;
}

.btn-quick-cancel {
    background: #fbe6e4;
    color: #9b3029;
}

.status-select {
    padding: 7px 10px;
    border: 1px solid #cddbd2;
    border-radius: 7px;
    background: #fff;
    color: #173f35;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

@media (max-width: 900px) {
    .order-status-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .orders-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-filters {
        justify-content: space-between;
    }
}


/* =========================================================
   2 SEKMELİ SİPARİŞ YÖNETİMİ, ANİMASYONLAR VE SAYFALAMA
   ========================================================= */
.primary-order-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.primary-tab-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    border: 2px solid #dce9df;
    border-radius: 12px;
    background: #fff;
    color: #364842;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(23, 63, 53, 0.04);
}

.primary-tab-btn:hover {
    border-color: #88bda0;
    transform: translateY(-1px);
}

.primary-tab-btn.active {
    border-color: #173f35;
    background: #173f35;
    color: #fff;
    box-shadow: 0 10px 26px rgba(23, 63, 53, 0.14);
}

.primary-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf4ef;
    color: #173f35;
    font-size: 14px;
    font-weight: 800;
}

.primary-tab-btn.active .primary-tab-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.primary-tab-btn.active .primary-tab-badge.badge-urgent {
    background: #ff9800;
    color: #173f35;
}

.active-subsummary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border: 1px solid #dce9df;
    border-radius: 10px;
    background: #fff;
}

.subsummary-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sub-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.pill-pending {
    background: #fef3c7;
    color: #92400e;
}

.pill-preparing {
    background: #ffedd5;
    color: #c2410c;
}

.pill-onway {
    background: #dbeafe;
    color: #1e40af;
}

.sort-hint {
    color: #5b6d64;
    font-size: 12px;
    font-weight: 700;
}

/* PENDING (Beklemede) Renkleri */
.order-card.status-pending {
    border-left-color: #f59e0b;
}

.order-status-pill.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.btn-quick-preparing {
    background: #ea580c;
    color: #fff;
}

/* Kart Güncelleme ve Kaybolma Animasyonu */
.order-card {
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.2s ease;
}

.order-card.card-updating {
    opacity: 0.6;
    pointer-events: none;
}

.order-card.card-removing {
    opacity: 0;
    transform: scale(0.92) translateY(-12px);
    pointer-events: none;
}

/* Sipariş Geçmişi Filtre Çubuğu */
.history-filter-bar {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px 20px;
}

.history-status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2ee;
}

.hist-filter-btn {
    padding: 9px 15px;
    border: 1px solid #cddbd2;
    border-radius: 999px;
    background: #f8fbf9;
    color: #364842;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hist-filter-btn:hover {
    border-color: #28704a;
}

.hist-filter-btn.active {
    background: #28704a;
    border-color: #28704a;
    color: #fff;
}

.history-search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.9fr auto;
    align-items: end;
    gap: 12px;
}

.filter-field {
    display: grid;
    gap: 6px;
}

.filter-field label {
    color: #52635c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.filter-field input,
.filter-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cddbd2;
    border-radius: 8px;
    background: #fbfdfb;
    color: #173f35;
    font: inherit;
    font-size: 13px;
}

/* Sayfalama (Pagination) Çubuğu */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
    padding: 14px 20px;
}

.pagination-info {
    color: #52635c;
    font-size: 13px;
    font-weight: 700;
}

.pagination-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.page-btn {
    padding: 8px 13px;
    border: 1px solid #cddbd2;
    border-radius: 7px;
    background: #fff;
    color: #173f35;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
    border-color: #28704a;
    background: #eef7f1;
}

.page-btn.active {
    background: #173f35;
    border-color: #173f35;
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Bildirim Toast */
.toast-container {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 9999;
    display: grid;
    gap: 10px;
}

.toast-item {
    padding: 13px 18px;
    border-radius: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-success {
    background: #1d633e;
}

.toast-error {
    background: #b4342d;
}

.toast-hide {
    opacity: 0;
    transform: translateY(-10px);
}

@media (max-width: 920px) {
    .primary-order-tabs,
    .history-search-grid {
        grid-template-columns: 1fr;
    }
}
