/* pys_module_themes_2_secici.css
 * ===========================================================================
 * KAYNAK: pys_module_themes.css satir 1191-2351 (bolundu: 2026-08-28)
 *
 * !! YUKLEME SIRASI KRITIK !!
 * Bu dosya ailesi (pys_module_themes_1..7) UC YERDE numara sirasiyla
 * yuklenmek ZORUNDA: web/index.html, web/yonetim/index.html ve
 * pys_motivation_system.js yazdirma penceresi. Dosya kronolojik bolundu:
 * sonraki parcalar oncekileri KASITLI eziyor. Sira bozulursa gorunum
 * sessizce bozulur (hata vermez).
 *
 * ICERIK: Kompakt tarih/hafta secici (TEK CSS SAHIBI) + hafta popover'i, B1 banner aksiyon butonlari, B3 quick-add, focus-visible duzeltmesi, B4 baslik duzenleme / sag panel, Tek Yuzey merkez modal, H5 degisiklik gecmisi
 * ===========================================================================
 */
/* ── Kompakt tarih/hafta seçici — TEK CSS SAHİBİ, Planım/Değerlendirme/
   Geri Bildirimler ortak (bkz. pys_hcp_ui.js renderHeaderWeekNav/openHcpWeekPicker).
   Kapalı buton: [takvim ikonu] [tarih] [chevron] — ikinci satır/rozet YOK. */
.hcp-header-week-nav {
    display: flex;
    align-items: center;
    min-width: 0;
}
.hcp-week-trigger-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #E7F2FF 0%, #D9EBFD 100%);
    border: 1px solid rgba(63, 160, 236, 0.45);
    border-radius: 10px;
    /* Dolgu kisildi (2026-08-27): buyuk acik mavi pill neredeyse ana eylem butonu
       gibi okunuyordu, oysa yalnizca baglam secicisi. min-height 34px: yanindaki
       baglam rozeti ve soldaki baslikla AYNI optik banda oturur. */
    padding: 7px 13px;
    min-height: 34px;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(46, 143, 255, 0.12);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.hcp-week-trigger-v2:hover {
    background: linear-gradient(145deg, #D9EBFD 0%, #C9E2FB 100%);
    box-shadow: 0 4px 14px rgba(46, 143, 255, 0.18);
}
.hcp-week-trigger-v2:focus-visible {
    outline: 2px solid var(--hcp-focus-ring, #1a63c4);
    outline-offset: 2px;
}
.hcp-week-trigger-v2__icon,
.hcp-week-trigger-v2__chevron {
    font-size: 11px;
    color: #1A63C4;
    flex-shrink: 0;
}
.hcp-week-label-main {
    font-size: 13px;
    font-weight: 700;
    color: #14224A;
    white-space: nowrap;
}

/* ── Popover: hafta-odaklı kompakt liste (her satır bir çalışma haftası) ── */
.hcp-wpk-pop {
    position: fixed;
    z-index: 95;
    width: 260px;
    max-width: calc(100vw - 24px);
    max-height: 480px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #CBD8E8;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(15, 42, 80, 0.16);
}
.hcp-wpk-cal { padding: 12px 14px; }
.hcp-wpk-cal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.hcp-wpk-cal__title { font-size: 13px; font-weight: 700; color: #14224A; }
.hcp-wpk-nav {
    width: 26px; height: 26px;
    border-radius: 8px;
    border: 1px solid #CBD8E8;
    background: #F3F8FE;
    color: #1a63c4;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
}
.hcp-wpk-nav:hover { background: #E7F2FF; }
.hcp-wpk-nav:focus-visible { outline: 2px solid var(--hcp-focus-ring, #1a63c4); outline-offset: 1px; }
.hcp-wpk-weeks {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
/* Bir çalışma haftası = tek satır butonu; solda hafta no, sağda tarih aralığı. */
.hcp-wpk-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    text-align: left;
}
.hcp-wpk-item:hover:not(:disabled):not(.is-selected) { background: #EFF6FF; }
.hcp-wpk-item:focus-visible { outline: 2px solid var(--hcp-focus-ring, #1a63c4); outline-offset: 1px; }
.hcp-wpk-item:disabled { cursor: not-allowed; }
.hcp-wpk-item__no { font-size: 14px; font-weight: 600; color: #334155; }
.hcp-wpk-item__range { font-size: 13px; font-weight: 500; color: #64748B; }
.hcp-wpk-item.is-selected {
    background: #1E6FD0;
    box-shadow: 0 4px 10px rgba(30, 111, 208, 0.25);
}
.hcp-wpk-item.is-selected .hcp-wpk-item__no,
.hcp-wpk-item.is-selected .hcp-wpk-item__range { color: #fff; }
.hcp-wpk-item:disabled .hcp-wpk-item__no,
.hcp-wpk-item:disabled .hcp-wpk-item__range { color: #C3CBD6; }

.hcp-header-action-bar.hcp-gamif-sweep {
    animation: hcp-gamif-sweep 0.6s ease;
}
@media (max-width: 1023px) {
    .hcp-header-action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .hcp-header-left,
    .hcp-header-right {
        width: 100%;
        justify-content: space-between;
    }
}
@media (max-width: 639px) {
    .hcp-header-left {
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .hcp-header-icons-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        padding-bottom: 2px;
    }
    .hcp-header-submit,
    .hcp-header-control {
        margin-left: auto;
    }
}

.hcp-banner-divider {
    height: 2px;
    background: linear-gradient(90deg, #3FA0EC, #1E6FD0);
    transition: background 0.3s ease;
}
.hcp-banner-divider.warn-friday {
    background: var(--color-warn-friday);
}
.hcp-banner-divider.warn-saturday {
    background: var(--color-warn-saturday);
}
.hcp-banner-divider.warn-overdue {
    background: var(--color-warn-overdue);
}

.hcp-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.25rem;
    background: var(--color-background-primary);
    transition: background 0.3s ease;
}
.hcp-strip.warn-saturday {
    background: #FFF7ED;
}
.hcp-strip-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hcp-strip-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hcp-strip-week {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
}
.hcp-strip-sep {
    font-size: 12px;
    color: var(--color-text-tertiary);
}
.hcp-strip-range {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.hcp-strip-warn {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-warn-saturday);
}
.hcp-strip-warn.hidden {
    display: none;
}
.hcp-strip-nav {
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
    overflow: hidden;
    border: 0.5px solid var(--color-border-secondary);
    background: var(--color-background-primary);
}
.hcp-strip-nav button {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    padding: 5px 11px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.hcp-strip-nav button:nth-child(2) {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-primary);
    border-left: 0.5px solid var(--color-border-tertiary);
    border-right: 0.5px solid var(--color-border-tertiary);
    white-space: nowrap;
}
.hcp-strip-dots {
    background: transparent;
    border: 0.5px solid var(--color-border-secondary);
    border-radius: 100px;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--color-text-secondary);
    font-size: 13px;
}
.hcp-strip-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* —— B1 Banner aksiyon butonları —— */
.hcp-action-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hcp-ic-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    position: relative;
    transition: opacity 0.15s;
}
.hcp-ic-btn:hover { opacity: 0.8; }
.hcp-ic-btn svg { display: block; }
.hcp-ic-btn--izin { background: #FEF3C7; color: #D97706; }
.hcp-ic-btn--ata  { background: #DBEAFE; color: #1D4ED8; }
.hcp-ic-btn--yz   { background: #F5F3FF; color: #6D28D9; }
.hcp-ic-btn--feedback { background: #EDE9FE; color: #7C3AED; }
.hcp-ic-btn .tip {
    display: none;
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: #1E293B;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 10;
    pointer-events: none;
}
.hcp-ic-btn:hover .tip { display: block; }

.hcp-strip-submit {
    height: 36px;
    padding: 0 16px;
    border-radius: 50px;
    border: none;
    background: #0EA5E9;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}
.hcp-strip-submit:hover { background: #0284C7; }
.hcp-strip-submit.warn-saturday { background: #F97316; }
.hcp-strip-submit.warn-saturday:hover { background: #EA580C; }

.hcp-strip1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 1.25rem;
    background: var(--color-background-primary);
    transition: background 0.3s ease;
}
.hcp-strip2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 14px;
    margin: 0 1.25rem 8px;
    background: #F8FAFC;
    border: 1px solid var(--color-border-secondary);
    border-radius: 12px;
}
.hcp-strip2-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 240px;
}
.hcp-streak {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #B45309;
}
.hcp-progress-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}
.hcp-strip2 .hcp-progress-track {
    flex: 1;
    height: 8px;
    border-radius: 50px;
    background: #E2E8F0;
    overflow: hidden;
    min-width: 80px;
}
.hcp-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 50px;
    transition: width 0.4s ease, background 0.3s;
}
.hcp-progress-count {
    font-size: 12px;
    color: var(--color-text-secondary);
    white-space: nowrap;
}
.hcp-strip2-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hcp-status-line {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.hcp-chip-unplanned {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 50px;
    background: #FEF3C7;
    color: #B45309;
}

/* —— B3 Quick-add —— */
.hcp-quick-add {
    margin-top: 1rem;
    padding: 0.85rem 1rem 1rem;
    border-radius: 16px;
    border: 1px solid #E6ECF3;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 40, 60, 0.06), 0 6px 16px rgba(16, 40, 60, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hcp-quick-add__label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: none;
    background: linear-gradient(90deg, #1E6FD0, #16B3C4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1A6FD4;
}
.hcp-quick-add__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.hcp-quick-add__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #3FA0EC, #1E6FD0);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(46, 143, 255, 0.35);
}
.hcp-quick-add__input {
    flex: 1;
    min-width: 9rem;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.22);
}
.hcp-quick-add__input::placeholder {
    color: #64748b;
    font-weight: 500;
}
.hcp-quick-add__input:focus {
    background: #fff;
    box-shadow: inset 0 0 0 2px #3FA0EC;
}
/* Global :focus-visible dış halkası burada İKİNCİ çizgi oluşturuyordu;
   girişin kendi mavi iç çerçevesi tek başına yeterli. */
.hcp-quick-add__input:focus-visible { outline: none; }
.hcp-quick-add__unplanned {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #1b2a2e;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1.5px solid #cdd5e3;
    background: #fff;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease;
}
.hcp-quick-add__unplanned:hover { background: #f3f6fb; border-color: #b9c2d4; }
.hcp-quick-add__unplanned input {
    width: 0.88rem;
    height: 0.88rem;
    accent-color: #EE6E12;
    cursor: pointer;
}
.hcp-quick-add__bottom-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    /* Giriş kutusuyla aynı sol hiza. Eski girinti (2.125rem + 0.5rem) satır başında
       artık var olmayan + ikonuna göreydi; ikon kalkınca çipler havada kalıyordu. */
    margin-left: 0;
}
.hcp-quick-add__chips {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: visible;
    position: relative;
}
.hcp-quick-add__chips::-webkit-scrollbar { display: none; }
.hcp-quick-add__chips .hcp-work-area-chip {
    flex-shrink: 0;
    font-size: 11px;
    padding: 4px 10px;
}
.hcp-quick-add__bottom-row .hcp-quick-add__unplanned {
    flex-shrink: 0;
    align-self: center;
    margin-top: 0;
}
.hcp-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 1.05rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #2E8FFF, #1E6FD0);
    color: #fff;
    font-family: var(--pys-font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: var(--hcp-btn-shadow-strong);
    transition: background 0.15s, transform 0.12s, opacity 0.15s;
}
.hcp-btn-add:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.hcp-btn-add:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
    box-shadow: none;
}
#hcp-quick-add:focus-within {
    border-color: #0284C7;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.22), 0 4px 18px rgba(14, 165, 233, 0.22);
}
#hcp-quick-add.opacity-60 {
    opacity: 0.72;
}

/* —— B4 Başlık düzenleme / sağ panel —— */
#hcp-shell-plan .hcp-item-title {
    cursor: pointer;
}
#hcp-shell-plan .hcp-item-title:hover {
    color: #0EA5E9;
}

.hcp-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.hcp-detail-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
body.hcp-detail-open {
    overflow: hidden;
}
.hcp-detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 92vw;
    background: var(--color-background-primary);
    border-left: 0.5px solid var(--color-border-secondary);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.10);
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 301;
    display: flex;
    flex-direction: column;
}
.hcp-detail-panel.is-open { transform: translateX(0); }

/* Tek Yüzey: anında açılan merkez modal */
.hcp-detail-panel.hcp-detail-panel--unified {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(480px, 100%);
    max-width: 480px;
    max-height: min(88vh, 760px);
    height: auto;
    border: 1px solid var(--color-border-secondary, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
    transition: none;
    z-index: 301;
    overflow: hidden;
}
.hcp-detail-panel.hcp-detail-panel--unified.is-open {
    transform: translate(-50%, -50%);
}
.hcp-detail-head__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary, #0f172a);
}
.hcp-detail-close {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: var(--color-background-secondary, #FBFAF6);
    color: var(--color-text-secondary, #64748b);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}
.hcp-detail-close:hover {
    background: #fee2e2;
    color: #dc2626;
}
.hcp-detail-close:focus-visible {
    outline: 2px solid var(--color-action-primary, #0ea5e9);
    outline-offset: 2px;
}
.hcp-detail-tabs {
    display: flex;
    gap: 4px;
    padding: 0 20px 12px;
    border-bottom: 0.5px solid var(--color-border-secondary);
}
.hcp-detail-tab {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--color-border-tertiary);
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
}
.hcp-detail-tab.is-active {
    background: var(--color-status-pending-bg);
    border-color: var(--color-action-primary);
    color: var(--color-brand-cini-deep);
}
.hcp-btn-verify {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--color-border-secondary);
    background: var(--color-background-primary);
    color: var(--color-text-secondary);
    cursor: pointer;
    shrink: 0;
}
.hcp-btn-verify:hover { border-color: var(--color-action-primary); color: var(--color-brand-cini-deep); }
.hcp-btn-verify--filled {
    background: var(--color-status-success-bg);
    border-color: var(--color-status-success);
    color: var(--color-status-success);
}
.hcp-verify-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 30;
}
.hcp-item-row {
    overflow: visible;
    position: relative;
}
.hcp-verify-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 250;
    width: min(20rem, 86vw);
}
.hcp-verify-popover__box {
    background: var(--color-background-primary);
    border: 1px solid rgba(14, 165, 233, 0.35);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    padding: 0;
    overflow: hidden;
}
.hcp-verify-popover__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--color-border-tertiary);
}
.hcp-verify-popover__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.01em;
}
.hcp-verify-required {
    color: var(--color-status-danger);
}
.hcp-verify-popover__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border-secondary);
    background: var(--color-background-primary);
    color: var(--color-text-secondary);
    cursor: pointer;
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    flex-shrink: 0;
}
.hcp-verify-popover__close:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}
.hcp-verify-popover__box .hcp-verify-text {
    margin: 12px 12px 0;
    width: calc(100% - 24px);
    min-height: 5.5rem;
    resize: vertical;
    border-radius: 10px;
    border-color: var(--color-border-secondary);
}
.hcp-verify-popover__box .hcp-verify-text:focus {
    border-color: var(--color-action-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.hcp-verify-popover__box .hcp-verify-text.hcp-field--warn {
    border-color: var(--color-status-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.hcp-verify-hint {
    margin: 8px 12px 0;
    font-size: 11px;
    color: var(--color-text-tertiary);
    line-height: 1.4;
}
.hcp-verify-popover__box .hcp-btn-verify-save {
    margin: 10px 12px 12px;
    width: calc(100% - 24px);
}

/* —— H5 Değişiklik geçmişi —— */
.hcp-history-empty {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    padding: 0.5rem 0;
}
.hcp-history-intro {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #0e7490;
    background: rgba(46, 143, 255, 0.08);
    border: 1px solid rgba(46, 143, 255, 0.18);
}
.hcp-history-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hcp-history-card {
    border: 1px solid var(--color-border-tertiary);
    border-radius: 12px;
    background: var(--color-background-primary);
    overflow: hidden;
}
.hcp-history-card--pending {
    border-color: #fcd34d;
    background: #fffbeb;
}
.hcp-history-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--color-background-secondary);
    border-bottom: 1px solid var(--color-border-tertiary);
}
.hcp-history-card__time {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.hcp-history-card__who {
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-left: auto;
}
.hcp-history-pending {
    font-size: 10px;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 2px 8px;
    border-radius: 999px;
}
.hcp-history-context {
    margin: 0;
    padding: 8px 12px 0;
    font-size: 11px;
    color: var(--color-text-secondary);
}
.hcp-history-card__body {
    padding: 10px 12px 12px;
}
.hcp-history-card__lead {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--color-text-tertiary);
}
.hcp-history-field {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 8px;
    align-items: start;
    padding: 6px 0;
    border-top: 1px solid var(--color-border-tertiary);
}
.hcp-history-field:first-of-type {
    border-top: none;
    padding-top: 0;
}
.hcp-history-field__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.hcp-history-field__old {
    font-size: 12px;
    color: var(--color-text-primary);
    line-height: 1.45;
    word-break: break-word;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px 8px;
    border: 1px solid var(--color-border-tertiary);
}

@media (max-width: 640px) {
    .hcp-verify-popover {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}
.hcp-fb-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.hcp-fb-badge--success { background: var(--color-status-success-bg); color: var(--color-status-success); border-color: rgba(5,150,105,.25); }
.hcp-fb-badge--warning { background: var(--color-status-progress-bg); color: var(--color-status-warning); border-color: rgba(245,158,11,.25); }
/* E15 (2026-08-13): ara durum işaretleri kendi renk kimliğiyle — TEK KAYNAK
   --hcp-mark-ontrack / --hcp-mark-speedup. Kontrol ekranındaki işaret butonlarıyla
   aynı tonlar, böylece aynı işaret her ekranda aynı rengi taşır. */
.hcp-fb-badge--ontrack { background: var(--hcp-mark-ontrack-soft); color: var(--hcp-mark-ontrack-ink); border-color: rgba(13,148,136,.28); }
.hcp-fb-badge--speedup { background: var(--hcp-mark-speedup-soft); color: var(--hcp-mark-speedup-ink); border-color: rgba(217,119,6,.28); }
.hcp-fb-badge--info { background: var(--color-status-info-bg); color: var(--color-status-info); border-color: rgba(14,165,233,.25); }
.hcp-edited-mark {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(46, 143, 255, 0.28);
    background: rgba(46, 143, 255, 0.1);
    color: var(--color-brand-cini, #0e7c8a);
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.hcp-edited-mark:hover {
    background: rgba(46, 143, 255, 0.18);
    border-color: rgba(46, 143, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(46, 143, 255, 0.15);
}
.hcp-edited-mark:focus-visible {
    outline: 2px solid var(--color-brand-cini, #0e7c8a);
    outline-offset: 2px;
}
.hcp-pending-mark {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(254, 243, 199, 0.85);
    color: #b45309;
    vertical-align: middle;
}
.hcp-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 0.5px solid var(--color-border-secondary);
}
.hcp-detail-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.hcp-detail-foot {
    padding: 14px 20px;
    border-top: 0.5px solid var(--color-border-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hcp-detail-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(254, 226, 226, 0.4);
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: 9px;
    cursor: pointer;
    color: rgba(220, 38, 38, 0.35);
    font-size: 13px;
    transition: color 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.hcp-detail-delete:hover {
    color: #DC2626;
    background: #FEE2E2;
    border-color: rgba(220, 38, 38, 0.28);
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.14);
}
@media (max-width: 640px) {
    .hcp-detail-panel:not(.hcp-detail-panel--unified) {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 88vh;
        border-left: none;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        transform: translateY(100%);
    }
    .hcp-detail-panel:not(.hcp-detail-panel--unified).is-open { transform: translateY(0); }
    .hcp-detail-panel.hcp-detail-panel--unified {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
    }
    .hcp-detail-panel.hcp-detail-panel--unified.is-open {
        transform: none;
    }
    .hcp-detail-overlay { padding: 0; }
}

/* —— B5 Tik animasyonu —— */
@keyframes hcp-tik-pop {
    0%   { transform: scale(0.6); opacity: 0; }
    60%  { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes hcp-tik-complete {
    0%   { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}
.hcp-btn-tik.is-completing,
.hcp-status-indicator.is-completing {
    animation: hcp-tik-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
               hcp-tik-complete 0.6s ease-out;
}

/* —— B6 Hafta dropdown —— */
.hcp-week-dropdown {
    position: fixed;
    z-index: 200;
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-secondary);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 4px;
    min-width: 200px;
}
.hcp-week-dropdown-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  gap: 5px;
  transition: background 0.1s;
}
.hcp-week-dropdown-item:hover { background: var(--color-background-secondary); }
.hcp-week-dropdown-item.is-active { background: #EFF6FF; }
.hcp-week-dropdown-range {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.2;
}
.hcp-week-dropdown-item.is-active .hcp-week-dropdown-range { color: #1D4ED8; }
.hcp-week-dropdown-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 2px 8px;
  border-radius: 50px;
  background: #FBFAF6;
  line-height: 1.4;
}
.hcp-week-dropdown-label.is-current {
  background: #DBEAFE;
  color: #1D4ED8;
  font-weight: 600;
}

.hcp-section {
    border: 1px solid var(--color-border-secondary);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15,23,42,0.05);
}
.hcp-section-head-wrap {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 14px;
    background: #FBFAF6;
}
.hcp-section-head-wrap .hcp-section-head {
    flex-shrink: 0;
    min-width: 0;
    width: auto;
    padding: 0;
    background: transparent;
}
.hcp-section-bar__chips {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    /* Sağ kenar solması: çipler taştığında "daha var" ipucu verir.
       Çipler az olduğunda fade sağdaki boşluğa denk gelir, görünmez. */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);
}
.hcp-section-bar__chips::-webkit-scrollbar { display: none; }
.hcp-section-bar__chips .hcp-work-area-chip { flex-shrink: 0; }
.hcp-section--order-flash {
    animation: hcp-order-flash 1.2s ease;
}
@keyframes hcp-order-flash {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45); }
    40% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25); }
    100% { box-shadow: none; }
}
.hcp-section-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #FBFAF6;
  border: none;
  cursor: pointer;
  text-align: left;
}
.hcp-section-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #94A3B8;
}
.hcp-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--sec-color);
  flex: 1;
  display: inline-flex;
  align-items: center;
}
.hcp-section-title::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sec-color);
  margin-right: 9px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(15,23,42,0.05);
}
.hcp-section-caret {
  display: block;
  transition: transform 0.2s;
}
.hcp-section.is-collapsed .hcp-section-body { display: none; }
.hcp-section.is-collapsed .hcp-section-caret { transform: rotate(-90deg); }
/* Tek kanonik tanim asagida (3750 civari) — cifte tanim metni saga kaydiriyordu */
.hcp-section-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

