/* ============================================================
   Abant Bayi Portalı — 2026 Modern B2B SaaS UI
   Light theme, clean, premium, professional
   Inspired by Linear, Stripe, Vercel, Notion
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Brand - Modern Blue */
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #3B82F6;
    --primary-soft: rgba(37, 99, 235, 0.08);
    --primary-border: rgba(37, 99, 235, 0.2);

    /* Backgrounds */
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-elevated: #F1F5F9;
    --bg-hover: #F8FAFC;
    --bg-sidebar: #FFFFFF;

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-inverse: #FFFFFF;

    /* Borders */
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --border-focus: var(--primary);

    /* Status */
    --success: #10B981;
    --success-soft: rgba(16, 185, 129, 0.1);
    --warning: #F59E0B;
    --warning-soft: rgba(245, 158, 11, 0.1);
    --danger: #EF4444;
    --danger-soft: rgba(239, 68, 68, 0.1);
    --info: #3B82F6;
    --info-soft: rgba(59, 130, 246, 0.1);

    /* Spacing & Radius */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows - Very subtle */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

    /* Layout */
    --sidebar-w: 256px;
    --header-h: 64px;
    --bottomnav-h: 0px; /* alt menü kaldırıldı (mobilde yan menü); yapışkan çubuklar bu değişkeni kullanır */
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* Transitions */
    --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Reset ========== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.5;
    min-height: 100dvh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

/* ========== Layout ========== */

.app {
    display: flex;
    min-height: 100dvh;
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--bottomnav-h) + var(--safe-bottom));
}

.app-content {
    flex: 1;
    width: 100%;
    padding: 24px 20px;
}

/* ========== Sidebar ========== */

.sidebar {
    display: none;
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-brand:hover { text-decoration: none; }

.brand-chip {
    display: flex;
    align-items: center;
}
.brand-chip img {
    height: 28px;
    width: auto;
}

.sidebar-dealer {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-dealer strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.sidebar-dealer span {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
}

.sidebar-section-title {
    padding: 14px 12px 6px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 1px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}
.sidebar-link i {
    width: 18px;
    font-size: 15px;
    text-align: center;
    color: var(--text-muted);
    transition: color var(--transition);
}
.sidebar-link:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    text-decoration: none;
}
.sidebar-link:hover i { color: var(--text-secondary); }
.sidebar-link.active {
    background: var(--primary-soft);
    color: var(--primary);
}
.sidebar-link.active i { color: var(--primary); }

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

/* ========== Topbar ========== */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    padding-top: calc(12px + var(--safe-area-top, env(safe-area-inset-top, 0px)));
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar-brand:hover { text-decoration: none; }
.topbar-brand img { height: 24px; }

.topbar-dealer {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========== Notification Bell ========== */

.notification-bell {
    position: relative;
}

.bell-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    transition: all var(--transition);
}
.bell-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.bell-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
    overflow: hidden;
}
.notification-dropdown.open {
    display: block;
    animation: slideDown 0.15s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.notification-dropdown-header strong {
    font-size: 14px;
    color: var(--text-primary);
}
.notification-dropdown-header button {
    border: none;
    background: none;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
}
.notification-dropdown-header button:hover {
    text-decoration: underline;
}

.notification-dropdown-body {
    max-height: 300px;
    overflow-y: auto;
}

.notification-dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
    text-decoration: none;
}
.notification-dropdown-item:last-child {
    border-bottom: none;
}
.notification-dropdown-item:hover {
    background: var(--bg-hover);
}
.notification-dropdown-item.unread {
    background: var(--primary-soft);
}

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.notif-icon.blue { background: var(--info-soft); color: var(--info); }
.notif-icon.green { background: var(--success-soft); color: var(--success); }
.notif-icon.amber { background: var(--warning-soft); color: var(--warning); }
.notif-icon.red { background: var(--danger-soft); color: var(--danger); }
.notif-icon.gray { background: var(--bg-elevated); color: var(--text-muted); }

.notif-content {
    flex: 1;
    min-width: 0;
}
.notif-title {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.notification-dropdown-footer {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: var(--primary);
    border-top: 1px solid var(--border);
    text-decoration: none;
}
.notification-dropdown-footer:hover {
    background: var(--bg-hover);
}

.notification-empty,
.notification-loading {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
}
.notification-empty i,
.notification-loading i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}
.notification-empty p {
    font-size: 13px;
}

/* Sidebar notification link */
.sidebar-notifications {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all var(--transition);
    text-decoration: none;
}
.sidebar-notifications:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    text-decoration: none;
}
.sidebar-notifications i {
    font-size: 16px;
}
.sidebar-notifications span:first-of-type {
    flex: 1;
}
.sidebar-notif-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== Bottom Navigation ========== */

.bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding-bottom: var(--safe-bottom);
    height: calc(var(--bottomnav-h) + var(--safe-bottom));
}

.bottomnav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}
.bottomnav-link i { font-size: 20px; }
.bottomnav-link:hover {
    text-decoration: none;
    color: var(--text-secondary);
}
.bottomnav-link.active { color: var(--primary); }

/* ========== Page Header ========== */

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.page-head h1 {
    font-size: 20px;
    font-weight: 600;
}
.page-head .sub {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
    font-weight: 400;
}
.page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.back-link:hover {
    color: var(--primary);
}

/* Grid Layout */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Detail Grid */
.detail-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.detail-value {
    font-size: 13px;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
}
.detail-section {
    margin-bottom: 20px;
}
.detail-section:last-child {
    margin-bottom: 0;
}
.detail-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.detail-section p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Timeline */
.timeline-item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.timeline-item:last-child {
    border-bottom: none;
}
.timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-muted);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 14px;
}
.timeline-content {
    flex: 1;
    min-width: 0;
}
.timeline-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.timeline-sub {
    font-size: 12px;
    color: var(--text-muted);
}
.timeline-reason {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal[hidden] {
    display: none;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}
.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    font-weight: 600;
}
.modal-close {
    background: none;
    border: none;
    padding: 8px;
    margin: -8px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
}
.modal-close:hover {
    color: var(--text-primary);
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ========== Cards ========== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
}
.card-head i {
    color: var(--text-muted);
    font-size: 16px;
}

.card-body {
    padding: 20px;
}
.card-body.flush { padding: 0; }

/* ========== Stats Grid ========== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 20px;
    background: var(--warning-soft);
    color: var(--warning);
    flex-shrink: 0;
}
.stat-icon.success { background: var(--success-soft); color: var(--success); }
.stat-icon.primary { background: var(--primary-soft); color: var(--primary); }
.stat-icon.blue { background: var(--info-soft); color: var(--info); }
.stat-icon.green { background: var(--success-soft); color: var(--success); }
.stat-icon.amber { background: var(--warning-soft); color: var(--warning); }
.stat-icon.red { background: var(--danger-soft); color: var(--danger); }

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========== Forms ========== */

.form-group { margin-bottom: 16px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 560px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

/* Filter Form */
.filter-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.filter-form .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 140px;
}
.filter-form .btn {
    flex-shrink: 0;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:hover { border-color: #CBD5E1; }
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========== Buttons ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
}
.btn-primary:hover {
    background: #1E40AF;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: #94A3B8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-inverse);
}
.btn-danger:hover {
    background: #B91C1C;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: var(--text-inverse);
}
.btn-success:hover {
    background: #047857;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-elevated); }
.btn-danger-ghost { background: transparent; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-danger-ghost:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 12px; }
.inline { display: inline; }

/* ========== Badges ========== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 500;
}
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-amber { background: var(--warning-soft); color: var(--warning); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-blue { background: var(--info-soft); color: var(--info); }
.badge-gray { background: var(--bg-elevated); color: var(--text-secondary); }

/* ========== Alerts ========== */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 16px;
}
.alert[hidden] { display: none; }
.alert i { font-size: 16px; margin-top: 1px; }
.alert-success { background: var(--success-soft); color: #065F46; }
.alert-error { background: var(--danger-soft); color: #991B1B; }
.alert-info { background: var(--info-soft); color: #1E40AF; }
.alert-warning { background: var(--warning-soft); color: #92400E; }
.alert-danger { background: var(--danger-soft); color: #991B1B; }

/* ========== Lists ========== */

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    text-decoration: none;
    color: inherit;
}
.list-item:hover {
    background: var(--bg-hover);
    text-decoration: none;
    color: inherit;
}
.list-item:last-child { border-bottom: none; }
.list-item.urgent {
    background: rgba(239, 68, 68, 0.04);
    border-left: 3px solid var(--danger);
}
.list-item.urgent:hover {
    background: rgba(239, 68, 68, 0.08);
}

.list-item-body { flex: 1; min-width: 0; }
.list-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}
.list-item-sub {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.list-item-sub strong {
    color: var(--primary);
}

.list-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.list-item-arrow {
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
}

.list-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Avatar */
.avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}
.avatar.hot {
    background: var(--danger-soft);
    color: var(--danger);
}
.avatar.cold {
    background: var(--info-soft);
    color: var(--info);
}

/* SLA Countdown */
.sla-countdown {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
}
.sla-countdown.urgent {
    background: var(--danger-soft);
    color: var(--danger);
}

/* ========== Tables ========== */

.table-wrap { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}
.table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-primary);
}
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--bg-hover); }
.table tbody tr:last-child td { border-bottom: none; }

/* ========== Empty State ========== */

.empty,
.empty-state {
    text-align: center;
    padding: 48px 24px;
}
.empty-icon,
.empty-state > i {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-xl);
    background: var(--bg-elevated);
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--text-muted);
}
.empty-state > i {
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin: 0 0 6px; }
.empty-state .btn { margin-top: 16px; }
.empty h3,
.empty-state p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}
.empty p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 280px;
    margin: 8px auto 0;
}

/* ========== Pagination ========== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}
.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========== Auth Pages ========== */

.auth-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    padding-top: calc(24px + var(--safe-area-top, env(safe-area-inset-top, 0px)));
    background: var(--bg-body);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    text-align: center;
}

.auth-logo-img {
    height: 48px;
    width: auto;
}

.auth-subtitle {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-xs);
}

.auth-welcome {
    text-align: center;
    margin-bottom: 24px;
}
.auth-welcome h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.auth-welcome p {
    font-size: 13px;
    color: var(--text-muted);
}

/* 2FA */
.code-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 12px;
    font-weight: 600;
}

.qr-box {
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}
.qr-box img { max-width: 180px; width: 100%; }

.secret-box {
    text-align: center;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    letter-spacing: 2px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    user-select: all;
}

.recovery-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.recovery-list li {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    text-align: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-xs);
    padding: 10px 8px;
    user-select: all;
}

/* ========== Utilities ========== */

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-end { text-align: right; }
.fw-bold { font-weight: 600; }
.btn-group { display: inline-flex; gap: 4px; }
.text-sm { font-size: 12px; }
.text-center { text-align: center; }

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.d-block { display: block; }
.d-flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.w-100 { width: 100%; }

/* Responsive visibility */
@media (max-width: 640px) {
    .hide-mobile { display: none !important; }
}
@media (min-width: 641px) {
    .hide-desktop { display: none !important; }
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.hidden { display: none !important; }

/* ========== Desktop ========== */

@media (min-width: 900px) {
    .topbar { display: none; }
    .bottomnav { display: none; }
    .sidebar { display: flex; }
    .app-main { padding-bottom: 0; }
    .app-content { padding: 28px 32px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .page-head h1 { font-size: 24px; }
}

/* ========== Tablet ========== */

@media (min-width: 768px) and (max-width: 899px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .app-content { padding: 24px; }
}

/* ========== Mobile Optimizations ========== */

@media (max-width: 767px) {
    html { font-size: 15px; }
    .app-content { padding: 16px; }
    .card-body { padding: 16px; }
    .card-head { padding: 14px 16px; }
    .list-item { padding: 12px 16px; }
    .auth-card { padding: 32px 24px; }
}

/* === Action Banner (Pending Lead için) === */
.action-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.action-banner-info {
    background: linear-gradient(135deg, #3B82F620 0%, #60A5FA20 100%);
    border: 1px solid #3B82F6;
}
.action-banner-warning {
    background: linear-gradient(135deg, #F59E0B20 0%, #FBBF2420 100%);
    border: 1px solid #F59E0B;
}
.action-banner-danger {
    background: linear-gradient(135deg, #EF444420 0%, #F8717120 100%);
    border: 1px solid #EF4444;
}
.action-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}
.action-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.action-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.action-banner-text strong {
    font-size: 1rem;
    color: var(--text);
}
.action-banner-text span {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.action-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Large button variant */
.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Outline danger button */
.btn-outline-danger {
    background: transparent;
    color: #EF4444;
    border: 2px solid #EF4444;
}
.btn-outline-danger:hover {
    background: #EF4444;
    color: #fff;
}
.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary-border);
}
.btn-outline-primary:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}
.btn-outline-success {
    background: transparent;
    color: var(--success);
    border: 1px solid var(--success);
}
.btn-outline-success:hover {
    background: var(--success-soft);
}
.btn-info {
    background: #0EA5E9;
    color: var(--text-inverse);
}
.btn-info:hover {
    background: #0284C7;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
    transform: translateY(-1px);
}

/* Text danger */
.text-danger {
    color: #EF4444;
}

@media (max-width: 640px) {
    .action-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .action-banner-content {
        flex-direction: column;
    }
    .action-banner-actions {
        justify-content: center;
    }
}

/* ========== Modern Confirm Dialog ========== */

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.confirm-modal:not([hidden]) {
    opacity: 1;
    visibility: visible;
}
.confirm-modal.active {
    opacity: 1;
    visibility: visible;
}
.confirm-modal.active .confirm-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.confirm-box {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
}

.confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
}
.confirm-icon-blue {
    background: var(--info-soft);
    color: var(--info);
}
.confirm-icon-amber {
    background: var(--warning-soft);
    color: var(--warning);
}
.confirm-icon-red {
    background: var(--danger-soft);
    color: var(--danger);
}
.confirm-icon-green {
    background: var(--success-soft);
    color: var(--success);
}

.confirm-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.confirm-message {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.confirm-actions {
    display: flex;
    gap: 0.75rem;
}
.confirm-actions .btn {
    flex: 1;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
}

/* Button color variants */
.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    background: #059669;
}
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #DC2626;
}
.btn-warning {
    background: var(--warning);
    color: white;
}
.btn-warning:hover {
    background: #D97706;
}

@media (max-width: 400px) {
    .confirm-box {
        padding: 1.5rem;
    }
    .confirm-actions {
        flex-direction: column-reverse;
    }
}

/* ========== Toast Notifications ========== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: calc(100vw - 40px);
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast i:first-child {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.toast-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* Toast Types */
.toast-success {
    border-left: 4px solid var(--success);
}
.toast-success i:first-child {
    color: var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}
.toast-error i:first-child {
    color: var(--danger);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}
.toast-warning i:first-child {
    color: var(--warning);
}

.toast-info {
    border-left: 4px solid var(--info);
}
.toast-info i:first-child {
    color: var(--info);
}

/* Mobile */
@media (max-width: 480px) {
    .toast-container {
        top: auto;
        bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 16px);
        left: 16px;
        right: 16px;
    }
}

/* ========== Sekmeler (iş kuyruğu) ========== */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.tab:hover { color: var(--text-primary); text-decoration: none; }
.tab i { color: var(--text-muted); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab.active i { color: var(--primary); }
.tab-count {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}
.tab.active .tab-count { background: var(--primary-soft); color: var(--primary); }
.tab.attention .tab-count { background: var(--warning); color: #fff; }

.queue-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.queue-search > i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}
.queue-search .form-control { padding-left: 38px; max-width: 480px; }

/* Yanıt bekleyen lead kartı */
.queue-card { padding: 16px 20px; }
.queue-card-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.queue-card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.queue-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--text-secondary);
}
.queue-card-meta i { color: var(--text-muted); margin-right: 3px; }
.queue-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}
.queue-card-actions form { margin: 0; }
.queue-card-actions .btn-ghost { margin-left: auto; }
.countdown { white-space: nowrap; font-size: 12px; }

.inline-reject > summary { list-style: none; cursor: pointer; }
.inline-reject > summary::-webkit-details-marker { display: none; }
.inline-reject[open] { flex-basis: 100%; order: 3; }
.inline-reject[open] > summary { margin-bottom: 8px; }
.inline-reject form { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.inline-reject form .btn { align-self: flex-start; }

.queue-table td { vertical-align: middle; }
.row-actions { white-space: nowrap; }
.small { font-size: 12px; }

@media (max-width: 640px) {
    .queue-card-main { flex-direction: column; }
    .queue-card-actions .btn-ghost { margin-left: 0; }
    .queue-table th:nth-child(2), .queue-table td:nth-child(2),
    .queue-table th:nth-child(6), .queue-table td:nth-child(6) { display: none; }
}

/* ========== Aranabilir kişi seçici [data-picker] ========== */
.picker { position: relative; }
.picker-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    text-align: left;
    cursor: pointer;
    background: var(--bg-card);
}
.picker-trigger > i { margin-left: auto; color: var(--text-muted); font-size: 12px; transition: transform var(--transition); }
.picker.open .picker-trigger > i { transform: rotate(180deg); }
.picker-trigger.is-empty { color: var(--text-muted); }
.picker-selected { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker.open .picker-trigger { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.picker.has-error .picker-trigger { border-color: var(--danger); }
.picker-error { display: none; margin-top: 6px; font-size: 12px; color: var(--danger); }
.picker.has-error .picker-error { display: block; }

.picker-panel {
    position: absolute;
    z-index: 200;
    top: calc(100% + 6px);
    left: 0;
    width: max(100%, 420px);
    max-width: calc(100vw - 32px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}
.picker-search-wrap { position: relative; padding: 10px; border-bottom: 1px solid var(--border-light); }
.picker-search-wrap > i { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.picker-search { padding-left: 36px; }

.picker-tabs { display: flex; gap: 4px; padding: 8px 10px 0; }
.picker-tab {
    padding: 6px 10px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}
.picker-tab span { margin-left: 4px; color: var(--text-muted); }
.picker-tab:hover { background: var(--bg-elevated); }
.picker-tab.active { background: var(--primary-soft); color: var(--primary); }
.picker-tab.active span { color: var(--primary); }

.picker-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.picker-group {
    padding: 10px 10px 4px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.picker-option { padding: 9px 10px; border-radius: var(--radius-md); cursor: pointer; }
.picker-option:hover, .picker-option.active { background: var(--bg-elevated); }
.picker-option.selected { background: var(--primary-soft); }
.picker-option-main { font-size: 13.5px; }
.picker-option-meta { margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.picker-empty { padding: 24px 12px; text-align: center; font-size: 13px; color: var(--text-muted); }
.picker-footer {
    display: flex;
    gap: 16px;
    padding: 10px 14px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-elevated);
    font-size: 12.5px;
}

@media (max-width: 640px) {
    .picker-panel { position: fixed; left: 16px; right: 16px; top: 80px; width: auto; }
    .picker-list { max-height: 50vh; }
}

/* ========== Firma bilgileri ========== */
.company-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .company-grid { grid-template-columns: 1fr 1fr; } }
.logo-preview {
    display: flex; align-items: center; justify-content: center;
    height: 140px; margin-bottom: 16px; padding: 16px;
    border: 1px dashed var(--border); border-radius: var(--radius-md);
    background: repeating-conic-gradient(var(--bg-elevated) 0% 25%, var(--bg-card) 0% 50%) 50% / 16px 16px;
}
.logo-preview img { max-height: 100%; max-width: 100%; object-fit: contain; }
.logo-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; }
.logo-empty i { font-size: 28px; }
.logo-form { display: flex; flex-direction: column; gap: 8px; }
.logo-actions { margin-top: 4px; }
.logo-remove { margin-top: 8px; }
.detail-list { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; margin-bottom: 12px; font-size: 13px; }
.detail-list dt { color: var(--text-muted); }
.detail-list dd { color: var(--text-primary); }

/* ========== Satış: teslimat seçenekleri ========== */
.delivery-options { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1000px) { .delivery-options { grid-template-columns: 1fr 1.25fr; } }
.delivery-option { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }
.delivery-option.recommended { border-color: var(--primary-border); background: var(--primary-soft); }
.delivery-option h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.delivery-option h4 i { color: var(--primary); }
.stock-check { list-style: none; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.stock-check li.ok i { color: var(--success); }
.stock-check li.missing i { color: var(--danger); }
.cost-box { margin: 12px 0; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.cost-box > div { display: flex; justify-content: space-between; gap: 12px; }
.cost-box .margin { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--border); color: var(--success); }
.cost-box .margin.negative { color: var(--danger); }
.delivery-form .form-label { margin-top: 4px; }
.address-choice { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); cursor: pointer; font-size: 13px; }
.address-choice:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.address-choice input { margin-top: 3px; }
.new-address { display: none; margin-top: 10px; padding: 12px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border); }
.delivery-form:has(input[name="address_choice"][value="new"]:checked) .new-address { display: block; }
.check-inline { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.delivery-status { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.sale-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1000px) { .sale-grid { grid-template-columns: 2fr 1fr; } }
.sale-totals { display: flex; flex-direction: column; gap: 6px; max-width: 360px; margin-left: auto; font-size: 13px; }
.sale-totals > div { display: flex; justify-content: space-between; gap: 16px; }
.sale-totals .grand { padding-top: 8px; border-top: 1px solid var(--border); font-size: 16px; font-weight: 700; color: var(--primary); }

/* Devre dışı butonlar */
.btn:disabled, .btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

/* ========== Satış / kalem formu ========== */
.form-grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .form-grid-3 { grid-template-columns: 1.4fr 1fr 1fr; } }
.line-table td { vertical-align: top; padding: 8px 6px; }
.line-table .form-control { padding: 8px 10px; font-size: 13px; }
.li-product-cell { position: relative; min-width: 240px; }
.li-code { margin-top: 3px; min-height: 16px; }
.li-results { top: 44px; width: max(100%, 460px); }
.li-results .picker-option { padding: 8px 10px; }
.li-opt { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.li-opt-right { display: flex; gap: 8px; align-items: center; white-space: nowrap; font-weight: 600; color: var(--primary); }
.li-disc-group { display: flex; gap: 4px; }
.li-disc-group .li-disc { min-width: 0; }
.li-disc-group .li-disc-type { width: 64px; flex-shrink: 0; }
.li-total { white-space: nowrap; padding-top: 16px !important; }
.line-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 12px; }
.line-footer .sale-totals { flex: 1; min-width: 260px; }
.sticky-bar {
    position: sticky; bottom: 12px; z-index: 50;
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 10px 16px; margin-top: 16px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}
.sticky-bar .sticky-total { margin-right: auto; font-size: 13px; color: var(--text-muted); }
.sticky-bar .sticky-total strong { margin-left: 6px; font-size: 18px; color: var(--text-primary); }
@media (max-width: 640px) {
    .sticky-bar { flex-wrap: wrap; }
    .sticky-bar .sticky-total { width: 100%; }
}

/* ===== Satış detay: teslimat yöntemi seçimi ===== */
.sale-grid { margin-bottom: 16px; }
.sale-head-total { font-weight: 700; color: var(--primary); }
.method-tiles { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 760px) { .method-tiles { grid-template-columns: 1fr 1fr; } }
.method-tile { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.method-tile:hover { border-color: var(--primary-border); }
.method-tile input { position: absolute; opacity: 0; pointer-events: none; }
.method-tile:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--primary-soft); }
.method-tile:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.method-icon { flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-muted, #f1f3f5); color: var(--primary); font-size: 17px; }
.method-tile:has(input:checked) .method-icon { background: var(--primary); color: #fff; }
.method-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.method-panel { display: none; }
.delivery:has(input[name="delivery_method"][value="stock"]:checked) .method-panel[data-method="stock"],
.delivery:has(input[name="delivery_method"][value="hq"]:checked) .method-panel[data-method="hq"] { display: block; }
.hq-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1000px) { .hq-layout { grid-template-columns: 1.6fr 1fr; } }
.hq-summary .cost-box { margin-top: 6px; }
.address-list { display: flex; flex-direction: column; }
.delivery .new-address { padding: 16px; }
.addr-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .addr-grid { grid-template-columns: 1fr 1fr; } .addr-grid .addr-full { grid-column: 1 / -1; } }
.addr-grid select:disabled { opacity: .6; cursor: not-allowed; }
.btn-block { width: 100%; justify-content: center; }
.d-block { display: block; }
.delivery-form .address-list > .address-choice:only-child { display: none; }
.delivery-form .address-list:has(> .address-choice:only-child) + .new-address { margin-top: 0; }

/* ===== Müşteri kartı (360°) ===== */
.cust-hero { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px; margin-top: 8px; }
.cust-hero-main { display: flex; gap: 16px; min-width: 0; flex: 1 1 420px; }
.cust-avatar { flex: 0 0 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 20px; letter-spacing: .5px; background: var(--primary-soft); color: var(--primary); }
.cust-avatar.is-company { border-radius: 12px; }
.cust-hero-text { min-width: 0; }
.cust-hero h1 { font-size: 22px; line-height: 1.25; margin: 0 0 6px; word-break: break-word; }
.cust-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--text-muted); }
.cust-meta i { margin-right: 3px; }
.cust-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-primary); background: var(--bg-card); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { border-color: var(--primary-border); color: var(--primary); text-decoration: none; }
.chip i { color: var(--text-muted); }
.chip.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.chip-wa i { color: #25D366; }
.cust-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.cust-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .cust-kpis { grid-template-columns: repeat(4, 1fr); } }
.cust-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-align: left; font: inherit; color: inherit; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 0; }
button.cust-kpi { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
button.cust-kpi:hover { border-color: var(--primary-border); box-shadow: var(--shadow-sm); }
.kpi-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.cust-kpi strong { font-size: 22px; line-height: 1.2; }
.cust-kpi strong small { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.cust-kpi .kpi-date { font-size: 18px; }
.kpi-sub { font-size: 12px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cust-tabs { margin-bottom: 16px; scroll-margin-top: 12px; }
.cust-panel[hidden] { display: none; }
.cust-overview { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .cust-overview { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.cust-overview .card, .cust-side .card { margin-bottom: 0; }
.cust-side { display: flex; flex-direction: column; gap: 16px; }

/* Aktivite akışı */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; display: flex; gap: 12px; padding-bottom: 18px; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--border); }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--bg-elevated); color: var(--text-muted); }
.tl-blue { background: var(--primary-soft); color: var(--primary); }
.tl-green { background: var(--success-soft); color: var(--success); }
.tl-red { background: var(--danger-soft); color: var(--danger); }
.tl-amber { background: var(--warning-soft); color: var(--warning); }
.tl-body { min-width: 0; flex: 1; padding-top: 5px; }
.tl-title { font-size: 14px; font-weight: 500; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.tl-title a { color: var(--text-primary); }
.tl-title a:hover { color: var(--primary); }
.tl-amount { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.tl-detail { font-size: 13px; color: var(--text-secondary); margin-top: 3px; word-break: break-word; }
.tl-time { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Bilgi listesi */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; margin: 0; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; text-align: right; word-break: break-word; }
.cust-notes { margin-top: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.5; background: var(--bg-elevated); border-radius: var(--radius-md); }
.empty-inline { font-size: 13px; color: var(--text-muted); padding: 4px 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Kayıt listeleri (masaüstü ve mobilde aynı) */
.row-list { display: flex; flex-direction: column; }
.row-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.row-item:last-child { border-bottom: 0; }
.row-item:hover { background: var(--bg-elevated); text-decoration: none; }
.row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-main strong { font-size: 14px; color: var(--text-primary); }
.row-main span { overflow: hidden; text-overflow: ellipsis; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.row-side strong { font-size: 14px; white-space: nowrap; }

/* Adres kartları */
.addr-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .addr-cards { grid-template-columns: repeat(2, 1fr); } }
.addr-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); display: flex; flex-direction: column; gap: 3px; }
.addr-card.is-default { border-color: var(--primary-border); box-shadow: 0 0 0 2px var(--primary-soft); }
.addr-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.addr-card-head form { margin-left: auto; }
.addr-card-contact { margin-top: 6px; }
.modal-content.modal-wide { max-width: 620px; }

/* Mobil hızlı işlem çubuğu */
.cust-mobile-bar { display: none; }
@media (max-width: 899px) {
    .cust-hero { padding: 16px; }
    .cust-hero h1 { font-size: 19px; }
    .cust-avatar { flex-basis: 48px; height: 48px; font-size: 17px; }
    .cust-actions .btn-primary, .cust-actions .btn-secondary { display: none; }
    .cust-actions .btn-ghost { position: absolute; top: 12px; right: 12px; }
    .cust-hero { position: relative; gap: 0; }
    .cust-actions { width: auto; }
    .cust-hero-main { padding-right: 36px; }
    .row-item { padding: 12px 16px; }
    .cust-mobile-bar {
        display: flex; position: sticky; z-index: 40;
        bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 8px);
        margin-top: 16px; padding: 6px; gap: 6px;
        background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.10);
    }
    .cust-mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px; font-size: 11px; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
    .cust-mobile-bar a i { font-size: 17px; color: var(--primary); }
    .cust-mobile-bar a .fa-whatsapp { color: #25D366; }
    .cust-mobile-bar a.is-primary { background: var(--primary); color: #fff; }
    .cust-mobile-bar a.is-primary i { color: #fff; }
}
@media (max-width: 480px) {
    .hide-sm { display: none; }
    .cust-kpi strong { font-size: 19px; }
}

/* ===== Müşteri listesi ===== */
.list-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.list-toolbar .queue-search { flex: 1 1 280px; margin: 0; }
.list-toolbar .queue-search .form-control { max-width: none; }
.list-toolbar > select.form-control { width: auto; flex: 0 0 auto; min-width: 150px; }
.cust-list { overflow: hidden; }
.cust-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background .12s; }
.cust-row:last-child { border-bottom: 0; }
.cust-row:hover { background: var(--bg-elevated); }
.cust-row.is-inactive { opacity: .65; }
.cust-row-link { position: absolute; inset: 0; z-index: 1; }
.cust-row-link:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.cust-avatar.sm { flex-basis: 44px; width: 44px; height: 44px; font-size: 15px; border-radius: 12px; }
.cust-row-main { min-width: 0; }
.cust-row-name { font-size: 15px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-row-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 3px; font-size: 13px; color: var(--text-muted); }
.cust-row-meta i { margin-right: 3px; font-size: 12px; }
.cust-row-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 8px; max-width: 320px; }
.cust-row-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-amber { background: var(--warning-soft); color: var(--warning); }
.pill-green { background: var(--success-soft); color: var(--success); }
.cust-row-actions { position: relative; z-index: 2; display: flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); text-decoration: none; }
.icon-btn:hover { border-color: var(--primary-border); color: var(--primary); text-decoration: none; }
.icon-btn.is-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.icon-btn.is-primary:hover { filter: brightness(1.08); color: #fff; }
.page-link { min-width: 36px; height: 36px; padding: 0 10px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text-secondary); font-size: 13px; text-decoration: none; }
.page-link:hover { border-color: var(--primary-border); color: var(--primary); text-decoration: none; }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination { flex-wrap: wrap; gap: 6px; }
.pagination-info { margin-left: 8px; }
@media (max-width: 767px) {
    .list-toolbar .queue-search { flex-basis: 100%; }
    .list-toolbar > select.form-control { flex: 1 1 0; min-width: 0; }
    .cust-row { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "av main act" "av stats stats"; gap: 6px 12px; padding: 12px 16px; }
    .cust-row .cust-avatar { grid-area: av; align-self: start; flex-basis: 40px; width: 40px; height: 40px; font-size: 14px; }
    .cust-row-main { grid-area: main; }
    .cust-row-actions { grid-area: act; }
    .cust-row-stats { grid-area: stats; justify-content: flex-start; max-width: none; }
    .cust-row-stats:empty { display: none; }
    .cust-row-actions .icon-btn:not(.is-primary):not([title="Ara"]) { display: none; }
}

/* ===== Merkez siparişi detayı ===== */
.order-steps-card { padding: 20px 20px 16px; }
.order-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.order-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.order-steps li:not(:first-child)::before { content: ''; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.order-steps li.done::before, .order-steps li.current::before { background: var(--primary); }
.step-dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-elevated); color: var(--text-muted); border: 2px solid var(--border); font-size: 14px; }
.order-steps li.done .step-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.order-steps li.current .step-dot { background: var(--bg-card); border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.step-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.order-steps li.done .step-label, .order-steps li.current .step-label { color: var(--text-primary); }
.step-date { font-size: 12px; color: var(--text-muted); }
.order-steps-hint { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); text-align: center; }
.order-cancelled { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.order-cancelled > i { margin-top: 3px; }
.order-main { min-width: 0; }
.order-main .card:last-child { margin-bottom: 0; }
.order-delivery { display: flex; flex-direction: column; gap: 12px; }
.delivery-target { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-md); background: var(--primary-soft); }
.delivery-target > i { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-card); color: var(--primary); }
.delivery-line { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; }
.delivery-line > i { color: var(--text-muted); margin-top: 3px; width: 14px; text-align: center; }
.note-block { font-size: 13px; line-height: 1.5; }
.note-block + .note-block { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.cust-side > .card > .row-item { border-bottom: 0; }
@media (max-width: 640px) {
    .order-steps-card { padding: 16px 8px 12px; }
    .step-dot { width: 30px; height: 30px; font-size: 12px; }
    .order-steps li:not(:first-child)::before { top: 14px; }
    .step-label { font-size: 11px; }
    .step-date { font-size: 10px; }
}

/* ===== Satış listesi ===== */
@media (min-width: 900px) { .cust-kpis.kpis-3 { grid-template-columns: repeat(3, 1fr); } }
a.cust-kpi { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.cust-kpi:hover { border-color: var(--primary-border); box-shadow: var(--shadow-sm); text-decoration: none; }
.cust-kpi.is-attention { border-color: var(--warning); background: var(--warning-soft); }
.sale-state { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; background: var(--bg-elevated); color: var(--text-muted); }
.sale-row .cust-row-stats { flex-direction: column; align-items: flex-end; gap: 3px; }
.sale-row-amount { font-size: 15px; white-space: nowrap; }
.sale-row .cust-row-actions { min-width: 0; }
.sale-row .cust-row-actions form { margin: 0; }
@media (min-width: 768px) { .sale-row .cust-row-actions { min-width: 150px; justify-content: flex-end; } }
@media (max-width: 767px) {
    .sale-row .sale-state { grid-area: av; align-self: start; width: 40px; height: 40px; font-size: 15px; }
    .sale-row .cust-row-stats { flex-direction: row; align-items: center; flex-wrap: wrap; }
    .sale-row .sale-row-amount { margin-left: auto; }
}
@media (max-width: 899px) {
    .cust-kpis.kpis-3 .cust-kpi:first-child { grid-column: 1 / -1; }
    .cust-kpis.kpis-3 { gap: 8px; }
    .cust-kpis.kpis-3 .cust-kpi { padding: 12px 14px; }
    .cust-kpis.kpis-3 .cust-kpi:not(:first-child) .kpi-sub { display: none; }
}

/* ===== Teklif listesi ===== */
.quote-signal { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.quote-signal i { margin-right: 3px; }
.validity-amber { color: var(--warning); font-weight: 600; }
.validity-red { color: var(--danger); font-weight: 600; }
.icon-btn.icon-wa { color: #25D366; }
.icon-btn.icon-wa:hover { border-color: #25D366; color: #1da851; }
.cust-row-actions form { margin: 0; }

/* ===== Ürün kataloğu ve sepet ===== */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: -4px 0 16px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: all .15s; }
.filter-chip:hover { border-color: var(--primary-border); color: var(--primary); text-decoration: none; }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.catalog-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.catalog-card:hover { border-color: var(--primary-border); box-shadow: 0 10px 30px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.catalog-media { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--bg-elevated), var(--primary-soft)); overflow: hidden; }
.catalog-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .3s; }
.catalog-card:hover .catalog-media img { transform: scale(1.04); }
.catalog-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--primary); }
.catalog-placeholder i { font-size: 34px; opacity: .55; }
.catalog-placeholder small { font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--text-muted); }
.catalog-placeholder.is-large i { font-size: 64px; }
.stock-pill { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .92); color: var(--text-secondary); box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.stock-pill.has { color: var(--success); }
.price-flag { position: absolute; right: 10px; top: 10px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--primary); color: #fff; }
.catalog-body { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.catalog-cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.catalog-name { font-size: 15px; font-weight: 600; line-height: 1.3; margin: 0; }
.catalog-name a { color: var(--text-primary); text-decoration: none; }
.catalog-name a:hover { color: var(--primary); }
.catalog-code { font-size: 12px; color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.catalog-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 10px; }
.catalog-price .price-label { width: 100%; font-size: 11px; color: var(--text-muted); font-weight: 500; }
.catalog-price strong { font-size: 20px; color: var(--text-primary); letter-spacing: -.3px; }
.catalog-price.is-large strong { font-size: 30px; }
.price-vat { font-size: 12px; color: var(--text-muted); }
.catalog-rrp { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.catalog-foot { padding: 10px 16px 16px; }
.catalog-min { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 6px; }
.catalog-blocked { font-size: 13px; color: var(--text-muted); text-align: center; padding: 9px 0; }

/* Sepet kontrolü: ekle ↔ sayaç */
.cart-control { position: relative; height: 40px; }
.cart-control.is-large { height: 48px; min-width: 220px; }
.cart-control .cart-add, .cart-control .cart-stepper { position: absolute; inset: 0; width: 100%; transition: opacity .2s, transform .2s; }
.cart-control .cart-add { justify-content: center; }
.cart-control .cart-stepper { display: flex; align-items: stretch; border: 1.5px solid var(--primary); border-radius: var(--radius-md); background: var(--primary-soft); overflow: hidden; opacity: 0; transform: scale(.92); pointer-events: none; }
.cart-control.in-cart .cart-add { opacity: 0; transform: scale(.92); pointer-events: none; }
.cart-control.in-cart .cart-stepper { opacity: 1; transform: none; pointer-events: auto; }
.step-btn { flex: 0 0 42px; border: 0; background: transparent; color: var(--primary); font-size: 14px; cursor: pointer; }
.step-btn:hover { background: rgba(37, 99, 235, .12); }
.step-input { flex: 1; min-width: 0; border: 0; background: transparent; text-align: center; font-size: 16px; font-weight: 700; color: var(--primary); -moz-appearance: textfield; }
.step-input::-webkit-outer-spin-button, .step-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-input:focus { outline: none; background: var(--bg-card); }
.cart-control.is-busy { opacity: .6; pointer-events: none; }

/* Sepet düğmesi, rozet, uçuş */
.cart-btn { position: relative; }
.cart-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.cart-badge[hidden] { display: none; }
.cart-btn .cart-badge { position: absolute; top: -7px; right: -7px; box-shadow: 0 0 0 2px var(--bg-body, #f8fafc); }
[data-cart-target].bump { animation: cart-bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cart-bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.cart-fly { position: fixed; z-index: 1000; pointer-events: none; border-radius: 50%; background: var(--primary-soft) center / contain no-repeat; color: var(--primary); display: grid; place-items: center; font-size: 28px; box-shadow: 0 8px 24px rgba(37, 99, 235, .35); transition: transform .6s cubic-bezier(.5, -.3, .7, .4), opacity .6s; }

/* Sepet özeti çubuğu */
.cart-bar { position: sticky; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 20px auto 0; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--text-primary, #0f172a); color: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, .25); animation: cart-bar-in .3s ease-out; }
.cart-bar[hidden] { display: none; }
@keyframes cart-bar-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.cart-bar-icon { position: relative; width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .12); font-size: 17px; }
.cart-bar-icon .cart-badge { position: absolute; top: -6px; right: -6px; }
.cart-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cart-bar-text strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-bar-text > span { font-size: 12px; opacity: .7; }
.cart-bar .btn { white-space: nowrap; }
@media (max-width: 899px) { .cart-bar { bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 8px); } }

/* Ürün detayı */
.product-page { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 900px) { .product-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.product-page-media { position: relative; aspect-ratio: 1; margin: 0; overflow: hidden; background: linear-gradient(135deg, var(--bg-elevated), var(--primary-soft)); }
.product-page-media img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.product-page-info .card { margin-bottom: 16px; }
.product-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; }
.product-facts > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.product-facts i { grid-row: 1 / 3; align-self: center; color: var(--primary); }
.product-facts span { font-size: 11px; color: var(--text-muted); }
.product-facts strong { font-size: 14px; }
.product-page-buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.product-page-buy .cart-control { flex: 1 1 220px; }
.product-text { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* Sepet sayfası */
.cart-lines { display: flex; flex-direction: column; }
.cart-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) 150px 120px 36px; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: opacity .25s, transform .25s; }
.cart-line:last-child { border-bottom: 0; }
.cart-line.is-leaving { opacity: 0; transform: translateX(24px); }
.cart-line-thumb { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.cart-line-info { display: flex; flex-direction: column; min-width: 0; }
.cart-line-name { font-weight: 600; color: var(--text-primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-name:hover { color: var(--primary); }
.cart-line .cart-control .cart-add { display: none; }
.cart-line .cart-control .cart-stepper { opacity: 1; transform: none; pointer-events: auto; }
.cart-line-total { text-align: right; white-space: nowrap; }
.cart-summary-card { position: sticky; top: 16px; }
.cart-note { margin: 4px 0 8px; }
.cart-summary-card .btn-block + .btn-block { margin-top: 6px; }
@media (max-width: 640px) {
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .catalog-body { padding: 10px 12px 4px; }
    .catalog-foot { padding: 8px 12px 12px; }
    .catalog-name { font-size: 14px; }
    .catalog-price strong { font-size: 17px; }
    .catalog-rrp { display: none; }
    .stock-pill { left: 6px; bottom: 6px; font-size: 10px; }
    .cart-control .cart-add span { font-size: 13px; }
    .cart-line { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "thumb info rm" "thumb ctl total"; row-gap: 8px; padding: 12px 16px; }
    .cart-line-thumb { grid-area: thumb; width: 40px; height: 40px; align-self: start; }
    .cart-line-info { grid-area: info; }
    .cart-line .cart-control { grid-area: ctl; max-width: 150px; }
    .cart-line-total { grid-area: total; }
    .cart-line-remove { grid-area: rm; width: 32px; height: 32px; }
    .cart-bar-text > span { display: none; }
}

/* ===== Seçici: modal pencere ===== */
.picker-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); animation: picker-fade .15s ease-out; }
.picker-backdrop[hidden] { display: none; }
.picker .picker-panel { position: fixed; z-index: 901; top: 12vh; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); max-width: none; display: flex; flex-direction: column; max-height: 76vh; border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); animation: picker-pop .18s ease-out; }
.picker .picker-panel[hidden] { display: none; }
@keyframes picker-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes picker-pop { from { opacity: 0; transform: translate(-50%, 12px) scale(.98); } to { opacity: 1; transform: translateX(-50%); } }
.picker-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 4px; }
.picker-head strong { font-size: 16px; }
.picker-close { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 16px; }
.picker-close:hover { background: var(--bg-elevated); color: var(--text-primary); }
.picker .picker-search-wrap { border-bottom: 0; padding: 8px 16px; }
.picker .picker-search-wrap > i { left: 30px; }
.picker .picker-search { height: 44px; font-size: 15px; }
.picker .picker-tabs { padding: 0 16px 6px; border-bottom: 1px solid var(--border-light); }
.picker .picker-list { flex: 1; max-height: none; min-height: 160px; padding: 8px; }
.picker-option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.picker-avatar { flex: 0 0 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--primary-soft); color: var(--primary); }
.picker-avatar.is-lead { background: var(--warning-soft); color: var(--warning); }
.picker-option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.picker-option-main, .picker-option-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.picker-check { color: var(--primary); }
.picker .picker-footer { padding: 10px 16px; }
body.picker-lock { overflow: hidden; }
@media (max-width: 640px) {
    .picker .picker-panel { top: auto; bottom: 0; left: 0; right: 0; width: 100%; transform: none; max-height: 88vh; border-radius: 18px 18px 0 0; padding-bottom: var(--safe-bottom); animation: picker-sheet .22s ease-out; }
    @keyframes picker-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
    .picker .picker-list { max-height: none; }
}

/* ===== Merkeze sipariş formu ===== */
.when-panel { display: none; }
.order-delivery-card:has(input[name="delivery_type"][value="dealer_stock"]:checked) .when-panel[data-when="dealer_stock"],
.order-delivery-card:has(input[name="delivery_type"][value="customer_delivery"]:checked) .when-panel[data-when="customer_delivery"] { display: block; }
.order-address { margin-top: 4px; }
.order-address .address-list { gap: 0; margin-bottom: 0; }
.new-address-form { display: none; margin: 4px 0 12px; padding: 14px 14px 2px; border: 1px dashed var(--primary-border); border-radius: var(--radius-md); background: var(--primary-soft); }
.order-address:has([data-new-address]:checked) .new-address-form { display: block; }
.contact-grid { margin-top: 8px; }
.sale-totals > .summary-target { display: flex; justify-content: flex-start; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 10px; border-radius: var(--radius-md); background: var(--bg-elevated); }
.summary-target:empty { display: none; }
.order-create .card-body.addr-grid { padding-bottom: 4px; }
.picker .picker-search-wrap .picker-search { padding-left: 40px; }
.dest-icon { font-size: 12px; color: var(--text-muted); margin-right: 2px; }
.receive-qty { width: 90px; text-align: center; }

/* ===== Stoğum ===== */
.stock-qty { font-size: 17px; white-space: nowrap; }
.stock-qty small { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.tl-text-red { color: var(--danger); }
.tl-text-amber { color: var(--warning); }
.tl-text-green { color: var(--text-primary); }
.stock-row .cust-row-actions .cart-control { width: 150px; }
@media (max-width: 767px) { .stock-row .cust-row-actions .cart-control { width: 120px; } }
.stock-hero { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.stock-hero-main { display: flex; flex-direction: column; gap: 4px; }
.stock-hero-main strong { font-size: 40px; line-height: 1.1; letter-spacing: -.5px; }
.stock-hero-main strong small { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.stock-hero-main .badge { align-self: flex-start; }
.stock-hero-kv { flex: 1; min-width: 220px; }
.stock-reorder { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--warning-soft); color: #92400E; font-size: 13px; font-weight: 500; }
.stock-reorder .cart-control { width: 170px; }
.row-item .move-icon { width: 36px; height: 36px; flex: 0 0 36px; font-size: 14px; }
.row-item:has(.move-icon) { justify-content: flex-start; }
.row-item:has(.move-icon) .row-main { flex: 1; }
.reorder-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stock-reorder .when-in, .stock-reorder .reorder-go { display: none; }
.stock-reorder:has(.cart-control.in-cart) .when-out { display: none; }
.stock-reorder:has(.cart-control.in-cart) .when-in { display: inline; }
.stock-reorder:has(.cart-control.in-cart) .reorder-go { display: inline-flex; }
.stock-reorder:has(.cart-control.in-cart) { background: var(--primary-soft); color: var(--primary); }
.stock-reorder .reorder-go, .stock-reorder .reorder-go:hover { color: #fff; }

/* ===== Pano ===== */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.quick-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); color: var(--text-primary); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.quick-action i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 17px; }
.quick-action:hover { border-color: var(--primary-border); box-shadow: var(--shadow-sm); transform: translateY(-1px); text-decoration: none; }
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
@media (min-width: 1000px) { .dash-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.dash-grid .card { margin-bottom: 0; }
.dash-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
a.cust-kpi .kpi-sub { color: var(--text-secondary); }
.todo-item { justify-content: flex-start; gap: 12px; color: var(--text-primary); }
.todo-item .row-main { flex: 1; font-size: 14px; }
.todo-item:hover { background: var(--bg-elevated); }
.todo-clear { display: flex; gap: 14px; align-items: center; }
.todo-clear-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); font-size: 18px; }
.dash-lower { margin-bottom: 16px; }
.urgent-card { border-color: var(--danger); }
.urgent-card .card-head i { color: var(--danger); }
.territory-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border: 1px dashed var(--border); border-radius: var(--radius-lg); font-size: 13px; color: var(--text-muted); }
@media (max-width: 640px) {
    .quick-actions { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30%; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .quick-actions::-webkit-scrollbar { display: none; }
    .quick-action { padding: 12px 6px; font-size: 12px; }
    .quick-action i { width: 34px; height: 34px; font-size: 15px; }
}

/* ===== Mobil menü: soldan açılan yan menü (alt menü yerine) ===== */
.sidebar-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.sidebar-top .sidebar-brand { border-bottom: 0; flex: 1; }
.nav-close, .nav-toggle { display: none; }
.nav-backdrop { display: none; }
@media (max-width: 899px) {
    .topbar { justify-content: flex-start; }
    .topbar-right { margin-left: auto; }
    .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; margin-left: -8px; border: 0; border-radius: 12px; background: transparent; color: var(--text-primary); font-size: 20px; cursor: pointer; }
    .nav-toggle:active { background: var(--bg-elevated); }
    .sidebar { display: flex; position: fixed; z-index: 1001; top: 0; left: 0; bottom: 0; height: 100dvh; width: min(300px, 86vw);
        padding-top: var(--safe-area-top, env(safe-area-inset-top, 0px)); padding-bottom: var(--safe-bottom);
        transform: translateX(-105%); transition: transform .26s cubic-bezier(.4, 0, .2, 1); box-shadow: 8px 0 32px rgba(15, 23, 42, .18); overscroll-behavior: contain; }
    body.nav-open .sidebar { transform: none; }
    .nav-close { display: grid; place-items: center; width: 40px; height: 40px; margin-right: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); font-size: 18px; cursor: pointer; }
    .nav-close:active { background: var(--bg-elevated); }
    .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, .45); opacity: 0; pointer-events: none; transition: opacity .26s; }
    .nav-backdrop[hidden] { display: block; }
    body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
    body.nav-open { overflow: hidden; }
    .sidebar-link { padding-top: 11px; padding-bottom: 11px; }
}
@media (prefers-reduced-motion: reduce) { .sidebar, .nav-backdrop { transition: none; } }

/* ===== Takvim ===== */
.cal { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .cal { grid-template-columns: minmax(0, 1fr) 340px; } }
.cal .card { margin-bottom: 0; }
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.cal-title { font-size: 17px; font-weight: 700; margin: 0 4px; min-width: 130px; text-align: center; }
.cal-today-btn { margin-left: 4px; }
.cal-legend { margin-left: auto; display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); }
.cal-legend b { color: var(--text-primary); margin-left: 2px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot.tl-blue { background: var(--primary); } .dot.tl-green { background: var(--success); } .dot.tl-amber { background: var(--warning); }
.dot.tl-red { background: var(--danger); } .dot.tl-gray { background: var(--text-muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); text-align: center; border-bottom: 1px solid var(--border); }
.cal-day { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-height: 104px; padding: 6px; border: 0; border-right: 1px solid var(--border-light, var(--border)); border-bottom: 1px solid var(--border-light, var(--border)); background: var(--bg-card); text-align: left; font: inherit; cursor: pointer; overflow: hidden; }
.cal-day:nth-child(7n + 7) { border-right: 0; }
.cal-day:hover { background: var(--bg-elevated); }
.cal-day.is-other { background: var(--bg-elevated); opacity: .55; }
.cal-day.is-weekend:not(.is-other) { background: #fbfcfe; }
.cal-num { font-size: 13px; font-weight: 600; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.is-today .cal-num { background: var(--primary); color: #fff; }
.cal-day.is-selected { box-shadow: inset 0 0 0 2px var(--primary); }
.cal-chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-chip { display: block; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 500; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip.tl-gray { background: var(--bg-elevated); color: var(--text-secondary); }
.cal-more { font-size: 11px; color: var(--text-muted); padding-left: 6px; }
.cal-dots { display: none; gap: 3px; justify-content: center; }
.cal-day-panel { position: sticky; top: 16px; }
.cal-day-panel .card-head span i { color: var(--primary); }
.cal-item { gap: 12px; justify-content: flex-start; }
.cal-item .row-main { flex: 1; color: inherit; text-decoration: none; }
.cal-item .row-main:hover strong { color: var(--primary); }
.cal-move { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 10px; color: var(--text-muted); cursor: pointer; overflow: hidden; }
.cal-move:hover { border-color: var(--primary-border); color: var(--primary); }
.cal-move input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 767px) {
    .cal-toolbar { justify-content: center; }
    .cal-title { font-size: 16px; min-width: 0; flex: 1; }
    .cal-day { min-height: 52px; align-items: center; padding: 4px 2px; }
    .cal-chips { display: none; }
    .cal-dots { display: flex; }
    .cal-num { width: 30px; height: 30px; font-size: 14px; }
    .cal-day.is-selected { box-shadow: none; }
    .cal-day.is-selected:not(.is-today) .cal-num { background: var(--primary-soft); color: var(--primary); }
}
.cal-chip.is-done { text-decoration: line-through; opacity: .6; }
button.cal-move { background: var(--bg-card); font: inherit; }
.cal-done:hover { border-color: var(--success); color: var(--success); }
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip input { position: absolute; opacity: 0; pointer-events: none; }
.type-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; cursor: pointer; background: var(--bg-card); }
.type-chip span i { color: var(--text-muted); }
.type-chip input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.type-chip input:checked + span i { color: var(--primary); }
.type-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.cust-main-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cust-main-col .card { margin-bottom: 0; }
.planned-item { justify-content: flex-start; gap: 12px; }
.planned-item .row-main { flex: 1; }
.planned-item form { margin: 0; }
.planned-note { font-weight: 400; color: var(--text-secondary); }
.card-head .tab-count { margin-left: 6px; }

/* ===== Aktiviteler ===== */
.seg-switch { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); }
.seg-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.seg-switch a:hover { color: var(--primary); text-decoration: none; }
.seg-switch a.active { background: var(--bg-card); color: var(--primary); box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.activity-list { overflow: hidden; }
.activity-day { padding: 10px 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.activity-row { justify-content: flex-start; gap: 12px; align-items: flex-start; }
.activity-row .move-icon { margin-top: 2px; }
.activity-row .row-main { flex: 1; gap: 3px; }
.activity-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.activity-title a { color: var(--text-primary); }
.activity-title a:hover { color: var(--primary); }
.activity-result { font-size: 13px; color: var(--text-primary); background: var(--success-soft); border-radius: 8px; padding: 6px 10px; margin-top: 2px; }
.activity-result i { color: var(--success); margin-right: 4px; }
@media (max-width: 640px) { .seg-switch a { padding: 6px 9px; } .activity-day { padding: 8px 16px; } }

/* ===== Raporlar ===== */
.report-periods { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.report-periods .chip-row { margin: 0; }
.custom-range { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.custom-range .form-control { width: auto; padding: 6px 10px; font-size: 13px; }
.custom-range.active .form-control { border-color: var(--primary); }
.kpi-label small { font-weight: 400; }
.kpi-change { font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 6px; vertical-align: middle; }
.kpi-change.up { background: var(--success-soft); color: var(--success); }
.kpi-change.down { background: var(--danger-soft); color: var(--danger); }
.bar-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; height: 220px; align-items: end; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.bar { width: 100%; max-width: 44px; border-radius: 8px 8px 3px 3px; background: var(--primary-soft); transition: background .15s; }
.bar-col.is-current .bar { background: var(--primary); }
.bar-col:hover .bar { background: var(--primary-border); }
.bar-col.is-current:hover .bar { background: var(--primary); filter: brightness(1.08); }
.bar-value { font-size: 11px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.bar-label { font-size: 11px; color: var(--text-muted); }
.bar-count { font-size: 10px; color: var(--text-muted); min-height: 12px; }
.chart-note { margin: 10px 0 0; }
.report-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1000px) { .report-grid { grid-template-columns: 1fr 1fr; } }
.report-grid .card { margin-bottom: 0; }
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-list.compact { gap: 6px; }
.rank-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.rank-top a { color: var(--text-primary); }
.rank-bar { height: 6px; border-radius: 3px; background: var(--bg-elevated); margin: 5px 0 3px; overflow: hidden; }
.rank-bar span { display: block; height: 100%; border-radius: 3px; background: var(--primary); }
.rank-bar.green span { background: var(--success); }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; font-size: 13px; }
.funnel-bar { display: flex; align-items: center; justify-content: flex-end; height: 28px; padding: 0 10px; border-radius: 8px; color: #fff; font-weight: 700; min-width: 0; }
.funnel-bar.blue { background: var(--primary); }
.funnel-bar.green { background: var(--success); }
.funnel-lost { margin-top: 4px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.mini-stats div { padding: 10px 4px; border-radius: 10px; background: var(--bg-elevated); display: flex; flex-direction: column; gap: 2px; }
.mini-stats strong { font-size: 17px; }
.mini-stats span { font-size: 11px; color: var(--text-muted); }
.city-chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 640px) {
    .custom-range { margin-left: 0; width: 100%; }
    .custom-range .form-control { flex: 1; }
    .bar-chart { gap: 3px; height: 180px; }
    .bar-value { display: none; }
    .mini-stats { grid-template-columns: repeat(2, 1fr); }
    .funnel-row { grid-template-columns: 90px 1fr; }
}
.cust-kpi strong.kpi-multi { font-size: 18px; }

/* ===== Seri / parti ===== */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.stock-check li { flex-direction: column; align-items: stretch; }
.stock-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.unit-pick { margin: 8px 0 4px 22px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); }
.unit-pick-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.unit-counter { padding: 2px 8px; border-radius: 999px; background: var(--bg-elevated); color: var(--text-secondary); font-size: 12px; }
.unit-counter.is-done { background: var(--success-soft); color: var(--success); }
.unit-counter.is-over { background: var(--danger-soft); color: var(--danger); }
.unit-filter { margin-bottom: 8px; }
.unit-grid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow-y: auto; }
.unit-chip input { position: absolute; opacity: 0; pointer-events: none; }
.unit-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; cursor: pointer; background: var(--bg-card); }
.unit-chip span small { color: var(--text-muted); }
.unit-chip input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.unit-chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.unit-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.batch-rows { display: flex; flex-direction: column; gap: 6px; }
.batch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--border-light, var(--border)); border-radius: 8px; }
.batch-row > span { display: flex; flex-direction: column; }
.batch-qty { width: 90px; text-align: center; }
.unit-missing { margin: 8px 0 0; }
.ship-hint { margin-left: 8px; }
button[data-ship-submit]:disabled { opacity: .5; cursor: not-allowed; }
.units-warning { margin: 12px 16px 0; }
.batch-entry-row { display: grid; grid-template-columns: 1.4fr 1fr 90px; gap: 8px; margin-bottom: 8px; }
@media (max-width: 640px) { .batch-entry-row { grid-template-columns: 1fr 1fr; } .batch-entry-row input:first-child { grid-column: 1 / -1; } }
.serial-result { align-items: flex-start; } .serial-result .row-main { gap: 3px; } .serial-search .queue-search { flex: 1; }
.unit-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.unit-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: var(--bg-elevated); color: var(--text-secondary); font-size: 12px; }
.unit-actions { display: inline-flex; gap: 4px; }
.defective-block { border-top: 1px solid var(--border); }
.defective-block > summary { padding: 12px 20px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-secondary); list-style: none; }
.defective-block > summary::-webkit-details-marker { display: none; }
.defective-block > summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; margin-left: 6px; }
.defective-block[open] > summary::after { content: '\f077'; }
.defective-block .row-item { background: var(--bg-elevated); }

/* ===== Satış: ödeme ve fatura ===== */
.pay-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pay-progress { display: flex; flex-direction: column; gap: 8px; }
.pay-progress-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-bar { height: 8px; border-radius: 999px; background: var(--bg-elevated); overflow: hidden; }
.pay-bar span { display: block; height: 100%; background: var(--success, #10B981); border-radius: inherit; transition: width .3s; }
.pay-details { margin: 0; }
.input-with-action { display: flex; gap: 8px; }
.input-with-action .form-control { flex: 1; min-width: 0; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.line-price-note { margin: 8px 0 0; }
.li-price-hint { margin-top: 4px; white-space: nowrap; }
@media (max-width: 640px) {
    .pay-body, .form-grid-2 { grid-template-columns: 1fr; }
}
.pay-chip { font-size: 11px; font-weight: 600; white-space: nowrap; }
.pay-chip.pay-paid { color: var(--success, #10B981); }
.pay-chip.pay-partial { color: var(--primary, #2563EB); }
.pay-chip.pay-pending { color: var(--warning, #D97706); }
.delivery-method { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--bg-elevated); }
.delivery-method > i { font-size: 18px; color: var(--primary, #2563EB); width: 24px; text-align: center; }
.delivery-method > div { display: flex; flex-direction: column; line-height: 1.3; }

/* ===== Satış: stoktan sevk ===== */
.ship-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ship-item { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); overflow: hidden; }
.ship-item.is-missing { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.ship-item-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ship-item-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-elevated); color: var(--text-secondary); }
.ship-item-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ship-item-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ship-item-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ship-stock { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ship-stock.ok { background: var(--success-soft); color: var(--success); }
.ship-stock.missing { background: var(--danger-soft); color: var(--danger); }
.ship-units { padding: 12px 14px 14px; border-top: 1px dashed var(--border); background: var(--bg-elevated); }
.ship-units .unit-chip span { padding: 8px 12px; font-size: 13px; }
.unit-chip .box-on { display: none; }
.unit-chip input:checked + span .box-on { display: inline; }
.unit-chip input:checked + span .box-off { display: none; }
.unit-chip .box-off { color: var(--text-muted); }
.unit-note { margin-top: 8px; }
.ship-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--primary-soft); }
.ship-summary { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-primary); }
.ship-summary > i { color: var(--primary); font-size: 16px; }
.ship-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ship-actions .ship-hint { margin: 0; }
@media (max-width: 640px) {
    .ship-item-head { flex-wrap: wrap; }
    .ship-item-tags { width: 100%; justify-content: flex-start; padding-left: 48px; }
    .ship-actions { width: 100%; }
    .ship-actions .btn { width: 100%; justify-content: center; }
    .ship-actions .ship-hint { display: none; }
}
.scan-row { display: flex; gap: 8px; margin-bottom: 6px; }
.scan-input { position: relative; flex: 1; min-width: 0; margin: 0; }
.scan-input > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.scan-input .form-control { padding-left: 36px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.scan-feedback { min-height: 18px; font-size: 12.5px; margin-bottom: 6px; }
.scan-feedback.is-ok { color: var(--success); }
.scan-feedback.is-warn { color: var(--warning, #D97706); }
.scan-feedback.is-error { color: var(--danger); font-weight: 600; }
.picked-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; max-height: 160px; overflow-y: auto; }
.picked-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; font-weight: 600; }
.picked-tag button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.picked-tag button:hover { background: color-mix(in srgb, var(--primary) 15%, transparent); }
.unit-all { margin-top: 4px; }
.unit-all > summary { cursor: pointer; font-size: 12.5px; color: var(--text-secondary); padding: 4px 0 8px; }
.scan-camera { position: fixed; inset: 0; z-index: 3000; background: #000; display: flex; flex-direction: column; }
.scan-camera video { flex: 1; width: 100%; object-fit: cover; }
.scan-camera-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 14px; }
@media (max-width: 640px) {
    .scan-row { flex-wrap: wrap; }
    .scan-input { flex-basis: 100%; }
    .scan-row .btn { flex: 1; justify-content: center; }
}
.scan-bar { padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--primary-border, var(--border)); border-radius: var(--radius-lg); background: var(--primary-soft); position: sticky; top: 70px; z-index: 5; }
.scan-bar-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.scan-bar-head > span > i { color: var(--primary); margin-right: 4px; }
.scan-bar .scan-feedback { margin: 6px 0 0; }
@media (max-width: 640px) { .scan-bar { top: 60px; } .scan-bar-head .text-muted { display: none; } }

/* ===== Firma: kargo firmaları ===== */
.carriers-card { margin-top: 16px; }
.carriers-summary { display: flex; flex-direction: column; gap: 8px; }
.carriers-summary .form-hint { margin: 0; }
.carrier-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.carrier-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 600; }
.carrier-chip i { font-size: 11px; }
.carrier-search { margin-bottom: 10px; }
.carrier-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 50vh; overflow-y: auto; }
.carrier-option { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; margin: 0; }
.carrier-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.carrier-option input { width: 16px; height: 16px; accent-color: var(--primary); flex: 0 0 auto; }
.carrier-option-name { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.3; }
.carrier-option-name small { font-weight: 400; color: var(--text-muted); font-size: 11.5px; }
.carrier-del { padding: 4px 8px; }
.carrier-add { padding: 0 20px 16px; }
.carrier-add > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--primary); }
.carrier-add-form { margin-top: 10px; }
.carrier-add-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; }
@media (max-width: 640px) {
    .carrier-pick { grid-template-columns: 1fr; }
    .carrier-add-row { grid-template-columns: 1fr; }
}

/* ===== Satış: gönderim şekli ve sevkiyat kartı ===== */
.ship-method { margin: 4px 0 14px; }
.ship-method-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.ship-method-tile { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); cursor: pointer; }
.ship-method-tile input { position: absolute; opacity: 0; pointer-events: none; }
.ship-method-tile > i { font-size: 18px; color: var(--text-secondary); width: 22px; text-align: center; }
.ship-method-tile span { display: flex; flex-direction: column; line-height: 1.3; }
.ship-method-tile small { color: var(--text-muted); font-size: 11.5px; }
.ship-method-tile:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.ship-method-tile:has(input:checked) > i { color: var(--primary); }
.ship-method-tile:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.shipment-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tracking-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border: 1px dashed var(--primary-border, var(--border)); border-radius: var(--radius-md); }
.tracking-box strong.mono { font-size: 16px; letter-spacing: .5px; }
.tracking-box.is-empty { border-color: var(--border); }
.shipment-kv { margin: 0; }
.shipment-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
@media (max-width: 760px) {
    .ship-method-tiles { grid-template-columns: 1fr; }
    .shipment-grid { grid-template-columns: 1fr; }
    .shipment-actions .btn { width: 100%; justify-content: center; }
}

/* ===== Liste sayfaları ortak (iş emirleri, cihazlar, hakedişler, portal siparişleri) ===== */
.tl-gray { background: var(--bg-elevated); color: var(--text-secondary); }
.toolbar-select { width: auto; min-width: 190px; flex: 0 0 auto; }
.attention-card { border-color: color-mix(in srgb, var(--warning) 40%, var(--border)); margin-bottom: 16px; }
.attention-card .card-head { background: color-mix(in srgb, var(--warning) 8%, transparent); }
@media (max-width: 640px) { .toolbar-select { width: 100%; } }
/* Satış formu: satır kârı ve tahmini kâr */
.li-margin { margin-top: 2px; white-space: nowrap; font-weight: 600; }
.li-margin.is-profit { color: var(--success); }
.li-margin.is-zero { color: var(--warning); }
.li-margin.is-loss { color: var(--danger); }
.sale-totals .sum-margin { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); color: var(--success); font-weight: 600; }
.sale-totals .sum-margin.is-loss { color: var(--danger); }
.sale-totals [hidden], .sale-totals > div[hidden] { display: none !important; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.filter-pill:hover { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.install-hint { margin: 12px 16px 0; }
/* Kenar menü: katlanabilir bölümler */
.nav-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { color: var(--text-secondary); }
.nav-group-chevron { font-size: 9px; opacity: .6; transition: transform .15s; }
.nav-group:not([open]) .nav-group-chevron { transform: rotate(-90deg); }
/* Teklif formu: tahmini kâr (yalnız bayiye) */
.summary-row.margin-row { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--border); }
.summary-row.margin-row .label small { font-weight: 400; text-transform: none; color: var(--text-muted); }
.summary-row.margin-row .value { color: var(--success); font-weight: 700; }
.summary-row.margin-row.is-loss .value { color: var(--danger); }

/* Müşteri kartı → Portal ürünleri */
.portal-products { margin-top: 16px; }
.portal-copy { display: flex; gap: 8px; align-items: center; margin: 0; }
.portal-copy select { min-width: 220px; }
.portal-products-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; }
.portal-products-toolbar .queue-search { flex: 1 1 260px; margin: 0; }
.portal-product-list { max-height: 520px; overflow-y: auto; border-top: 1px solid var(--border); }
.portal-product { display: grid; grid-template-columns: 22px minmax(0, 1fr) 230px; gap: 12px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--border-light, var(--border)); cursor: pointer; margin: 0; }
.portal-product.is-on { background: var(--primary-soft); }
.portal-product input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }
.portal-product-name { display: flex; flex-direction: column; min-width: 0; }
.portal-product-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-product-name small { color: var(--text-muted); font-size: 11.5px; }
.portal-product-price { display: grid; grid-template-columns: 1fr 84px; gap: 6px; cursor: default; }
.portal-product:not(.is-on) .portal-product-price { opacity: .55; }
.portal-products-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (max-width: 640px) {
    .portal-product { grid-template-columns: 22px minmax(0, 1fr); }
    .portal-product-price { grid-column: 2; }
    .portal-copy { width: 100%; } .portal-copy select { min-width: 0; flex: 1; }
}

/* KVKK açık rıza bloğu */
.kvkk-block { margin: 16px 0; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); border-radius: var(--radius-md); background: var(--primary-soft); }
.kvkk-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; line-height: 1.45; margin: 0; }
.kvkk-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary); flex: 0 0 auto; }
.kvkk-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-left: 28px; }
.kvkk-method { width: auto; min-width: 140px; }
.kvkk-text { flex-basis: 100%; font-size: 12.5px; }
.kvkk-text > summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.kvkk-text > div { margin-top: 6px; color: var(--text-secondary); line-height: 1.5; }

/* Ekstreler */
@media (min-width: 900px) { .cust-kpis.kpis-4 { grid-template-columns: repeat(4, 1fr); } }
.stmt-current { display: block; padding: 16px 20px; margin-bottom: 16px; text-decoration: none; color: inherit; border-color: var(--primary-border, var(--border)); }
.stmt-current:hover { box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.06)); }
.stmt-current-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; }
.stmt-current-head i { color: var(--primary); }
.stmt-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stmt-figures > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stmt-figures strong { font-size: 18px; }
@media (max-width: 760px) { .stmt-figures { grid-template-columns: 1fr 1fr; } }

/* Skor kartı */
.sc-hero { display: flex; gap: 24px; align-items: center; padding: 20px 24px; margin-bottom: 16px; }
.sc-ring { --c: var(--text-muted); width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; align-content: center;
    background: radial-gradient(closest-side, var(--bg-card) 78%, transparent 79%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--bg-elevated) 0); }
.sc-ring span { font-size: 30px; font-weight: 800; line-height: 1; }
.sc-ring small { font-size: 11px; color: var(--text-muted); }
.sc-score.sc-green .sc-ring { --c: var(--success); } .sc-score.sc-amber .sc-ring { --c: var(--warning); } .sc-score.sc-red .sc-ring { --c: var(--danger); }
.sc-hero-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sc-period { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sc-suggestion { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.sc-dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.sc-dim .card-head { align-items: center; }
.sc-dim-score { font-size: 20px; font-weight: 800; }
.sc-indicators { display: flex; flex-direction: column; gap: 14px; }
.sc-ind-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 4px; }
.sc-bar { height: 6px; border-radius: 999px; background: var(--bg-elevated); overflow: hidden; margin-bottom: 4px; }
.sc-bar span { display: block; height: 100%; border-radius: inherit; background: var(--text-muted); }
.sc-bar span.sc-green { background: var(--success); } .sc-bar span.sc-amber { background: var(--warning); } .sc-bar span.sc-red { background: var(--danger); }
strong.sc-green, .sc-dim-score.sc-green { color: var(--success); } strong.sc-amber, .sc-dim-score.sc-amber { color: var(--warning); }
strong.sc-red, .sc-dim-score.sc-red { color: var(--danger); } strong.sc-gray, .sc-dim-score.sc-gray { color: var(--text-muted); }
.sc-ind.is-empty .sc-ind-head span { color: var(--text-muted); }
@media (max-width: 640px) { .sc-hero { flex-direction: column; align-items: flex-start; } .sc-dims { grid-template-columns: 1fr; } }


/* Üst çubuk: uzun firma adı satırlara bölünüp çubuğu bozmasın (tek satır, sığmazsa …); dar ekranda gizli (yan menüde var) */
.topbar-dealer { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; min-width: 0; }
@media (max-width: 600px) { .topbar-dealer { display: none; } }

/* ========== Bilgi bankası ========== */
.kb-tone-indigo { --tone: #4F46E5; --tone-soft: #EEF2FF; }
.kb-tone-red { --tone: #DC2626; --tone-soft: #FEF2F2; }
.kb-tone-blue { --tone: #2563EB; --tone-soft: #EFF6FF; }
.kb-tone-amber { --tone: #D97706; --tone-soft: #FFFBEB; }
.kb-tone-cyan { --tone: #0891B2; --tone-soft: #ECFEFF; }
.kb-tone-violet { --tone: #7C3AED; --tone-soft: #F5F3FF; }
.kb-tone-green { --tone: #059669; --tone-soft: #ECFDF5; }
.kb-tone-gray { --tone: #475569; --tone-soft: #F1F5F9; }
.kb-ico { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; background: var(--tone-soft, var(--primary-soft)); color: var(--tone, var(--primary)); }
.kb-ico-lg { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; }
.kb-cat .kb-ico, .kb-title .kb-ico { background: var(--tone-soft); color: var(--tone); }

.kb-hero { position: relative; margin-bottom: 20px; padding: 28px 28px 22px; border-radius: 18px; color: #fff;
    background: radial-gradient(circle at 85% -20%, rgba(255,255,255,.18), transparent 45%), linear-gradient(135deg, #1E3A8A 0%, #2563EB 55%, #4F46E5 100%); }
.kb-hero h1 { color: #fff; font-size: 28px; font-weight: 750; letter-spacing: -.02em; margin: 0; }
.kb-hero p { margin: 6px 0 18px; opacity: .85; font-size: 14.5px; }
.kb-search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--bg-card); border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); }
.kb-search > i { color: var(--text-muted); }
.kb-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; padding: 10px 4px; color: var(--text-primary); }
.kb-search-sm { box-shadow: none; border: 1px solid var(--border); margin-bottom: 14px; }
.kb-search-sm input { font-size: 15px; padding: 7px 4px; }
.kb-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; }
.kb-quick > span { opacity: .8; margin-right: 2px; }
.kb-quick a { color: #fff; text-decoration: none; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.kb-quick a:hover { background: rgba(255,255,255,.26); }
.kb-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 23, 42, .18); overflow: hidden; max-height: min(460px, 70vh); overflow-y: auto; }
.kb-sg-item { display: flex; gap: 12px; padding: 11px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--border-light); }
.kb-sg-item i { color: var(--primary); margin-top: 3px; width: 16px; text-align: center; }
.kb-sg-item span { min-width: 0; }
.kb-sg-item strong { display: block; font-size: 14px; }
.kb-sg-item small { display: block; font-size: 12px; color: var(--text-muted); }
.kb-sg-item em { display: block; font-style: normal; font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-sg-item:hover, .kb-sg-item.active { background: var(--primary-soft); }
.kb-sg-all { width: 100%; padding: 11px 14px; border: 0; background: var(--bg-elevated); font: inherit; font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; text-align: left; }
.kb-sg-empty { padding: 16px 14px; font-size: 13.5px; color: var(--text-secondary); }

.kb-me { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kb-me .card, .kb-two .card { margin-bottom: 0; }
.kb-mini { display: flex; align-items: center; gap: 12px; }
.kb-mini .kb-ico { width: 32px; height: 32px; font-size: 13px; }
.kb-mini .row-main { flex: 1; min-width: 0; text-align: left; align-items: flex-start; }
.kb-clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.kb-path { padding: 22px; margin-bottom: 20px; }
.kb-path-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.kb-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.kb-path h2 { font-size: 19px; margin: 4px 0 2px; }
.kb-path-progress { display: flex; align-items: center; gap: 14px; }
.kb-ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--bg-elevated) 0); }
.kb-ring span { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-card); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.kb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.kb-steps a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; color: inherit; text-decoration: none; font-size: 14px; height: 100%; }
.kb-steps a:hover { border-color: var(--primary); background: var(--primary-soft); }
.kb-step-no { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--bg-elevated); color: var(--text-secondary); }
.kb-step-title { flex: 1; min-width: 0; font-weight: 600; }
.kb-step-min { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.kb-steps .is-done .kb-step-no { background: var(--success-soft); color: var(--success); }
.kb-steps .is-done .kb-step-title { color: var(--text-secondary); font-weight: 500; }
.kb-steps .is-next a { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.kb-steps .is-next .kb-step-no { background: var(--primary); color: #fff; }
.kb-steps-more { display: none; width: 100%; justify-content: center; margin-top: 8px; }
@media (max-width: 600px) {
    .kb-steps:not(.open) .is-extra { display: none; }
    .kb-steps-more { display: inline-flex; }
}

.kb-section-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 6px 0 12px; }
.kb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kb-cat { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kb-cat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); border-color: var(--tone); }
.kb-cat .kb-ico { width: 44px; height: 44px; font-size: 19px; border-radius: 12px; }
.kb-cat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kb-cat-body strong { font-size: 15.5px; }
.kb-cat-desc { font-size: 13px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-cat-types { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--text-secondary); }
.kb-cat-types i { color: var(--tone); font-size: 11px; }
.kb-cat-progress { height: 5px; border-radius: 999px; background: var(--bg-elevated); overflow: hidden; margin-top: 4px; }
.kb-cat-progress span { display: block; height: 100%; background: var(--tone); border-radius: 999px; }
.kb-cat-foot { font-size: 12px; color: var(--text-muted); }
.kb-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kb-help .card-body { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kb-help .card-body > div { flex: 1; min-width: 200px; }

/* Liste (kategori / arama / kaydettiklerim) */
.kb-title { display: flex; align-items: center; gap: 12px; }
.kb-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.kb-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 8px; }
.kb-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text-secondary); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.kb-nav a i { width: 16px; text-align: center; color: var(--text-muted); }
.kb-nav a span { flex: 1; min-width: 0; }
.kb-nav a em { font-style: normal; font-size: 11.5px; color: var(--text-muted); }
.kb-nav a:hover { background: var(--bg-hover); color: var(--text-primary); }
.kb-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.kb-nav a.active i { color: var(--primary); }
.kb-nav-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); padding: 10px 10px 4px; }
.kb-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.kb-filter a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 600; }
.kb-filter a span { font-weight: 500; color: var(--text-muted); }
.kb-filter a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.kb-filter a.active span { color: rgba(255,255,255,.8); }
.kb-filter-note { margin-left: auto; font-size: 12.5px; color: var(--text-muted); }
.kb-list { display: flex; flex-direction: column; gap: 10px; }
.kb-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.kb-item:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(15, 23, 42, .06); }
.kb-item-type { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone); font-size: 14px; }
.kb-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kb-item-body strong { font-size: 15px; }
.kb-item-text { font-size: 13.5px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-item-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-muted); }
.kb-item-meta .kb-read { color: var(--success); font-weight: 600; }
.kb-item-meta .kb-saved { color: var(--primary); font-weight: 600; }
.kb-item.is-read strong { color: var(--text-secondary); }
.kb-item-go { align-self: center; }

/* Makale */
.kb-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.kb-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2563EB, #4F46E5); transition: width .1s linear; }
.kb-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 12px; flex-wrap: wrap; }
.kb-crumbs a { color: var(--text-secondary); text-decoration: none; }
.kb-crumbs a:hover { color: var(--primary); }
.kb-crumbs i { font-size: 9px; color: var(--text-muted); }
.kb-art-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.kb-art-title { flex: 1; min-width: 240px; }
.kb-art-title h1 { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 8px; }
.kb-art-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-secondary); }
.kb-art-meta i { color: var(--text-muted); margin-right: 3px; }
.kb-art-actions { display: flex; gap: 6px; align-items: center; }
.kb-art-actions form { margin: 0; }
.kb-art-actions .is-on { background: var(--primary-soft); border-color: var(--primary-border); color: var(--primary); }
.kb-art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.kb-art-side { align-self: stretch; display: flex; flex-direction: column; gap: 16px; }
.kb-art-side .kb-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.kb-art-side .card { margin-bottom: 0; }
.kb-art-card .card-body { padding: 28px 32px; }
.kb-toc ol { list-style: none; margin: 0; padding: 6px 8px 10px; counter-reset: toc; }
.kb-toc li { counter-increment: toc; }
.kb-toc a { display: flex; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; color: var(--text-secondary); text-decoration: none; line-height: 1.35; border-left: 2px solid transparent; }
.kb-toc a::before { content: counter(toc); font-size: 11.5px; font-weight: 700; color: var(--text-muted); min-width: 14px; padding-top: 1px; }
.kb-toc a:hover { background: var(--bg-hover); color: var(--text-primary); }
.kb-toc a.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.kb-toc-inline { display: none; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--bg-elevated); }
.kb-toc-inline summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.kb-toc-inline ol { margin: 8px 0 0; padding-left: 20px; font-size: 14px; }
.kb-toc-inline li { margin: 4px 0; }
.kb-ask-list { display: flex; flex-direction: column; gap: 6px; }
.kb-ask-list a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; color: inherit; text-decoration: none; font-size: 13.5px; }
.kb-ask-list a i { color: var(--primary); }
.kb-ask-list a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-ask-list a:hover { border-color: var(--primary); background: var(--primary-soft); }
.kb-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 32px 28px; }
.kb-pager a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; color: inherit; text-decoration: none; }
.kb-pager a span { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.kb-pager a strong { font-size: 14px; }
.kb-pager a:hover { border-color: var(--primary); }
.kb-pager-next { text-align: right; grid-column: 2; }
.kb-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #0F172A; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 400; }
.kb-toast.on { opacity: 1; transform: translate(-50%, 0); }

.kb-article { line-height: 1.75; font-size: 15.5px; overflow-wrap: anywhere; color: var(--text-primary); }
.kb-article > :first-child { margin-top: 0; }
.kb-article .kb-lead { font-size: 17px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border-light); }
.kb-article h2 { font-size: 20px; letter-spacing: -.01em; margin: 30px 0 10px; scroll-margin-top: 80px; }
.kb-article h3 { font-size: 16.5px; margin: 22px 0 8px; }
.kb-article p { margin: 0 0 14px; }
.kb-article ul, .kb-article ol { padding-left: 22px; margin: 0 0 16px; }
.kb-article li { margin: 5px 0; }
.kb-article li::marker { color: var(--primary); }
.kb-article ol > li::marker { font-weight: 700; }
.kb-article table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 20px; font-size: 14px; display: block; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.kb-article th, .kb-article td { border-bottom: 1px solid var(--border-light); padding: 10px 14px; text-align: left; vertical-align: top; }
.kb-article tr:last-child td { border-bottom: 0; }
.kb-article th { background: var(--bg-elevated); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-secondary); }
.kb-article tbody tr:nth-child(even) td { background: #FAFBFD; }
.kb-article img { max-width: 100%; height: auto; border-radius: 12px; }
.kb-article code { background: var(--bg-elevated); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.kb-box { display: block; border-radius: 12px; padding: 14px 16px 14px 48px; margin: 6px 0 18px; position: relative; font-size: 14.5px; line-height: 1.6; border: 1px solid; }
.kb-box p { margin: 0 0 6px; }
.kb-box p:last-child { margin-bottom: 0; }
.kb-box::before { font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 17px; top: 14px; font-size: 16px; }
.kb-box.kb-tip { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.kb-box.kb-tip::before { content: "\f0eb"; }
.kb-box.kb-warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.kb-box.kb-warn::before { content: "\f071"; }
.kb-box.kb-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E3A8A; }
.kb-box.kb-info::before { content: "\f05a"; }
.kb-box strong { color: inherit; }

@media (max-width: 1100px) {
    .kb-art-layout { grid-template-columns: minmax(0, 1fr); }
    .kb-art-side { align-self: auto; }
    .kb-toc { display: none; }
    .kb-toc-inline { display: block; }
}
@media (max-width: 900px) {
    .kb-layout { grid-template-columns: minmax(0, 1fr); }
    .kb-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 6px; }
    .kb-nav::-webkit-scrollbar { display: none; }
    .kb-nav a { flex: 0 0 auto; white-space: nowrap; }
    .kb-nav-title { display: none; }
}
@media (max-width: 600px) {
    .kb-hero { padding: 20px 16px 16px; border-radius: 14px; }
    .kb-hero h1 { font-size: 22px; }
    .kb-search { padding-left: 12px; }
    .kb-search .btn { display: none; }
    .kb-art-title h1 { font-size: 21px; }
    .kb-art-card .card-body { padding: 18px 16px; }
    .kb-pager { grid-template-columns: 1fr; padding: 0 16px 18px; }
    .kb-pager-next { grid-column: 1; }
    .kb-article { font-size: 15px; }
    .kb-path { padding: 16px; }
    .kb-item { padding: 14px; }
    .kb-art-head .kb-ico-lg { display: none; }
}
@media print {
    .sidebar, .topbar, .kb-art-side, .kb-art-actions, .kb-progress, .kb-pager, .kb-crumbs, .kb-toc-inline, .bottomnav { display: none !important; }
    .kb-art-layout { display: block; }
    .kb-art-card { border: 0; box-shadow: none; }
    .kb-art-card .card-body { padding: 0; }
}

/* Girişte WhatsApp doğrulaması penceresi */
.wa-modal { max-width: 440px; text-align: center; padding: 28px 24px 22px; }
.wa-modal-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: #DCFCE7; color: #16A34A; }
.wa-modal h3 { font-size: 18px; margin: 0 0 8px; }
.wa-modal p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; margin: 0 0 16px; }
.wa-never { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-secondary); margin-bottom: 18px; cursor: pointer; }
.wa-modal-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.wa-modal-actions .btn { min-width: 130px; justify-content: center; }
.wa-modal .wa-code { font-size: 24px; letter-spacing: 10px; text-align: center; margin-bottom: 8px; }
.wa-modal-msg { min-height: 20px; font-size: 13.5px; color: var(--danger); margin-bottom: 8px; }
