﻿/* ================= BASE ================= */

html {
    font-size: 13px;
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'DM Sans',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
    font-weight: 400;
}

/* Genel taşmaları engelle */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* iOS zoom engeli */
.form-control, .form-select, textarea {
    font-size: 16px;
}

    .btn:focus,
    .btn:active:focus,
    .btn-link.nav-link:focus,
    .form-control:focus,
    .form-check-input:focus {
        box-shadow: 0 0 0 .2rem rgba(185, 201, 247, .30);
    }

/* body scroll kilidi (sidebar açıkken) */
body.kp-noscroll {
    overflow: hidden;
}

/* ================= LAYOUT ================= */

.kp-shell {
    display: flex;
    min-height: 100vh;
    background: #f5f7fb;
}

.kp-sidebar {
    width: 260px;
    background: #f3f6ff;
    color: #1f2d3d;
    padding: 12px 14px;
    border-right: 1px solid rgba(15,29,58,.08);
    overflow-x: hidden;
}

.kp-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

/* (Eski) Brand kutusu - bazı yerlerde hâlâ kullanılıyor olabilir */
.kp-brand {
    font-weight: 700;
    font-size: 20px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15,29,58,.08);
    margin-bottom: 14px;
}

/* ================= NAV ================= */

.kp-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kp-link {
    color: rgba(31,45,61,.82);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background .18s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .kp-link:hover {
        background: rgba(47,116,255,.10);
    }

    .kp-link.active {
        background: rgba(47,116,255,.14);
        box-shadow: inset 0 0 0 1px rgba(47,116,255,.18);
    }

.kp-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kp-topbar {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 29, 58, 0.08);
}

.kp-title {
    font-size: 18px;
    font-weight: 600;
}

/* Sağ üst kullanıcı alanı */
.kp-userbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kp-user-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
    background: transparent;
    flex: 0 0 auto;
}

.kp-user {
    font-weight: 600;
    color: rgba(31,45,61,.88);
    white-space: nowrap;
}

/* Sağ üst isim: farklı font ve daha premium */
.kp-user-fancy {
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-weight: 800;
    letter-spacing: .6px;
    font-size: 14px;
    color: rgba(31,45,61,.9);
}

/* Sağ üstte logo varsa (eski kod kalmışsa) görünmesin */
.kp-userbar .kp-user-logo {
    display: none !important;
}

/* ================= TAKVİM ================= */

.kp-calendar {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
}

/* HEADER */
.kp-calendar-header {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    font-weight: 600;
    background: #f8fafc;
    border-bottom: 1px solid #e9ecef;
}

    .kp-calendar-header > div {
        padding: 4px 6px;
        text-align: center;
        font-size: 13px;
        min-height: 34px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }

/* BODY */
.kp-calendar-body {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
}

.kp-calendar-row {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
}

.kp-time-cell {
    padding: 10px;
    font-size: 12px;
    color: #64748b;
    border-right: 1px solid #eef2f7;
    border-bottom: 1px solid #f1f1f1;
}

.kp-calendar-cell {
    position: relative;
    padding: 3px;
    border-bottom: 1px solid #f1f1f1;
    border-right: 1px solid #f1f1f1;
    height: 62px; /* 3 slot için */
    overflow: visible;
    background: #fff;
}


/* ================= SLOT (1-2-3) — TEK KAYNAK ================= */
.kp-cell-slots {
    height: 100%;
    display: grid;
    gap: 3px;
    grid-template-rows: 1fr; /* tek satır */
}

    .kp-cell-slots.kp-slots-1 {
        grid-template-columns: repeat(1, minmax(0,1fr));
    }

    .kp-cell-slots.kp-slots-2 {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .kp-cell-slots.kp-slots-3 {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .kp-cell-slots .kp-slot {
        min-width: 0;
        min-height: 0;
    }

        .kp-cell-slots .kp-slot .kp-appt {
            height: 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow: hidden;
        }

    /* 3 slotta sığması için sıkılaştır */
    .kp-cell-slots.kp-slots-3 .kp-appt {
        padding: 3px 4px;
    }

    .kp-cell-slots.kp-slots-3 .kp-appt-title {
        font-size: 10px;
    }

    .kp-cell-slots.kp-slots-3 .kp-appt-sub {
        font-size: 9px;
    }

    .kp-cell-slots.kp-slots-3 .kp-appt-state {
        margin-top: 2px;
        font-size: 9.5px;
    }

/* ================= TAKVİM: +X (iptal/ertelenen) ================= */

.kp-cell-wrapper {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: 8fr 2fr;
    gap: 3px;
}

.kp-cell-main {
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.kp-cell-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    height: 100%;
    min-width: 0;
}

.kp-cell-side-top {
    min-height: 0;
    min-width: 0;
    position: relative;
}

.kp-cell-active {
    min-width: 0;
    min-height: 0;
    height: 100%;
}

/* sağ üst +x alanı */
.kp-cell-more {
    position: relative;
    height: 100%;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.kp-more-badge {
    font-size: 11px;
    font-weight: 800;
    color: #334155;
    user-select: none;
}

.kp-more-one,
.kp-more-panel {
    display: none !important;
}

.kp-more-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
}

    .kp-more-grid .kp-appt {
        height: 62px;
    }

.kp-cell-more:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

/* sağ alt randevu ekle alanı */
.kp-cell-add-slot {
    position: relative;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    background: #eef6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    z-index: 5;
}

.kp-cell-add-mini {
    font-size: 15px;
    font-weight: 800;
    color: #0369a1;
    line-height: 1;
    user-select: none;
    transition: opacity .18s ease;
}

/* küçük kutunun iç overlay'i kapalı */
.kp-cell-add-overlay {
    display: none;
}

/* hover olunca + kaybolsun */
.kp-cell-add-slot:hover .kp-cell-add-mini,
.kp-cell-add-slot:focus .kp-cell-add-mini {
    opacity: 0;
}


/* limit doluysa metin ve renk değişsin */
.kp-cell-add-slot-full {
    background: #fff7ed;
    border-color: #f59e0b;
}

    .kp-cell-add-slot-full .kp-cell-add-mini {
        color: #92400e;
    }

.kp-cell-add-slot.is-open {
    position: absolute;
    inset: 3px;
    z-index: 40;
    border-radius: 10px;
    background: #eef6ff;
    border: 1px dashed #7dd3fc;
}

    .kp-cell-add-slot.is-open .kp-cell-add-mini {
        display: none;
    }

    .kp-cell-add-slot.is-open .kp-cell-add-overlay {
        display: flex;
        position: absolute;
        inset: 0;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 12px;
        font-weight: 700;
        color: #075985;
        background: transparent;
    }

.kp-cell-add-slot-full.is-open {
    position: absolute;
    inset: 3px;
    z-index: 40;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px dashed #f59e0b;
}

    .kp-cell-add-slot-full.is-open .kp-cell-add-mini {
        display: none;
    }

    .kp-cell-add-slot-full.is-open .kp-cell-add-overlay {
        display: flex;
        position: absolute;
        inset: 0;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 12px;
        font-weight: 700;
        color: #92400e;
    }


/* ================= Randevu kartı ================= */

.kp-appt {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 4px 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.kp-appt-full {
    height: 100%;
    width: 100%;
}

.kp-appt-title {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kp-appt-sub {
    font-size: 10px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kp-appt-state {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(0,0,0,.55);
    white-space: nowrap;
}

.kp-appt:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Durum renkleri */
.kp-appt.kp-status-planned {
    border-left: 4px solid #3b82f6;
}

.kp-appt.kp-status-done {
    border-left: 4px solid #22c55e;
}

.kp-appt.kp-status-noshow {
    border-left: 4px solid #ef4444;
}

.kp-appt.kp-status-postponed {
    border-left: 4px solid #64748b;
}

.kp-appt.kp-status-cancel {
    border-left: 4px solid #6b7280;
}

.kp-appt.kp-status-default {
    border-left: 4px solid #94a3b8;
}

/* Geçmiş hücre */
.kp-calendar-cell.kp-past-cell {
    background: #f3f6ff !important;
}

.kp-past-cell .kp-appt {
    opacity: .78 !important;
}

/* Sadece kapanmayı bekleyen sarı */
.kp-appt.kp-appt-pendingclose {
    border-color: #f59e0b !important;
    background: #fff7ed !important;
    opacity: 1 !important;
}

/* Gün gizleme (JS kullanacak) */
.kp-cal-hidden {
    display: none !important;
}

/* Dashboard kart eşit yükseklik */
.kp-home-kpis > [class^="col-"],
.kp-home-kpis > [class*=" col-"] {
    display: flex;
}

    .kp-home-kpis > [class^="col-"] .card,
    .kp-home-kpis > [class*=" col-"] .card {
        width: 100%;
        height: 100%;
    }

/* Tablet padding */
@media (max-width: 768px) {
    .kp-content {
        padding: 12px;
    }
}

/* Mobil tablolar/btn */
@media (max-width: 576px) {
    td .btn {
        width: 100%;
        margin-bottom: 6px;
    }

    td form.d-inline {
        width: 100%;
    }

        td form.d-inline .btn {
            width: 100%;
        }
}

/* ================= SIDEBAR: TOP DRAWER (mobil/tablet) ================= */

.kp-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.30);
    z-index: 1050;
}

@media (max-width: 992px) {
    .kp-shell {
        display: block;
    }

    .kp-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        overflow-y: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(15,29,58,.10);
        z-index: 1060;
        transform: translateY(-110%);
        transition: transform .22s ease;
        box-shadow: 0 12px 30px rgba(15,29,58,.14);
    }

    .kp-shell.kp-sidebar-open .kp-sidebar {
        transform: translateY(0);
    }

    .kp-shell.kp-sidebar-open .kp-sidebar-backdrop {
        display: block !important;
    }
}

/* Danışan Listesi - Mobil/Tablet güvenli görünüm */
@media (max-width: 992px) {
    .kp-patient-table th:nth-child(4),
    .kp-patient-table td:nth-child(4) {
        display: none;
    }

    .kp-patient-table td .btn-danger,
    .kp-patient-table td .btn-warning {
        display: none;
    }
}

/* Takvim - Header çizgilerini body ile hizala (scrollbar telafisi) */
.kp-calendar {
    --kp-sbw: 0px;
}

.kp-calendar-header {
    padding-right: var(--kp-sbw);
    box-sizing: border-box;
}

/* Takvim - Dengeli sütun + satır çizgileri */
.kp-calendar .kp-day-head,
.kp-calendar .kp-calendar-cell {
    border-left: 1px solid rgba(0,0,0,0.12) !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
}

/* Saat kolonu üst çizgi hafif kalsın */
.kp-calendar .kp-time-head,
.kp-calendar .kp-time-cell {
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
}

.kp-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.kp-dot-planned {
    background: #3b82f6;
}

.kp-dot-done {
    background: #22c55e;
}

.kp-dot-noshow {
    background: #ef4444;
}

.kp-dot-postponed {
    background: #f59e0b;
}

.kp-dot-cancel {
    background: #6b7280;
}

/* ================= BRAND CARD FINAL (TEK KAYNAK) ================= */

.kp-brand-card {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 10px;
    margin-bottom: 10px;
    min-height: 86px;
    background: #ffffff;
    border: 1px solid rgba(15,29,58,.06);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15,29,58,.08);
    transition: none !important;
}

    .kp-brand-card:hover {
        transform: none !important;
        box-shadow: 0 8px 24px rgba(15,29,58,.08) !important;
        border-color: rgba(15,29,58,.06) !important;
    }

.kp-brand-card-mobile {
    flex: 1;
    min-width: 0;
}

.kp-brand-card .kp-brand-media {
    flex: 0 0 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
}

.kp-logo-xl,
.kp-logo-lg {
    height: 70px;
    width: 70px;
    object-fit: contain;
    display: block;
}

.kp-brand-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.kp-brand-main,
.kp-brand-name {
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0;
    color: rgba(31,45,61,.92);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
}

.kp-brand-sub {
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-weight: 500;
    font-size: 11px;
    color: rgba(31,45,61,.65);
    margin-top: 2px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
}

@media (max-width: 992px) {
    .kp-logo-xl,
    .kp-logo-lg {
        height: 50px;
        width: 50px;
    }

    .kp-brand-card .kp-brand-media {
        flex: 0 0 76px;
    }
}

/* ===== Raporlama Filter Bar (Premium) ===== */
.kp-filterbar .card-body {
    padding: 14px 16px;
}

.kp-filterbar-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.kp-filter-item {
    min-width: 210px;
}

.kp-filter-grow {
    flex: 1;
    min-width: 260px;
}

.kp-filter-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: rgba(31,45,61,.65);
    margin: 0 0 6px 2px;
}

.kp-filterbar .input-group-text {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-right: 0;
    height: 44px;
    border-radius: 12px 0 0 12px;
}

.kp-filterbar .form-control,
.kp-filterbar .form-select {
    height: 44px;
    border: 1px solid #e5e7eb;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    box-shadow: none !important;
}

    .kp-filterbar .form-control:focus,
    .kp-filterbar .form-select:focus {
        border-color: rgba(47,116,255,.35);
        box-shadow: 0 0 0 .2rem rgba(47,116,255,.12) !important;
    }

.kp-filter-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

    .kp-filter-actions .btn {
        height: 44px;
        padding: 0 18px;
        border-radius: 12px;
        font-weight: 700;
    }

/* ===== SETTINGS CLEAN LAYOUT ===== */
.kp-settings-card {
    background: #fff;
    border: 1px solid rgba(15,29,58,.08);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 18px rgba(15,29,58,.05);
}

    .kp-settings-card .form-label {
        font-size: 13px;
        font-weight: 600;
        color: #4b5563;
    }

    .kp-settings-card .form-control {
        height: 44px;
        border-radius: 10px;
    }

    .kp-settings-card textarea.form-control {
        height: auto;
        min-height: 90px;
    }

/* ================= KP FOOTER v2 (dashboard premium) ================= */
.kp-footer2 {
    margin-top: 0;
    background: linear-gradient(180deg, rgba(245,247,251,0) 0%, rgba(245,247,251,1) 35%, rgba(245,247,251,1) 100%);
}

.kp-footer2-inner {
    border-top: 1px solid rgba(15,29,58,.08);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.kp-footer2-left {
    min-width: 280px;
    flex: 1;
}

.kp-footer2-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.2;
}

.kp-footer2-title {
    font-weight: 800;
    font-size: 13px;
    color: #111827;
    letter-spacing: .2px;
}

.kp-footer2-sep {
    opacity: .55;
}

.kp-footer2-sub {
    font-weight: 600;
    font-size: 12.5px;
    color: #374151;
}

.kp-footer2-addr {
    margin-top: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    max-width: 820px;
}

    .kp-footer2-addr i {
        margin-top: 1px;
        opacity: .8;
    }

.kp-footer2-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.kp-footer2-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(15,29,58,.10);
    background: rgba(255,255,255,.85);
    font-size: 12px;
    color: #374151;
}

    .kp-footer2-chip i {
        opacity: .75;
    }

.kp-footer2-meta {
    font-size: 12px;
    color: #9ca3af;
    padding: 6px 0;
}

/* İçerik ve footer boşluk kontrol */
.kp-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 24px;
}

.kp-footer2 {
    margin-top: 12px;
}

@media (max-width: 992px) {
    .kp-footer2-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .kp-footer2-right {
        justify-content: flex-start;
    }
}

/* ===== KP PORTAL POPUP (EN ÜSTE ÇIKAR) ===== */
.kp-portal-popup {
    position: fixed;
    z-index: 99999;
    width: 380px;
    max-width: 92vw;
    max-height: 320px;
    overflow: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15,29,58,.22);
    padding: 10px;
}

.kp-closed-cell {
    background: rgba(0,0,0,.03);
    opacity: .6;
}

.kp-page {
    padding: 24px 28px; /* sol/sağ boşluk */
}

.kp-appt,
.kp-appt-full {
    position: relative;
}


.kp-paid-check {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #22c55e;
    font-size: 14px;
    font-weight: 700;
}

.kp-form-card {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15,29,58,.08) !important;
}

.kp-form-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
}

.kp-form-subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.kp-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.kp-input {
    height: 52px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    box-shadow: none !important;
    font-size: 15px;
    padding-left: 14px;
    transition: all .18s ease;
}

    .kp-input:focus {
        background: #fff;
        border-color: rgba(37,99,235,.35);
        box-shadow: 0 0 0 .22rem rgba(37,99,235,.10) !important;
    }

.kp-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.kp-radio-card {
    min-width: 140px;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
}

    .kp-radio-card input {
        margin: 0;
    }

.kp-btn-primary {
    height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kp-btn-ghost {
    height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kp-textarea {
    height: auto;
    min-height: 120px;
    padding-top: 12px;
    resize: vertical;
}

.kp-settings-wrap {
    background: #fff;
    border: 1px solid rgba(15,29,58,.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15,29,58,.08);
    overflow: hidden;
}

.kp-settings-head {
    padding: 24px 24px 14px 24px;
    border-bottom: 1px solid rgba(15,29,58,.06);
    background: linear-gradient(180deg,#ffffff 0%, #fbfcff 100%);
}

.kp-settings-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
    margin: 0 0 4px 0;
}

.kp-settings-subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

.kp-settings-body {
    padding: 24px;
}

.kp-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

    .kp-settings-tabs .nav-link {
        border: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
        color: #334155 !important;
        border-radius: 14px !important;
        font-size: 14px;
        font-weight: 700;
        padding: 10px 14px !important;
        min-height: 42px;
        transition: all .18s ease;
    }

        .kp-settings-tabs .nav-link:hover {
            background: #eef4ff !important;
            border-color: #c7d2fe !important;
        }

        .kp-settings-tabs .nav-link.active {
            background: #eaf2ff !important;
            border-color: #93c5fd !important;
            color: #2563eb !important;
            box-shadow: 0 6px 18px rgba(37,99,235,.10);
        }

.kp-settings-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15,29,58,.04);
}

.kp-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}

.kp-settings-field-full {
    grid-column: 1 / -1;
}

.kp-settings-panel .form-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.kp-settings-panel .form-control,
.kp-settings-panel .form-select {
    height: 52px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    box-shadow: none !important;
    font-size: 15px;
    transition: all .18s ease;
}

.kp-settings-panel textarea.form-control {
    height: auto;
    min-height: 110px;
    padding-top: 12px;
    resize: vertical;
}

.kp-settings-panel .form-control:focus,
.kp-settings-panel .form-select:focus {
    background: #fff;
    border-color: rgba(37,99,235,.35);
    box-shadow: 0 0 0 .22rem rgba(37,99,235,.10) !important;
}

.kp-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

    .kp-settings-actions .btn {
        height: 48px;
        padding: 0 22px;
        border-radius: 14px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

@media (max-width: 992px) {
    .kp-settings-grid {
        grid-template-columns: 1fr;
    }

    .kp-settings-head,
    .kp-settings-body {
        padding: 18px;
    }

    .kp-settings-title {
        font-size: 24px;
    }
}


.kp-list-wrap {
    background: #fff;
    border: 1px solid rgba(15,29,58,.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15,29,58,.08);
    overflow: hidden;
}

.kp-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid rgba(15,29,58,.06);
    background: linear-gradient(180deg,#ffffff 0%, #fbfcff 100%);
}

.kp-list-title {
    margin: 0 0 4px 0;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
}

.kp-list-subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.kp-list-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kp-list-body {
    padding: 20px 24px 24px 24px;
}

.kp-table {
    --bs-table-bg: transparent;
    margin: 0;
}

    .kp-table thead th {
        border-bottom: 1px solid #e5e7eb !important;
        color: #334155;
        font-size: 13px;
        font-weight: 800;
        padding: 16px 14px;
        white-space: nowrap;
    }

    .kp-table tbody td {
        padding: 16px 14px;
        border-bottom: 1px solid #eef2f7;
        color: #1f2937;
        vertical-align: middle;
    }

    .kp-table tbody tr {
        transition: background .18s ease;
    }

        .kp-table tbody tr:hover {
            background: #f8fafc;
        }

.kp-table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

    .kp-table-actions .btn {
        border-radius: 10px;
        font-weight: 700;
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.kp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.kp-badge-active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.kp-badge-passive {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.kp-empty-state {
    padding: 36px 12px;
    text-align: center;
    color: #64748b;
    font-weight: 600;
}

@media (max-width: 992px) {
    .kp-list-head {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .kp-list-body {
        padding: 16px 18px 18px 18px;
    }

    .kp-list-title {
        font-size: 24px;
    }

    .kp-table-actions {
        justify-content: flex-start;
    }
}

.kp-page-head {
    padding: 8px 4px 0 4px;
}

.kp-page-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.03em;
    margin: 0;
}

.kp-page-subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.kp-home-kpi-card {
    border: 1px solid rgba(15,29,58,.06);
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(15,29,58,.06) !important;
    overflow: hidden;
}

    .kp-home-kpi-card .card-body {
        padding: 18px 18px 16px 18px;
    }

    .kp-home-kpi-card h6 {
        font-size: 13px;
        font-weight: 700;
        color: #64748b;
        margin-bottom: 8px;
    }

    .kp-home-kpi-card h3 {
        font-size: 32px;
        font-weight: 800;
        letter-spacing: -.03em;
    }

.kp-home-calendar-card {
    border: 1px solid rgba(15,29,58,.08);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15,29,58,.08) !important;
    overflow: hidden;
}

.kp-home-calendar-body {
    padding: 18px;
}

.kp-home-upcoming-card {
    border: 1px solid rgba(15,29,58,.08);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15,29,58,.06) !important;
    overflow: hidden;
}

.kp-home-upcoming-body {
    padding: 18px;
}

.kp-home-section-title {
    font-size: 18px;
    font-weight: 800 !important;
    color: #0f172a;
}

.kp-home-upcoming-card .list-group-item {
    border-color: #eef2f7;
    padding-left: 0;
    padding-right: 0;
}

.kp-home-calendar-card .btn.btn-sm {
    border-radius: 10px;
    font-weight: 700;
}

.kp-home-calendar-card .alert {
    border-radius: 14px;
}

@media (max-width: 992px) {
    .kp-page-title {
        font-size: 26px;
    }

    .kp-home-calendar-body,
    .kp-home-upcoming-body {
        padding: 14px;
    }

    .kp-home-kpi-card h3 {
        font-size: 26px;
    }
}

.kp-detail-wrap {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid rgba(15,29,58,.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15,29,58,.08);
    overflow: hidden;
}

.kp-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-bottom: 1px solid rgba(15,29,58,.06);
    background: linear-gradient(180deg,#ffffff 0%, #fbfcff 100%);
}

.kp-detail-head-left {
    min-width: 0;
    flex: 1;
}

.kp-detail-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}

.kp-detail-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.03em;
}

.kp-detail-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.kp-sikayet-box {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.kp-sikayet-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    letter-spacing: .04em;
}

.kp-sikayet-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.08);
    color: #3730a3;
    font-size: 13px;
    font-weight: 700;
}

    .kp-sikayet-chip:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(79, 70, 229, 0.15);
    }


.kp-sikayet-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fb7185 0%, #f43f5e 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.35);
}

.kp-sikayet-text {
    line-height: 1.2;
    white-space: nowrap;
}

.kp-detail-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.kp-detail-body {
    padding: 24px;
    width: 100%;
}

.kp-detail-kpi-text {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.kp-detail-history-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15,29,58,.04);
}

.kp-detail-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.kp-detail-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.kp-detail-section-subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.kp-detail-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kp-detail-history-item {
    width: 100%;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(15,29,58,.04);
    overflow: hidden;
    border-left: 5px solid #cbd5e1;
}

.kp-detail-history-item-inner {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.kp-detail-history-main {
    min-width: 0;
    flex: 1;
}

.kp-detail-history-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0;
}

.kp-detail-history-chips {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kp-detail-history-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.kp-detail-mini-btn {
    min-height: 38px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
}

.kp-chip-status,
.kp-chip-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid transparent;
}

.kp-chip-status-planned {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.kp-chip-status-done {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.kp-chip-status-noshow {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.kp-chip-status-postponed {
    background: #fef3c7;
    color: #b45309;
    border-color: #fcd34d;
}

.kp-chip-status-cancel {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.kp-chip-status-default {
    background: #f8fafc;
    color: #334155;
    border-color: #e2e8f0;
}

.kp-chip-note-success {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.kp-chip-note-muted {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

.kp-detail-item-planned {
    border-left-color: #3b82f6;
}

.kp-detail-item-done {
    border-left-color: #22c55e;
}

.kp-detail-item-noshow {
    border-left-color: #ef4444;
}

.kp-detail-item-postponed {
    border-left-color: #f59e0b;
}

.kp-detail-item-cancel {
    border-left-color: #64748b;
}

.kp-detail-item-default {
    border-left-color: #cbd5e1;
}

@media (max-width: 992px) {
    .kp-detail-head {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .kp-detail-body {
        padding: 18px;
    }

    .kp-detail-title {
        font-size: 24px;
    }

    .kp-detail-history-item-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .kp-detail-history-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .kp-detail-history-date {
        font-size: 0.95rem;
    }
}

.kp-sikayet-chip-table {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    font-size: 12px;
    font-weight: 600;
    color: #3730a3;
}

    .kp-sikayet-chip-table .kp-sikayet-icon {
        width: 18px;
        height: 18px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fb7185;
        color: #fff;
        font-size: 10px;
    }
/* Raporlama tablosunda şikayet chip küçültme */
.rp-table .kp-sikayet-chip {
    transform: scale(0.85);
    padding: 2px 8px;
    min-height: 28px;
    font-size: 11px;
}

/* ikon da küçülsün */
.rp-table .kp-sikayet-icon {
    width: 16px;
    height: 16px;
    font-size: 9px;
}
/* Dashboard KPI alt boşluk */
.kp-home-kpis {
    margin-bottom: 24px !important;
}

/* Klinik abonelik durum rozetleri */
.kp-sub-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

.kp-sub-badge-success {
    color: #2f6f55;
    background: #e8f6ef;
    border-color: #c8ead9;
}

.kp-sub-badge-soft-warning {
    color: #8a6a1f;
    background: #fff7df;
    border-color: #f3df9d;
}

.kp-sub-badge-warning {
    color: #9a5a22;
    background: #fff0df;
    border-color: #f0c49b;
}

.kp-sub-badge-danger {
    color: #9b3f3f;
    background: #fdeaea;
    border-color: #efc0c0;
}

.kp-sub-badge-neutral {
    color: #667085;
    background: #f3f4f6;
    border-color: #e1e4ea;
}

/* Abonelik uyarı modalı */
.kp-subscription-modal .modal-content {
    border: 1px solid #e5eaf3;
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.kp-subscription-modal .modal-header {
    border-bottom: 1px solid #edf1f7;
    padding: 22px 26px;
}

.kp-subscription-modal .modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #071b3a;
}

.kp-subscription-modal .modal-body {
    padding: 30px 28px;
    text-align: center;
}

.kp-subscription-warning-icon {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff0df;
    border: 1px solid #f0c49b;
    color: #9a5a22;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 18px;
}

.kp-subscription-warning-title {
    font-size: 24px;
    font-weight: 800;
    color: #071b3a;
    margin-bottom: 10px;
}

.kp-subscription-warning-text {
    color: #5f6b7a;
    font-size: 14px;
    margin-bottom: 18px;
}

.kp-subscription-warning-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kp-subscription-modal .modal-footer {
    border-top: 1px solid #edf1f7;
    padding: 18px 26px 24px;
}
/* Klinik hesapları arama alanı */
.kp-clinic-search {
    padding: 14px 16px;
    border: 1px solid #edf1f7;
    border-radius: 22px;
    background: #fbfdff;
}

.kp-clinic-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kp-clinic-search-input-wrap {
    flex: 1 1 420px;
    max-width: 560px;
}

.kp-clinic-search-input {
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid #dfe7f2;
    background: #f8fbff;
    color: #071b3a;
    font-size: 14px;
    padding: 10px 18px;
    box-shadow: none;
}

    .kp-clinic-search-input:focus {
        border-color: #b9c9f7;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(185, 201, 247, 0.25);
    }

    .kp-clinic-search-input::placeholder {
        color: #7b8797;
    }

.kp-clinic-search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
/* Genel soft modal standardı */
.kp-modal-soft .modal-content {
    border: 1px solid #e5eaf3;
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.kp-modal-soft .modal-header {
    border-bottom: 1px solid #edf1f7;
    padding: 22px 26px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.kp-modal-soft .modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #071b3a;
}

.kp-modal-soft .modal-body {
    padding: 26px;
}

.kp-modal-soft .modal-footer {
    border-top: 1px solid #edf1f7;
    padding: 18px 26px 24px;
    background: #ffffff;
}

/* Seans notu modal özeti */
.kp-note-summary-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kp-note-summary-card {
    border: 1px solid #e5eaf1;
    border-radius: 20px;
    padding: 18px 20px;
    background: #fbfdff;
    box-shadow: 0 8px 24px rgba(15, 29, 58, 0.04);
}

.kp-note-summary-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
}

.kp-note-summary-value {
    font-size: 24px;
    font-weight: 800;
    color: #071b3a;
    line-height: 1;
}

@media (max-width: 768px) {
    .kp-note-summary-row {
        grid-template-columns: 1fr;
    }

    .kp-modal-soft .modal-body {
        padding: 20px;
    }
}
/* Seans Notu Form Standardı */
.kp-seans-note-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.kp-seans-score-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.kp-seans-score-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.kp-score-value-pill {
    min-width: 76px;
    height: 58px;
    border-radius: 18px;
    border: 1px solid #dbeafe;
    background: #eef6ff;
    color: #1d4ed8;
    font-size: 26px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kp-seans-score-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 18px;
    align-items: center;
}

.kp-seans-range {
    margin: 0;
}

.kp-btn-soft-primary {
    height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid #bfdbfe;
    background: #eef6ff;
    color: #1d4ed8;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

    .kp-btn-soft-primary:hover {
        background: #dbeafe;
        border-color: #93c5fd;
        color: #1e40af;
    }

@media (max-width: 768px) {
    .kp-seans-score-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .kp-seans-score-grid {
        grid-template-columns: 1fr;
    }

    .kp-settings-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .kp-settings-actions .btn {
            width: 100%;
        }
}
/* Kullanıcı Formları */
.kp-password-field {
    position: relative;
}

    .kp-password-field .form-control {
        padding-right: 52px;
    }

.kp-password-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .kp-password-toggle:hover {
        color: #1e293b;
    }

.kp-switch-card {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
/* =========================================================
   Ayarlar / Index - Inline CSS taşındı
   HTML yapısına dokunulmadı
   ========================================================= */

.kp-settings-wrap .kp-sikayet-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .kp-settings-wrap .kp-sikayet-row .form-control {
        flex: 1;
    }

.kp-settings-wrap .kp-sikayet-ekle-btn {
    min-width: 96px;
    height: 48px;
    border-radius: 14px;
    font-weight: 600;
    flex: 0 0 auto;
}

.kp-settings-wrap .kp-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
    background: #f8fafc;
    font-weight: 600;
}

.kp-settings-wrap .kp-chip-remove {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .kp-settings-wrap .kp-chip-remove:hover {
        background: #cbd5e1;
    }

.kp-settings-wrap .kp-age-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

    .kp-settings-wrap .kp-age-row #kpAgeInput {
        flex: 1;
    }

    .kp-settings-wrap .kp-age-row #kpAgeAddBtn {
        flex: 0 0 auto;
        min-width: 96px;
        height: 48px;
        border-radius: 14px;
        font-weight: 600;
    }

@media (max-width: 768px) {
    .kp-settings-wrap .kp-sikayet-row {
        flex-direction: column;
        align-items: stretch;
    }

    .kp-settings-wrap .kp-sikayet-ekle-btn {
        width: 100%;
    }

    .kp-settings-wrap .kp-age-row {
        flex-direction: column;
        align-items: stretch;
    }

        .kp-settings-wrap .kp-age-row #kpAgeAddBtn {
            width: 100%;
        }
}
/* =========================================================
   Raporlama / Index - Inline CSS taşındı
   HTML yapısına dokunulmadı
   ========================================================= */

.rp-list-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15,29,58,.06) !important;
}

.rp-list-card-body {
    padding: 18px 18px 12px 18px;
}

.rp-list-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.rp-list-subtitle {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.rp-list-total {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.rp-premium-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .rp-premium-table thead th {
        background: #f8fafc;
        color: #334155;
        font-size: 12.5px;
        font-weight: 800;
        border-bottom: 1px solid #e5e7eb !important;
        padding-top: .9rem;
        padding-bottom: .9rem;
    }

    .rp-premium-table tbody td {
        padding-top: .85rem;
        padding-bottom: .85rem;
        border-bottom: 1px solid #eef2f7;
        color: #1f2937;
        vertical-align: middle;
    }

    .rp-premium-table tbody tr {
        transition: background .18s ease, box-shadow .18s ease;
    }

        .rp-premium-table tbody tr:hover {
            background: #f8fafc;
        }

.rp-fixed td:nth-child(3),
.rp-fixed th:nth-child(3) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-fixed td:nth-child(4),
.rp-fixed td:nth-child(5) {
    white-space: nowrap;
}

.rp-th-date {
    width: 14%;
}

.rp-th-time {
    width: 8%;
}

.rp-th-danisan {
    width: 24%;
}

.rp-th-sikayet {
    width: 24%;
}

.rp-th-cinsiyet {
    width: 12%;
}

.rp-th-yas {
    width: 6%;
}

.rp-th-durum {
    width: 12%;
}

.rp-gender {
    font-weight: 700;
    border-radius: 999px;
    padding: .38rem .7rem;
    border: 1px solid rgba(0,0,0,.08);
}

.rp-gender-erkek {
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
}

.rp-gender-kiz {
    background: rgba(236, 72, 153, .10);
    color: #db2777;
}

.rp-status-badge {
    font-weight: 700;
    padding: .42rem .65rem;
    border-radius: 10px;
}

.rp-pagination .page-link {
    border-radius: 10px !important;
    margin: 0 2px;
    border-color: #dbe3ee;
    color: #334155;
    min-width: 34px;
    text-align: center;
}

.rp-pagination .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.rp-kpi-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15,29,58,.06) !important;
}

.rp-kpi-sikayet-card {
    background: linear-gradient(135deg,#eef2ff,#e0e7ff);
}

.rp-kpi-sikayet-name {
    font-size: 15px;
}

.rp-filter-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15,29,58,.06) !important;
}

.rp-click-row {
    cursor: pointer;
}

    .rp-click-row:focus {
        outline: 2px solid rgba(37,99,235,.25);
        outline-offset: -2px;
        background: #f8fafc;
    }

.rp-modal-dialog {
    max-width: 560px;
}

.rp-modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: 0;
}
/* =========================================================
   Istatistik / Index - Inline CSS taşındı
   HTML yapısına dokunulmadı
   ========================================================= */

.kp-stats-summary-card {
    border: 1px solid rgba(15,29,58,.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15,29,58,.08) !important;
    overflow: hidden;
}

.kp-stats-summary-body {
    padding: 18px 20px;
}

.kp-stats-chart-card {
    border: 1px solid rgba(15,29,58,.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15,29,58,.08) !important;
    overflow: hidden;
}

.kp-stats-chart-body {
    padding: 18px 18px 16px 18px;
}

.kp-stats-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.kp-stats-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
}

.kp-stats-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.kp-chart-box {
    position: relative;
    width: 100%;
}

.kp-chart-box-260 {
    height: 260px;
}

.kp-chart-box-240 {
    height: 240px;
}

.kp-chart-donut {
    max-width: 260px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .kp-stats-summary-body,
    .kp-stats-chart-body {
        padding: 16px;
    }

    .kp-stats-legend {
        gap: 10px 14px;
    }
}
/* =========================================================
   Home / Dashboard - Inline CSS taşındı
   HTML yapısına dokunulmadı
   ========================================================= */

.kp-home-kpi-chip-wrap {
    max-height: 64px;
    overflow: hidden;
}

.kp-home-kpi-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.kp-home-kpi-chip-done {
    background: #ECFDF5;
    color: #16A34A;
}

.kp-home-kpi-chip-planned {
    background: #EFF6FF;
    color: #2563EB;
}

.kp-home-kpi-chip-noshow {
    background: #FEF3C7;
    color: #B45309;
}

.kp-home-kpi-chip-cancel {
    background: #FEF2F2;
    color: #DC2626;
}

.kp-home-kpi-chip-postponed {
    background: #ECFEFF;
    color: #0891B2;
}

.kp-home-kpi-sikayet-card {
    background: linear-gradient(135deg,#eef2ff,#e0e7ff);
}

.kp-home-calendar-title,
.kp-home-calendar-title-info {
    white-space: nowrap;
}

.kp-upcoming-date {
    width: 170px;
}

.kp-upcoming-dot-cell {
    width: 40px;
    text-align: right;
}

.kp-home-modal-dialog {
    max-width: 560px;
}

.kp-home-modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: 0;
}
/* =========================================================
   Klinik Hesapları / Index - Mobil kart görünümü
   Desktop tablo yapısına dokunulmadı
   ========================================================= */

.kp-clinic-mobile-cards {
    display: none;
}

.kp-clinic-mobile-card {
    border: 1px solid rgba(15, 29, 58, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 29, 58, .06);
    padding: 16px;
}

    .kp-clinic-mobile-card + .kp-clinic-mobile-card {
        margin-top: 14px;
    }

.kp-clinic-mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 29, 58, .08);
}

.kp-clinic-mobile-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.kp-clinic-mobile-code {
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.kp-clinic-mobile-section {
    padding-top: 12px;
}

.kp-clinic-mobile-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.kp-clinic-mobile-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.kp-clinic-mobile-muted {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}

.kp-clinic-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid rgba(15, 29, 58, .08);
}

    .kp-clinic-mobile-actions .kp-detail-mini-btn {
        min-height: 34px;
    }

@media (max-width: 768px) {
    .kp-clinic-desktop-table {
        display: none;
    }

    .kp-clinic-mobile-cards {
        display: block;
    }

    .kp-clinic-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .kp-clinic-search-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

        .kp-clinic-search-actions .kp-detail-mini-btn {
            flex: 1;
        }

    .kp-clinic-mobile-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

        .kp-clinic-mobile-actions .kp-detail-mini-btn,
        .kp-clinic-mobile-actions form,
        .kp-clinic-mobile-actions button {
            width: 100%;
        }
}

@media (max-width: 420px) {
    .kp-clinic-mobile-actions {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Klinik Hesapları - Mobil arama boşluk düzeltmesi
   ========================================================= */

@media (max-width: 768px) {
    .kp-clinic-search {
        padding: 14px !important;
    }

    .kp-clinic-search-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        min-height: 0 !important;
    }

    .kp-clinic-search-input-wrap {
        width: 100% !important;
        flex: 0 0 auto !important;
        min-height: 0 !important;
    }

    .kp-clinic-search-input {
        width: 100% !important;
        min-height: 44px !important;
    }

    .kp-clinic-search-actions {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
        margin-top: 0 !important;
        flex: 0 0 auto !important;
    }

        .kp-clinic-search-actions .kp-detail-mini-btn {
            width: 100% !important;
            flex: 1 1 0 !important;
        }
}
/* =========================================================
   Klinik Kullanıcıları - Mobil kart görünümü
   Desktop tablo yapısına dokunulmadı
   ========================================================= */

.kp-user-mobile-cards {
    display: none;
}

.kp-user-mobile-card {
    border: 1px solid rgba(15, 29, 58, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 29, 58, .06);
    padding: 16px;
}

    .kp-user-mobile-card + .kp-user-mobile-card {
        margin-top: 14px;
    }

.kp-user-mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 29, 58, .08);
}

.kp-user-mobile-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.kp-user-mobile-username {
    font-size: 13px;
    color: #64748b;
    margin-top: 5px;
    font-weight: 600;
}

.kp-user-mobile-section {
    padding-top: 12px;
}

.kp-user-mobile-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.kp-user-mobile-muted {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.kp-user-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid rgba(15, 29, 58, .08);
}

    .kp-user-mobile-actions .kp-detail-mini-btn,
    .kp-user-mobile-actions form,
    .kp-user-mobile-actions button {
        width: 100%;
    }

@media (max-width: 768px) {
    .kp-user-desktop-table {
        display: none;
    }

    .kp-user-mobile-cards {
        display: block;
    }
}

@media (max-width: 420px) {
    .kp-user-mobile-actions {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Hasta / Details - Klinik özet CSS
   Inline CSS taşındı
   ========================================================= */

.kp-klinik-ozet-box {
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    padding: 16px;
    background: #fafbff;
}

.kp-klinik-kpis {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.kp-kpi-item {
    flex: 1;
    text-align: center;
}

.kp-kpi-label {
    font-size: 12px;
    color: #64748b;
}

.kp-kpi-value {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.kp-klinik-yorum {
    text-align: center;
    font-size: 13px;
    padding: 8px;
    border-radius: 8px;
    font-weight: 500;
}

.kp-kpi-good {
    color: #16a34a;
}

.kp-kpi-mid {
    color: #2563eb;
}

.kp-kpi-stable {
    color: #64748b;
}

.kp-kpi-bad {
    color: #dc2626;
}

@media (max-width: 768px) {
    .kp-klinik-kpis {
        flex-direction: column;
    }
}
/* =========================================================
   Hasta / Rapor - Print rapor sayfası
   Inline CSS taşındı
   ========================================================= */

.rp-report-page {
    --rp-bg: #f5f7fb;
    --rp-card: #ffffff;
    --rp-line: #dbe3ee;
    --rp-line-soft: #e8eef6;
    --rp-text: #0f172a;
    --rp-muted: #64748b;
    --rp-primary: #2563eb;
    --rp-primary-soft: #eff6ff;
    --rp-success-soft: #dcfce7;
    --rp-success-text: #166534;
    --rp-shadow: 0 18px 40px rgba(15, 23, 42, .08);
    --rp-radius-xl: 24px;
    --rp-radius-lg: 18px;
    --rp-radius-md: 14px;
    margin: 0;
    padding: 24px;
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
    color: var(--rp-text);
    background: var(--rp-bg);
    line-height: 1.45;
}

    .rp-report-page * {
        box-sizing: border-box;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

.rp-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.rp-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.rp-print-btn {
    height: 46px;
    padding: 0 18px;
    border: 1px solid #1d4ed8;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
}

.rp-card {
    background: var(--rp-card);
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: var(--rp-radius-xl);
    box-shadow: var(--rp-shadow);
    overflow: hidden;
}

.rp-head {
    padding: 28px 30px 22px 30px;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.rp-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rp-muted);
    margin-bottom: 8px;
}

.rp-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.rp-title {
    margin: 0;
    font-size: 38px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.03em;
}

.rp-date-badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.rp-meta {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rp-meta-item {
    background: #f8fafc;
    border: 1px solid #e8eef6;
    border-radius: var(--rp-radius-md);
    padding: 14px 16px;
}

.rp-meta-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--rp-muted);
    margin-bottom: 4px;
}

.rp-meta-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--rp-text);
    word-break: break-word;
}

.rp-body {
    padding: 24px 30px 30px 30px;
}

.rp-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    margin-bottom: 20px;
}

.rp-section {
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: var(--rp-radius-lg);
    padding: 20px;
}

.rp-section-title {
    margin: 0 0 14px 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.rp-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.rp-kpi {
    background: #f8fafc;
    border: 1px solid #e8eef6;
    border-radius: 16px;
    padding: 14px;
    text-align: center;
}

.rp-kpi-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--rp-muted);
    margin-bottom: 6px;
}

.rp-kpi-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--rp-text);
    letter-spacing: -.02em;
}

.rp-comment {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--rp-success-soft);
    border: 1px solid #86efac;
    color: var(--rp-success-text);
    font-size: 13px;
    font-weight: 800;
}

.rp-note-box {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.rp-note-text {
    font-size: 15px;
    color: #334155;
    margin: 0;
}

.rp-table-wrap {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #e8eef6;
    border-radius: 18px;
}

.rp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

    .rp-table thead th {
        text-align: left;
        font-size: 13px;
        font-weight: 800;
        color: #334155;
        background: #f8fafc;
        padding: 14px 16px;
        border-bottom: 1px solid #e8eef6;
    }

    .rp-table tbody td {
        padding: 14px 16px;
        border-bottom: 1px solid #eef2f7;
        vertical-align: top;
        font-size: 14px;
        color: #1f2937;
    }

    .rp-table tbody tr:last-child td {
        border-bottom: 0;
    }

.rp-report-date-col {
    width: 180px;
}

.rp-empty {
    padding: 22px;
    text-align: center;
    color: var(--rp-muted);
    font-weight: 600;
}

.rp-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--rp-muted);
    font-size: 12px;
}

@media (max-width: 900px) {
    .rp-meta,
    .rp-grid,
    .rp-summary-grid {
        grid-template-columns: 1fr;
    }

    .rp-title {
        font-size: 30px;
    }

    .rp-head,
    .rp-body {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media print {
    html,
    body.rp-report-page {
        background: #ffffff !important;
    }

    body.rp-report-page {
        padding: 0;
    }

    .rp-shell {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .rp-toolbar {
        display: none !important;
    }

    .rp-card {
        box-shadow: none !important;
        border: 1px solid #dbe3ee !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .rp-head {
        padding: 18px 20px 14px 20px;
    }

    .rp-body {
        padding: 16px 20px 20px 20px;
    }

    .rp-title {
        font-size: 28px;
    }

    .rp-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 14px;
        margin-bottom: 14px;
    }

    .rp-section,
    .rp-meta-item,
    .rp-kpi,
    .rp-table-wrap {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .rp-table thead {
        display: table-header-group;
    }

    .rp-table tr {
        page-break-inside: avoid;
    }

    .rp-footer {
        margin-top: 14px;
    }

    @page {
        size: A4;
        margin: 10mm;
    }
}
/* =========================================================
   Giris / Index - Login sayfası
   Inline CSS taşındı
   ========================================================= */

.kp-login-page {
    --kp-login-bg1: #0b1220;
    --kp-login-bg2: #0b3b8d;
    --kp-login-accent: #3b82f6;
    --kp-login-accent2: #22c55e;
    --kp-login-text: #e5e7eb;
    --kp-login-muted: #94a3b8;
    --kp-login-border: rgba(255,255,255,.10);
    --kp-login-shadow: 0 24px 60px rgba(0,0,0,.35);
    --kp-login-radius: 18px;
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(1200px 800px at 15% 20%, rgba(59,130,246,.35), transparent 55%), radial-gradient(900px 700px at 85% 35%, rgba(34,197,94,.22), transparent 55%), linear-gradient(140deg, var(--kp-login-bg1), var(--kp-login-bg2));
    color: var(--kp-login-text);
    overflow-x: hidden;
}

.kp-login-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.kp-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.kp-login-shell {
    width: min(1040px, 100%);
    border: 1px solid var(--kp-login-border);
    border-radius: var(--kp-login-radius);
    box-shadow: var(--kp-login-shadow);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.kp-login-left {
    position: relative;
    padding: 34px;
    background: radial-gradient(900px 500px at 30% 20%, rgba(59,130,246,.35), transparent 55%), radial-gradient(700px 500px at 60% 80%, rgba(34,197,94,.22), transparent 55%), linear-gradient(180deg, rgba(15,23,42,.65), rgba(2,6,23,.60));
    border-right: 1px solid var(--kp-login-border);
    min-height: 540px;
}

.kp-login-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    font-size: .85rem;
    color: var(--kp-login-text);
}

.kp-login-title {
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: 2rem;
    margin: 14px 0 8px;
}

.kp-login-sub {
    color: var(--kp-login-muted);
    line-height: 1.5;
    max-width: 44ch;
}

.kp-login-feats {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.kp-login-feat {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.14);
}

    .kp-login-feat svg {
        flex: 0 0 auto;
    }

    .kp-login-feat b {
        display: block;
        font-size: .95rem;
    }

    .kp-login-feat span {
        color: var(--kp-login-muted);
        font-size: .9rem;
    }

.kp-login-ill {
    position: absolute;
    right: -40px;
    bottom: -30px;
    width: 360px;
    opacity: .95;
    filter: drop-shadow(0 24px 30px rgba(0,0,0,.35));
}

.kp-login-right {
    padding: 34px;
    background: linear-gradient(180deg, rgba(2,6,23,.55), rgba(15,23,42,.55));
}

.kp-login-card {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15,23,42,.62), rgba(2,6,23,.62));
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

    .kp-login-card .card-body {
        padding: 22px;
    }

.kp-login-iconbox {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59,130,246,.18);
    border: 1px solid rgba(255,255,255,.12);
}

.kp-login-form-title {
    font-weight: 800;
    letter-spacing: -.01em;
    font-size: 1.35rem;
    margin: 0 0 4px;
}

.kp-login-form-sub {
    color: var(--kp-login-muted);
    margin: 0 0 16px;
}

.kp-login-input {
    border-radius: 12px !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: var(--kp-login-text) !important;
    height: 44px;
}

    .kp-login-input::placeholder {
        color: rgba(229,231,235,.55);
    }

    .kp-login-input:focus {
        box-shadow: 0 0 0 .18rem rgba(59,130,246,.25) !important;
        border-color: rgba(59,130,246,.55) !important;
    }

.kp-login-addon {
    border-radius: 12px !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: rgba(229,231,235,.85) !important;
}

.kp-login-password-toggle {
    border-left: 0 !important;
}

.kp-login-btn {
    height: 46px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    background: linear-gradient(90deg, var(--kp-login-accent), #60a5fa);
    border: none;
    box-shadow: 0 12px 22px rgba(59,130,246,.28);
}

    .kp-login-btn:hover {
        filter: brightness(1.03);
    }

.kp-login-footer {
    margin-top: 14px;
    color: var(--kp-login-muted);
    font-size: .9rem;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.kp-login-link {
    color: rgba(229,231,235,.9);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,.25);
}

    .kp-login-link:hover {
        opacity: .9;
    }

.kp-login-error {
    border-radius: 12px;
    border: 1px solid rgba(239,68,68,.35);
    background: rgba(239,68,68,.08);
    color: #fecaca;
}

@media (max-width: 991.98px) {
    .kp-login-left {
        display: none;
    }

    .kp-login-right {
        padding: 22px;
    }
}
/* Layout - mobil sidebar üst boşluk */
.kp-sidebar-spacer {
    flex: 1 1 auto;
    min-width: 0;
}
/* =========================================================
   Tahsilat / Index - Mobil kart görünümü
   Desktop tablo yapısına dokunulmadı
   ========================================================= */

.kp-payment-mobile-cards {
    display: none;
}

.kp-payment-mobile-card {
    border: 1px solid rgba(15, 29, 58, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 29, 58, .06);
    padding: 16px;
}

    .kp-payment-mobile-card + .kp-payment-mobile-card {
        margin-top: 14px;
    }

.kp-payment-mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 29, 58, .08);
}

.kp-payment-mobile-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.kp-payment-mobile-section {
    padding-top: 12px;
}

.kp-payment-mobile-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.kp-payment-mobile-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.kp-payment-mobile-muted {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 600;
}

.kp-payment-mobile-amount {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

@media (max-width: 768px) {
    .kp-payment-desktop-table {
        display: none;
    }

    .kp-payment-mobile-cards {
        display: block;
    }
}
/* Tahsilat / Index - Tablet ve mobil genişlik düzeltmesi */
@media (max-width: 992px) {
    .kp-payment-page {
        padding-left: 10px;
        padding-right: 10px;
    }

        .kp-payment-page .kp-list-head {
            padding: 18px;
        }

        .kp-payment-page .kp-list-body {
            padding: 14px;
        }
}

@media (max-width: 576px) {
    .kp-payment-page {
        padding-left: 6px;
        padding-right: 6px;
    }

        .kp-payment-page .kp-list-head {
            padding: 16px;
        }

        .kp-payment-page .kp-list-body {
            padding: 12px;
        }

    .kp-payment-mobile-card {
        padding: 16px;
        border-radius: 16px;
    }
}
/* Tahsilat / Ekle - Tablet ve mobil form boşluk düzeltmesi */
@media (max-width: 992px) {
    .kp-payment-form-page {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 576px) {
    .kp-payment-form-page {
        padding-left: 6px;
        padding-right: 6px;
    }

    .kp-payment-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .kp-payment-form-actions .btn {
            width: 100%;
        }
}
/* =========================================================
   Hasta / Index - Mobil kart görünümü
   ========================================================= */

.kp-patient-mobile-cards {
    display: none;
}

.kp-patient-mobile-card {
    border: 1px solid rgba(15, 29, 58, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 29, 58, .06);
    padding: 16px;
}

    .kp-patient-mobile-card + .kp-patient-mobile-card {
        margin-top: 14px;
    }

.kp-patient-mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 29, 58, .08);
}

.kp-patient-mobile-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.kp-patient-mobile-section {
    padding-top: 12px;
}

.kp-patient-mobile-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.kp-patient-mobile-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
}

.kp-patient-mobile-muted {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 600;
    word-break: break-word;
}

.kp-patient-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    margin-top: 12px;
    border-top: 1px solid rgba(15, 29, 58, .08);
}

    .kp-patient-mobile-actions form {
        margin: 0;
    }

@media (max-width: 992px) {
    .kp-patient-index-page {
        padding-left: 10px;
        padding-right: 10px;
    }

        .kp-patient-index-page .kp-list-head {
            padding: 18px;
        }

        .kp-patient-index-page .kp-list-body {
            padding: 14px;
        }
}

@media (max-width: 768px) {
    .kp-patient-desktop-table {
        display: none;
    }

    .kp-patient-mobile-cards {
        display: block;
    }
}

@media (max-width: 576px) {
    .kp-patient-index-page {
        padding-left: 6px;
        padding-right: 6px;
    }

        .kp-patient-index-page .kp-list-head {
            padding: 16px;
        }

        .kp-patient-index-page .kp-list-body {
            padding: 12px;
        }

    .kp-patient-mobile-card {
        border-radius: 16px;
        padding: 16px;
    }

    .kp-patient-mobile-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .kp-patient-mobile-actions .btn,
        .kp-patient-mobile-actions form,
        .kp-patient-mobile-actions button {
            width: 100%;
        }
}
@media (max-width: 768px) {
    .kp-content {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .kp-page {
        width: 100% !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .kp-list-wrap,
    .kp-settings-wrap,
    .kp-home-calendar-card,
    .kp-home-kpi-card,
    .kp-system-wrap,
    .kp-system-card,
    .kp-dashboard-card {
        width: 100% !important;
        max-width: none !important;
    }

    .kp-settings-body,
    .kp-settings-grid,
    .kp-home-kpi-grid,
    .kp-system-grid {
        width: 100% !important;
        max-width: none !important;
    }
}
/* İlk görüşme / aday danışan randevusu */
.kp-appt[data-note*="İlk görüşme"],
.kp-appt[data-note*="aday danışan"] {
    border-color: #a855f7 !important;
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%) !important;
    box-shadow: 0 8px 18px rgba(168, 85, 247, 0.16);
}

    .kp-appt[data-note*="İlk görüşme"] .kp-appt-title::after,
    .kp-appt[data-note*="aday danışan"] .kp-appt-title::after {
        content: "Aday";
        display: inline-flex;
        align-items: center;
        margin-left: 6px;
        padding: 2px 7px;
        border-radius: 999px;
        background: #ede9fe;
        color: #6d28d9;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.2;
    }

    .kp-appt[data-note*="İlk görüşme"] .kp-appt-state,
    .kp-appt[data-note*="aday danışan"] .kp-appt-state {
        color: #6d28d9;
        font-weight: 700;
    }
.kp-patient-filter-card {
    min-height: 72px;
    border: 1px solid #e7ecf5;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: all 0.18s ease;
    overflow: hidden;
}

    .kp-patient-filter-card:hover {
        transform: translateY(-1px);
        border-color: #cdd8ea;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    .kp-patient-filter-card.is-active {
        border-color: #1468f2;
        background: #1468f2;
        color: #ffffff;
        box-shadow: 0 14px 30px rgba(20, 104, 242, 0.22);
    }

.kp-patient-filter-body {
    padding: 16px 18px;
}

.kp-patient-filter-title {
    font-size: 14px;
    font-weight: 700;
    color: inherit;
    line-height: 1.2;
}

.kp-patient-filter-count {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

    .kp-patient-filter-count.is-active {
        color: rgba(255, 255, 255, 0.78);
    }
.rp-mobile-appointment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rp-mobile-appointment-card {
    border: 1px solid #e7ecf5;
    border-radius: 18px;
    background: #ffffff;
    padding: 14px 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    cursor: pointer;
}

.rp-mobile-appointment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.rp-mobile-appointment-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.rp-mobile-appointment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

.rp-mobile-dot {
    color: #94a3b8;
}

.rp-mobile-empty-state {
    border: 1px dashed #d7deea;
    border-radius: 18px;
    padding: 22px 16px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
}
/* Raporlama - 1280px altı kart görünümü */
.rp-report-mobile-list {
    display: none;
}

.rp-report-desktop-list {
    display: block;
}

@media (max-width: 1280px) {
    .rp-report-desktop-list {
        display: none !important;
    }

    .rp-report-mobile-list {
        display: flex !important;
    }
}

@media (min-width: 1280px) {
    .rp-report-desktop-list {
        display: block !important;
    }

    .rp-report-mobile-list {
        display: none !important;
    }
}