/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Based on KOMISYONSUZ brand */
    --primary-color: #ff4d47;
    --primary-dark: #e63933;
    --primary-light: #ff6b66;
    --secondary-color: #2196F3;
    --secondary-dark: #1976D2;
    
    /* Neutral Colors */
    --background: #F5F7FA;
    --surface: #FFFFFF;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-disabled: #BDBDBD;
    
    /* Border and Shadow */
    --border-color: #E0E0E0;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
}

/* Screen reader only - visually hidden but accessible to assistive technologies */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #ff4d47 0%, #e63933 50%, #ff6b66 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Admin dashboard — tam genişlik (login body flex/padding override) */
body:has(.dashboard-container) {
    display: block;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    background: var(--background);
}

/* Ayar / admin alt sayfalar — kısa içerikte header'ı dikey ortalamasın */
body:has(.settings-container) {
    display: block;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    background: var(--background);
}

@media (max-width: 768px) {
    body:has(.dashboard-container) .dashboard-container {
        max-width: 100%;
        width: 100%;
        padding: 10px;
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
    }
}

@media (max-width: 480px) {
    body:has(.dashboard-container) .dashboard-container {
        padding: 8px;
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
    }
}

.login-container {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.register-card {
    padding: var(--spacing-2xl) var(--spacing-xl);
}

.logo-section {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    max-width: 260px;
    height: auto;
}

.register-card .logo,
.login-card .logo {
    max-width: 260px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
}

.tab-container {
    margin-bottom: var(--spacing-lg);
}

.tabs {
    display: flex;
    background: var(--background);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button i {
    font-size: 16px;
}

.tab-button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
}

.tab-button.active {
    background: var(--surface);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.login-form {
    margin-top: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.form-label i {
    font-size: 14px;
    color: var(--primary-color);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.input-with-icon .form-input {
    padding-left: 44px;
}

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-prefix {
    position: absolute;
    left: 16px;
    color: var(--text-secondary, #666);
    font-size: 16px;
    font-weight: 500;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.phone-input-wrapper .form-input {
    padding-left: 60px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.3s ease;
    background: var(--surface);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 71, 0.1);
}

.input-with-icon:focus-within .input-icon,
.password-input-wrapper:focus-within .input-icon {
    color: var(--primary-color);
}

.form-input::placeholder {
    color: var(--text-disabled);
}

.form-input:disabled {
    background: var(--background);
    cursor: not-allowed;
    opacity: 0.6;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757575' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select.form-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff4d47' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.password-input-wrapper .form-input {
    padding-left: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.eye-icon {
    font-size: 18px;
    transition: all 0.3s ease;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--spacing-xs);
    font-size: 12px;
    color: var(--text-secondary);
}

.form-hint i {
    font-size: 12px;
}

.form-options {
    margin-bottom: var(--spacing-lg);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    gap: var(--spacing-sm);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 77, 71, 0.3);
    margin-top: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-button i {
    font-size: 18px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 77, 71, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled,
.submit-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.submit-button:disabled:hover,
.submit-button.disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(255, 77, 71, 0.3);
}

.form-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.forgot-password-link i {
    font-size: 14px;
}

.forgot-password-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.signup-prompt {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.signup-prompt p {
    font-size: 14px;
    color: var(--text-secondary);
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.signup-link i {
    font-size: 14px;
}

.signup-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.info-banner {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 77, 71, 0.1) 0%, rgba(33, 150, 243, 0.1) 100%);
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-banner > i {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.info-banner p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.info-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: var(--spacing-lg);
    }
    
    .register-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .logo {
        max-width: 220px;
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading span {
    opacity: 0;
}

.loading::after {
    content: '\f110';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Messages */
.error-message {
    color: #F44336;
    font-size: 12px;
    margin-top: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
}

.form-input.error {
    border-color: #F44336;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

/* Success Messages */
.success-message {
    background: #ff4d47;
    color: white;
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.success-message::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Message Styles for Forgot/Reset Password */
.message {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    animation: slideDown 0.3s ease-out;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    margin-top: -10px;
}

/* Admin sipariş kanban / liste: SSE ile yenilenen kart veya satır — birkaç kez blink */
@keyframes dfis-order-live-blink {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 71, 0);
        background-color: transparent;
    }
    15% {
        box-shadow: 0 0 0 3px rgba(255, 77, 71, 0.45);
        background-color: rgba(255, 77, 71, 0.13);
    }
    30% {
        box-shadow: 0 0 0 0 rgba(255, 77, 71, 0);
        background-color: transparent;
    }
    45% {
        box-shadow: 0 0 0 3px rgba(255, 77, 71, 0.4);
        background-color: rgba(255, 77, 71, 0.11);
    }
    60% {
        box-shadow: 0 0 0 0 rgba(255, 77, 71, 0);
        background-color: transparent;
    }
    75% {
        box-shadow: 0 0 0 3px rgba(255, 77, 71, 0.32);
        background-color: rgba(255, 77, 71, 0.08);
    }
}

.kanban-order-row.order-live-blink {
    position: relative;
    z-index: 2;
    animation: dfis-order-live-blink 1.45s ease-in-out forwards;
}

tr.order-table-row.order-live-blink > td {
    animation: dfis-order-live-blink 1.45s ease-in-out forwards;
}

/* Plan 21 — Head Office quick link (admin header) */
.header-head-office-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.header-head-office-link:hover {
    border-color: #0f766e;
    color: #0f766e;
}

.partner-support-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: #fef3c7;
    border-bottom: 2px solid #f59e0b;
    color: #92400e;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10000;
}

.partner-support-banner button {
    border: 1px solid #d97706;
    background: #fff;
    color: #92400e;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

body.has-partner-support-banner .dashboard-container {
    /* banner offset handled by sticky flow */
}

/* Müşteri tip pill — customers + orders list */
.customer-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.customer-type-pill--member {
    color: #166534;
    background: linear-gradient(145deg, rgba(240, 253, 244, 0.98), rgba(187, 247, 208, 0.72));
    border: 1px solid rgba(34, 197, 94, 0.32);
}
.customer-type-pill--member i {
    font-size: 11px;
    opacity: 0.85;
    color: #15803d;
}
.customer-type-pill--guest {
    color: #64748b;
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(226, 232, 240, 0.75));
    border: 1px solid rgba(148, 163, 184, 0.28);
}
.customer-type-pill--guest i {
    font-size: 11px;
    opacity: 0.75;
}
.customer-type-pill--valuable {
    color: #78350f;
    background: linear-gradient(135deg, #fffbeb 0%, #fde68a 28%, #fbbf24 58%, #f59e0b 100%);
    border: 1px solid rgba(180, 83, 9, 0.42);
    box-shadow:
        0 2px 12px rgba(245, 158, 11, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.customer-type-pill--valuable i {
    color: #b45309;
    font-size: 13px;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.65));
}
@media (prefers-reduced-motion: no-preference) {
    .customer-type-pill--member {
        animation: customerMemberPillEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: var(--customer-pill-delay, 0ms);
    }
    .customer-type-pill--valuable {
        animation:
            customerMemberPillEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both,
            customerValuableCrownGlow 2.8s ease-in-out infinite;
        animation-delay: var(--customer-pill-delay, 0ms), calc(var(--customer-pill-delay, 0ms) + 0.55s);
    }
}
@keyframes customerMemberPillEnter {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes customerValuableCrownGlow {
    0%, 100% {
        box-shadow:
            0 2px 12px rgba(245, 158, 11, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.55);
    }
    50% {
        box-shadow:
            0 4px 16px rgba(245, 158, 11, 0.38),
            0 0 0 3px rgba(251, 191, 36, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.65);
    }
}

.customer-name-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.customer-name-cell__type {
    flex: 0 0 7rem;
    width: 7rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.customer-name-cell__type-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    max-width: 100%;
}
.customer-name-cell__segment {
    font-size: 11px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 7rem;
}
.customer-name-cell__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
.customer-name-cell__name-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}
.customer-name-cell__name-row .customer-name-link {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.customer-name-cell__date {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Müşteri UI pill'leri — customers list + customer detail */
.customer-contact-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.customer-verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.2;
}
.customer-verify-badge i { font-size: 10px; }
.customer-verify-badge--phone.customer-verify-badge--ok {
    color: #047857;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(209, 250, 229, 0.9));
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.customer-verify-badge--phone.customer-verify-badge--no {
    color: #b45309;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.88));
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.customer-verify-badge--email.customer-verify-badge--ok {
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.35);
}
.customer-verify-badge--email.customer-verify-badge--no {
    color: #b45309;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.88));
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.customer-phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px 5px 9px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    color: #0f766e;
    background: linear-gradient(145deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.85) 100%);
    border: 1px solid rgba(110, 231, 183, 0.55);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
    white-space: nowrap;
}
.customer-phone-pill i { font-size: 12px; color: #059669; opacity: 0.9; }
a.customer-phone-pill { text-decoration: none; color: inherit; }
a.customer-phone-pill:hover {
    border-color: #34d399;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.14);
}
.customer-phone-pill--empty {
    color: var(--text-secondary);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    font-weight: 500;
    padding-left: 0;
}
.customer-email-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 5px 11px 5px 9px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #1d4ed8;
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.98) 0%, rgba(219, 234, 254, 0.88) 100%);
    border: 1px solid rgba(147, 197, 253, 0.55);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}
.customer-email-pill__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.customer-email-pill i { font-size: 12px; color: #2563eb; opacity: 0.9; flex-shrink: 0; }
a.customer-email-pill { text-decoration: none; color: inherit; }
a.customer-email-pill:hover {
    border-color: #60a5fa;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.14);
}
.customer-email-pill--empty {
    color: var(--text-secondary);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    font-weight: 500;
    padding-left: 0;
}
.customer-orders-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 52px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.28);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}
.customer-orders-pill i { font-size: 11px; opacity: 0.85; }
.customer-spending-pill {
    display: inline-flex;
    align-items: baseline;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    color: #047857;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
    white-space: nowrap;
}
.customer-spending-pill--zero {
    color: var(--text-secondary);
    background: var(--background);
    border-color: var(--border-color);
    box-shadow: none;
    font-weight: 600;
    font-size: 13px;
}
.customer-spending-split {
    display: inline-flex;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.customer-spending-split__part {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    padding: 5px 9px;
    min-width: 0;
}
.customer-spending-split__label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.85;
}
.customer-spending-split__value {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}
.customer-spending-split__sep {
    display: flex;
    align-items: center;
    padding: 0 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.12);
}
.customer-spending-split__ordered {
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.85));
}
.customer-spending-split__paid {
    color: #047857;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(209, 250, 229, 0.85));
}
.customer-spending-split--none .customer-spending-split__paid {
    color: #b45309;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.88));
}
.customer-spending-split--partial .customer-spending-split__paid {
    color: #c2410c;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(254, 215, 170, 0.75));
}
.customer-spending-split--full {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.12);
}
.customer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}
.customer-status-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.customer-status-pill--active {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.32);
}
.customer-status-pill--active .customer-status-pill__dot {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.customer-status-pill--blocked {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.28);
}
.customer-status-pill--blocked .customer-status-pill__dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.customer-status-pill--inactive {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.22);
}
.customer-status-pill--inactive .customer-status-pill__dot {
    background: #9ca3af;
}
.customer-payment-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}
.customer-payment-pill--paid {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.3);
}
.customer-payment-pill--pending {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}
.customer-payment-pill--bad {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.24);
}
.customer-payment-pill--empty {
    color: var(--text-secondary);
    font-weight: 500;
}
.customer-service-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}
.customer-service-pill--pickup {
    color: #0f766e;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.26);
}
.customer-service-pill--delivery {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.26);
}

/* Admin orders list table — customers.html ile uyumlu pill stilleri */
#ordersTable .order-list-number-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* Liste satırı — pazaryeri: sol şerit + çok hafif düz tint (gradient yok) */
#ordersTable tbody tr.order-table-row.order-row--ch-uber > td {
    background: rgba(6, 193, 103, 0.06);
}
#ordersTable tbody tr.order-table-row.order-row--ch-uber > td:first-child {
    box-shadow: inset 3px 0 0 0 #06C167;
}
#ordersTable tbody tr.order-table-row.order-row--ch-migros > td {
    background: rgba(255, 130, 0, 0.06);
}
#ordersTable tbody tr.order-table-row.order-row--ch-migros > td:first-child {
    box-shadow: inset 3px 0 0 0 #ff8200;
}
#ordersTable tbody tr.order-table-row.order-row--ch-yemeksepeti > td {
    background: rgba(250, 0, 80, 0.05);
}
#ordersTable tbody tr.order-table-row.order-row--ch-yemeksepeti > td:first-child {
    box-shadow: inset 3px 0 0 0 #fa0050;
}
#ordersTable tbody tr.order-table-row.order-row--ch-trendyol > td {
    background: rgba(242, 122, 26, 0.06);
}
#ordersTable tbody tr.order-table-row.order-row--ch-trendyol > td:first-child {
    box-shadow: inset 3px 0 0 0 #f27a1a;
}
#ordersTable tbody tr.order-table-row.order-row--ch-getir > td {
    background: rgba(93, 62, 188, 0.05);
}
#ordersTable tbody tr.order-table-row.order-row--ch-getir > td:first-child {
    box-shadow: inset 3px 0 0 0 #5d3ebc;
}

#ordersTable .order-list-pos-meta {
    font-size: 11px;
    color: var(--text-secondary, #64748b);
}
#ordersTable .order-source-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}
#ordersTable .order-source-badge--cashbox { background: #fff7ed; color: #c2410c; }
#ordersTable .order-source-badge--table { background: #f0fdf4; color: #15803d; }
#ordersTable .order-source-badge--web { background: #eff6ff; color: #1d4ed8; }

/* Pazaryeri / kanal kaynak chip (logo veya metin) */
#ordersTable .order-source-chip,
.kanban-order-item-source .order-source-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    line-height: 1;
    vertical-align: middle;
}
#ordersTable .order-source-chip__logo,
.kanban-order-item-source .order-source-chip__logo {
    display: block;
    height: 16px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
}
/* SR-only: tüm bağlamlarda (liste + kanban brand) gizli — aksi halde Uber metni ikilenir */
.order-source-chip__sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
#ordersTable .order-source-chip__text,
.kanban-order-item-source .order-source-chip__text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #334155;
}
#ordersTable .order-source-chip--uber,
.kanban-order-item-source .order-source-chip--uber {
    background: #06C167;
    border-color: #059669;
    padding: 2px 4px;
}
#ordersTable .order-source-chip--uber .order-source-chip__logo,
.kanban-order-item-source .order-source-chip--uber .order-source-chip__logo {
    height: 20px;
    max-width: 20px;
    border-radius: 4px;
}
#ordersTable .order-source-chip--uber .order-source-chip__text,
.kanban-order-item-source .order-source-chip--uber .order-source-chip__text {
    color: #000;
    font-weight: 800;
    letter-spacing: 0.02em;
}
#ordersTable .order-source-chip--migros,
.kanban-order-item-source .order-source-chip--migros {
    background: #fff;
    border-color: #ff8200;
}
#ordersTable .order-source-chip--yemeksepeti,
.kanban-order-item-source .order-source-chip--yemeksepeti {
    background: #fff;
    border-color: #fa0050;
}
#ordersTable .order-source-chip--trendyol,
.kanban-order-item-source .order-source-chip--trendyol {
    background: #fff;
    border-color: #f27a1a;
}
#ordersTable .order-source-chip--getir,
.kanban-order-item-source .order-source-chip--getir {
    background: #f5f3ff;
    border-color: #c4b5fd;
}
#ordersTable .order-list-number-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 10px;
    background: #ecfeff;
    border: 1px solid #67e8f9;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.08);
    font-variant-numeric: tabular-nums;
}
#ordersTable .order-list-number-pill .order-number-prefix {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    margin-right: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 1px 4px rgba(15, 118, 110, 0.25);
}
#ordersTable .order-list-number-pill .order-number-suffix {
    font-family: ui-monospace, 'Courier New', monospace;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0f766e;
}
/* Performans rozeti ile aynı tonlar (order-perf-*) */
#ordersTable .order-list-number-pill.order-perf-on-time {
    background: #ecfdf5;
    border-color: #6ee7b7;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}
#ordersTable .order-list-number-pill.order-perf-on-time .order-number-prefix {
    background: linear-gradient(135deg, #10b981, #047857);
    box-shadow: 0 1px 4px rgba(4, 120, 87, 0.25);
}
#ordersTable .order-list-number-pill.order-perf-on-time .order-number-suffix {
    color: #047857;
}
#ordersTable .order-list-number-pill.order-perf-late {
    background: #fef2f2;
    border-color: #fca5a5;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
}
#ordersTable .order-list-number-pill.order-perf-late .order-number-prefix {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 1px 4px rgba(185, 28, 28, 0.25);
}
#ordersTable .order-list-number-pill.order-perf-late .order-number-suffix {
    color: #b91c1c;
}
#ordersTable .order-list-number-pill.order-perf-cancelled {
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: none;
}
#ordersTable .order-list-number-pill.order-perf-cancelled .order-number-prefix {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    box-shadow: 0 1px 4px rgba(107, 114, 128, 0.2);
}
#ordersTable .order-list-number-pill.order-perf-cancelled .order-number-suffix {
    color: #6b7280;
}
#ordersTable .order-list-number-pill.order-perf-unknown {
    background: #fffbeb;
    border-color: #fcd34d;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}
#ordersTable .order-list-number-pill.order-perf-unknown .order-number-prefix {
    background: linear-gradient(135deg, #f59e0b, #92400e);
    box-shadow: 0 1px 4px rgba(146, 64, 14, 0.2);
}
#ordersTable .order-list-number-pill.order-perf-unknown .order-number-suffix {
    color: #92400e;
}

/* Pazaryeri pill renkleri — perf sınıflarından sonra gelsin */
#ordersTable .order-list-number-pill.order-list-number-pill--ch-uber {
    background: #06C167;
    border-color: #059669;
    box-shadow: none;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-uber .order-number-prefix,
#ordersTable .order-number-prefix--uber {
    background: #000 !important;
    box-shadow: none !important;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-uber .order-number-suffix {
    color: #052e16;
    font-weight: 800;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-migros {
    background: #fff4e8;
    border-color: #ff8200;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-migros .order-number-prefix,
#ordersTable .order-number-prefix--migros {
    background: linear-gradient(135deg, #ff8200, #ff6600) !important;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-migros .order-number-suffix {
    color: #c2410c;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-yemeksepeti {
    background: #fff0f5;
    border-color: #fa0050;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-yemeksepeti .order-number-prefix,
#ordersTable .order-number-prefix--yemeksepeti {
    background: linear-gradient(135deg, #fa0050, #be123c) !important;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-yemeksepeti .order-number-suffix {
    color: #be123c;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-trendyol {
    background: #fffbeb;
    border-color: #f27a1a;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-trendyol .order-number-prefix,
#ordersTable .order-number-prefix--trendyol {
    background: linear-gradient(135deg, #f27a1a, #ea580c) !important;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-trendyol .order-number-suffix {
    color: #b45309;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-getir {
    background: #f5f3ff;
    border-color: #c4b5fd;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-getir .order-number-prefix,
#ordersTable .order-number-prefix--getir {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
}
#ordersTable .order-list-number-pill.order-list-number-pill--ch-getir .order-number-suffix {
    color: #5b21b6;
}

#ordersTable .order-list-number-date {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    padding-left: 2px;
}
#ordersTable .order-list-customer-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}
#ordersTable .order-list-customer-cell__type {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
#ordersTable .order-customer-nth-cta {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
    color: #1d4ed8;
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.98), rgba(191, 219, 254, 0.72));
    border: 1px solid rgba(59, 130, 246, 0.34);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.08);
}
#ordersTable .order-list-customer-cell__info {
    min-width: 0;
    width: 100%;
}
#ordersTable .order-list-customer-name {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    display: inline-block;
}
#ordersTable .order-list-customer-extra {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}
#ordersTable .order-list-customer-extra--pickup {
    color: #0f766e;
}
#ordersTable .order-list-customer-extra--delivery {
    color: #1d4ed8;
}
#ordersTable .order-list-customer-extra i {
    margin-right: 4px;
    font-size: 10px;
}
#ordersTable .order-list-amount-pill {
    display: inline-flex;
    align-items: baseline;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #047857;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
    white-space: nowrap;
}
#ordersTable .order-list-amount-pill .price-decimal {
    font-size: 0.72em;
    font-weight: 700;
    opacity: 0.88;
}
#ordersTable .order-list-status-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
#ordersTable .order-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    white-space: nowrap;
}
#ordersTable .order-status-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
#ordersTable .order-status-pill--pending {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.32);
}
#ordersTable .order-status-pill--pending .order-status-pill__dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
#ordersTable .order-status-pill--progress {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.28);
}
#ordersTable .order-status-pill--progress .order-status-pill__dot {
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}
#ordersTable .order-status-pill--ready {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.3);
}
#ordersTable .order-status-pill--ready .order-status-pill__dot {
    background: #10b981;
}
#ordersTable .order-status-pill--delivered {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.32);
}
#ordersTable .order-status-pill--delivered .order-status-pill__dot {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
#ordersTable .order-status-pill--cancelled {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.26);
}
#ordersTable .order-status-pill--cancelled .order-status-pill__dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
#ordersTable .order-list-actions .order-list-action-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
#ordersTable .order-list-actions .order-list-action-btn--edit:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}
#ordersTable tbody tr.order-table-row {
    cursor: default;
}
#ordersTable tbody tr.order-table-row.is-clickable {
    cursor: pointer;
}
#ordersTable tbody tr.order-table-row.is-clickable:hover {
    background: var(--background);
}

/* Sipariş süresi — performans rozeti ve canlı sayaç (orders.html ile uyumlu) */
.order-perf-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
}
.order-perf-badge i {
    margin-right: 4px;
}
.order-perf-detail {
    display: block;
    font-size: 10px;
    font-weight: 600;
    opacity: 0.88;
    padding-left: 18px;
}
.order-perf-on-time {
    color: #047857;
    background: #ecfdf5;
    border-color: #6ee7b7;
}
.order-perf-late {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fca5a5;
}
.order-perf-cancelled {
    color: #6b7280;
    background: #f3f4f6;
    border-color: #d1d5db;
}
.order-perf-unknown {
    color: #92400e;
    background: #fffbeb;
    border-color: #fcd34d;
}
.order-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.2px;
    font-variant-numeric: tabular-nums;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}
.order-timer.order-timer-live {
    color: #0f766e;
    background: #ecfeff;
    border-color: #67e8f9;
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.12);
}
.order-timer.order-timer-warn {
    color: #b45309;
    background: #fffbeb;
    border-color: #fbbf24;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15);
}
.order-timer.order-timer-danger {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fca5a5;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.16);
}
.order-timer.order-timer-max {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border-color: #b91c1c;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.28);
}
.order-timer.order-timer-awaiting-ops,
.order-timer.order-timer-awaiting-ops.order-timer-live {
    color: #64748b;
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: none;
}
.order-ops-start-hint {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #475569;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.35);
    white-space: nowrap;
}
.kanban-order-btn.cancel-btn {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid rgba(244, 63, 94, 0.35);
}
.kanban-order-btn.cancel-btn:hover {
    background: #ffe4e6;
}

/* Admin header — branch switcher */
.branch-switcher-label {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    font-weight: 600;
    flex-shrink: 0;
}
.branch-switcher-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e2e8f0);
    font-family: inherit;
    font-size: 13px;
    max-width: 220px;
    min-width: 0;
    background: var(--surface, #fff);
    color: var(--text-primary, #111);
}

/*
 * Admin dashboard header — mobile
 * Sayfa-içi .dashboard-header { padding: xl; min-height: 96px } kuralları
 * styles.css media query’sini eziyordu; kritik layout !important ile sabit.
 */
@media (max-width: 768px) {
    .dashboard-container > .dashboard-header,
    .ach-wrap > .dashboard-header,
    body.customers-page .dashboard-header,
    body.products-page .dashboard-header,
    body.customer-detail-page .dashboard-header,
    body.orders-page .dashboard-header,
    .dashboard-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        row-gap: 0 !important;
        padding: 12px !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
    }
    /* Yalnızca dashboard-header — settings-header / hub bar’a sızmasın */
    .dashboard-header .header-left {
        display: flex !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        /* Varsayılan: logo + globe yan yana (çoğu admin sayfası) */
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }
    /* Dashboard: logo + işletme adı alt alta, sağdaki aksiyonlarla aynı satır */
    .dashboard-header .header-left:has(.header-business-info) {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 2px !important;
    }
    .header-business-info {
        min-width: 0 !important;
        width: 100% !important;
        flex: 0 1 auto !important;
        margin-left: 0 !important;
        gap: 2px !important;
    }
    .header-business-name {
        font-size: clamp(14px, 3.8vw, 17px) !important;
        line-height: 1.2 !important;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-word;
    }
    .header-branch-name {
        font-size: 11px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .dashboard-header:has(.branch-switcher) .header-branch-name {
        display: none;
    }
    .dashboard-header .header-logo,
    .dashboard-header #headerLogo.header-logo {
        flex-shrink: 0 !important;
        max-width: min(120px, 42vw) !important;
        height: 28px !important;
        min-width: 0 !important;
        width: auto !important;
        object-fit: contain !important;
    }
    .dashboard-header #headerLogoLink {
        align-items: center;
        min-width: 0;
        max-width: 100%;
    }
    /* Görünür olduğunda (inline display:flex/block) boyut — gizli linki zorla açma */
    .dashboard-header #orderPageLink[style*="display: flex"],
    .dashboard-header #orderPageLink[style*="display:flex"],
    .dashboard-header #orderPageLink[style*="inline-flex"] {
        flex-shrink: 0 !important;
        width: 36px !important;
        height: 36px !important;
        padding: 8px !important;
        min-width: 36px !important;
        box-sizing: border-box !important;
        flex-direction: row !important;
    }
    .dashboard-header .header-right {
        display: flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 55% !important;
        min-width: 0 !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: auto !important;
        min-height: 0 !important;
    }
    .branch-switcher {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 112px;
        margin-right: 0 !important;
    }
    .branch-switcher-label {
        display: none !important;
    }
    .branch-switcher-select,
    .branch-switcher select {
        max-width: 112px !important;
        flex: 1 1 auto;
        min-width: 0;
        font-size: 12px !important;
    }
    .header-setup-support {
        display: none !important;
    }
    .header-status-indicator {
        padding: 5px 8px !important;
        flex-shrink: 0;
    }
    .header-status-indicator .status-text {
        font-size: 11px !important;
    }
    .header-head-office-link span {
        display: none;
    }
    .header-head-office-link {
        padding: 6px 8px;
    }
    .admin-user-menu-host,
    .header-right .admin-user-menu-host {
        margin-left: 0 !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
        min-height: 0 !important;
        width: auto !important;
    }
    /* İsim mobilde gizlenir — boş rezerv alanı / soluk yazı kalmasın */
    .user-dropdown-btn .user-name,
    .user-dropdown-btn .fa-chevron-down {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }
    .user-dropdown-btn {
        padding: 4px !important;
        gap: 0 !important;
        min-height: 0 !important;
        min-width: 0 !important;
    }
    .user-dropdown-btn .fa-user-circle {
        font-size: 22px !important;
    }
    .user-dropdown-btn.has-avatar .fa-user-circle {
        display: none !important;
    }
    .user-dropdown-avatar {
        width: 28px !important;
        height: 28px !important;
    }
}

@media (max-width: 480px) {
    .branch-switcher-label {
        display: none;
    }
    .branch-switcher-select,
    .branch-switcher select {
        max-width: min(140px, 38vw) !important;
    }
}

/* Settings sayfaları — statik .settings-header (hub inject yoksa) mobil tek satır */
@media (max-width: 768px) {
    .settings-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 12px !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
    }
    .settings-header .header-left {
        display: flex !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .settings-header .header-left h1,
    .settings-header h1 {
        font-size: clamp(15px, 4.2vw, 18px) !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .settings-header .header-left p,
    .settings-header > div > p,
    .settings-header p {
        display: none !important;
    }
    .settings-header .header-right,
    .settings-header .header-actions {
        display: flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        margin-left: auto !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
    }
    .settings-header .back-btn {
        min-height: 36px;
        min-width: 36px;
        padding: 8px;
        box-sizing: border-box;
        justify-content: center;
    }
    .settings-header .back-btn span {
        display: none;
    }
    .settings-header .header-logo {
        height: 28px !important;
        max-width: min(120px, 42vw) !important;
        width: auto !important;
        object-fit: contain !important;
    }
}

/* Müşteri listesi sayfalama */
#customersPagination.customers-pagination {
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 20px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--primary-color) 6%, var(--surface)) 0%,
            var(--surface) 42%,
            var(--surface) 100%
        );
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-color) 8%, transparent);
    box-sizing: border-box;
}
#customersPagination.customers-pagination.is-visible {
    display: flex;
}
.customers-pagination__meta {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    padding-left: 4px;
}
.customers-pagination__rail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--background) 88%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--border-color) 85%, transparent);
}
.customers-pager-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-weight: 700;
    font-size: 13px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.customers-pager-btn:hover {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
}
.customers-pager-btn:active {
    transform: scale(0.96);
}
.customers-pager-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.customers-pager-btn.is-active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 35%, transparent);
}
.customers-pager-btn.is-active:hover {
    background: var(--primary-dark, var(--primary-color));
    color: #fff;
}
.customers-pager-btn--nav {
    width: 36px;
    padding: 0;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border-color);
}
.customers-pager-btn--nav:hover {
    border-color: color-mix(in srgb, var(--primary-color) 40%, var(--border-color));
}
.customers-pager-btn--nav:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
    background: transparent;
}
.customers-pager-ellipsis {
    min-width: 28px;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 13px;
    user-select: none;
    letter-spacing: 0.08em;
}
@media (max-width: 640px) {
    #customersPagination.customers-pagination {
        justify-content: center;
        padding: 10px;
    }
    .customers-pagination__meta {
        width: 100%;
        text-align: center;
        padding-left: 0;
    }
    .customers-pagination__rail {
        margin-left: 0;
    }
}

.user-dropdown-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: none;
}
.user-dropdown-avatar.is-visible {
    display: block;
}
.user-dropdown-btn.has-avatar .fa-user-circle {
    display: none !important;
}
